/* 发发工作台 V5 — Calm Native Mac / Linear / Seabird Design System
   Zero gimmicks, zero neon clutter, razor-sharp typography & hierarchy in both Dark and Warm Editorial Light. */
:root {
  --bg: #0D0E11;
  --surface: #15171C;
  --surface-2: #1C1F26;
  --surface-hover: #222630;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #F3F4F6;
  --ink-2: #A6AEBC;
  --ink-3: #6B7280;
  --accent: #10B981;
  --accent-ink: #34D399;
  --accent-green: #10B981;
  --accent-bg: rgba(16, 185, 129, 0.12);
  --accent-border: rgba(16, 185, 129, 0.34);
  --brand: #10B981;
  --brand-fg: #052016;
  --warn: #F59E0B;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(245, 158, 11, 0.30);
  --danger: #F43F5E;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.55);
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --surface-2: #F0F0EC;
  --surface-hover: #EAEAE4;
  --border: #E5E4DE;
  --border-strong: #C9C7BE;
  --ink: #191817;
  --ink-2: #4A4842;
  --ink-3: #7E7B73;
  --accent: #0F8A63;
  --accent-ink: #0A6B4C;
  --accent-green: #0F8A63;
  --accent-bg: #E6F4EC;
  --accent-border: #B3DFC9;
  --brand: #0F8A63;
  --brand-fg: #FFFFFF;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --warn-border: #FDE68A;
  --danger: #BE123C;
  --danger-bg: #FFE4E6;
  --shadow-sm: 0 1px 2px rgba(25, 24, 23, 0.04);
  --shadow-md: 0 16px 40px rgba(25, 24, 23, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  display: flex; height: 100vh; overflow: hidden; -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
a { color: inherit; text-decoration: none; }
svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------------- Left Sidebar (Calm Native Rail) ---------------- */
#side {
  width: 224px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto;
}
.side-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-fg);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; font-family: var(--mono);
}
.brand-name { font-weight: 750; font-size: 15px; letter-spacing: -0.01em; line-height: 1.15; }
.brand-sub { font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-3); font-family: var(--mono); }
.side-tools { display: flex; gap: 2px; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid transparent; background: transparent;
  color: var(--ink-3); cursor: pointer; display: grid; place-items: center; transition: all 0.12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.cmd-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-3);
  font-size: 12.5px; cursor: pointer; transition: border-color 0.14s, color 0.14s;
}
.cmd-trigger:hover { border-color: var(--border-strong); color: var(--ink); }
.cmd-trigger kbd { margin-left: auto; font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-3); }

#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-grp { font-size: 11px; color: var(--ink-3); padding: 12px 10px 4px; font-weight: 600; }
#nav a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.12s, color 0.12s;
}
#nav a:hover { background: var(--surface-2); color: var(--ink); }
#nav a.active { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
#nav a span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nav a kbd { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); opacity: 0.7; }
#nav i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent-ink); background: var(--accent-bg); padding: 0 6px; border-radius: 99px; }
#nav i:empty { display: none; }

.side-foot { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.foot-note { padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); cursor: pointer; }
.foot-note:hover { background: var(--surface-hover); }
.foot-links { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 12px; color: var(--ink-3); }
.foot-links a { cursor: pointer; }
.foot-links a:hover { color: var(--ink); }
.status-inline { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); cursor: pointer; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.dot.on { background: var(--accent-green); }

/* ---------------- Main Shell & Clean Sub-Tabs ---------------- */
#shellMain { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
#subDeck {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 10px 28px;
  background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto;
}
.sub-pill {
  padding: 5px 13px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: background 0.12s, color 0.12s;
}
.sub-pill:hover { background: var(--surface-2); color: var(--ink); }
.sub-pill.active { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }

#main { flex: 1; overflow-y: auto; padding: 24px 32px 64px; }
#main.fullbleed { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.page, .deals-page, .xhs-page { max-width: min(1560px, 100%); margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.page-head h1 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }

/* ---------------- Controls & Surfaces ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 550;
  cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); font-weight: 650; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.accent { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.red { color: var(--danger); border-color: transparent; }
.btn.red:hover { background: var(--danger-bg); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

input[type=text], input[type=password], input[type=number], input[type=date], textarea, select {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink);
  border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 13px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { width: 100%; resize: vertical; line-height: 1.65; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.callout { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.empty { text-align: center; padding: 44px 16px; color: var(--ink-3); font-size: 13.5px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge.ok { background: var(--accent-bg); color: var(--accent-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.seg span { padding: 4px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg span.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { padding: 4px 11px; border-radius: 99px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); cursor: pointer; }
.pill:hover { border-color: var(--border-strong); color: var(--ink); }
.pill.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-ink); font-weight: 600; }
.pill .c { margin-left: 4px; font-family: var(--mono); font-size: 11px; opacity: 0.7; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; align-items: center; }
.form label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }

/* ---------------- Tables ---------------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--ink-3); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--surface-2); }

/* ---------------- Workbench Home ---------------- */
.sys-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sys-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--ink-3); cursor: pointer;
}
.sys-pill b { color: var(--ink); font-weight: 650; font-family: var(--mono); }
.sys-pill:hover { border-color: var(--border-strong); }

.wb-reactor { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.wb-input-wrap { display: flex; gap: 10px; margin-bottom: 10px; }
.wb-input { flex: 1; padding: 10px 14px !important; font-size: 14px !important; }
.wb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-tool-btn {
  padding: 5px 11px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink-2); font-size: 12.5px; cursor: pointer;
}
.wb-tool-btn:hover { color: var(--ink); border-color: var(--border-strong); }

.wb-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.wb-pod { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.wb-pod-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.wb-pod-more { font-size: 12px; color: var(--accent-ink); cursor: pointer; }
.wb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 7px; }
.wb-row:hover { background: var(--surface-2); }
.wb-row-t { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.wb-row-t:hover { color: var(--accent-ink); }
.wb-badge { font-family: var(--mono); font-size: 11px; padding: 1.5px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font-weight: 650; flex-shrink: 0; }
.wb-badge.green { background: var(--accent-bg); color: var(--accent-ink); }
.wb-badge.amber { background: var(--warn-bg); color: var(--warn); }
.wb-badge.red { background: var(--danger-bg); color: var(--danger); }

/* ---------------- Today 3:2:1 & Feeds ---------------- */
.progress-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.pbar { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lane { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lane-head { display: flex; justify-content: space-between; font-weight: 650; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.titem { padding: 10px; border-radius: 9px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.titem.alt { opacity: 0.72; }
.titem-top { display: flex; gap: 10px; align-items: flex-start; }
.titem-title { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.titem-title:hover { color: var(--accent-ink); }
.tthumb, .fthumb { width: 68px; height: 50px; border-radius: 7px; overflow: hidden; flex-shrink: 0; background: var(--surface); cursor: pointer; }
.tthumb img, .fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsteps { display: flex; gap: 4px; font-size: 11px; color: var(--ink-3); }
.tsteps .done { color: var(--accent-ink); }
.tsteps .now { color: var(--ink); font-weight: 600; }

.feed-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.frow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.frow:last-child { border-bottom: none; }
.frow:hover { background: var(--surface-2); }
.fmain { flex: 1; min-width: 0; }
.fmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.fsrc { color: var(--ink-2); font-weight: 600; }
.ftitle { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; cursor: pointer; }
.ftitle:hover { color: var(--accent-ink); }
.fsub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.factions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rank-num { width: 24px; text-align: center; font-family: var(--mono); font-weight: 700; color: var(--ink-3); }
.rank-num.top { color: var(--danger); }
.flame-box { width: 34px; height: 34px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; flex-shrink: 0; }
.burst-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; background: var(--danger-bg); color: var(--danger); flex-shrink: 0; }

/* ---------------- Deals (Clean & Spacious) ---------------- */
.deals-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.deals-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.deals-stat b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 750; line-height: 1.1; }
.deals-stat b small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.deals-stat span { font-size: 11.5px; color: var(--ink-3); }
.deals-lag { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }

.deals-feat-wrap { margin-bottom: 18px; }
.deals-sec-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.deals-bento { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.deals-bento.single { grid-template-columns: 1fr; }
.bento-hero { background: var(--surface); border: 1px solid var(--accent-border); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.bento-kicker { display: flex; justify-content: space-between; align-items: center; }
.bento-pill { font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--accent-bg); color: var(--accent-ink); }
.bento-score { font-family: var(--mono); font-size: 13px; font-weight: 750; color: var(--accent-ink); }
.bento-hero-title { font-size: 17px; font-weight: 700; line-height: 1.45; display: block; }
.bento-hero-title:hover { color: var(--accent-ink); }
.bento-hero-sum { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.bento-hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.bento-side { display: flex; flex-direction: column; gap: 10px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feat-card:hover { border-color: var(--border-strong); }
.feat-card a { font-size: 14px; font-weight: 600; line-height: 1.45; }
.feat-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }

.deals-filter-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.df-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.df-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.df-lab { font-size: 12px; color: var(--ink-3); min-width: 42px; }
.df-sep { width: 1px; height: 14px; background: var(--border); margin: 0 4px; }
.df-chip { padding: 3px 10px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.df-chip:hover { background: var(--surface-2); color: var(--ink); }
.df-chip.on { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
.df-chip .n { margin-left: 4px; font-family: var(--mono); font-size: 11px; opacity: 0.7; }

.deal-list.tactical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1400px) { .deal-list.tactical-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.deal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.deal-card:hover { border-color: var(--border-strong); }
.deal-card.is-read { opacity: 0.55; }
.deal-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal-score-chip { font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.deal-score-chip.hi { background: var(--accent-bg); color: var(--accent-ink); }
.deal-title { font-size: 15px; font-weight: 650; line-height: 1.48; word-break: break-word; }
.deal-title:hover { color: var(--accent-ink); }
.deal-summary { font-size: 13px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.deal-meta .dsrc { color: var(--ink-2); font-weight: 600; }
.fresh-track { width: 100%; height: 2px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fresh-fill { height: 100%; border-radius: 99px; }
.fresh-fill.fresh-hi { background: var(--accent); }
.fresh-fill.fresh-mid { background: var(--warn); }
.fresh-fill.fresh-low { background: var(--ink-3); }
.deal-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.deal-side { display: flex; gap: 5px; }
.dtag { font-size: 11px; padding: 1.5px 7px; border-radius: 5px; font-weight: 600; }
.dtag.free { background: var(--accent-bg); color: var(--accent-ink); }
.dtag.limit { background: var(--warn-bg); color: var(--warn); }
.dtag.low { background: var(--surface-2); color: var(--ink-2); }
.dtag.gw { background: rgba(139, 92, 246, 0.14); color: #A78BFA; }
.dtag.tut { background: rgba(99, 102, 241, 0.14); color: #818CF8; }

/* ---------------- Products / WeChat / Cards / Article Studio / Analytics ---------------- */
.xhs-logo { display: inline-block; background: #FF2442; color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 6px; margin-right: 8px; vertical-align: 2px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; cursor: pointer; }
.pcard:hover { border-color: var(--border-strong); }
.pcard-title { font-size: 14.5px; font-weight: 650; line-height: 1.48; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-3); }
.pcard-price { font-family: var(--mono); font-size: 15px; font-weight: 750; color: #FF2442; }

.wx-grid { display: grid; grid-template-columns: 1fr 420px; gap: 18px; align-items: start; }
.wx-grid.wide { grid-template-columns: 1fr 1fr; }
.wx-swatches { display: flex; gap: 6px; align-items: center; }
.wx-dot { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.wx-dot.active { border-color: var(--ink); transform: scale(1.12); }
.wx-bar { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.wx-phone { background: #fff; color: #191919; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--border); max-height: 76vh; overflow-y: auto; }
.wx-notch, .wx-meta-head, .wx-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: #888; margin-bottom: 10px; }

.cards-studio { display: grid; grid-template-columns: 350px 1fr; gap: 18px; align-items: start; }
.cards-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.xhs-slide-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.xhs-slide-wrap.sel { border-color: var(--accent); }
.xhs-slide-wrap canvas { width: 100%; aspect-ratio: 3 / 4; border-radius: 7px; display: block; cursor: pointer; }
.theme-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.tsw { padding: 4px 10px; border-radius: 99px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); }
.tsw.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-bg); font-weight: 600; }

.art-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.art-studio { display: grid; grid-template-columns: 1fr 296px; gap: 16px; align-items: start; }
.art-canvas { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.art-pills { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.apill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid transparent; cursor: pointer; }
.apill.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-ink); font-weight: 600; }
.apill .has-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); }
.art-title-in { width: 100%; background: transparent; border: none; outline: none; color: var(--ink); font-size: 22px; font-weight: 750; padding: 4px 0; }
.art-copy-row { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.art-copy-link { font-size: 12px; color: var(--ink-3); cursor: pointer; background: none; border: none; padding: 2px 6px; border-radius: 5px; }
.art-copy-link:hover { color: var(--ink); background: var(--surface-2); }
.art-body-in { width: 100%; min-height: 440px; background: transparent; border: none; outline: none; resize: vertical; color: var(--ink); font: 15px/1.85 -apple-system, "PingFang SC", sans-serif; }
.art-side { display: flex; flex-direction: column; gap: 12px; }
.art-side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.art-cover-box { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--border-strong); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; cursor: pointer; }
.art-cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plat-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pm-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; color: var(--ink-2); cursor: pointer; }
.pm-item.has { border-color: var(--accent-border); color: var(--accent-ink); background: var(--accent-bg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.cal-cell { min-height: 104px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.dim { opacity: 0.35; }
.cal-day { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cal-pill { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-pill.pub { background: var(--accent-bg); color: var(--accent-ink); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 55vh; overflow: auto; }
.media-thumb { aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.comp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.comp-hooks { display: flex; flex-wrap: wrap; gap: 5px; }
.comp-hook { font-size: 11.5px; padding: 2px 8px; border-radius: 5px; background: var(--accent-bg); color: var(--accent-ink); }

.kpi-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.kpi-tile b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 750; line-height: 1.15; }
.kpi-tile span { font-size: 12px; color: var(--ink-3); }
.bar-row { display: grid; grid-template-columns: 84px 1fr 56px; gap: 10px; align-items: center; margin: 7px 0; font-size: 12.5px; }
.bar-track { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); }

.jgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 10px; }
.jgrid video { width: 100%; border-radius: 8px; background: #000; }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.covers img { width: 100%; border-radius: 6px; border: 1px solid var(--border); }
.wr-frame { width: 100%; flex: 1; border: none; background: #03060c; min-height: 0; }

/* ---------------- Modal, Command Palette & Toast ---------------- */
#modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.58); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-body { width: min(760px, 95vw); max-height: 86vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-md); }
.modal-body h3 { margin: 0; font-size: 16.5px; }

#cmdk { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; background: rgba(0, 0, 0, 0.52); backdrop-filter: blur(4px); }
.cmdk-box { width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.cmdk-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cmdk-head input { flex: 1; border: none; background: transparent; font-size: 14.5px; padding: 0; }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-grp { font-size: 11px; color: var(--ink-3); padding: 7px 10px 3px; font-weight: 600; }
.cmdk-item { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cmdk-item.on, .cmdk-item:hover { background: var(--accent-bg); color: var(--accent-ink); }
.cmdk-item .ck-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

#toast { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 130; }
#toast div { background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 9px; font-size: 13px; max-width: 360px; box-shadow: var(--shadow-md); font-weight: 500; }

/* ---------------- Responsive & Mobile ---------------- */
#mtop, #mbar, #mMask { display: none; }
@media (max-width: 1100px) {
  .wb-grid-3, .lanes, .two, .wx-grid, .cards-studio, .art-studio, .jgrid { grid-template-columns: 1fr; }
  .kpi-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { flex-direction: column; height: auto; min-height: 100dvh; overflow: auto; }
  #mtop { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .mbrand { font-weight: 750; font-size: 15px; }
  #side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70 !important; width: 250px; transform: translateX(-105%); transition: transform 0.2s ease; box-shadow: var(--shadow-md); }
  #side.open { transform: translateX(0); }
  #mMask { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 65; }
  #shellMain { height: auto; overflow: visible; }
  #subDeck { padding: 8px 12px; position: sticky; top: calc(44px + env(safe-area-inset-top)); z-index: 40; }
  #main { padding: 14px 12px calc(80px + env(safe-area-inset-bottom)); overflow: visible; }
  #main.fullbleed { height: calc(100dvh - 108px); padding: 0; }
  .deals-bento, .deal-list.tactical-grid { grid-template-columns: 1fr; }
  .wb-input-wrap { flex-direction: column; }
  .df-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .df-lab, .df-chip { flex-shrink: 0; }
  .form { grid-template-columns: 1fr; gap: 6px; }
  #modal { align-items: flex-end; padding: 0; }
  .modal-body { width: 100%; border-radius: 16px 16px 0 0; max-height: 88dvh; }
  #mbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  #mbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); padding: 4px 0; border-radius: 8px; }
  #mbar a.active { color: var(--accent-ink); font-weight: 600; }
}

/* ==========================================================================
   TREND.OS HOLOGRAPHIC SPATIAL LAYER (VisionOS Frosted Glass × J.A.R.V.I.S.)
   Scoped strictly to Dark Mode so Light Mode contrast is NEVER broken!
   ========================================================================== */
:root[data-theme="holo"] {
  --bg: #03060E;
  --surface: rgba(11, 19, 36, 0.76);
  --surface-2: rgba(18, 31, 58, 0.72);
  --surface-hover: rgba(24, 42, 78, 0.85);
  --border: rgba(103, 232, 249, 0.18);
  --border-strong: rgba(0, 240, 255, 0.44);
  --ink: #F2F7FF;
  --ink-2: #B8CBE0;
  --ink-3: #7A93B2;
  --accent: #00F0FF;
  --accent-ink: #67E8F9;
  --accent-green: #00FFA3;
  --accent-bg: rgba(0, 240, 255, 0.13);
  --accent-border: rgba(0, 240, 255, 0.38);
  --brand: linear-gradient(135deg, #00E5FF 0%, #6366F1 55%, #00FFA3 100%);
  --brand-fg: #FFFFFF;
}

/* Deep-space ambient drifting holographic light orbs */
.holo-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.holo-orbs i {
  position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.34;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.holo-orbs i:nth-child(1) { width: 520px; height: 520px; top: -160px; left: 12%; background: radial-gradient(circle, #00E5FF, transparent 70%); }
.holo-orbs i:nth-child(2) { width: 480px; height: 480px; top: 18%; right: -120px; background: radial-gradient(circle, #7C3AED, transparent 70%); animation-delay: -6s; animation-duration: 22s; }
.holo-orbs i:nth-child(3) { width: 440px; height: 440px; bottom: -160px; left: 38%; background: radial-gradient(circle, #00FFA3, transparent 70%); opacity: 0.22; animation-delay: -11s; animation-duration: 25s; }
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 28px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.96); }
}
[data-theme="light"] .holo-orbs, [data-theme="light"] #holoFx { display: none; }

#holoFx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.58; }

/* Elevate workspace above holographic background */
#side, #shellMain, #mtop, #mbar { position: relative; z-index: 2; }

/* Frosted Spatial Glass Sidebar */
#side {
  background: linear-gradient(180deg, rgba(7, 13, 28, 0.78), rgba(4, 8, 18, 0.86));
  backdrop-filter: blur(26px) saturate(165%); -webkit-backdrop-filter: blur(26px) saturate(165%);
  border-right: 1px solid rgba(0, 240, 255, 0.18);
  box-shadow: 6px 0 36px rgba(0, 0, 0, 0.48), inset -1px 0 0 rgba(255, 255, 255, 0.05);
}
[data-theme="light"] #side { background: var(--surface); box-shadow: none; }

/* Orbital Holographic Brand Core */
.brand-mark {
  position: relative; background: linear-gradient(135deg, rgba(0, 240, 255, 0.24), rgba(99, 102, 241, 0.36));
  border: 1px solid rgba(0, 240, 255, 0.65); color: #FFFFFF;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45), inset 0 0 12px rgba(0, 240, 255, 0.35);
}
.brand-mark::after {
  content: ""; position: absolute; inset: -4px; border-radius: 11px;
  border: 1px dashed rgba(0, 240, 255, 0.42);
  animation: holoSpin 14s linear infinite; pointer-events: none;
}
@keyframes holoSpin { to { transform: rotate(360deg); } }
.brand-name {
  background: linear-gradient(90deg, #FFFFFF 0%, #67E8F9 60%, #00FFA3 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .brand-name { background: none; -webkit-text-fill-color: var(--ink); }

/* Holographic Active Nav Beam */
#nav a { border: 1px solid transparent; }
#nav a.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.18), rgba(99, 102, 241, 0.12));
  border-color: rgba(0, 240, 255, 0.38); color: #FFFFFF;
  box-shadow: inset 2.5px 0 0 #00F0FF, 0 0 20px rgba(0, 240, 255, 0.16);
}
#nav a.active svg { color: #00F0FF; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.7)); }
[data-theme="light"] #nav a.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-ink); box-shadow: none; }
[data-theme="light"] #nav a.active svg { color: var(--accent-ink); filter: none; }

/* Frosted Sub-Deck */
#subDeck {
  background: rgba(6, 12, 25, 0.66); backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
[data-theme="light"] #subDeck { background: var(--surface); }
.sub-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(0, 240, 255, 0.42); color: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.18);
}
[data-theme="light"] .sub-pill.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-ink); box-shadow: none; }

/* Prismatic Frosted Glass Cards & Panels */
.panel, .wb-reactor, .wb-pod, .lane, .feed-box, .deals-filter-card, .deal-card,
.bento-hero, .feat-card, .pcard, .art-canvas, .art-side-card, .comp-card, .kpi-tile, .cal-cell, .sys-pill {
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}
[data-theme="light"] .panel, [data-theme="light"] .wb-reactor, [data-theme="light"] .wb-pod,
[data-theme="light"] .deal-card, [data-theme="light"] .pcard, [data-theme="light"] .kpi-tile {
  backdrop-filter: none; box-shadow: var(--shadow-sm);
}

/* Holographic Rim-Light Hover Elevation */
.deal-card:hover, .bento-hero:hover, .feat-card:hover, .pcard:hover, .wb-pod:hover, .comp-card:hover, .kpi-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.48);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 240, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Prismatic Hero Border on Workbench Reactor & Featured Hero */
.wb-reactor, .bento-hero {
  background: linear-gradient(145deg, rgba(10, 24, 48, 0.72), rgba(14, 16, 40, 0.68));
  border: 1px solid rgba(0, 240, 255, 0.32);
  position: relative;
}
.wb-reactor::before, .bento-hero::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #00F0FF, #A78BFA, #00FFA3, transparent);
}
[data-theme="light"] .wb-reactor, [data-theme="light"] .bento-hero { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .wb-reactor::before, [data-theme="light"] .bento-hero::before { display: none; }

/* Liquid Holographic Primary Buttons */
.btn.primary {
  background: linear-gradient(135deg, #00D4FF 0%, #5B5BF7 55%, #00E599 100%);
  background-size: 160% 160%; border: 1px solid rgba(255, 255, 255, 0.28); color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: all 0.22s ease;
}
.btn.primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 6px 26px rgba(0, 240, 255, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
[data-theme="light"] .btn.primary { background: #0F8A63; border-color: #0F8A63; box-shadow: none; }

/* Prismatic Holographic Big Numbers */
.deals-stat b, .kpi-tile b {
  background: linear-gradient(180deg, #FFFFFF 15%, #7DD3FC 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .deals-stat b, [data-theme="light"] .kpi-tile b { background: none; -webkit-text-fill-color: var(--ink); }

/* Holographic Modal & Command Palette Glass (high contrast, zero clipping) */
.modal-body { width: min(860px, 95vw); overflow-x: hidden; }
.cmdk-box { width: min(580px, 92vw); }
.modal-body, .cmdk-box {
  background: rgba(9, 16, 32, 0.97); color: var(--ink);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(0, 240, 255, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78), 0 0 40px rgba(0, 240, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.modal-body .panel { background: rgba(16, 28, 52, 0.86); border-color: rgba(103, 232, 249, 0.22); }
[data-theme="light"] .modal-body, [data-theme="light"] .cmdk-box {
  background: #FFFFFF; color: #191817; border-color: #D8D6CE; box-shadow: var(--shadow-md);
}
[data-theme="light"] .modal-body .panel { background: #F8F8F5; border-color: #E2E0D8; }
[data-theme="light"] .brand-mark { background: #0F8A63; border-color: #0F8A63; box-shadow: none; }
[data-theme="light"] .brand-mark::after { display: none; }
.two > * { min-width: 0; max-width: 100%; }
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin: 12px 0; }
.dim { min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.dim .dl, .dim .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.dim .dl b { color: var(--ink); font-family: var(--mono); font-size: 11.5px; }
.dim .pbar, .dim-bar { min-width: 0; width: 100%; height: 5px; border-radius: 99px; background: rgba(128, 128, 128, 0.22); overflow: hidden; }
.dim .pbar i, .dim-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.track pre, .panel pre { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font: 13.5px/1.7 -apple-system, "PingFang SC", sans-serif; color: var(--ink); margin: 8px 0 0; }
@media (max-width: 768px) { .dims { grid-template-columns: repeat(2, 1fr); } }

.dot.on { background: #00FFA3; box-shadow: 0 0 10px #00FFA3; animation: holoPulse 2.2s infinite; }
@keyframes holoPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

/* ==========================================================================
   QA PRECISION FIXES (Zero Horizontal Overflow, Crisp Tables, XHS Cards, Mid-Width)
   ========================================================================== */
.brand-sub { white-space: nowrap; font-size: 8.8px; letter-spacing: 0.05em; }
#subDeck { flex-wrap: wrap; padding: 9px 24px; }
.page-head .row { flex-wrap: wrap; }
input[type=checkbox] { accent-color: var(--accent); }

/* Undo overly aggressive word-break on generic .panel so tables/buttons/badges NEVER stack vertically! */
.panel { overflow-wrap: normal; word-break: normal; }
.panel h5 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.panel .pre, .track pre, .panel pre {
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  font: 13.5px/1.7 -apple-system, "PingFang SC", sans-serif; color: var(--ink); margin: 6px 0 0;
}

/* Keep badges, pills, score chips, and segment buttons strictly single-line */
.dtag, .wb-badge, .comp-hook, .deal-score-chip, .seg span, .btn, .badge { white-space: nowrap; flex-shrink: 0; }
.wb-tool-btn { color: var(--ink) !important; opacity: 0.92; white-space: nowrap; }
.wb-tool-btn:hover { opacity: 1; border-color: var(--accent); }

/* Auto-fit grids so ANY viewport width (835px half-screen to 1920px 4K) never overflows horizontally */
.wb-grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.lanes { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }

/* Tables: horizontal scroll wrapper + single-line metadata cells + wide title column */
table td { white-space: nowrap; }
table td.wrap-col, table td:nth-child(1) { white-space: normal; }
table td:last-child { white-space: nowrap; }

/* 低粉爆文 rows: protect title width & wrap actions gracefully on narrower windows */
.frow { flex-wrap: wrap; gap: 10px 14px; }
.frow .fmain { flex: 1 1 260px; min-width: 220px; }
.frow .factions { margin-left: auto; flex-wrap: wrap; }

/* 小红书选品卡片完整样式 (.ptop / .pava / .psales / .ptitle / .pfoot / .pprice / .ptag) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 11px; cursor: pointer;
}
.ptop { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.pava {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 36, 66, 0.18);
  border: 1px solid rgba(255, 36, 66, 0.42); color: #FF4D6A; font-weight: 700; font-size: 11.5px;
  display: grid; place-items: center; flex-shrink: 0;
}
.psales { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.ptitle { font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.pprice { font-family: var(--mono); font-size: 16.5px; font-weight: 800; color: #FF3B5C; }
.ptag { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.ptag b { color: #FF3B5C; margin-right: 2px; }

/* ==========================================================================
   V6 CREATOR HUB: Top History/Search Bar · Harness Card · Backend Pool · Image Studio · Assets
   ========================================================================== */
#topNavStrip {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 24px; background: rgba(5, 10, 22, 0.72); backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] #topNavStrip { background: var(--surface); }
.tn-left { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.tn-left .icon-btn:disabled { opacity: 0.28; cursor: default; }
.tn-crumb { display: flex; align-items: center; gap: 7px; margin-left: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-crumb i { font-style: normal; opacity: 0.5; }
.tn-crumb b { color: var(--ink); font-weight: 650; }
.tn-search {
  display: flex; align-items: center; gap: 8px; width: clamp(140px, 22vw, 300px); flex-shrink: 0; padding: 6px 12px;
  border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink-3); font-size: 12.5px; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.tn-search:hover { border-color: var(--border-strong); color: var(--ink); }
.tn-search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-search kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); }
@media (max-width: 820px) { #topNavStrip { display: none; } }

/* Bottom Dedicated Harness Model Card */
.harness-card {
  padding: 10px 12px; border-radius: 11px; cursor: pointer;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.10), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.28); transition: all 0.18s ease;
}
.harness-card:hover, .harness-card.active {
  border-color: rgba(0, 240, 255, 0.58);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
[data-theme="light"] .harness-card { background: var(--surface-2); border-color: var(--border-strong); box-shadow: none; }
.hc-meta { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-main { display: flex; align-items: center; gap: 9px; }
.hc-spark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent-ink); font-size: 13px;
}
.hc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hc-txt b { font-size: 13px; color: var(--ink); line-height: 1.25; }
.hc-txt span { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-arr { color: var(--ink-3); font-size: 16px; font-weight: 600; }

/* Multi-Backend Pool Manager (快捷供应商按钮 + 文字/图片后端列表) */
.prov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.prov-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.16s ease;
}
.prov-btn:hover {
  border-color: var(--accent); color: var(--accent-ink); background: var(--accent-bg);
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 240, 255, 0.14);
}
.prov-btn .zap { color: var(--warn); font-size: 13px; }
.bk-sec-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 16px 0 8px; letter-spacing: 0.02em; }
.bk-list { display: flex; flex-direction: column; gap: 9px; }
.bk-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); transition: border-color 0.15s;
}
.bk-row.active { border-color: var(--accent); box-shadow: inset 2.5px 0 0 var(--accent); }
.bk-ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent-ink); font-size: 16px; flex-shrink: 0;
}
.bk-info { flex: 1; min-width: 0; }
.bk-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bk-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bk-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

/* AI Image Studio & Asset Masonry Grid */
.img-studio-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1120px) { .img-studio-grid { grid-template-columns: 1fr; } }
.ratio-pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rpill {
  padding: 7px 4px; border-radius: 8px; text-align: center; font-size: 11.5px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); font-family: var(--mono);
}
.rpill.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); font-weight: 700; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.asset-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.16s, border-color 0.16s;
}
.asset-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.asset-thumb { aspect-ratio: 16 / 10; background: #050a14; overflow: hidden; position: relative; cursor: pointer; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: space-between; }
.asset-title { font-size: 12.5px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Template & Prompt Cards */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tpl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.tpl-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tpl-pre {
  font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 9px 11px;
  line-height: 1.55; max-height: 88px; overflow: hidden; position: relative;
}

/* ==========================================================================
   V7 ULTRA-CLEAR CLOUD-WHITE STUDIO (明日之星级极致通透排版 · 深墨蓝选中胶囊)
   ========================================================================== */
[data-theme="light"] {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #EEF2F6;
  --surface-hover: #E6ECF3;
  --border: #E5EAF1;
  --border-strong: #CBD5E1;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #8693A6;
  --accent: #111827;
  --accent-ink: #0F172A;
  --accent-green: #059669;
  --accent-bg: #EEF2F7;
  --accent-border: #CBD5E1;
  --brand: #111827;
  --brand-fg: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.035);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] #side {
  width: 230px; background: #FFFFFF; border-right: 1px solid #EAEEF4; padding: 14px 12px; gap: 8px;
}
[data-theme="light"] .brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: #111827; border-color: #111827; color: #FFFFFF; font-size: 15px;
}
[data-theme="light"] .brand-name { font-size: 16px; font-weight: 800; color: #0F172A; }
[data-theme="light"] .brand-sub { font-size: 11px; letter-spacing: 0.04em; color: #8693A6; font-family: inherit; }

/* 侧边栏深墨蓝选中胶囊 + 右侧数字徽章 + 「新」角标 */
.nav-grp { font-size: 11px; color: var(--ink-3); padding: 9px 12px 3px; font-weight: 600; }
#nav a { padding: 7.5px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 550; }
[data-theme="light"] #nav a { color: #334155; }
[data-theme="light"] #nav a:hover { background: #F1F5F9; color: #0F172A; }
[data-theme="light"] #nav a.active {
  background: #111827 !important; border-color: #111827 !important; color: #FFFFFF !important;
  font-weight: 650; box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}
[data-theme="light"] #nav a.active svg { color: #FFFFFF !important; }
[data-theme="light"] #nav i {
  background: #EEF2F6; color: #475569; font-weight: 700; padding: 1px 8px; font-size: 11.5px;
}
[data-theme="light"] #nav a.active i {
  background: rgba(255, 255, 255, 0.18); color: #FFFFFF;
}
.nav-new {
  font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px;
  background: #EA580C; color: #FFFFFF; line-height: 1.4;
}

/* 顶栏与右侧引擎状态胶囊 */
[data-theme="light"] #topNavStrip { background: #FFFFFF; border-bottom: 1px solid #EAEEF4; padding: 10px 28px; }
[data-theme="light"] #subDeck { background: #FFFFFF; border-bottom: 1px solid #EAEEF4; padding: 8px 28px; gap: 8px; }
[data-theme="light"] .sub-pill { border-radius: 99px; padding: 5px 14px; font-size: 13px; color: #475569; }
[data-theme="light"] .sub-pill.active { background: #111827; color: #FFFFFF; border-color: #111827; font-weight: 650; }
.top-engine-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px;
  background: #111827; color: #FFFFFF; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap;
}
[data-mode="dark"] .top-engine-pill { background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent-ink); }

/* 浅色模式下主按钮、胶囊、面板的纯净高对比度重塑 */
[data-theme="light"] .btn.primary { background: #111827; border-color: #111827; color: #FFFFFF; border-radius: 9px; }
[data-theme="light"] .btn.primary:hover { background: #1E293B; border-color: #1E293B; transform: translateY(-1px); }
[data-theme="light"] .pill.active, [data-theme="light"] .seg span.active, [data-theme="light"] .df-chip.on {
  background: #111827; color: #FFFFFF; border-color: #111827;
}
[data-theme="light"] .panel, [data-theme="light"] .deal-card, [data-theme="light"] .pcard,
[data-theme="light"] .tpl-card, [data-theme="light"] .asset-card, [data-theme="light"] .comp-card {
  border-radius: 16px; border: 1px solid #EAEEF4; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .deal-card:hover, [data-theme="light"] .pcard:hover, [data-theme="light"] .tpl-card:hover {
  border-color: #CBD5E1; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}
[data-theme="light"] .harness-card { background: #F8FAFC; border: 1px solid #E2E8F0; }
[data-theme="light"] .harness-card.active { background: #111827; border-color: #111827; }
[data-theme="light"] .harness-card.active b, [data-theme="light"] .harness-card.active span, [data-theme="light"] .harness-card.active .hc-meta { color: #FFFFFF; }

/* ---------------- 超爆选题：日历撕页 + 每日金句 Banner ---------------- */
.st-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: 18px; margin-bottom: 16px;
  background: linear-gradient(135deg, #EBF1FA 0%, #F4F7FC 55%, #E8EFFA 100%);
  border: 1px solid #E1E8F3;
}
[data-mode="dark"] .st-banner {
  background: linear-gradient(135deg, rgba(12, 24, 48, 0.82), rgba(16, 20, 44, 0.78));
  border-color: rgba(0, 240, 255, 0.25);
}
.st-ban-left { display: flex; align-items: center; gap: 18px; min-width: 260px; flex: 1; }
.cal-flip {
  width: 62px; border-radius: 13px; overflow: hidden; background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  text-align: center; flex-shrink: 0;
}
.cal-flip-m { background: #111827; color: #FFFFFF; font-size: 11px; font-weight: 700; padding: 3px 0; letter-spacing: 0.04em; }
.cal-flip-d { font-size: 24px; font-weight: 800; color: #0F172A; line-height: 1.15; padding-top: 4px; font-family: var(--mono); }
.cal-flip-w { font-size: 11px; color: #64748B; padding-bottom: 5px; font-weight: 600; }
.st-ban-title h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.st-ban-title p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); max-width: 460px; }
.st-quote { max-width: 420px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.st-quote b { color: var(--ink); font-weight: 700; }
.st-quote .qmark { color: #D97706; font-size: 18px; font-weight: 900; margin-right: 6px; }
.st-quote small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 3px; text-align: right; }

/* ---------------- 多级渠道胶囊栏 + 标签栏 + 精筛栏 ---------------- */
.st-chan-box {
  background: var(--surface-2); border-radius: 14px; padding: 10px 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 12px;
}
.st-chan {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 0.14s; white-space: nowrap;
}
.st-chan:hover { color: var(--ink); background: rgba(255, 255, 255, 0.65); }
.st-chan .cnt { font-family: var(--mono); font-size: 12px; font-weight: 700; opacity: 0.78; }
.st-chan.active { background: #111827; color: #FFFFFF; box-shadow: 0 3px 10px rgba(17, 24, 39, 0.16); }
[data-mode="dark"] .st-chan.active { background: var(--accent-bg); border: 1px solid var(--accent-border); color: #FFFFFF; }
.st-mine-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 99px;
  background: linear-gradient(135deg, #291811, #431F12); border: 1px solid #9A3412; color: #FDBA74;
  font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 10px rgba(154, 52, 18, 0.18); white-space: nowrap;
}
.st-mine-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.st-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.st-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-2);
  font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.st-tag span { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.st-tag.active { background: #111827; border-color: #111827; color: #FFFFFF; font-weight: 650; }
.st-tag.active span { color: rgba(255, 255, 255, 0.8); }
[data-mode="dark"] .st-tag.active { background: var(--accent-bg); border-color: var(--accent-border); }

.st-filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.st-filter-bar input[type=text] { background: var(--bg); border-color: var(--border); border-radius: 99px; padding: 7px 14px; min-width: 220px; }

.st-sec-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.st-sort {
  padding: 6px 13px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.st-sort.active { background: #111827; border-color: #111827; color: #FFFFFF; font-weight: 650; }
[data-mode="dark"] .st-sort.active { background: var(--accent-bg); border-color: var(--accent-border); }

/* ---------------- 双列超清图文选题大卡 (.st-grid + .st-card) ---------------- */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1040px) { .st-grid { grid-template-columns: 1fr; } }
.st-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; display: flex; gap: 16px; align-items: stretch;
  box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.st-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07); }
.st-cov {
  width: 104px; min-height: 132px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  position: relative; background: linear-gradient(145deg, #1E293B, #0F172A); cursor: pointer;
}
.st-cov img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.st-cov-poster {
  width: 100%; height: 100%; padding: 32px 10px 10px; display: flex; flex-direction: column;
  justify-content: space-between; color: #FFFFFF !important;
}
.st-cov-poster b { font-size: 13px; line-height: 1.38; color: #FFFFFF !important; word-break: break-word; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-cov-poster small { font-size: 10px; color: rgba(255, 255, 255, 0.82) !important; font-family: var(--mono); }
.st-rank {
  position: absolute; left: 7px; top: 7px; z-index: 3; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: rgba(15, 23, 42, 0.78); color: #FFFFFF;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.st-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.st-title {
  font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-title:hover { color: #2563EB; }
.st-author-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.st-metrics { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.st-metrics b { font-size: 14.5px; font-weight: 750; color: var(--ink); font-family: var(--mono); margin-right: 3px; }
.st-acts { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-top: 4px; }
.act-pick {
  padding: 5px 12px; border-radius: 8px; background: #111827; color: #FFFFFF; border: 1px solid #111827;
  font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.act-pick.on { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
[data-mode="dark"] .act-pick { background: var(--accent-bg); border-color: var(--accent-border); color: #FFFFFF; }
.act-cmt {
  padding: 5px 10px; border-radius: 8px; background: #EEF2FF; color: #4338CA; border: 1px solid #E0E7FF;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.act-dec {
  padding: 5px 10px; border-radius: 8px; background: #ECFDF5; color: #047857; border: 1px solid #D1FAE5;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
[data-mode="dark"] .act-cmt { background: rgba(99, 102, 241, 0.16); color: #A5B4FC; border-color: rgba(99, 102, 241, 0.32); }
[data-mode="dark"] .act-dec { background: rgba(16, 185, 129, 0.16); color: #6EE7B7; border-color: rgba(16, 185, 129, 0.32); }
.act-pass {
  padding: 5px 8px; border-radius: 8px; background: transparent; color: var(--ink-3); border: 1px solid transparent;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.act-pass:hover { background: var(--surface-2); color: var(--ink); }

/* ==========================================================================
   V8 SIX-THEME UNIFIED DESIGN SYSTEM (3 浅色通透 + 3 深色沉浸 · 全站 100% 视觉匹配)
   ========================================================================== */
[data-mode="light"] .holo-orbs, [data-mode="light"] #holoFx,
[data-theme="amber"] .holo-orbs, [data-theme="amber"] #holoFx,
[data-theme="violet"] #holoFx { display: none !important; }

/* 1) ☀️ 清爽云白 (默认 · 明日之星同款) */
:root[data-theme="cloud"] {
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #EEF2F6; --surface-hover: #E5ECF3;
  --border: #E5EAF1; --border-strong: #CBD5E1;
  --ink: #0F172A; --ink-2: #475569; --ink-3: #8693A6;
  --pill-bg: #111827; --pill-fg: #FFFFFF;
  --accent: #111827; --accent-ink: #0F172A; --accent-bg: #EEF2F7; --accent-border: #CBD5E1;
  --banner-bg: linear-gradient(135deg, #EBF1FA 0%, #F5F8FC 55%, #E7EFFA 100%);
  --banner-border: #DCE6F2;
  --card-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
  --card-hover-shadow: 0 10px 26px rgba(15, 23, 42, 0.075);
}

/* 2) ☕ 暖杏纸感 (奶油护眼编辑风 · 长时间写作零蓝光疲劳) */
:root[data-theme="warm"] {
  --bg: #F7F3EC; --surface: #FFFDF9; --surface-2: #EFE9DF; --surface-hover: #E7DFD2;
  --border: #E6DDD0; --border-strong: #D0C3B0;
  --ink: #241E18; --ink-2: #5C5246; --ink-3: #928575;
  --pill-bg: #292018; --pill-fg: #FFF8EE;
  --accent: #C2410C; --accent-ink: #9A3412; --accent-bg: #FDECE1; --accent-border: #F5C6A8;
  --banner-bg: linear-gradient(135deg, #F4EAE0 0%, #FBF6EE 55%, #F2E5D5 100%);
  --banner-border: #E5D6C3;
  --card-shadow: 0 2px 10px rgba(41, 32, 24, 0.04);
  --card-hover-shadow: 0 10px 26px rgba(41, 32, 24, 0.08);
}

/* 3) 🌿 翡翠松林 (自然低饱和护眼浅绿) */
:root[data-theme="mint"] {
  --bg: #F1F6F3; --surface: #FFFFFF; --surface-2: #E6F0EA; --surface-hover: #DAE8DF;
  --border: #DCE8E1; --border-strong: #BBD4C6;
  --ink: #0F231B; --ink-2: #3F5C50; --ink-3: #759084;
  --pill-bg: #065F46; --pill-fg: #FFFFFF;
  --accent: #059669; --accent-ink: #047857; --accent-bg: #E2F5EC; --accent-border: #A7DFC6;
  --banner-bg: linear-gradient(135deg, #E2F2EA 0%, #F2FAF6 55%, #DEF0E7 100%);
  --banner-border: #CBE4D7;
  --card-shadow: 0 2px 10px rgba(6, 95, 70, 0.04);
  --card-hover-shadow: 0 10px 26px rgba(6, 95, 70, 0.085);
}

/* 4) 🥃 黑金流光 (拍片哥工作台同款暗褐香槟金) */
:root[data-theme="amber"] {
  --bg: #14100E; --surface: #1D1714; --surface-2: #271F1B; --surface-hover: #322722;
  --border: rgba(245, 208, 169, 0.14); --border-strong: rgba(245, 208, 169, 0.34);
  --ink: #FAF3EB; --ink-2: #CBBBA9; --ink-3: #8D7C6C;
  --pill-bg: #F5D0A9; --pill-fg: #1A120E;
  --accent: #F5D0A9; --accent-ink: #F7D9B8; --accent-bg: rgba(245, 208, 169, 0.14); --accent-border: rgba(245, 208, 169, 0.34);
  --banner-bg: linear-gradient(135deg, #241B16 0%, #1B1411 60%, #271C15 100%);
  --banner-border: rgba(245, 208, 169, 0.22);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --card-hover-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

/* 5) 🌌 全息深空 (VisionOS × J.A.R.V.I.S. 棱镜青紫) */
:root[data-theme="holo"] {
  --bg: #03060E; --surface: rgba(11, 19, 36, 0.78); --surface-2: rgba(18, 31, 58, 0.74); --surface-hover: rgba(24, 42, 78, 0.88);
  --border: rgba(103, 232, 249, 0.18); --border-strong: rgba(0, 240, 255, 0.45);
  --ink: #F2F7FF; --ink-2: #B8CBE0; --ink-3: #7A93B2;
  --pill-bg: linear-gradient(135deg, #00D4FF 0%, #5B5BF7 55%, #00E599 100%); --pill-fg: #FFFFFF;
  --accent: #00F0FF; --accent-ink: #67E8F9; --accent-bg: rgba(0, 240, 255, 0.14); --accent-border: rgba(0, 240, 255, 0.38);
  --banner-bg: linear-gradient(135deg, rgba(10, 24, 52, 0.84), rgba(16, 18, 46, 0.80));
  --banner-border: rgba(0, 240, 255, 0.28);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
  --card-hover-shadow: 0 16px 38px rgba(0, 0, 0, 0.48), 0 0 22px rgba(0, 240, 255, 0.14);
}

/* 6) 🔮 极夜紫曜 (Linear / Raycast 暗夜极客) */
:root[data-theme="violet"] {
  --bg: #0B0D14; --surface: #131622; --surface-2: #1B2032; --surface-hover: #242A40;
  --border: rgba(148, 163, 184, 0.14); --border-strong: rgba(129, 140, 248, 0.42);
  --ink: #F1F5F9; --ink-2: #A5B4CF; --ink-3: #64748B;
  --pill-bg: #6366F1; --pill-fg: #FFFFFF;
  --accent: #818CF8; --accent-ink: #A5B4FC; --accent-bg: rgba(99, 102, 241, 0.16); --accent-border: rgba(129, 140, 248, 0.38);
  --banner-bg: linear-gradient(135deg, #171B2E 0%, #121524 60%, #1D1B36 100%);
  --banner-border: rgba(129, 140, 248, 0.24);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  --card-hover-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
@media (max-width: 960px) { .tn-search { width: auto; padding: 6px 10px; } .tn-search span { display: none; } }

/* 全站统一结构与主题联动（消除所有页面样式割裂） */
#side {
  width: 230px; background: var(--surface) !important; border-right: 1px solid var(--border) !important;
  padding: 14px 12px; gap: 8px; box-shadow: none !important;
}
[data-theme="holo"] #side { background: linear-gradient(180deg, rgba(7, 13, 28, 0.80), rgba(4, 8, 18, 0.88)) !important; }
#topNavStrip, #subDeck { background: var(--surface) !important; border-bottom: 1px solid var(--border) !important; }
[data-theme="holo"] #topNavStrip, [data-theme="holo"] #subDeck { background: rgba(6, 12, 25, 0.72) !important; }

.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--pill-bg) !important;
  border: 1px solid var(--border-strong) !important; color: var(--pill-fg) !important; box-shadow: none !important;
}
.brand-mark::after { display: none; }
[data-theme="holo"] .brand-mark::after { display: block; }
.brand-name { background: none !important; -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important; font-size: 16px; font-weight: 800; }
[data-theme="holo"] .brand-name {
  background: linear-gradient(90deg, #FFFFFF 0%, #67E8F9 60%, #00FFA3 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
}

/* 统一全站所有激活胶囊与主按钮（侧栏 / 子导航 / 筛选 / 排序 / 主按钮） */
#nav a { color: var(--ink-2); border: 1px solid transparent; border-radius: 10px; }
#nav a:hover { background: var(--surface-2); color: var(--ink); }
#nav a.active {
  background: var(--pill-bg) !important; border-color: transparent !important;
  color: var(--pill-fg) !important; font-weight: 650; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
}
#nav a.active svg { color: var(--pill-fg) !important; filter: none !important; }
#nav i { background: var(--surface-2); color: var(--ink-2); font-weight: 700; padding: 1px 8px; }
#nav a.active i { background: rgba(255, 255, 255, 0.22); color: var(--pill-fg); }
[data-theme="amber"] #nav a.active i { background: rgba(26, 18, 14, 0.18); color: #1A120E; }

.sub-pill { border-radius: 99px; padding: 5px 14px; color: var(--ink-2); border: 1px solid transparent; }
.sub-pill.active, .pill.active, .seg span.active, .df-chip.on, .st-chan.active, .st-tag.active, .st-sort.active, .tsw.on, .rpill.on {
  background: var(--pill-bg) !important; border-color: transparent !important;
  color: var(--pill-fg) !important; font-weight: 650; box-shadow: none !important;
}
.st-tag.active span, .st-chan.active .cnt { color: inherit !important; opacity: 0.82; }
.btn.primary, .act-pick, .top-engine-pill {
  background: var(--pill-bg) !important; border: 1px solid transparent !important;
  color: var(--pill-fg) !important; box-shadow: none !important;
}
.act-pick.on { background: #ECFDF5 !important; color: #047857 !important; border-color: #A7F3D0 !important; }
[data-mode="dark"] .act-pick.on { background: rgba(16, 185, 129, 0.18) !important; color: #6EE7B7 !important; border-color: rgba(16, 185, 129, 0.38) !important; }

/* 统一全站 15+ 页面所有卡片、面板与 Banner 视觉语言 */
.panel, .wb-reactor, .wb-pod, .lane, .feed-box, .deals-filter-card, .deal-card,
.bento-hero, .feat-card, .pcard, .art-canvas, .art-side-card, .comp-card,
.kpi-tile, .cal-cell, .sys-pill, .tpl-card, .asset-card, .st-card {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 16px; box-shadow: var(--card-shadow) !important;
}
[data-mode="light"] .panel, [data-mode="light"] .wb-reactor, [data-mode="light"] .wb-pod,
[data-mode="light"] .deal-card, [data-mode="light"] .pcard, [data-mode="light"] .kpi-tile,
[data-mode="light"] .bento-hero, [data-mode="light"] .st-card { backdrop-filter: none !important; }
.wb-reactor::before, .bento-hero::before { display: none; }
[data-theme="holo"] .wb-reactor::before, [data-theme="holo"] .bento-hero::before { display: block; }

.deal-card:hover, .bento-hero:hover, .feat-card:hover, .pcard:hover, .wb-pod:hover,
.comp-card:hover, .kpi-tile:hover, .tpl-card:hover, .asset-card:hover, .st-card:hover {
  border-color: var(--border-strong) !important; box-shadow: var(--card-hover-shadow) !important;
}

.st-banner { background: var(--banner-bg) !important; border: 1px solid var(--banner-border) !important; }
.cal-flip-m { background: var(--pill-bg); color: var(--pill-fg); }
[data-mode="light"] .deals-stat b, [data-mode="light"] .kpi-tile b,
[data-theme="amber"] .deals-stat b, [data-theme="amber"] .kpi-tile b,
[data-theme="violet"] .deals-stat b, [data-theme="violet"] .kpi-tile b {
  background: none !important; -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important;
}

.modal-body, .cmdk-box {
  background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--border-strong) !important;
}
.modal-body .panel { background: var(--bg) !important; border-color: var(--border) !important; }
.harness-card { background: var(--surface-2) !important; border: 1px solid var(--border) !important; }
.harness-card.active { background: var(--pill-bg) !important; border-color: transparent !important; }
.harness-card.active b, .harness-card.active span, .harness-card.active .hc-meta { color: var(--pill-fg) !important; }

/* ---------------- 6 主题快速切换浮层 (.theme-pop) ---------------- */
.theme-pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 600px) { .theme-pop-grid { grid-template-columns: 1fr; } }
.theme-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--border); transition: all 0.15s; text-align: left;
}
.theme-opt:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.theme-swatch {
  width: 44px; height: 34px; border-radius: 9px; border: 1px solid rgba(128, 128, 128, 0.25);
  display: flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0;
}
.theme-swatch i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.theme-opt-txt { flex: 1; min-width: 0; }
.theme-opt-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.theme-opt-txt span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 今日必做 3 题极速拍板卡 & 一条龙出片流水线 ---------------- */
.dp-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--card-shadow);
}
.dp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 980px) { .dp-grid { grid-template-columns: 1fr; } }
.dp-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 13px; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 9px;
}
.dp-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dp-reason { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.one-flow-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px;
  background: var(--banner-bg); border: 1px solid var(--banner-border); border-radius: 13px;
}
.one-flow-bar b { font-size: 12.5px; color: var(--ink); margin-right: 4px; white-space: nowrap; }

/* ---------------- YooAI 同款真多列不定高瀑布流画廊 + 随心看盲盒 ---------------- */
.yoo-masonry { column-count: 4; column-gap: 14px; }
@media (max-width: 1360px) { .yoo-masonry { column-count: 3; } }
@media (max-width: 920px) { .yoo-masonry { column-count: 2; } }
@media (max-width: 520px) { .yoo-masonry { column-count: 1; } }
.yoo-card {
  break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--card-shadow); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.yoo-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--card-hover-shadow); }
.yoo-thumb { position: relative; background: var(--surface-2); overflow: hidden; cursor: pointer; line-height: 0; }
.yoo-thumb img { width: 100%; height: auto; display: block; transition: transform 0.35s ease; }
.yoo-card:hover .yoo-thumb img { transform: scale(1.025); }
.yoo-mod-badge {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; line-height: 1.25;
  background: rgba(15, 23, 42, 0.78); color: #FFFFFF; font-size: 10.5px; font-weight: 650;
  backdrop-filter: blur(8px); max-width: 72%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yoo-kind-badge {
  position: absolute; right: 8px; top: 8px; padding: 3px 7px; border-radius: 99px; line-height: 1.25;
  background: rgba(15, 23, 42, 0.72); color: #FFFFFF; font-size: 10.5px; font-weight: 600;
}
.yoo-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 7px; }
.yoo-title {
  font-size: 13.5px; font-weight: 650; color: var(--ink); line-height: 1.4; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yoo-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 7px; border-top: 1px solid var(--border); }
.yoo-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; margin-top: 12px; }
@media (max-width: 760px) { .yoo-split { grid-template-columns: 1fr; } }
.yoo-prompt-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  max-height: 360px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
  font: 13px/1.7 var(--mono); color: var(--ink);
}

/* ---------------- 🧩 Skill 技能雷达卡片 ---------------- */
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .sk-grid { grid-template-columns: 1fr; } }
.sk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 15px 17px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; box-shadow: var(--card-shadow);
}
.sk-card:hover { border-color: var(--border-strong); box-shadow: var(--card-hover-shadow); }
.sk-cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
}
.sk-cmd code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }


/* ==========================================================================
   图文并茂升级：Skill 技能雷达 / 对标账号库 / 羊毛雷达 / 导演美学卡组
   ========================================================================== */
.sk-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.sk-ava {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff; position: relative;
}
.sk-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-ava .sk-rank-dot {
  position: absolute; bottom: -2px; right: -2px;
  font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 6px;
  background: var(--accent); color: var(--accent-fg); line-height: 1.2;
}
.sk-cat-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.sk-metrics-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--border); margin-bottom: 10px;
}
.sk-spark { width: 96px; height: 32px; flex-shrink: 0; display: block; }

/* 对标账号库：彩色分类头像 + 发文量可视化条 + 增长徽章 */
.acc-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.acc-ava {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.acc-vol { display: flex; flex-direction: column; gap: 3px; min-width: 78px; }
.acc-vol-track { height: 5px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.acc-vol-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10b981, #3b82f6); }
.acc-grow-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(16, 185, 129, .12); color: #059669; font-family: var(--mono);
}
[data-mode="dark"] .acc-grow-pill { background: rgba(16, 185, 129, .18); color: #34d399; }
.acc-cat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--border);
}

/* 羊毛雷达：彩色平台徽标 + 彩色重点词标签 */
.dsrc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 4px; border-radius: 999px;
  font-size: 11px; font-weight: 700; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--ink);
}
.dsrc-ico {
  width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.ftag-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}

/* ==========================================================================
   🎞️ 导演美学卡组 (Director's Lookbook · 845 Cards)
   ========================================================================== */
.dlb-wrap { display: flex; flex-direction: column; gap: 16px; }
.dlb-ex-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.dlb-ex-card {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  aspect-ratio: 4 / 3;
}
.dlb-ex-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.dlb-ex-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlb-ex-ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; color: #fff;
}
.dlb-ex-ov b { font-size: 13px; line-height: 1.25; }
.dlb-ex-ov span { font-size: 10.5px; opacity: .82; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dlb-studio {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.dlb-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dlb-controls input { flex: 1; min-width: 220px; }
.dlb-moods { display: flex; gap: 6px; flex-wrap: wrap; }
.dlb-mood {
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--border);
  cursor: pointer; transition: all .12s ease;
}
.dlb-mood:hover { border-color: var(--accent); color: var(--ink); }
.dlb-mood.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

.dlb-hand {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 960px) { .dlb-hand { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dlb-hand { grid-template-columns: 1fr; } }

.dlb-slot {
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft);
  overflow: hidden; display: flex; flex-direction: column;
}
.dlb-art {
  height: 92px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 10px;
}
.dlb-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dlb-art-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.55)); }
.dlb-suit-tag {
  position: relative; z-index: 1; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.58); color: #fff; backdrop-filter: blur(4px);
}
.dlb-swatches { position: absolute; inset: 0; display: flex; }
.dlb-swatches i { flex: 1; display: block; }
.dlb-slot-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: space-between; }
.dlb-slot-body b { font-size: 13.5px; line-height: 1.25; }
.dlb-slot-body p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.dlb-prompt-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.6;
  color: var(--ink); white-space: pre-wrap; word-break: break-word;
}
.dlb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.dlb-card {
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dlb-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.dlb-card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.dlb-card .dlb-art { height: 76px; }
.dlb-card-b { padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dlb-card-b b { font-size: 13px; }
.dlb-card-b p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* ==========================================================================
   🎞️ 导演美学卡组 V2 — 电影监视器 + 直观实体卡片 + 可视化画幅选择器
   ========================================================================== */
.dlb-ex-ribbon {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.dlb-ex-ribbon.expanded {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  overflow-x: visible;
}
.dlb-ex-ribbon .dlb-ex-card { flex: 0 0 185px; scroll-snap-align: start; }
.dlb-ex-ribbon.expanded .dlb-ex-card { flex: initial; }
.dlb-ex-card.active {
  border-color: var(--accent); box-shadow: 0 0 0 2.5px var(--accent);
}
.dlb-ex-card .dlb-ex-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); color: #fff; backdrop-filter: blur(4px);
}

.dlb-monitor-grid {
  display: grid; grid-template-columns: 310px 1fr; gap: 16px; align-items: stretch;
}
@media (max-width: 900px) { .dlb-monitor-grid { grid-template-columns: 1fr; } }

.dlb-monitor {
  border-radius: 14px; overflow: hidden; background: #0b0f17; color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 250px;
}
.dlb-mon-bg { position: absolute; inset: 0; }
.dlb-mon-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .78; display: block; }
.dlb-mon-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.86) 100%);
}
.dlb-mon-top, .dlb-mon-bot { position: relative; z-index: 2; padding: 12px 14px; }
.dlb-mon-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
.dlb-rec { display: inline-flex; align-items: center; gap: 5px; color: #f87171; font-weight: 700; }
.dlb-rec i { width: 7px; height: 7px; border-radius: 99px; background: #ef4444; display: inline-block; }
.dlb-mon-frame {
  position: relative; z-index: 2; margin: 4px auto;
  border: 1.5px dashed rgba(255,255,255,.55); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.22); backdrop-filter: blur(2px);
  transition: all .2s ease;
}
.dlb-mon-pal { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 8px; border: 1px solid rgba(255,255,255,.2); }
.dlb-mon-pal i { flex: 1; display: block; }

.dlb-step-box { display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.dlb-step-lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.dlb-step-num {
  width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: var(--accent-fg);
  font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.dlb-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.dlb-preset {
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--border);
  cursor: pointer; transition: all .12s ease;
}
.dlb-preset:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }

.dlb-aspects { display: flex; gap: 7px; flex-wrap: wrap; }
.dlb-ar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--border);
  cursor: pointer; transition: all .12s ease;
}
.dlb-ar-btn i {
  display: inline-block; border: 1.5px solid currentColor; border-radius: 2px;
}
.dlb-ar-btn.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

.dlb-slot {
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.dlb-slot:hover { transform: translateY(-2px); border-color: var(--accent); }
.dlb-art-svg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.dlb-film-holes {
  position: absolute; top: 5px; left: 8px; right: 8px; height: 5px; z-index: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1.5px, transparent 2px);
  background-size: 12px 5px; opacity: .75;
}
.dlb-hex-dots { display: flex; gap: 4px; margin-top: 4px; }
.dlb-hex-dots i { width: 12px; height: 12px; border-radius: 99px; border: 1px solid rgba(0,0,0,.15); display: inline-block; }


/* ==========================================================================
   ⭐ 个人收藏外链导航栏目
   ========================================================================== */
.bm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.bm-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none; color: inherit; position: relative;
}
.bm-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bm-head { display: flex; align-items: flex-start; gap: 12px; }
.bm-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
.bm-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.bm-url {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


/* ==========================================================================
   🏷️ 自媒体流量标签与官方活动
   ========================================================================== */
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.tt-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 11px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tt-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.tt-card.ended { opacity: .72; }
.tt-plat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff;
}
.tt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-tag {
  padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--accent-ink); border: 1px solid var(--border);
  cursor: pointer; transition: all .12s ease;
}
.tt-tag:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.tt-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }


/* ==========================================================================
   🎬 视频分镜动效专栏 (Video ShotCraft · 124 Cards / 150 Motion Previews)
   ========================================================================== */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.sc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sc-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.sc-media {
  position: relative; aspect-ratio: 16 / 9; background: #0b0f17; overflow: hidden; cursor: pointer;
}
.sc-media video, .sc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-badge-tl {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .66); color: #fff; backdrop-filter: blur(4px);
}
.sc-badge-tr {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: rgba(15, 23, 42, .72); color: #93c5fd; font-family: var(--mono);
}
.sc-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-between; }
.sc-desc {
  font-size: 12.5px; color: var(--ink2); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-styles { display: flex; gap: 5px; flex-wrap: wrap; }
.sc-st-pill {
  padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); cursor: pointer;
}
.sc-st-pill.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }


/* ==========================================================================
   全站交互打磨：悬浮组合篮（标签篮 / 分镜串烧篮）+ 书签 Favicon 增强
   ========================================================================== */
.float-basket {
  position: sticky; bottom: 14px; z-index: 25; margin-top: 16px;
  background: var(--surface); border: 1.5px solid var(--accent); border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.float-basket-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.bm-ico { position: relative; overflow: hidden; }
.bm-ico img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  padding: 8px; background: var(--surface);
}
.bm-card.clickable { cursor: pointer; }
.tt-tag.picked { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.sc-card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent); }


/* ==========================================================================
   极速渲染优化：跳过视口外卡片重排与重绘，消除滚动卡顿
   ========================================================================== */
.st-card, .yoo-card, .sk-card, .deal-card, .bm-card, .tt-card, .sc-card, .dlb-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}
.yoo-mod-badge, .dlb-suit-tag, .dlb-ex-badge, .sc-badge-tl {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* ==========================================================================
   吸收拍片哥工作台 & 自媒体发射基地：侧边栏搜索框 + 8 步一页流水线
   ========================================================================== */
.side-search {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 20px);
  margin: 0 10px 10px; padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2, var(--bg-soft));
  color: var(--muted); font-size: 12.5px; cursor: pointer; text-align: left;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.side-search:hover { border-color: var(--accent); color: var(--ink); }
.side-search svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.side-search span { flex: 1; }
.side-search kbd { font-size: 10px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border); opacity: .75; }

.pipe8-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--card-shadow, var(--shadow-sm));
}
.pipe8-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pipe8-prog { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.pipe8-track { flex: 1; height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; min-width: 90px; }
.pipe8-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f59e0b, #10b981); transition: width .25s ease; }
.pipe8-steps {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px;
}
@media (max-width: 1100px) { .pipe8-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pipe8-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pipe8-step {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--border);
  cursor: pointer; transition: all .14s ease; white-space: nowrap;
}
.pipe8-step:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.pipe8-step.done { border-color: rgba(16, 185, 129, .38); background: rgba(16, 185, 129, .08); color: var(--ink); }
.pipe8-step.done em { color: #10b981; font-style: normal; font-weight: 800; }
.pipe8-step.cur { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.pipe8-step small { opacity: .65; font-family: var(--mono); font-size: 10.5px; }


/* ==========================================================================
   今日 10 分钟出片向导 + 全网热榜 17 平台矩阵 + 提示词换主体改写
   ========================================================================== */
.guide3-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px;
}
@media (max-width: 820px) { .guide3-grid { grid-template-columns: 1fr; } }
.guide3-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.guide3-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--card-shadow, var(--shadow-sm)); }
.guide3-num {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.hb-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.hb-pill {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--border);
  cursor: pointer; transition: all .12s ease;
}
.hb-pill:hover { border-color: var(--accent); color: var(--ink); }
.hb-pill.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.hb-list { display: flex; flex-direction: column; gap: 6px; }
.hb-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border);
  transition: border-color .12s ease;
}
.hb-row:hover { border-color: var(--accent); }
.hb-rk {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; font-family: var(--mono);
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}
.hb-rk.top { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.hb-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-title:hover { text-decoration: underline; }
.pr-remix-box {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
