@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════════════════════════
   BRAND OS · v11.0 — KOL Studio 統一設計語言 (RABY D&C)

   v11.0 改動(2026-04-27):
     [v11.0] 主色票 古銅金 → 紫粉薄荷三色(對齊 KOL 數字人 v5.10)
     [v11.0] 主標字體 Bebas Neue → Syne(現代 SaaS 風格)
     [v11.0] 全站漸層光暈背景升級(三色徑向漸層)
     [v11.0] 卡片 hover 動畫升級(translateY + 紫光暈)
     [v11.0] 按鈕系統升級(大圓角 + 漸層 + box-shadow)
     [v11.0] 廣告腳本卡片改 KOL 雜誌風(漸層分隔 + pill 標籤)

   保留(0 邏輯動):
     - 所有 class name(.nav / .left / .mid / .right / .ad-card / .pr-scene-btn ...)
     - 所有 layout grid 比例(270px 1fr 340px)
     - 所有 ID hook(#brandTree / #prodList / #scriptsOut ...)
     - 所有 JS 動畫名稱(@keyframes pulse / sp / up / hlNew ...)
     - admaker 三層按鈕(layout-btn / flavor-btn / context-btn)
       ⚠️ 2026-08-18:字級從 10~10.5px 放大到 12~12.5px。
          原本在筆電(1440px 寬)上小到看不清楚,而這三區是客戶每次生圖都要用的。

   v9.0 / v10.2 註解保留(向下相容)
   ══════════════════════════════════════════════════════════════ */

/* ══ CSS Variables (v11.0 KOL 風格) ══ */
:root {
  /* 背景階層 - 真正的深墨黑(對齊 KOL --bg #0a0a0f) */
  --bg:   #0A0A0F;
  --bg2:  #111118;
  --bg3:  #1A1A24;
  --bg4:  #232330;

  /* ────────────────────────────────────────────────────
     v11.0 主色:紫粉薄荷三色(對齊 KOL Studio)
     ──────────────────────────────────────────────────── */
  --accent:    #7C6DFA;        /* 紫(主強調)*/
  --accent2:   #FA6D9B;        /* 粉(次強調)*/
  --accent3:   #6DFAC2;        /* 薄荷(成功 / 完成)*/
  --accent-dark: #5648D8;       /* 紫深(hover)*/

  /* 紫色系工具(取代原 --gold-glow / --gold2 / --gold3)*/
  --accent-glow:  rgba(124,109,250,0.30);
  --accent-mid:   rgba(124,109,250,0.15);
  --accent-soft:  rgba(124,109,250,0.06);

  /* 粉色系工具 */
  --pink-glow:    rgba(250,109,155,0.30);
  --pink-mid:     rgba(250,109,155,0.15);
  --pink-soft:    rgba(250,109,155,0.06);

  /* 薄荷系工具 */
  --mint-glow:    rgba(109,250,194,0.30);
  --mint-mid:     rgba(109,250,194,0.15);
  --mint-soft:    rgba(109,250,194,0.06);

  /* ────────────────────────────────────────────────────
     向下相容別名(v9 / v10 仍在使用的名字 → 全部映射到新色)
     ──────────────────────────────────────────────────── */

  /* 古銅金別名 → 全部變紫 */
  --gold:       #7C6DFA;
  --gold2:      rgba(124,109,250,0.15);
  --gold3:      rgba(124,109,250,0.06);
  --gold-light: #9C8DFF;
  --gold-dark:  #5648D8;
  --gold-glow:  rgba(124,109,250,0.25);

  /* 線條 */
  --line:      rgba(255,255,255,0.07);
  --line2:     rgba(124,109,250,0.20);
  --line-gold: rgba(124,109,250,0.35);   /* 別名 — 改紫 */

  /* 功能色(精緻化)*/
  --sky:   #6DFAC2;                       /* 改成薄荷,跟 KOL 一致 */
  --sky2:  rgba(109,250,194,0.12);
  --mint:  #6DFAC2;
  --mint2: rgba(109,250,194,0.12);
  --purple:#FA6D9B;                       /* purple 改成粉 */
  --purple2:rgba(250,109,155,0.12);

  /* CTA 點綴(原橘紅,改成粉)*/
  --red:   #FA6D9B;
  --red2:  rgba(250,109,155,0.12);
  --peach: #FA6D9B;
  --peach2:rgba(250,109,155,0.12);

  /* 文字 */
  --t1: #F0F0F8;
  --t2: rgba(240,240,248,0.72);
  --t3: rgba(240,240,248,0.45);

  /* 精品陰影(v11.0 升級為紫光暈)*/
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
  --shadow-gold: 0 8px 24px rgba(124,109,250,0.22);    /* 改紫光暈 */
  --shadow-accent: 0 8px 24px rgba(124,109,250,0.30);   /* 改紫光暈 */
  --shadow-glow: 0 0 28px rgba(124,109,250,0.20);

  /* 圓角系統(KOL 偏向更大圓角)*/
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 99px;
}

/* ══ Reset ══ */
* { margin:0; padding:0; box-sizing:border-box; }
/* 🆕 2026-08-08:整頁改成可以往下捲。
   舊寫法 height:100% + overflow:hidden 把整個網站鎖在「一個螢幕高」裡,
   三欄只能各自開小捲軸 → 不管螢幕多大,工作區永遠是那一小塊。
   (手機版早就是可捲的,反而是桌機版被鎖住)
   改法:body 允許直向捲動,workspace 給一個最小高度撐開。 */
html { height:100%; }
body { min-height:100%; overflow-x:hidden; overflow-y:auto; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'Noto Sans TC', sans-serif;
  display: flex; flex-direction: column;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ══ v11.0 全站光暈背景(三色徑向漸層,對齊 KOL)══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 8%, rgba(124,109,250,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 82% 42%, rgba(250,109,155,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 92%, rgba(109,250,194,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ══ Nav(v11.0 升級毛玻璃)══ */
/* 🆕 2026-08-08:整頁可捲之後,導覽列改成黏在最上面。
   不然往下捲時品牌選單、點數、登出全部消失,客戶會找不到。 */
.nav {
  position: sticky;
  top: 0;
  height: 56px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 100;
}

.nav-logo-wrap {
  display: flex; align-items: center;
  position: relative;
}
.nav-logo-wrap::after {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  width: 50px; height: 50px;
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(124,109,250,0.25) 0%,
    rgba(250,109,155,0.10) 40%,
    transparent 65%);
  pointer-events: none;
  filter: blur(2px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--accent);
}

/* ══ 版本膠囊(v11.0 紫漸層)══ */
.version-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(124,109,250,0.45);
  background: linear-gradient(135deg,
    rgba(124,109,250,0.14) 0%,
    rgba(250,109,155,0.06) 100%);
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.version-capsule::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-pill);
  padding: 1px;
  background: linear-gradient(135deg,
    var(--accent) 0%,
    var(--accent2) 50%,
    var(--accent3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.version-capsule .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 8px var(--accent3);
  flex-shrink: 0;
}

.nav-brands { display: none; }

/* ══ Drive Status ══ */
.drive-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--t3);
  transition: all 0.3s;
}
.drive-dot.ok   { background: var(--accent3); box-shadow: 0 0 10px var(--accent3); }
.drive-dot.busy { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.drive-label { font-size: 10px; font-weight: 700; color: var(--t3); letter-spacing: 0.5px; }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* ══ Workspace Layout ══ */
.workspace {
  flex: 1;
  /* 🆕 2026-08-08:min-height 從 0 改成 760px。
     0 的意思是「可以被壓到多小都行」,那正是畫面擠的原因。
     760px 是一個舒服的工作高度:螢幕夠高就填滿,不夠高就讓整頁往下捲。 */
  min-height: 760px;
  display: grid;
  grid-template-columns: 270px 1fr 340px;
  /* 🆕 從 hidden 改 visible:三欄的內容可以自然長高,由整頁負責捲動 */
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08:狀態引導(需要先選品牌)

   問題:客戶第一次進來,中間的「廣告文案」和右邊的「素材庫」都亮著,
     但兩邊都還沒東西可用 —— 他會盯著中間發呆,不知道要先去左邊點品牌。
   做法:沒選品牌時整片暗掉 + 不可點,只剩左欄是亮的。
     客戶不用讀說明,眼睛自然被帶到唯一亮著的地方。
   ★ class 由 brands.js 的 updateCtx() 控制,選了品牌就自動移除。
   ★ 沒有這個 class = 一切正常,所以 JS 沒跑到也不會把人鎖在外面。
   ═══════════════════════════════════════════════════════════ */
body.need-brand .mid,
body.need-brand .right {
  opacity: 0.28;
  filter: grayscale(0.5);
  pointer-events: none;          /* 暗的時候點不動,免得客戶按了沒反應更困惑 */
  user-select: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
/* 左欄反過來:微微發亮,把視線拉過去 */
body.need-brand .left {
  box-shadow: inset -1px 0 0 rgba(124,109,250,0.45);
}
/* 選好品牌後亮回來也要順順的 */
.mid, .right { transition: opacity 0.35s ease, filter 0.35s ease; }

/* ══ Left Panel(v11.0 KOL panel 風格)══ */
.left {
  background: var(--bg2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.left::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(124,109,250,0.04) 0%,
    transparent 60%);
  pointer-events: none;
}

.l-sec {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  position: relative;
}
.l-sec::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124,109,250,0.35), transparent);
}

.brand-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(26,26,36,0.6) 100%);
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.brand-row::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,109,250,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.brand-row:hover::before { opacity: 1; }
.brand-row:hover {
  border-color: rgba(124,109,250,0.55);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(124,109,250,0.15);
}
.brand-row.on {
  border-color: var(--accent);
  background: linear-gradient(135deg,
    rgba(124,109,250,0.18) 0%,
    rgba(124,109,250,0.05) 100%);
  box-shadow: 0 2px 12px rgba(124,109,250,0.20);
}
.brand-row.on::after {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 0 2px 2px 0;
}
.br-icon { font-size: 17px; flex-shrink: 0; position: relative; z-index: 1; }
.br-info { flex: 1; position: relative; z-index: 1; }
.br-name { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }
.br-sub  { font-size: 10px; color: var(--t3); margin-top: 2px; letter-spacing: 0.3px; }

.sub-brand-row {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px 7px 28px;
  border-radius: var(--r-sm);
  border: 1px dashed rgba(255,255,255,0.10);
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s;
  font-size: 12px; color: var(--t2);
}
.sub-brand-row:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(109,250,194,0.05);
}
.sub-brand-row.on {
  border-color: var(--accent3);
  border-style: solid;
  color: var(--accent3);
  background: var(--mint-mid);
}
.sub-brand-row .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.prod-scroll { flex: 1; overflow-y: auto; padding: 12px 14px; }
.prod-scroll::-webkit-scrollbar { width: 4px; }
.prod-scroll::-webkit-scrollbar-thumb {
  background: rgba(124,109,250,0.30);
  border-radius: 2px;
}
.prod-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(124,109,250,0.50);
}
.prod-grp-label {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
  margin-top: 2px;
  opacity: 0.7;
  color: var(--accent2);
}
.prod-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg3);
  cursor: pointer;
  margin-bottom: 5px;
  transition: all 0.2s;
  position: relative;
}
.prod-row:hover {
  border-color: rgba(124,109,250,0.45);
  transform: translateX(3px);
  background: linear-gradient(135deg, var(--bg3), rgba(124,109,250,0.04));
}
.prod-row.on {
  border-color: var(--accent);
  background: linear-gradient(135deg,
    rgba(124,109,250,0.12) 0%,
    rgba(124,109,250,0.03) 100%);
  box-shadow: 0 2px 8px rgba(124,109,250,0.15);
}
.prod-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--t3);
  flex-shrink: 0;
}
.prod-row.on .prod-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.prod-name { font-size: 12px; flex: 1; font-weight: 500; }
.prod-tag  { font-size: 10px; color: var(--t3); margin-top: 2px; }

/* ══ Mid Panel ══ */
.mid {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.gen-bar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,
    var(--bg2) 0%,
    rgba(17,17,24,0.85) 100%);
  flex-shrink: 0;
  position: relative;
}
.gen-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,109,250,0.30) 30%,
    rgba(250,109,155,0.30) 70%,
    transparent 100%);
}

.gb-row1 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gb-ctx  { flex: 1; }
.gb-brand {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.gb-prod {
  font-size: 16px;
  color: var(--t1);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sel {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--t1);
  font-family: 'Noto Sans TC';
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  transition: all 0.2s;
  cursor: pointer;
}
.sel:hover { border-color: rgba(124,109,250,0.40); }
.sel:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.15);
}
.sel-lbl {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ══ 主 CTA 按鈕(v11.0 紫粉漸層 + box-shadow)══ */
.gen-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: var(--r-md);
  color: #fff;
  font-family: 'Noto Sans TC';
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(124,109,250,0.30);
  position: relative;
  overflow: hidden;
}
.gen-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%);
  pointer-events: none;
}
.gen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124,109,250,0.45);
}
.gen-btn:active { transform: translateY(-1px); }
.gen-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ══ Progress Bar ══ */
.prog {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  display: none;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s;
}
.prog-pct {
  position: absolute;
  right: 0;
  top: -18px;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
}

/* ══ Tabs ══ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  flex-shrink: 0;
}
.tab {
  padding: 13px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--t3);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  transition: all 0.2s;
  letter-spacing: 0.08em;
}
.tab:hover { color: var(--t1); }
.tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.badge {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  background: var(--accent-mid);
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.scripts-wrap { flex: 1; overflow-y: auto; padding: 18px 22px; }
.scripts-wrap::-webkit-scrollbar { width: 4px; }
.scripts-wrap::-webkit-scrollbar-thumb {
  background: rgba(124,109,250,0.30);
  border-radius: 2px;
}
.pane { display: none; }
.pane.on { display: block; }

/* ══ 文案廣告卡(v11.0 KOL 雜誌風)══ */
.ad-card {
  background: linear-gradient(135deg,
    var(--bg2) 0%,
    rgba(17,17,24,0.80) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  animation: up 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  transition: all 0.25s;
  position: relative;
}
.ad-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2));
}
.ad-card:hover {
  border-color: rgba(124,109,250,0.40);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,109,250,0.12);
}
@keyframes up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ac-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(26,26,36,0.50);
  border-bottom: 1px solid var(--line);
}
.ac-id {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.ac-pill {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ac-btns { display: flex; gap: 6px; }
.ac-body { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.seg {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  position: relative;
}
.seg:last-child { border-right: none; }
.seg-lbl {
  font-family: 'Syne', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.seg-lbl::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.seg-txt {
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.2px;
  color: var(--t1);
}
.seg-badge {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.seg-hint { font-size: 10.5px; color: var(--t3); margin-top: 6px; line-height: 1.6; }

/* ══ 次要按鈕(v11.0 紫色描邊風)══ */
.tbtn {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid;
  background: transparent;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.tbtn-g {
  border-color: rgba(255,255,255,0.12);
  color: var(--t3);
}
.tbtn-g:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.tbtn-s {
  border-color: var(--accent3);
  color: var(--accent3);
  background: var(--mint-soft);
}
.tbtn-s:hover {
  background: var(--mint-mid);
  box-shadow: 0 0 16px rgba(109,250,194,0.20);
}

/* ══ Empty States ══ */
.empty { text-align: center; padding: 50px 24px; color: var(--t3); }
.empty-ico { font-size: 38px; opacity: 0.20; margin-bottom: 12px; }
.empty-h {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  color: rgba(240,240,255,0.20);
  letter-spacing: 0.10em;
  font-weight: 700;
}
.empty-p { font-size: 11px; line-height: 2; margin-top: 8px; letter-spacing: 0.3px; }

/* ══ Spinner ══ */
.spin {
  display: inline-block;
  width: 11px; height: 11px;
  border: 2px solid rgba(0,0,0,0.20);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sp 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ══ Right Panel ══ */
.right {
  background: var(--bg2);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.right::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(225deg,
    rgba(250,109,155,0.04) 0%,
    transparent 60%);
  pointer-events: none;
}

.drive-cfg {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  position: relative;
}
.dcfg-hint {
  font-size: 11px;
  color: var(--t3);
  line-height: 1.7;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 6px;
}

.fetch-btn {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-family: 'Noto Sans TC';
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1px solid;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.fetch-sky {
  background: var(--mint-mid);
  color: var(--accent3);
  border-color: var(--accent3);
}
.fetch-sky:hover {
  background: rgba(109,250,194,0.22);
  box-shadow: 0 0 16px rgba(109,250,194,0.20);
}
.fetch-sky:disabled { opacity: 0.4; cursor: not-allowed; }

/* ══ Asset Grid ══ */
.asset-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  position: relative;
}
.asset-grid::-webkit-scrollbar { width: 4px; }
.asset-grid::-webkit-scrollbar-thumb {
  background: rgba(124,109,250,0.30);
  border-radius: 2px;
}
/* 🆕 2026-08-08:素材從「長條列表」改成「格狀縮圖牆」。
   舊版一列一張、縮圖只有 38px,要一直往下捲才看得到第五張 ——
   但客戶是「看圖選圖」,不是「讀檔名選圖」。
   改成一排 2-3 格、縮圖放大到 76px,一眼掃完。
   ★ 純 CSS 改,assets.js 的 HTML 結構一個字都沒動。 */
.asset-sec {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  align-content: start;
}
.asset-sec-lbl {
  grid-column: 1 / -1;   /* 🆕 標題橫跨整排,不要被塞進格子裡 */
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(124,109,250,0.30);
  padding-bottom: 7px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asset-count {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--t2);
}
/* 🆕 2026-08-08:改直式卡片(縮圖在上、檔名在下) */
.asset-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg3);
  cursor: pointer;
  margin-bottom: 0;          /* grid 的 gap 已經負責間距 */
  transition: all 0.2s;
  position: relative;
}
.asset-item:hover {
  border-color: var(--accent3);
  background: linear-gradient(135deg, var(--bg3), rgba(109,250,194,0.04));
  transform: translateY(-2px);   /* 🆕 格狀改成上浮,橫移在格子裡會怪 */
}
.asset-item.on.photo {
  border-color: var(--accent3);
  background: var(--mint-mid);
  box-shadow: 0 0 0 1px rgba(109,250,194,0.30);
}
.asset-item.on.video {
  border-color: var(--accent);
  background: var(--accent-mid);
  box-shadow: 0 0 0 1px rgba(124,109,250,0.30);
}
/* 🆕 2026-08-08:縮圖從 38px 放大成整格寬 × 76px 高 —— 這才看得出是什麼東西 */
.ai-thumb {
  width: 100%; height: 76px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
}
.ai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-info { flex: 1; min-width: 0; }
.ai-name {
  font-size: 9.5px;      /* 🆕 格子變窄,字跟著縮 */
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.ai-meta {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  color: var(--t3);
  margin-top: 2px;
  letter-spacing: 0.3px;
}
.ai-check { font-size: 13px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.asset-item.on .ai-check { opacity: 1; }
.asset-item.on.photo .ai-check { color: var(--accent3); }
.asset-item.on.video .ai-check { color: var(--accent); }

/* ══ Deliver Zone ══ */
.deliver-zone {
  border-top: 1px solid rgba(124,109,250,0.25);
  flex-shrink: 0;
  background: var(--bg3);
}
.dz-head {
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.dz-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.10em;
}
.dz-sub {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  color: var(--t3);
  letter-spacing: 0.3px;
}
.dz-body { max-height: 220px; overflow-y: auto; }
.dz-body::-webkit-scrollbar { width: 4px; }
.dz-body::-webkit-scrollbar-thumb {
  background: rgba(124,109,250,0.30);
}

.dr {
  display: grid;
  grid-template-columns: 30px 1fr auto auto auto;
  gap: 6px; align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.dr:hover { background: rgba(124,109,250,0.04); }
.dr-id {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}
.dr-script {
  font-size: 11px;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: 'Syne', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.al-photo {
  color: var(--accent3);
  background: var(--mint-mid);
  border: 1px solid var(--accent3);
}
.al-video {
  color: var(--accent2);
  background: var(--pink-mid);
  border: 1px solid var(--accent2);
}
.al-none {
  color: var(--t3);
  background: transparent;
  border: 1px solid var(--line);
  cursor: default;
}

.dr-status {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ds-ready { color: var(--accent3); background: var(--mint-mid); }
.ds-missing { color: var(--accent2); background: var(--pink-mid); }

.dz-footer { padding: 11px 12px; display: flex; gap: 8px; }
.dz-copy {
  flex: 1;
  padding: 11px;
  border-radius: var(--r-sm);
  font-family: 'Noto Sans TC';
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  transition: all 0.2s;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(124,109,250,0.25);
}
.dz-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,109,250,0.40);
}
.dz-clear {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-family: 'Noto Sans TC';
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--pink-mid);
  color: var(--accent2);
  border: 1px solid rgba(250,109,155,0.40);
  transition: all 0.2s;
}
.dz-clear:hover {
  background: rgba(250,109,155,0.20);
}

/* ══ PR/Scene Buttons(v11.0 紫描邊)══ */
.pr-scene-btn {
  padding: 7px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--t2);
  font-family: 'Noto Sans TC';
  font-size: 10px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  letter-spacing: 0.3px;
}
.pr-mode-btn {
  padding: 9px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--t2);
  font-family: 'Noto Sans TC';
  font-size: 11px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  width: 100%;
  letter-spacing: 0.5px;
}
.pr-scene-btn:hover, .pr-mode-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.pr-mode-btn.on, .pr-scene-btn.on {
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-soft));
  border-color: var(--accent);
  color: #E8DCFF;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(124,109,250,0.20);
}

/* v10.0 棄用版型按鈕(保留樣式向下相容) */
.gpt-poster-layout-btn:hover {
  border-color: rgba(124,109,250,0.7) !important;
  background: var(--accent-soft) !important;
  color: #E8DCFF !important;
}
.gpt-poster-layout-btn.on {
  background: var(--accent-mid) !important;
  border-color: var(--accent) !important;
  color: #E8DCFF !important;
  box-shadow: 0 0 14px rgba(124,109,250,0.22);
}

/* v10.1: 風格靈感按鈕(備援保留)*/
.insp-btn {
  padding: 9px 5px;
  border-radius: var(--r-sm);
  background: rgba(124,109,250,0.04);
  border: 1.5px solid rgba(124,109,250,0.25);
  color: #B8A8D8;
  font-family: 'Noto Sans TC';
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: 0.18s;
  letter-spacing: 0.5px;
}
.insp-btn:hover {
  border-color: rgba(124,109,250,0.7);
  background: rgba(124,109,250,0.12);
  color: #E8DCFF;
  transform: translateY(-1px);
}
.insp-btn.on {
  background: rgba(124,109,250,0.20);
  border-color: rgba(124,109,250,0.85);
  color: #F0E8FF;
  box-shadow: 0 0 14px rgba(124,109,250,0.25);
}

/* ════════════════════════════════════════════════════════════════
   ★ v10.2 / v11.0 三層選擇按鈕(版式紫 / 風土薄荷 / 情境粉)
   v11.0 重新分配:藍綠 → 薄荷  暖橘 → 粉
   ════════════════════════════════════════════════════════════════ */

/* ① 版式骨架按鈕(v11.0 紫主導)*/
.layout-btn {
  padding: 11px 7px;
  border-radius: var(--r-sm);
  background: rgba(124,109,250,0.05);
  border: 1.5px solid rgba(124,109,250,0.30);
  color: #C9B8E8;
  font-family: 'Noto Sans TC';
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: 0.18s;
  letter-spacing: 0.4px;
  text-align: center;
}
.layout-btn:hover {
  border-color: rgba(124,109,250,0.75);
  background: rgba(124,109,250,0.13);
  color: #E8DCFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,109,250,0.18);
}
.layout-btn.on {
  background: linear-gradient(135deg,
    rgba(124,109,250,0.25),
    rgba(124,109,250,0.10));
  border-color: var(--accent);
  color: #F0E8FF;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(124,109,250,0.32),
              inset 0 0 12px rgba(255,255,255,0.04);
}

/* ② 風土調味按鈕(v11.0 薄荷)*/
.flavor-btn {
  padding: 10px 6px;
  border-radius: var(--r-sm);
  background: rgba(109,250,194,0.04);
  border: 1.5px solid rgba(109,250,194,0.25);
  color: #8FE8C8;
  font-family: 'Noto Sans TC';
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: 0.18s;
  letter-spacing: 0.3px;
  text-align: center;
}
.flavor-btn:hover {
  border-color: rgba(109,250,194,0.65);
  background: rgba(109,250,194,0.12);
  color: #C8FFE0;
  transform: translateY(-1px);
}
.flavor-btn.on {
  background: linear-gradient(135deg,
    rgba(109,250,194,0.22),
    rgba(109,250,194,0.10));
  border-color: var(--accent3);
  color: #DDFFEC;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(109,250,194,0.25);
}

/* ③ 情境主題按鈕(v11.0 粉)*/
.context-btn {
  padding: 10px 6px;
  border-radius: var(--r-sm);
  background: rgba(250,109,155,0.04);
  border: 1.5px solid rgba(250,109,155,0.25);
  color: #FFA8C8;
  font-family: 'Noto Sans TC';
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: 0.18s;
  letter-spacing: 0.3px;
  text-align: center;
}
.context-btn:hover {
  border-color: rgba(250,109,155,0.65);
  background: rgba(250,109,155,0.12);
  color: #FFD0E0;
  transform: translateY(-1px);
}
.context-btn.on {
  background: linear-gradient(135deg,
    rgba(250,109,155,0.22),
    rgba(250,109,155,0.10));
  border-color: var(--accent2);
  color: #FFE0EC;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(250,109,155,0.25);
}

/* details 折疊區美化 */
details[open] > summary {
  color: var(--accent) !important;
  margin-bottom: 4px;
}
details > summary {
  list-style: none;
  user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
  margin-right: 2px;
}
details[open] > summary::before { transform: rotate(90deg); }

/* 變影片按鈕 hover */
#posterToVideoBtn:hover:not(:disabled) {
  background: linear-gradient(135deg,
    rgba(124,109,250,0.35),
    rgba(250,109,155,0.30)) !important;
  border-color: rgba(124,109,250,0.9) !important;
  box-shadow: 0 4px 16px rgba(124,109,250,0.30);
}
#posterToVideoBtn:disabled { opacity: 0.55; cursor: wait; }

/* ══ Animations ══ */
@keyframes hlNew {
  from { background: var(--mint-mid); }
  to   { background: transparent; }
}
.drive-warning-text { animation: driveFlash 1.5s ease infinite; }
@keyframes driveFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.dr.new { animation: hlNew 1.2s ease; }

/* ══ Init / Login Overlays(v11.0 KOL 風格)══ */
#initOverlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; gap: 18px;
}
#initOverlay::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(124,109,250,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(250,109,155,0.08) 0%, transparent 60%);
  pointer-events: none;
}
#initOverlay .spin2 {
  width: 40px; height: 40px;
  border: 3px solid rgba(124,109,250,0.20);
  border-top-color: var(--accent);
  border-right-color: var(--accent2);
  border-radius: 50%;
  animation: sp 0.8s linear infinite;
  position: relative; z-index: 1;
}
#initOverlay p {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  color: var(--t3);
  letter-spacing: 0.10em;
  position: relative; z-index: 1;
}

#loginOverlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  z-index: 99999;
}

#loginOverlay::before {
  content: '';
  position: fixed;
  top: 15%; right: 8%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle,
    rgba(124,109,250,0.18) 0%,
    rgba(250,109,155,0.10) 35%,
    transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}
#loginOverlay::after {
  content: '';
  position: fixed;
  bottom: 12%; left: 8%;
  width: 35vw; height: 35vw;
  background: radial-gradient(circle,
    rgba(109,250,194,0.12) 0%,
    transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}

.login-card {
  background: linear-gradient(180deg,
    rgba(20,20,28,0.90) 0%,
    rgba(10,10,15,0.95) 100%);
  border: 1px solid rgba(124,109,250,0.25);
  border-radius: 28px;
  padding: 50px 56px 42px;
  text-align: center;
  width: 420px;
  max-width: 92vw;
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(124,109,250,0.12);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent3) 0%,
    var(--accent) 50%,
    var(--accent2) 100%);
  border-radius: 28px 28px 0 0;
}

.login-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 4px;
  background: linear-gradient(135deg,
    var(--t1) 20%,
    var(--accent) 60%,
    var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: 0 0 30px rgba(124,109,250,0.20);
}
.login-sub {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.30em;
  font-weight: 600;
  display: block;
  margin-top: 8px;
  opacity: 0.7;
}
.login-desc {
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 32px;
  line-height: 2;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.login-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-md);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'Noto Sans TC';
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(124,109,250,0.30);
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%);
  pointer-events: none;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,109,250,0.45);
}
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.login-err {
  font-size: 12px;
  color: var(--accent2);
  margin-top: 14px;
  min-height: 20px;
  font-weight: 700;
}
.login-footer {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  color: var(--t3);
  margin-top: 28px;
  letter-spacing: 0.18em;
}

/* ══ Footer(v11.0)══ */
.brand-footer {
  flex-shrink: 0;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  padding: 14px 24px 16px;
  position: relative;
  z-index: 50;
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.10em;
}
.footer-brand {
  color: var(--accent);
  font-weight: 700;
}
.footer-product {
  color: var(--t2);
  font-weight: 600;
}
.footer-version {
  color: var(--t3);
  font-weight: 500;
}
.footer-divider {
  color: var(--t3);
  opacity: 0.5;
}
.footer-copy {
  text-align: right;
  font-family: 'Syne', sans-serif;
  font-size: 9.5px;
  color: var(--t3);
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.footer-link {
  color: var(--t2);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Noto Sans TC';
  letter-spacing: 0.05em;
}
.footer-link:hover {
  color: var(--accent);
}

/* ══ Mobile ══ */
@media(max-width: 768px) {
  html, body { overflow: auto; }
  .workspace { display: flex; flex-direction: column; overflow: visible; height: auto; }
  .left, .mid, .right { width: 100%; }
  .left { border-right: none; border-bottom: 1px solid var(--line); }
  .right { border-left: none; border-top: 1px solid var(--line); }
  .nav { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .nav-brands { flex-wrap: wrap; width: 100%; order: 3; }
  .gb-row1 { flex-wrap: wrap; gap: 8px; }
  .gen-btn { width: 100%; }
  .ac-body { grid-template-columns: 1fr; }
  .seg { border-right: none; border-bottom: 1px solid var(--line); }
  .seg:last-child { border-bottom: none; }
  .dz-body { max-height: 300px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .footer-left, .footer-right {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-copy { text-align: center; }
}

/* ══ 廣告監控入口按鈕(v11.0 改紫粉系)══ */
.btn-ads-monitor {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--accent2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--accent2);
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-ads-monitor::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -2px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent2),
    transparent);
  animation: monitor-scan 3s ease-in-out infinite;
  opacity: 0.7;
  pointer-events: none;
}
@keyframes monitor-scan {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.85; }
  85%  { opacity: 0.45; }
  100% { transform: translateY(34px); opacity: 0; }
}
.btn-ads-monitor:hover {
  background: var(--pink-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(250,109,155,0.20);
}
.btn-ads-monitor:active { transform: scale(0.98); }
.monitor-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  animation: monitor-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes monitor-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.30; transform: scale(0.55); }
}

/* ══ KOL 工作室入口按鈕(v11.0 紫主)══ */
.btn-kol-studio {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-kol-studio::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -30%;
  width: 30%;
  background: linear-gradient(90deg,
    transparent,
    rgba(124,109,250,0.40),
    transparent);
  animation: kol-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes kol-sweep {
  0% { left: -30%; opacity: 0; }
  20% { opacity: 0.85; }
  70% { opacity: 0.85; }
  100% { left: 130%; opacity: 0; }
}
.btn-kol-studio:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,109,250,0.25);
}
.btn-kol-studio:active { transform: scale(0.98); }
.kol-pulse-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 1px;
}
.kol-pulse-dots i {
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: kol-dot-breath 1.6s ease-in-out infinite;
  box-shadow: 0 0 4px var(--accent);
}
.kol-pulse-dots i:nth-child(2) { animation-delay: 0.2s; }
.kol-pulse-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes kol-dot-breath {
  0%, 100% { opacity: 0.30; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ══ 小標籤(v11.0 紫)══ */
.tag-premium {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(124,109,250,0.35);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
}

/* ════════════════════════════════════════════════
   v11.0 太空登入頁專用樣式(附加)
   ════════════════════════════════════════════════ */

/* 太空背景三層光 */
#loginOverlay::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 75% 50%, rgba(124,109,250,.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 25% 30%, rgba(250,109,155,.10) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(109,250,194,.08) 0%, transparent 50%),
    linear-gradient(180deg, #000 0%, #050510 50%, #0a0a18 100%);
  pointer-events: none;
}
/* 星空 */
#loginOverlay::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, white, transparent),
    radial-gradient(1px 1px at 28% 65%, white, transparent),
    radial-gradient(1.5px 1.5px at 45% 22%, white, transparent),
    radial-gradient(1px 1px at 62% 78%, white, transparent),
    radial-gradient(1px 1px at 78% 35%, white, transparent),
    radial-gradient(2px 2px at 89% 55%, white, transparent),
    radial-gradient(1px 1px at 5% 88%, white, transparent),
    radial-gradient(1.5px 1.5px at 92% 12%, white, transparent),
    radial-gradient(1px 1px at 35% 92%, white, transparent),
    radial-gradient(1px 1px at 70% 8%, white, transparent),
    radial-gradient(1.5px 1.5px at 55% 50%, white, transparent),
    radial-gradient(1px 1px at 18% 45%, white, transparent),
    radial-gradient(1px 1px at 85% 88%, white, transparent),
    radial-gradient(1px 1px at 38% 5%, white, transparent),
    radial-gradient(1.5px 1.5px at 8% 62%, white, transparent);
  opacity: 0.7;
  pointer-events: none;
}
#loginOverlay {
  background: #000 !important;
  overflow: hidden;
}

/* 太空行星 */
.login-planet-large {
  position: absolute;
  bottom: -200px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(124,109,250,.45) 0%, rgba(124,109,250,.20) 30%, rgba(60,30,120,.50) 60%, rgba(20,10,40,.80) 100%);
  box-shadow:
    inset -50px -50px 100px rgba(0,0,0,.6),
    0 0 100px rgba(124,109,250,.30);
  pointer-events: none;
  z-index: 1;
}
.login-planet-medium {
  position: absolute;
  top: -100px; left: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 40%, rgba(250,109,155,.35) 0%, rgba(180,60,100,.30) 50%, rgba(40,10,30,.70) 100%);
  box-shadow:
    inset -30px -30px 60px rgba(0,0,0,.5),
    0 0 80px rgba(250,109,155,.20);
  pointer-events: none;
  z-index: 1;
}

/* 流星 */
.shooting-star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.shooting-star::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100px; height: 1px;
  background: linear-gradient(90deg, white, transparent);
  transform-origin: left;
  transform: rotate(-45deg);
}
.shooting-star.s1 { top: 15%; left: 80%; animation: shoot 6s ease-in-out infinite; }
.shooting-star.s2 { top: 35%; left: 60%; animation: shoot 8s ease-in-out infinite; animation-delay: 3s; }
@keyframes shoot {
  0%, 100% { opacity: 0; transform: translate(0,0); }
  10% { opacity: 1; }
  30% { opacity: 1; transform: translate(-180px,180px); }
  35%, 100% { opacity: 0; transform: translate(-180px,180px); }
}

/* RB Logo 在登入頁(已是真透明 PNG/webp,不需 mix-blend-mode)*/
.login-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 0 12px rgba(124,109,250,0.40))
    drop-shadow(0 0 24px rgba(255,255,255,0.20));
  animation: logo-breathe 5s ease-in-out infinite;
}
@keyframes logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Vision Tagline */
.login-vision {
  font-family: 'Cormorant Garamond','Noto Serif TC',serif;
  font-size: 14px;
  line-height: 2;
  color: var(--t1);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-weight: 400;
}
.login-vision strong {
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent3) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SECURED LAUNCH PROTOCOL footer */
.login-footer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--t3);
  margin-top: 28px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.login-footer::before, .login-footer::after {
  content: '·';
  margin: 0 10px;
  color: var(--accent);
}

/* 登入按鈕掃描動畫 */
.login-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,109,250,0.20), transparent);
  animation: scan-btn 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan-btn {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* Footer 底部 */
.brand-footer {
  flex-shrink: 0;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  padding: 14px 24px 16px;
  position: relative;
  z-index: 50;
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.footer-left {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 10.5px; letter-spacing: 0.10em;
}
.footer-brand { color: var(--accent); font-weight: 700; }
.footer-product { color: var(--t2); font-weight: 600; }
.footer-version { color: var(--t3); font-weight: 500; }
.footer-divider { color: var(--t3); opacity: 0.5; }
.footer-copy {
  text-align: right;
  font-family: 'Syne', sans-serif;
  font-size: 9.5px; color: var(--t3);
  letter-spacing: 0.06em; opacity: 0.7;
}
.footer-right {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; font-size: 11px; letter-spacing: 0.05em;
}
.footer-link {
  color: var(--t2); text-decoration: none;
  transition: color 0.2s;
  font-family: 'Noto Sans TC';
}
.footer-link:hover { color: var(--accent); }

@media(max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .footer-left, .footer-right { justify-content: center; flex-wrap: wrap; }
  .footer-copy { text-align: center; }
  .login-card { padding: 36px 28px 30px; }
  .login-title { font-size: 36px; }
  .login-vision { font-size: 12.5px; }
}

/* Nav LOGO 圖片(已是真透明,不需 mix-blend-mode)*/
.nav-logo-img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(124,109,250,0.40));
}

/* ════════════════════════════════════════════════
   v11.0 Vision Banner + 主標題(主頁頭部)
   ════════════════════════════════════════════════ */
.vision-wrap {
  padding: 20px 24px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.vision-card {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(124,109,250,.08) 0%, rgba(250,109,155,.05) 100%);
  border: 1px solid rgba(124,109,250,.18);
  border-radius: 14px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.vision-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2));
}
.vision-col {
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  padding: 6px 10px 6px 14px;
  cursor: pointer;
  border-radius: 10px;
}
.vision-col::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
}
.vision-col.now::before    { background: var(--accent3); }
.vision-col.next::before   { background: var(--accent); }
.vision-col.future::before { background: var(--accent2); }
.vision-stage {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vision-col.now .vision-stage    { color: var(--accent3); }
.vision-col.next .vision-stage   { color: var(--accent); }
.vision-col.future .vision-stage { color: var(--accent2); }
.vision-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.3;
}
.vision-desc {
  font-size: 11.5px;
  color: var(--t3);
  line-height: 1.55;
}
.vision-badge {
  display: inline-block;
  font-size: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: 4px;
  letter-spacing: .04em;
}
.vision-badge.live { background: rgba(109,250,194,.15); color: var(--accent3); }
.vision-badge.dev  { background: rgba(124,109,250,.15); color: var(--accent); }
.vision-badge.plan { background: rgba(250,109,155,.15); color: var(--accent2); }

/* 主標題 */
.page-header {
  padding: 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--t1) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--t3);
}

@media(max-width: 768px) {
  .vision-card { grid-template-columns: 1fr; gap: 12px; }
  .page-header { padding: 18px 16px; }
}

/* ════════════════════════════════════════════════
   登入頁排版微調(間距優化)
   ════════════════════════════════════════════════ */

/* 卡片整體 padding 加大 */
.login-card {
  padding: 60px 56px 50px !important;
}

/* LOGO 上下留白增加 */
.login-logo {
  margin: 8px auto 22px !important;
}

/* BRAND OS 大標下方留白增加 */
.login-title {
  margin-bottom: 28px !important;
}

/* 分隔線間距加大(從 24px → 36px) */
.login-divider {
  margin: 36px auto !important;
}

/* Google 登入按鈕上下留白 */
.login-btn {
  margin-top: 8px;
  margin-bottom: 6px;
}

/* 其他方式登入跟按鈕之間距離 */
.login-other {
  margin-top: 26px !important;
}

/* I, MULTIPLIED 跟上方距離 */
.login-footer {
  margin-top: 40px !important;
}


/* ════════════════════════════════════════════════
   登入卡片排版微調 v2(縮回適中尺寸)
   ════════════════════════════════════════════════ */

.login-card {
  padding: 48px 56px 40px !important;
  width: 460px !important;
  max-width: 92vw !important;
}

.login-logo {
  width: 80px !important;
  margin: 0 auto 18px !important;
}

.login-title {
  font-size: 42px !important;
  margin-bottom: 0 !important;
}

.login-divider {
  margin: 28px auto !important;
}

.login-btn {
  margin-top: 4px;
  margin-bottom: 4px;
}

.login-other {
  margin-top: 22px !important;
}

.login-footer {
  margin-top: 32px !important;
}

/* ════════════════════════════════════════════════
   登入卡片排版 v3 — 右邊那張的緊湊版
   LOGO 大、BRAND OS 大、按鈕窄、整體比例緊湊
   ════════════════════════════════════════════════ */

.login-card {
  padding: 40px 36px 32px !important;
  width: 380px !important;
}

.login-logo {
  width: 90px !important;
  margin: 0 auto 16px !important;
}

.login-title {
  font-size: 48px !important;
  margin-bottom: 0 !important;
}

.login-divider {
  display: none !important;
}

.login-btn {
  width: 88% !important;
  margin: 24px auto 8px auto !important;
  padding: 13px 16px !important;
  font-size: 13px !important;
}

.login-other {
  margin-top: 18px !important;
}

.login-footer {
  margin-top: 24px !important;
}

/* ════════════════════════════════════════════════
   v11.1 Nav 美化:大字英文按鈕 + LOGO 旁版號
   ════════════════════════════════════════════════ */

/* Brand OS 主標(nav)*/
.nav-brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-left: 6px;
}
.nav-brand-text span {
  color: var(--t1);
}

/* v10.5 小版號標(貼在 Brand OS 旁)*/
.nav-version-tag {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.10em;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(124,109,250,0.4);
  background: rgba(124,109,250,0.08);
  margin-left: 6px;
  align-self: flex-start;
  margin-top: 6px;
}

/* nav 按鈕通用基底(大字!) */
.nav-btn-monitor,
.nav-btn-kol,
.nav-btn-admin,
.nav-btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Monitor(粉紅)*/
.nav-btn-monitor {
  border: 1px solid var(--accent2);
  background: transparent;
  color: var(--accent2);
}
.nav-btn-monitor:hover {
  background: rgba(250,109,155,0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(250,109,155,0.25);
}

/* KOL Studio(紫)*/
.nav-btn-kol {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}
.nav-btn-kol:hover {
  background: rgba(124,109,250,0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,109,250,0.30);
}
.nav-btn-kol::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(124,109,250,0.40), transparent);
  animation: kol-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* Admin(灰紫)*/
.nav-btn-admin {
  border: 1px solid rgba(124,109,250,0.4);
  background: rgba(124,109,250,0.06);
  color: var(--accent);
}
.nav-btn-admin:hover {
  background: rgba(124,109,250,0.18);
  transform: translateY(-1px);
}

/* Logout(灰)*/
.nav-btn-logout {
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.04);
  color: var(--t2);
}
.nav-btn-logout:hover {
  background: rgba(255,255,255,0.10);
  color: var(--t1);
}

/* Vision Banner 可切換 — 變大、active 高亮 */
.vision-card {
  cursor: default;
}
.vision-col {
  cursor: pointer;
  transition: background 0.1s ease, box-shadow 0.1s ease;
}
.vision-col:hover {
  background: rgba(124,109,250,0.04);
  transform: translateY(-2px);
}
.vision-col.active {
  background: linear-gradient(135deg, rgba(124,109,250,0.10) 0%, rgba(250,109,155,0.04) 100%);
  box-shadow: 0 6px 20px rgba(124,109,250,0.15);
}
.vision-col.active.now::before    { background: var(--accent3); width: 3px; box-shadow: 0 0 12px var(--accent3); }
.vision-col.active.next::before   { background: var(--accent); width: 3px; box-shadow: 0 0 12px var(--accent); }
.vision-col.active.future::before { background: var(--accent2); width: 3px; box-shadow: 0 0 12px var(--accent2); }
.vision-col.active .vision-title {
  color: var(--t1);
  font-size: 16px;
}

/* User Status Bar(右欄頂部:Email + Drive 狀態)*/
.user-status-bar {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, rgba(124,109,250,0.04) 0%, transparent 100%);
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(109,250,194,0.10);
  border: 1px solid rgba(109,250,194,0.30);
  color: var(--accent3);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.02em;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drive-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(124,109,250,0.06);
  border: 1px solid rgba(124,109,250,0.20);
  align-self: flex-start;
}
.drive-status-chip .drive-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 6px var(--accent3);
}
.drive-status-chip .drive-label {
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent3);
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════
   v11.2 帳號 + Drive 一整行貼最右 + STEP 序號
   ════════════════════════════════════════════════ */

/* 帳號區塊 — 一整行,水平排 */
.nav-account-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.nav-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(109,250,194,0.10);
  border: 1px solid rgba(109,250,194,0.30);
  color: var(--accent3);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-drive-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(124,109,250,0.06);
  border: 1px solid rgba(124,109,250,0.20);
  white-space: nowrap;
}
.nav-drive-chip .drive-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 6px var(--accent3);
}
.nav-drive-chip .drive-label {
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent3);
  letter-spacing: 0.04em;
}

/* STEP 序號(取代「現在·LIVE」)*/
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.10em;
  background: linear-gradient(135deg, var(--accent3) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vision-col.next .step-num {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vision-col.future .step-num {
  background: linear-gradient(135deg, var(--accent2) 0%, #ff8fb3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Vision 拿掉點擊 cursor(因為已不可切換)*/
.vision-col {
  cursor: default !important;
}
.vision-col:hover {
  background: transparent !important;
  transform: none !important;
}
.vision-col.active {
  background: linear-gradient(135deg, rgba(124,109,250,0.10) 0%, rgba(250,109,155,0.04) 100%);
  box-shadow: 0 6px 20px rgba(124,109,250,0.15);
}

/* 🩹 2026-08-11 中型筆電擠成一團(RA 實測 14~15 吋機):
   原本第一個斷點在 1280px,但 1300~1600 這一段(常見筆電 + 開 DevTools)
   按鈕、能量條、email 全擠在同一排,字都快黏在一起。
   這裡補一個中間段:先收 email 的文字(只留信封,點一下才展開)、
   再把按鈕與間距縮一級。順序是「先犧牲最不重要的」——
   email 只是給客戶自查身分用,不是每天要看的東西。 */
@media(max-width: 1600px) {
  .nav { padding: 0 16px; }
  .nav-right { gap: 7px; }
  .nav-email-chip #userEmailNav { display: none; }
  .nav-email-chip.show-email #userEmailNav { display: inline; }
  .nav-email-chip { padding: 6px 9px; }
  .nav-btn-monitor, .nav-btn-kol, .nav-btn-admin, .nav-btn-logout {
    padding: 7px 12px; font-size: 12px;
  }
  #subMenuBtn { padding: 5px 9px; font-size: 11.5px; margin-right: 4px; }
}
@media(max-width: 1440px) {
  /* 再窄一級:訂閱鈕只留皇冠圖示,能量條縮短 */
  #subMenuBtn { font-size: 0; gap: 0; padding: 6px 8px; }
  #subMenuBtn svg { width: 15px; height: 15px; }
  .nav-bits-chip .bits-bar-track { width: 38px !important; }
  .nav-btn-monitor, .nav-btn-kol, .nav-btn-admin, .nav-btn-logout {
    padding: 7px 10px; font-size: 11.5px;
  }
}

/* RWD nav 換行 */
@media(max-width: 1280px) {
  /* 🆕 RWD:不再整排隱藏帳號列 — 保留 訂閱+能量條+點數,只藏較占空間的 email/drive */
  .nav-account-row { display: inline-flex; margin-left: 8px; padding-left: 10px; }
  .nav-email-chip, .nav-drive-chip { display: none; }
}
@media(max-width: 768px) {
  /* 🆕 RWD 手機:nav-right 換行,帳號列獨立一行整排顯示(訂閱/能量條/點數都看得到) */
  .nav-right { flex-wrap: wrap; }
  .nav-account-row {
    width: 100%; margin-left: 0; padding-left: 0; border-left: none;
    flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-top: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第二波(手機三修 + 平板主版面)

   背景:今天把整頁改可捲 + workspace 撐 760px 之後,
   桌機變舒服了,但手機/平板出現三個新問題 + 一個舊問題。
   這一段全部集中修,規則一律「越下面越窄」:先平板、再手機。
   ═══════════════════════════════════════════════════════════ */

/* ── 平板 769px–1280px:三欄(270+內容+340)擠不下 ──
   做法:素材庫(右欄)整條移到下方全寬,
   上面留「品牌欄 240px + 工作區」兩欄,工作區終於有呼吸空間。
   ★ 這也順便對齊 Wishlist「素材庫搬中間欄」的方向,不是另做一套。 */
@media(max-width: 1280px) and (min-width: 769px) {
  .workspace {
    grid-template-columns: 240px 1fr;  /* 左欄稍收窄,剩下全給工作區 */
  }
  .mid { min-width: 0; }               /* 防 grid 內容把欄撐爆 */
  .right {
    grid-column: 1 / -1;               /* 橫跨整排,自動落到第二列 */
    border-left: none;
    border-top: 1px solid var(--line);
    max-height: 440px;                 /* 縮圖牆自己捲,不把頁尾推到天邊 */
  }
  /* 素材區變全寬後,格子從 92px 放大到 120px,一排大約 5-7 格 */
  .asset-sec { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ── 手機 ≤768px:修今天造成的三個問題 ── */
@media(max-width: 768px) {
  /* ① 760px 是「桌機的舒服工作高度」,
        手機三欄直排後整條被硬撐 760 → 多出一段空白。歸零。 */
  .workspace { min-height: 0; }

  /* ② 素材格 92px 在手機上太小:看不清、也點不準。
        放大到 116px,一排約 3 格,拇指剛好。 */
  .asset-sec { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }

  /* ③(已由第三波取代)nav 改為「單排 + 漢堡選單」,見下方 APP 化區塊 */ }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第三波 v2(手機 APP 化)

   RA 實測回饋(兩輪):
   ① 導覽列 → 薄薄一條 + ☰ 漢堡選單(裡面只放 Monitor/KOL/Admin/Logout)
   ② 訂閱方案/鑽石/點數/email/Drive → 不收進選單,
      變成 LOGO 下方「一直看得到的狀態列」,像遊戲角色的 HUD
      (HTML 配合:.nav-account-row 已搬出 .nav-right,變 nav 直屬子元素;
       桌機排列順序不變,所以桌機視覺完全一樣)
   ③ STEP 01/02/03 → 真正一行一個:「STEP 01|AI 廣告腳本生成」,
      LIVE/SOON 徽章與描述文在手機全部收掉
   桌機、平板不受影響(全包在 ≤768px 裡)。
   ═══════════════════════════════════════════════════════════ */

/* 漢堡按鈕:桌機/平板永遠隱藏 */
.nav-hamburger { display: none; }

@media(max-width: 768px) {

  /* ── 導覽列:第一排 LOGO+☰(52px),第二排狀態列,整包 sticky ── */
  .nav {
    position: sticky;
    top: 0;
    height: auto;
    flex-wrap: wrap;
    padding: 0 14px;
    gap: 0;
  }
  .nav-logo-wrap { height: 52px; }

  /* 漢堡按鈕本體(三條線 → 點開變 ✕) */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 38px;
    padding: 9px 10px;
    margin: 7px 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--t1);
    transition: transform .25s ease, opacity .2s ease;
  }
  body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ── 狀態列(HUD):訂閱/鑽石/點數/email/Drive,LOGO 下方一直顯示 ── */
  .nav-account-row {
    order: 10;                 /* 排到最後 → 換行變成第二排 */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 0 10px;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .nav-email-chip, .nav-drive-chip { display: inline-flex; }  /* 蓋掉 1280 的隱藏 */

  /* ── 漢堡選單:只剩四顆入口按鈕,點漢堡才滑出 ── */
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;                 /* 貼著整個 nav(含狀態列)的下緣 */
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px 18px;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  }
  body.nav-open .nav-right { display: flex; }
  /* 📱 2026-10-20 RWD 巡站:半透明底+毛玻璃在 .nav 自己也有毛玻璃時會失效 → 下面的「品牌投放實驗室」等字透上來疊在選單按鈕後面。改實心底 */
  body.nav-open .nav-right { background: #0a0a0f; }
  .nav-right > a,
  .nav-right > button { width: 100%; justify-content: center; }

  /* ── STEP 01/02/03:真正的一行一個 ── */
  .vision-wrap { padding: 12px 14px 0; }
  .vision-card {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 14px;
  }
  .vision-desc  { display: none; }
  .vision-badge { display: none; }   /* LIVE/SOON/ALPHA 徽章收掉 */
  .vision-col {
    flex-direction: row;             /* 原本是直排,這行才是真正讓它變一行的關鍵 */
    align-items: center;
    gap: 10px;
    padding: 6px 4px 6px 12px;
  }
  .vision-stage { font-size: 0; gap: 0; flex-shrink: 0; }  /* 「· LIVE」等小字縮到看不見 */
  .vision-stage .step-num { font-size: 12px; }             /* 只留 STEP 01 */
  .vision-title {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 主標題收斂 */
  .page-header { padding: 14px 16px 4px; }
  .page-header h1 { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第四波(品牌列 = 選角色橫向滑動)

   RA 回饋:品牌 10 張卡直排太長(只有最高管理員會這麼多),
   手機改成「像遊戲選角色」左右滑,一行搞定。
   ★ 純 CSS,brands.js 一個字沒動:#brandTree 從直排改橫向捲動,
     每張品牌卡固定寬度 + 滑動吸附;展開的系列/商品收在卡片裡。
   另:手機隱藏「← 選品牌 再選商品」空狀態(箭頭方向在手機上不成立,
   反而像突然蹦出一行字;暗掉+變亮的狀態引導已經足夠)。
   桌機、平板完全不變。
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {

  /* 品牌樹 → 橫向滑軌 */
  #brandTree {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  #brandTree::-webkit-scrollbar { height: 4px; }
  #brandTree::-webkit-scrollbar-thumb {
    background: rgba(124,109,250,0.30);
    border-radius: 2px;
  }

  /* 每個品牌(卡片+它展開的系列)= 一張固定寬度的「角色卡」 */
  #brandTree > div {
    flex: 0 0 172px;
    scroll-snap-align: start;
  }
  #brandTree .brand-row { margin-bottom: 6px; }

  /* 展開的商品列在窄卡片裡別再縮排 36px(蓋掉 JS 的 inline style 需要 !important) */
  #brandTree .prod-row-inline { margin-left: 8px !important; }

  /* 空狀態「← 選品牌 再選商品」在手機收掉 */
  #prodList .empty { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第五波(HUD 狀態列瘦身成一排 icon)

   RA 回饋:狀態列擠成兩排很醜。改成一排純 icon:
   👑 訂閱(藏字留皇冠)· 鑽石 · 生命條(點數)· ✉ 信封(藏 email 字)
   Drive 狀態整顆搬去素材庫標題旁(HTML 已移,桌機也顯示在那,
   因為「有連結才有素材」,狀態跟素材庫住一起才合理)。
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {

  /* 一排到底,不准換行 */
  .nav-account-row {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
  }

  /* 👑 訂閱方案:把字縮到看不見,只留皇冠(inline style 要用 !important 蓋) */
  #subMenuBtn {
    font-size: 0 !important;
    gap: 0 !important;
    padding: 7px 9px !important;
    margin-right: 0 !important;
  }
  #subMenuBtn svg { width: 16px; height: 16px; }

  /* ✉ email:平常只留信封,點一下展開帳號、再點收回(客戶自查登入身分) */
  .nav-email-chip #userEmailNav { display: none; }
  .nav-email-chip.show-email #userEmailNav { display: inline; }
  .nav-email-chip { padding: 6px 9px; }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第六波

   ① STEP 03(FB 廣告自動上架)反黑:自動上下架還沒完成,
      先灰掉表示「後續會出」,桌機手機都適用。要開賣時刪這段就好。
   ② 手機 STEP 三排大小不一、沒對齊 → 強制同尺寸 + STEP 序號固定寬度
   ③ 品牌橫滑:系列/商品不再垂直吊一條,改「插隊進同一條滑軌」——
      點開品牌,系列膠囊接在那張卡右邊,繼續右滑看完(display:contents 技巧)
   ═══════════════════════════════════════════════════════════ */

/* ① STEP 03 反黑(全裝置)。功能上線時把這三行刪掉即可 */
.vision-col.future {
  opacity: 0.38;
  filter: grayscale(0.5);
  pointer-events: none;
}

@media(max-width: 768px) {

  /* ② STEP 三排:同大小、同對齊(蓋掉 active 的放大與亮底) */
  .vision-stage { width: 88px; white-space: nowrap; }  /* STEP 01 同一排不折行,固定寬對齊 */
  .vision-title,
  .vision-col.active .vision-title { font-size: 13.5px; font-weight: 700; }
  .vision-col.active { background: transparent; box-shadow: none; }

  /* ③ 品牌滑軌 v2:包一層的 div 改 display:contents,
        讓品牌卡、系列膠囊、商品膠囊全部變成滑軌的直接成員 */
  #brandTree > div { display: contents; }
  #brandTree .brand-row {
    flex: 0 0 172px;
    margin-bottom: 0;
    scroll-snap-align: start;
  }
  #brandTree .sub-brand-row {
    flex: 0 0 auto;
    align-self: center;
    margin-bottom: 0;
    white-space: nowrap;
    padding: 9px 14px;
  }
  #brandTree .prod-row-inline {
    flex: 0 0 auto;
    align-self: center;
    max-width: 200px;
    margin: 0 !important;               /* 蓋掉 JS inline 的 36px 縮排 */
    border: 1px solid var(--line) !important;
    background: var(--bg3) !important;
    border-radius: 8px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第六波補丁(滑軌三層視覺階級)

   RA 回饋:品牌卡/系列/商品在滑軌上看起來同一層級,分不出誰是誰。
   改成明確的大中小階級:
     L1 品牌卡  = 大(172px 卡片,強邊框)
     L2 系列    = 中(膠囊,11px)
     L3 商品    = 小(最小格、虛線框、文字弱化,選中才亮起來)
   ★ 商品字級是蓋 brands.js 的 inline style,用了屬性選擇器 +
     !important;若未來改了 brands.js 的模板字串,這裡要跟著對一下。
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {

  /* L2 系列:中等膠囊 */
  #brandTree .sub-brand-row {
    padding: 7px 12px;
    font-size: 11px;
  }

  /* L3 商品:最小、最淡 */
  #brandTree .prod-row-inline {
    padding: 4px 10px !important;
    max-width: 165px;
    background: transparent !important;
    border: 1px dashed rgba(255,255,255,0.16) !important;
    border-radius: 7px !important;
    opacity: 0.75;
  }
  /* 商品名(inline 是 11px 白字)→ 縮小變灰 */
  #brandTree .prod-row-inline div[style*="font-size:11px"] {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #a9a6b8 !important;
  }
  /* 商品小標(主力旗艦那行)再更小 */
  #brandTree .prod-row-inline div[style*="font-size:9px"] {
    font-size: 8.5px !important;
  }
  /* 選中的商品:亮回來,清楚知道現在選誰 */
  #brandTree .prod-row-inline.on {
    opacity: 1;
    border: 1px solid rgba(91,200,200,0.45) !important;
    background: rgba(91,200,200,0.10) !important;
  }
  #brandTree .prod-row-inline.on div[style*="font-size:11px"] {
    color: #FAFAFA !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第七波(左邊界對齊 + 大中小再拉開)

   ① 手機統一左右邊界 16px:STEP 卡、標題、品牌滑軌、生成列、
      文案分頁通通切齊同一條垂直線(原本 gen-bar 是 22px,突出去)
   ② 滑軌階級再拉開:品牌卡加大(180px、字 14px)、系列維持中、
      商品縮到最小(藏副標「主力旗艦」那行,只留一行小字)
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {

  /* ① 全部切齊 16px 左邊界 */
  .vision-wrap { padding: 12px 16px 0; }
  .gen-bar     { padding: 12px 16px; }
  .tab         { padding: 13px 16px; }   /* 分頁鈕自帶內距,直接調成 16 對齊 */

  /* ② L1 品牌卡:加大 */
  #brandTree .brand-row { flex: 0 0 180px; }
  #brandTree .br-name { font-size: 14px; }

  /* ② L3 商品:再縮 —— 副標藏掉,只留一行最小字 */
  #brandTree .prod-row-inline { padding: 3px 9px !important; max-width: 150px; }
  #brandTree .prod-row-inline div[style*="font-size:11px"] { font-size: 9.5px !important; }
  #brandTree .prod-row-inline div[style*="font-size:9px"]  { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第八波(生成列真正對齊)

   實際渲染抓到的真兇:.gb-ctx 是個 flex:1 的空佔位
   (今天移除品牌狀態列後留下的空殼),在手機上把
   「目標受眾」整組推到右邊,跟上面所有區塊對不齊。
   手機直接藏掉它,控制項改直向堆疊、全部貼齊 16px 左邊界。
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {
  .gb-ctx  { display: none; }              /* 空佔位,手機不需要 */
  .gb-row1 {
    flex-direction: column;
    align-items: stretch;                  /* 每一組控制項吃滿寬度、齊左 */
    gap: 10px;
  }
  .gb-row1 select { width: 100%; }

  /* 商品小格的名字太長時別折兩行,收尾用 … */
  #brandTree .prod-row-inline div[style*="font-size:11px"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-08 · RWD 第九波(手機分段感)

   RA 回饋:手機上「生成區 / 廣告文案 / 素材庫」全糊在一起,
   不像電腦版有欄位分界。改法:三大段之間留 14px 深色帶,
   每段上下加細邊線 → 一眼看出「這是一段一段的」。
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {
  .workspace { gap: 14px; }                /* 段落之間露出深色底,形成分隔帶 */
  .left, .mid, .right {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .mid { background: var(--bg2); }         /* 中段補底色,跟左右段一致成「卡」 */
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-09 · 商品第三層 = 直向小滾輪(RA 提案:呼應太空 SaaS)

   品牌橫滑(X 軸)、商品縱捲(Y 軸),兩軸分工:
   商品再多,滑軌長度也不變,像太空艙的儀表滾輪上下轉。
   桌機:.prod-stack 用 display:contents = 完全透明,排版一個字不變。
   ═══════════════════════════════════════════════════════════ */
.prod-stack { display: contents; }   /* 桌機/平板:當作不存在 */

@media(max-width: 768px) {
  .prod-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
    align-self: center;
    max-height: 92px;               /* 約 3 顆半:第 4 顆一定被切一半 → 一眼看出可以捲 */
    overflow-y: auto;
    overscroll-behavior: contain;   /* 捲到底不會把整頁一起拖走 */
    padding-right: 3px;
    scroll-snap-type: y proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    /* 上下淡出:太空艙滾輪感,也暗示可捲 */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .prod-stack::-webkit-scrollbar { width: 3px; }
  .prod-stack::-webkit-scrollbar-thumb { background: rgba(124,109,250,.35); border-radius: 2px; }
  .prod-stack .prod-row-inline {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 168px;
    max-width: none;
  }
  /* 📱 2026-10-07 手機巡站:商品每列只有 21px 高、字 11px,手指很難點準 → 每列加高到約 38px、字放大。
     滾輪高度跟著放大,維持「看得到 3 顆半、第 4 顆切一半」的原設計。 */
  #brandTree .prod-stack { max-height: 150px; }
  #brandTree .prod-stack .prod-row-inline { padding: 10px 10px !important; margin: 2px 0 !important; }
  #brandTree .prod-stack .prod-row-inline div[style*="font-size:11px"] { font-size: 13px !important; }
  /* 📱 2026-10-20 RWD 巡站:同系列商品名前半一樣(遠紅外線桑拿機 UC-856A / UC-858A),切成「…」後三顆看起來一模一樣 → 手機滾輪裡改成最多兩行,型號看得到 */
  #brandTree .prod-stack .prod-row-inline div[style*="font-size:11px"] { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: none; line-height: 1.35 !important; }
  /* 系列按鈕也當作橫滑的停靠點 → 自動滑過去時會剛好停在它(不會被品牌卡的停靠點拉走) */
  #brandTree .sub-brand-row { scroll-snap-align: start; }
  /* iPhone:輸入框/選單字小於 16px,一點就整頁放大跳版 */
  select, input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea { font-size: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════
   🆕 2026-08-09 · 廣告圖產生器 RWD(手機 = Adobe PS 行動版)

   RA 指定版式:最上面一張大預覽圖「黏」在頂部,
   下面是工具區(排版/風格/情境/標題)往下捲。
   彈窗是 inline style,所以這裡用 !important 蓋。桌機不受影響。
   ═══════════════════════════════════════════════════════════ */
@media(max-width: 768px) {

  /* 內層容器:左右並排 → 直向堆疊 */
  #adMakerModal > div {
    flex-direction: column;
    margin: 0 !important;
    padding: 0 0 28px !important;
    gap: 12px;
  }

  /* 預覽區搬到最上面 + 黏住(PS 行動版的畫布) */
  #adMakerModal > div > div:last-child {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    background: rgba(8,8,12,0.97);
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(124,109,250,0.25);
  }
  /* 畫布:鎖高約 4 成螢幕,工具區永遠露得出來 */
  #adCanvas {
    width: auto !important;
    height: 38vh !important;
    max-width: 92vw;
  }

  /* 工具面板:300px 窄欄 → 全寬,取消內捲(交給整頁捲) */
  #adMakerModal > div > div:first-child {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  /* 關閉鈕縮小一點,別壓到預覽 */
  #adMakerModal > button { top: 10px !important; right: 12px !important; width: 38px !important; height: 38px !important; }
}


/* ══ 2026-08-18:廣告圖三步驟下拉(取代原本的按鈕牆)══
   風格已擴到 74 種、情境 28 種,按鈕牆在筆電上是一整片牆要滑很久,
   字也小到看不清。下拉不管幾百種都只有一行,還能用 optgroup 分組。
   ⚠️ 三顆刻意染成薄荷綠並加粗:②③ 的「無」與 ① 的「極簡海報型」。
     ②③ 的「無」——客戶常以為不選也可以,顏色是在告訴他:選無也是一種選擇。
     ①的「極簡海報型」——不是預設值(預設值會讓客戶跳過思考),而是
     「不知道選什麼就選它」的安全牌,用顏色替客戶指路。 */
#layoutSel, #flavorSel, #contextSel {
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
#layoutSel:hover, #flavorSel:hover, #contextSel:hover {
  border-color: rgba(124,109,250,0.65);
}
#layoutSel:focus, #flavorSel:focus, #contextSel:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.16);
}
#layoutSel option, #flavorSel option, #contextSel option {
  background: #16122c;
  color: #E8DCFF;
  padding: 8px;
  font-weight: 600;
}
#flavorSel option[value="none"], #contextSel option[value="none"],
#layoutSel option[value="minimal_poster"] {
  color: #6dfac2;
  font-weight: 900;
}
#layoutSel optgroup, #flavorSel optgroup, #contextSel optgroup {
  background: #0f0c20;
  color: #9d8fd6;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 1px;
}
