/* ============================================================
   Brand Studio — v5.0 深度版 styles
   All classes use .bs- prefix to avoid collisions with im.css.
   Reuses im.css tokens (--accent / --ink / --paper / --bone /
   --ok / --font-display / --font-mono).
   ============================================================ */

.bs-root {
  --bs-rail: #F4F0E7;
  --bs-card: #FFFFFF;
  --bs-shadow: 0 1px 0 rgba(20, 20, 26, 0.04), 0 8px 20px rgba(20, 20, 26, 0.06);
  --bs-shadow-lift: 0 2px 0 rgba(20, 20, 26, 0.05), 0 18px 40px rgba(20, 20, 26, 0.1);
  --bs-radius: 12px;
  --bs-anim: 350ms var(--ease);
  --bs-anim-fast: 220ms var(--ease);

  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  min-height: 100%;
  padding: 24px 28px 60px;
  overflow-y: auto;
  position: relative;
}

/* -------- nudge banner (D) -------- */
.bs-nudge {
  background: rgba(209,74,36,0.08);
  border: 1px solid rgba(209,74,36,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
}
.bs-nudge.is-hidden { display: none; }
.bs-nudge-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 18px;
  flex-shrink: 0;
}
.bs-nudge-body { flex: 1; min-width: 0; }
.bs-nudge-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.bs-nudge-ago {
  font-size: 11px; color: var(--ink-60); font-weight: 500;
  background: var(--ink-05); padding: 2px 8px; border-radius: 10px;
  font-family: var(--font-mono);
}
.bs-nudge-text {
  font-size: 13px; line-height: 1.55; color: var(--ink-80);
}
.bs-nudge-text strong { color: var(--accent); font-weight: 600; }
.bs-nudge-actions { display: flex; gap: 8px; margin-top: 10px; }
.bs-nudge-btn {
  background: var(--ink); color: var(--paper);
  border: none; padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: inherit;
  transition: opacity var(--bs-anim-fast);
}
.bs-nudge-btn:hover { opacity: 0.85; }
.bs-nudge-btn.is-ghost {
  background: transparent; color: var(--ink-60);
  border: 1px solid var(--ink-08);
}
.bs-nudge-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--ink-40);
  font-size: 16px; cursor: pointer; line-height: 1;
  padding: 4px;
}
.bs-nudge-close:hover { color: var(--ink); }

/* -------- header -------- */
.bs-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px; gap: 24px; flex-wrap: wrap;
}
.bs-title-block { flex: 1; min-width: 280px; }
.bs-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px; font-weight: 500;
}
.bs-title {
  font-family: var(--font-display); font-style: italic;
  font-size: 34px; line-height: 1.1; color: var(--ink);
  margin: 0;
}
.bs-subtitle {
  font-size: 13px; color: var(--ink-60); margin-top: 8px;
  max-width: 580px; line-height: 1.55;
}
.bs-flow-actions { display: flex; gap: 10px; }
.bs-flow-btn {
  background: var(--ink); color: var(--paper);
  border: none; padding: 9px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
  transition: transform var(--bs-anim-fast), opacity var(--bs-anim-fast);
}
.bs-flow-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.bs-flow-btn.is-ghost {
  background: var(--bs-card); color: var(--ink);
  border: 1px solid var(--ink-08);
}
.bs-flow-btn .bs-flow-arrow { font-family: var(--font-mono); }

/* -------- toast -------- */
.bs-toast-stack {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999; pointer-events: none;
}
.bs-toast {
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; max-width: 360px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.25);
  animation: bs-toast-in 280ms var(--ease);
  display: flex; gap: 10px; align-items: flex-start;
  pointer-events: auto;
}
.bs-toast-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; margin-top: 1px;
}
.bs-toast-text { line-height: 1.45; }
.bs-toast-text b { color: var(--paper); font-weight: 600; }
@keyframes bs-toast-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.bs-toast.is-out { animation: bs-toast-out 220ms forwards; }
@keyframes bs-toast-out {
  to { transform: translateY(16px); opacity: 0; }
}

/* -------- layout shell -------- */
.bs-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .bs-layout { grid-template-columns: 1fr; }
}

/* -------- parameter panel (A) -------- */
.bs-panel {
  background: var(--bs-card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--bs-shadow);
  position: sticky;
  top: 18px;
}
.bs-panel-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-60);
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-05);
  display: flex; align-items: center; justify-content: space-between;
}
.bs-panel-title .bs-pulse {
  display: inline-block; width: 6px; height: 6px;
  background: var(--ok); border-radius: 50%;
}

.bs-control {
  margin-bottom: 16px;
}
.bs-control:last-child { margin-bottom: 0; }
.bs-control-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 500; color: var(--ink-80);
  margin-bottom: 8px;
}
.bs-control-value {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); font-weight: 500;
  background: var(--accent-soft); padding: 2px 7px; border-radius: 8px;
  transition: background 200ms;
}
.bs-input {
  width: 100%; background: var(--paper);
  border: 1px solid var(--ink-08); border-radius: 8px;
  padding: 9px 11px; font-size: 13px; color: var(--ink);
  font-family: inherit;
  transition: border-color 160ms;
}
.bs-input:focus {
  outline: none; border-color: var(--accent);
}
.bs-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--ink-08); border-radius: 2px;
  outline: none; cursor: pointer;
  margin: 4px 0;
}
.bs-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(20,20,26,0.15);
  transition: transform 120ms;
}
.bs-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.bs-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  cursor: pointer; border: none;
  box-shadow: 0 1px 3px rgba(20,20,26,0.15);
}
.bs-slider-ends {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-40);
  margin-top: 4px; font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.bs-chip-row {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.bs-chip {
  background: var(--paper); border: 1px solid var(--ink-08);
  padding: 5px 9px; border-radius: 7px;
  font-size: 11px; color: var(--ink-60);
  cursor: pointer; font-family: inherit;
  transition: all 160ms;
}
.bs-chip:hover { color: var(--ink); border-color: var(--ink-30); }
.bs-chip.is-active {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}

/* -------- main column -------- */
.bs-main {
  display: flex; flex-direction: column; gap: 22px;
  min-width: 0;
}
.bs-section {
  background: var(--bs-card);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--bs-shadow);
}
.bs-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; gap: 16px;
}
.bs-section-title-row { flex: 1; min-width: 0; }
.bs-section-title {
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--ink); margin: 0; line-height: 1.1;
}
.bs-section-sub {
  font-size: 12px; color: var(--ink-60); margin-top: 4px;
}
.bs-section-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-40); letter-spacing: 0.04em;
}

/* -------- 5 candidates (B) -------- */
.bs-candidates {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1380px) { .bs-candidates { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .bs-candidates { grid-template-columns: repeat(2, 1fr); } }

.bs-cand {
  background: var(--paper);
  border: 1px solid var(--ink-05);
  border-radius: 11px;
  padding: 12px;
  cursor: pointer;
  transition: transform var(--bs-anim-fast), box-shadow var(--bs-anim-fast), border-color var(--bs-anim-fast);
  position: relative;
  display: flex; flex-direction: column; gap: 9px;
  min-width: 0;
}
.bs-cand:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-shadow-lift);
  border-color: var(--ink-08);
}
.bs-cand.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(209,74,36,0.12), var(--bs-shadow-lift);
}
.bs-cand-badge {
  position: absolute; top: -7px; left: 10px;
  font-family: var(--font-mono); font-size: 9px;
  background: var(--ink); color: var(--paper);
  padding: 2px 6px; border-radius: 6px;
  letter-spacing: 0.06em;
}
.bs-cand.is-selected .bs-cand-badge { background: var(--accent); }

.bs-cand-logo {
  height: 56px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  transition: background var(--bs-anim), color var(--bs-anim);
}
.bs-cand-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bs-cand-variant {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-60);
  text-align: center;
  text-transform: uppercase;
  margin-top: -3px;
  margin-bottom: 2px;
}
.bs-cand-pal {
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: 22px; border-radius: 5px; overflow: hidden;
}
.bs-cand-pal-cell {
  transition: background var(--bs-anim);
}
.bs-cand-fonts {
  font-size: 10px; color: var(--ink-60);
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1.3;
}
.bs-cand-slogan {
  font-size: 11px; color: var(--ink-80);
  line-height: 1.4; min-height: 30px;
  font-style: italic;
}
.bs-cand-voice {
  display: flex; flex-wrap: wrap; gap: 3px;
}
.bs-cand-tag {
  font-size: 9px; padding: 2px 6px; border-radius: 5px;
  background: var(--ink-05); color: var(--ink-60);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.bs-cand-vibe {
  font-size: 10px; color: var(--ink-40);
  line-height: 1.4; border-top: 1px solid var(--ink-05);
  padding-top: 6px;
}

/* reflow flash to signal reactivity */
.bs-flash { animation: bs-flash 350ms var(--ease); }
@keyframes bs-flash {
  0%   { box-shadow: 0 0 0 0 rgba(209,74,36,0); }
  40%  { box-shadow: 0 0 0 3px rgba(209,74,36,0.12); }
  100% { box-shadow: 0 0 0 0 rgba(209,74,36,0); }
}

/* -------- scenes (F) -------- */
.bs-scenes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 1380px) { .bs-scenes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .bs-scenes { grid-template-columns: repeat(2, 1fr); } }

.bs-scene {
  background: var(--paper);
  border: 1px solid var(--ink-05);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.bs-scene-label {
  font-size: 10px; color: var(--ink-60);
  font-family: var(--font-mono); letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.bs-scene-label .bs-scene-ratio { color: var(--ink-40); }
.bs-scene-stage {
  position: relative; overflow: hidden;
  border-radius: 8px;
  transition: background var(--bs-anim);
}
.bs-scene-stage > * {
  transition: all var(--bs-anim);
}

/* scene 1: 小红书首图 (390 / 520 ratio ≈ 3/4) */
.bs-scene-xhs .bs-scene-stage { aspect-ratio: 3 / 4; }
.bs-xhs-title {
  position: absolute; left: 12%; right: 12%; top: 32%;
  font-size: clamp(15px, 3.6vw, 26px); font-weight: 800;
  line-height: 1.15; word-break: break-word;
}
.bs-xhs-sub {
  position: absolute; left: 12%; right: 12%; top: 68%;
  font-size: 10px; opacity: 0.78; line-height: 1.4;
}
.bs-xhs-stamp {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; padding: 3px 7px;
  border-radius: 10px; backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.2);
  font-family: var(--font-mono); letter-spacing: 0.05em;
}

/* scene 2: landing hero (16:9) */
.bs-scene-landing .bs-scene-stage { aspect-ratio: 16 / 9; }
.bs-landing-logo {
  position: absolute; top: 8px; left: 10px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.bs-landing-logo .bs-logo-dot {
  width: 12px; height: 12px; border-radius: 3px;
}
.bs-landing-nav {
  position: absolute; top: 10px; right: 10px;
  display: flex; gap: 8px; font-size: 7px; opacity: 0.7;
}
.bs-landing-head {
  position: absolute; left: 10%; right: 35%; top: 38%;
  font-size: clamp(11px, 2vw, 17px); font-weight: 700;
  line-height: 1.15;
}
.bs-landing-sub {
  position: absolute; left: 10%; right: 35%; top: 64%;
  font-size: 8px; opacity: 0.7; line-height: 1.4;
}
.bs-landing-cta {
  position: absolute; left: 10%; top: 80%;
  font-size: 8px; padding: 4px 10px;
  border-radius: 12px; font-weight: 600;
}

/* scene 3: 包装标签 */
.bs-scene-pkg .bs-scene-stage { aspect-ratio: 1 / 1; }
.bs-pkg-box {
  position: absolute; inset: 14%;
  border-radius: 4px;
  display: flex; flex-direction: column; padding: 10px;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.bs-pkg-cat {
  font-size: 7px; font-family: var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
}
.bs-pkg-mid {
  font-size: 14px; font-weight: 700; line-height: 1.1;
  text-align: center; margin: 4px 0;
}
.bs-pkg-slogan {
  font-size: 8px; font-style: italic;
  text-align: center; line-height: 1.4; opacity: 0.85;
}
.bs-pkg-strip {
  height: 4px; border-radius: 2px; margin-top: 4px;
}

/* scene 4: 名片 (90×54 → ~1.67:1) */
.bs-scene-card .bs-scene-stage { aspect-ratio: 90 / 54; }
.bs-card-bg {
  position: absolute; inset: 0; padding: 10%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.bs-card-name {
  font-size: 14px; font-weight: 700; line-height: 1.1;
}
.bs-card-role {
  font-size: 8px; opacity: 0.7; margin-top: 2px;
  font-family: var(--font-mono);
}
.bs-card-foot {
  font-size: 7px; opacity: 0.55;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
}
.bs-card-stripe {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bs-card-stripe > div { height: 100%; }

/* scene 5: ppt 首页 (16:9) */
.bs-scene-ppt .bs-scene-stage { aspect-ratio: 16 / 9; }
.bs-ppt-corner {
  position: absolute; top: 8px; left: 10px;
  font-size: 7px; opacity: 0.6;
  font-family: var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.bs-ppt-num {
  position: absolute; top: 8px; right: 10px;
  font-size: 7px; opacity: 0.55;
  font-family: var(--font-mono);
}
.bs-ppt-head {
  position: absolute; left: 10%; right: 10%; top: 32%;
  font-size: clamp(12px, 2.3vw, 19px); font-weight: 700;
  line-height: 1.15;
}
.bs-ppt-sub {
  position: absolute; left: 10%; right: 10%; top: 60%;
  font-size: 9px; opacity: 0.75; line-height: 1.4;
}
.bs-ppt-bar {
  position: absolute; left: 10%; bottom: 12%;
  width: 32px; height: 3px;
}

/* -------- consistency score -------- */
.bs-score-block {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1px solid var(--ink-05);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
}
.bs-score-ring {
  width: 56px; height: 56px;
  position: relative;
  flex-shrink: 0;
}
.bs-score-ring svg { transform: rotate(-90deg); }
.bs-score-ring circle { fill: none; stroke-width: 6; }
.bs-score-ring .bs-ring-bg { stroke: var(--ink-08); }
.bs-score-ring .bs-ring-fg {
  stroke: var(--accent);
  transition: stroke-dashoffset var(--bs-anim);
}
.bs-score-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--ink);
}
.bs-score-body { flex: 1; min-width: 0; }
.bs-score-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 3px;
}
.bs-score-explain {
  font-size: 11px; color: var(--ink-60); line-height: 1.5;
}

/* -------- timeline (C) -------- */
.bs-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 900px) { .bs-timeline { grid-template-columns: repeat(3, 1fr); } }

.bs-tl {
  background: var(--paper);
  border: 1px solid var(--ink-05);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all var(--bs-anim-fast);
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
  position: relative;
}
.bs-tl:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-shadow);
  border-color: var(--ink-08);
}
.bs-tl.is-diffing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(209,74,36,0.15);
}
.bs-tl-date {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-60); letter-spacing: 0.04em;
  display: flex; justify-content: space-between;
}
.bs-tl-week { color: var(--ink); font-weight: 600; }
.bs-tl-pal {
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: 14px; border-radius: 4px; overflow: hidden;
}
.bs-tl-name {
  font-size: 11px; color: var(--ink); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bs-tl-why {
  font-size: 10px; color: var(--ink-60);
  line-height: 1.4; min-height: 28px;
}

/* diff modal */
.bs-diff {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  display: none;
}
.bs-diff.is-open { display: block; animation: bs-diff-in 260ms; }
@keyframes bs-diff-in {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.bs-diff-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.bs-diff-title {
  font-size: 13px; font-weight: 600;
}
.bs-diff-title .bs-diff-arrow {
  color: var(--accent); margin: 0 8px;
  font-family: var(--font-mono);
}
.bs-diff-close {
  background: none; border: none; cursor: pointer;
  color: var(--ink-60); font-size: 18px;
  padding: 0; line-height: 1;
}
.bs-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bs-diff-col {
  background: var(--bs-card);
  border-radius: 8px;
  padding: 10px 12px;
}
.bs-diff-col h5 {
  margin: 0 0 8px 0;
  font-size: 11px; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: 0.04em;
  color: var(--ink-60); text-transform: uppercase;
}
.bs-diff-row { margin-bottom: 8px; font-size: 12px; }
.bs-diff-row:last-child { margin-bottom: 0; }
.bs-diff-row .bs-diff-k {
  font-size: 10px; color: var(--ink-40);
  font-family: var(--font-mono); margin-bottom: 3px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.bs-diff-row .bs-diff-v { font-size: 12px; color: var(--ink); }
.bs-diff-row .bs-diff-v.is-changed {
  background: rgba(209,74,36,0.08);
  padding: 2px 6px; border-radius: 4px;
  display: inline-block;
}
.bs-diff-pal {
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: 16px; border-radius: 4px; overflow: hidden;
}

/* -------- empty hint -------- */
.bs-hint {
  font-size: 11px; color: var(--ink-40);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  margin-top: 8px;
}

/* -------- phone fallback (≤600px) -------- */
@media (max-width: 600px) {
  .bs-root { padding: 12px; }
  .bs-toast-stack { right: 8px; bottom: 8px; }
  .bs-slider::-webkit-slider-thumb { width: 24px; height: 24px; }
  .bs-slider::-moz-range-thumb { width: 24px; height: 24px; }
}
body.is-phone .bs-layout { grid-template-columns: 1fr !important; }
body.is-phone .bs-candidates,
body.is-phone .bs-scenes,
body.is-phone .bs-timeline { grid-template-columns: 1fr !important; }
body.is-phone .bs-toast { z-index: 9999; }

/* ============================================================
   v5.6 P0 — Progressive Disclosure Layout (Brand Studio)
   ============================================================ */

/* minimal header (替换 bs-header) */
.bs-root-pro .bs-header-pro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--ink-08);
}
.bs-root-pro .bs-h-l { display: flex; flex-direction: column; gap: 3px; }
.bs-root-pro .bs-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  text-transform: uppercase;
}
.bs-root-pro .bs-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.bs-root-pro .bs-h-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.04em;
}
.bs-root-pro .bs-h-r { display: flex; align-items: center; gap: 8px; }
.bs-h-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bone);
  border: 1px solid var(--ink-08);
  color: var(--ink-60);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.bs-h-pill:hover { color: var(--ink); border-color: var(--ink-24); }
.bs-h-pill.is-open { color: var(--accent); border-color: var(--accent); background: rgba(209,74,36,0.05); }
.bs-h-pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok);
}

/* nudge collapsible */
.bs-nudge-collapse {
  padding: 0 28px 8px;
}
.bs-nudge-collapse[hidden] { display: none; }

/* layout 2-col */
.bs-root-pro .bs-layout-pro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  padding: 0;
  min-height: 480px;
}
.bs-root-pro .bs-panel-pro {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 20px 24px;
  border-right: 1px solid var(--ink-08);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--paper);
}
.bs-root-pro .bs-panel-title-pro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.bs-root-pro .bs-panel-title-pro > span:first-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
}
.bs-root-pro .bs-panel-hint {
  font-size: 10.5px;
  color: var(--ink-40);
}

/* main 主视觉 */
.bs-root-pro .bs-main-pro {
  padding: 20px 28px 0;
}
.bs-cand-section-pro .bs-section-head-pro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}
.bs-section-title-pro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

/* bottom tabs */
.bs-bottom-tabs {
  margin-top: 18px;
  padding: 0 28px 28px;
}
.bs-tabs-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1.5px solid var(--ink-08);
  margin-bottom: 18px;
}
.bs-tab {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink-60);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 180ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bs-tab:hover { color: var(--ink); }
.bs-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.bs-tab-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bone);
  color: var(--ink-60);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.bs-tab.is-active .bs-tab-n {
  background: var(--accent);
  color: var(--paper);
}
.bs-pane { display: none; }
.bs-pane.is-active { display: block; animation: bsFadeIn 220ms var(--ease); }
@keyframes bsFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.bs-pane-head { margin-bottom: 12px; }
.bs-pane-meta {
  font-size: 12px;
  color: var(--ink-60);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* bs-flow-pane (跨工具数据流 tab content) */
.bs-flow-pane {
  background: var(--bone);
  padding: 22px 24px;
  border-radius: 12px;
}
.bs-flow-pane-h {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 14px;
}
.bs-flow-actions-pro {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* mobile */
@media (max-width: 900px) {
  .bs-root-pro .bs-layout-pro { grid-template-columns: 1fr; }
  .bs-root-pro .bs-panel-pro { position: static; border-right: none; border-bottom: 1px solid var(--ink-08); max-height: none; }
  .bs-root-pro .bs-header-pro { padding: 18px 18px 14px; }
  .bs-root-pro .bs-main-pro { padding: 16px 18px 0; }
  .bs-bottom-tabs { padding: 0 18px 24px; }
  .bs-tab { padding: 10px 12px; font-size: 12px; }
}
