@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)

   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; }
html, body { height:100%; overflow:hidden; }
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 升級毛玻璃)══ */
.nav {
  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;
  position: relative;
}

.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;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px 1fr 340px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ══ 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;
}
.asset-sec { margin-bottom: 16px; }
.asset-sec-lbl {
  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);
}
.asset-item {
  display: flex; align-items: center; gap: 9px;
  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;
}
.asset-item:hover {
  border-color: var(--accent3);
  background: linear-gradient(135deg, var(--bg3), rgba(109,250,194,0.04));
  transform: translateX(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);
}
.ai-thumb {
  width: 38px; height: 38px;
  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: 11.5px;
  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: 10.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: 10px;
  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: 10px;
  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: all 0.25s;
}
.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);
}

/* RWD nav 換行 */
@media(max-width: 1280px) {
  .nav-account-row { display: none; }
}
