/* Suit Studio v3.1 — 清爽简洁（留白、单主色 + 灰阶、轻边框） */
:root {
  /* 清爽简洁：一个主色（蓝）+ 灰阶 */
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F7F7F5;
  --bg-hover: #F1F1EF;
  --sidebar-bg: #FBFBFA;
  --sidebar-hover: #EFEFED;
  --sidebar-active: #E9E9E7;
  --ink-primary: #37352F;
  --ink-secondary: #5F5E5B;
  --ink-muted: #9B9A97;
  --border-light: #EDEDEB;
  --border-strong: #DCDCD9;
  --primary: #2383E2;
  --primary-hover: #1B6EC2;
  --primary-soft: #EBF4FC;
  --accent-forest: var(--primary);
  --accent-forest-soft: var(--primary-soft);
  --accent-brass: #787774;
  --accent-brass-soft: #F1F1EF;
  --accent-burgundy: #B4443A;
  --accent-burgundy-soft: #FBEFEE;
  --danger: #C4402F;
  --success: #2F7D57;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: none;
  --shadow-md: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 15, 15, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* App Shell */
.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--sidebar-bg);
  color: #F2F0EA;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #252A28;
  z-index: 40;
}

.sidebar-header {
  padding: 20px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D4AF6A, #9E7632);
  color: #151817;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}

.brand-text small {
  display: block;
  font-size: 11px;
  color: #9BA39E;
  margin-top: 1px;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7D8681;
  padding: 0 10px 6px;
  text-transform: uppercase;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #C9CEC9;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #FFFFFF;
}

.nav-link.active {
  background: var(--sidebar-active);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #D4AF6A;
}

.nav-ico {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: #9CA5A0;
  flex-shrink: 0;
}

.nav-link.active .nav-ico {
  color: #D4AF6A;
}

.nav-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(212, 175, 106, 0.2);
  color: #E7C888;
  font-weight: 600;
}

.nav-badge.muted {
  background: rgba(255,255,255,0.08);
  color: #9BA39E;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
}

.studio-motto span {
  display: block;
  color: #E5E2D9;
  font-weight: 500;
}

.studio-motto small {
  color: #7D8681;
  font-size: 11px;
}

.sync-pill {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #98B8A6;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* Main & Topbar */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  padding: 0 28px;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.crumb-root {
  color: var(--ink-muted);
  font-size: 13px;
}

.crumb-sep {
  color: var(--border-strong);
}

.topbar-center {
  flex: 1;
  max-width: 460px;
}

.search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-trigger:hover {
  border-color: var(--accent-forest);
  box-shadow: var(--shadow-sm);
}

.search-placeholder {
  flex: 1;
  text-align: left;
  font-size: 13px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 4px 6px 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
}

.member-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.member-pills {
  display: flex;
  gap: 4px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.member-pill:hover {
  background: var(--bg-subtle);
}

.member-pill.active {
  background: var(--ink-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.member-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Container & Page Headers */
.view-container {
  padding: 28px 32px 64px;
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
}

.page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-forest);
  margin-bottom: 6px;
}

.page-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page-hero h1 span {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-secondary);
}

.page-hero p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  max-width: 720px;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--ink-secondary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-forest);
  border-color: var(--accent-forest);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: #163B2D;
  border-color: #163B2D;
}

.btn-dark {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: transparent;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.icon-btn.light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #FFFFFF;
}

.spu-chip, .pid-chip, .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.spu-chip {
  background: var(--accent-forest-soft);
  color: var(--accent-forest);
  border: 1px solid rgba(30, 77, 59, 0.2);
  cursor: pointer;
  font-weight: 600;
}

.spu-chip:hover {
  background: var(--bg-hover);
}

.pid-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  background: var(--accent-brass-soft);
  color: var(--ink-secondary);
  border: 1px solid rgba(184, 142, 68, 0.25);
  cursor: pointer;
}

.pid-chip:hover {
  background: var(--bg-hover);
}

[data-toggle-carousel-pub], [data-toggle-video-pub], [data-toggle-planner-pub] {
  margin-left: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.status-pill.published, .status-pill.done {
  background: var(--bg-hover);
  color: var(--success);
}

.status-pill.pending {
  background: var(--bg-hover);
  color: var(--ink-secondary);
}

.status-pill.warn {
  background: var(--accent-burgundy-soft);
  color: var(--accent-burgundy);
}

/* KPI Grid & Overview */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-forest);
}

.kpi-card .kpi-label {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
}

.kpi-card .kpi-value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
  color: var(--ink-primary);
}

.kpi-card .kpi-sub {
  font-size: 12px;
  color: var(--ink-secondary);
}

.focus-banner {
  background: linear-gradient(120deg, #1A2420 0%, #243830 100%);
  color: #F6F4EE;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.focus-banner .eyebrow {
  color: #D4AF6A;
}

.focus-banner h2 {
  margin: 2px 0 6px;
  font-size: 20px;
}

.focus-banner p {
  margin: 0;
  color: #C7D0CB;
  font-size: 13px;
  max-width: 760px;
}

.team-roster-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.team-card:hover, .team-card.is-me {
  border-color: var(--accent-forest);
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-info strong {
  display: block;
  font-size: 14px;
}

.team-info small {
  color: var(--ink-muted);
  font-size: 12px;
}

.overview-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar input[type="search"],
.filter-bar input[type="text"],
.filter-bar input[type="date"],
.filter-bar select {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  font-size: 13px;
}

.filter-bar input[type="search"] {
  min-width: 240px;
  flex: 1;
}

.pill-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.pill-tab {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
}

.pill-tab.active {
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Todo & Direction Cards */
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.15s;
}

.todo-item-card.is-priority {
  border-left: 4px solid var(--accent-forest);
}

.todo-item-card.is-done {
  opacity: 0.78;
  background: var(--bg-subtle);
}

.todo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.todo-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.todo-check-label input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--accent-forest);
  cursor: pointer;
  flex-shrink: 0;
}

.todo-is-done-title {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.todo-meta-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.assignee-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  background: var(--bg-subtle);
}

.todo-desc {
  margin: 10px 0 12px 31px;
  color: var(--ink-secondary);
  font-size: 13.5px;
}

.todo-links {
  margin: 0 0 10px 31px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.todo-foot {
  margin-left: 31px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.team-note-row {
  margin: 10px 0 0 31px;
  display: flex;
  gap: 8px;
}

.team-note-row input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  font-size: 12px;
}

/* Carousel & Planner Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.media-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.media-card-head {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}

.shot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: var(--bg-hover);
  padding: 3px;
}

.shot-thumb-btn {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--bg-hover);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: zoom-in;
}

.shot-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.shot-thumb-btn:hover img {
  transform: scale(1.04);
}

.shot-num {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(20, 24, 22, 0.72);
  color: #FFF;
  font-size: 10px;
  font-family: var(--font-mono);
}

.media-card-body {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.media-card-body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.caption-snippet {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--bg-subtle);
  padding: 8px 10px;
  border-radius: 7px;
}

.card-action-bar {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.video-stage {
  position: relative;
  background: #141716;
  aspect-ratio: 9 / 14;
  max-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-stage img, .video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #151817;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.product-card-cover {
  aspect-ratio: 4 / 4.6;
  background: var(--bg-hover);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pagination */
.pagination-bar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

/* Slide-over SPU Inspector Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 17, 0.42);
  z-index: 80;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 94vw);
  height: 100vh;
  background: var(--bg-surface);
  z-index: 85;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-light);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 19px;
}

.drawer-body {
  padding: 20px 24px 40px;
  overflow-y: auto;
  flex: 1;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}

.facts-table th, .facts-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.facts-table th {
  width: 96px;
  color: var(--ink-secondary);
  font-weight: 600;
  background: var(--bg-subtle);
}

.pid-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 20px;
}

.pid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  font-size: 12px;
}

/* Modals & Lightbox */
.studio-modal {
  width: min(920px, 94vw);
  max-height: 88vh;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.studio-modal::backdrop {
  background: rgba(15, 18, 17, 0.55);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  max-height: calc(88vh - 76px);
}

.lightbox-modal {
  width: min(1160px, 96vw);
  height: min(90vh, 920px);
  border: 0;
  border-radius: var(--radius-lg);
  background: #121413;
  color: #F5F3EE;
  padding: 16px 20px;
}

.lightbox-modal::backdrop {
  background: rgba(8, 10, 9, 0.85);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lightbox-stage {
  position: relative;
  height: calc(100% - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: #FFF;
  font-size: 26px;
  cursor: pointer;
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.lightbox-caption {
  text-align: center;
  font-size: 12.5px;
  color: #B4BCB7;
  margin-top: 8px;
}

/* Cmd+K Modal */
.cmdk-modal {
  width: min(680px, 94vw);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.cmdk-modal::backdrop {
  background: rgba(15, 18, 17, 0.45);
}

.cmdk-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.cmdk-input-bar input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.cmdk-results {
  max-height: 440px;
  overflow-y: auto;
  padding: 10px;
}

.cmdk-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cmdk-item:hover {
  background: var(--bg-subtle);
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-row {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  font-size: 12.5px;
}

.activity-time {
  color: var(--ink-muted);
  font-size: 11px;
  margin-top: 2px;
}

/* Embedded Archive / Iframe Frame */
.archive-frame {
  width: 100%;
  height: 76vh;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFF;
}

/* Auth Gate */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #151817;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.auth-member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 18px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.auth-card input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 0 0 12px;
}

/* Toast */
.studio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  padding: 11px 18px;
  border-radius: 10px;
  background: #171A18;
  color: #FFFFFF;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.studio-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 清爽简洁皮肤（v3.1） ====================
   只改外观：浅色侧栏、轻边框、去渐变与大块色底、少阴影。
   放在响应式规则之前，手机端规则仍然优先。 */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--ink-primary);
  border-right: 1px solid var(--border-light);
}
.sidebar-header,
.sidebar-footer {
  border-color: var(--border-light);
}
.brand-monogram {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 15px;
}
.brand-text strong {
  color: var(--ink-primary);
  letter-spacing: 0.02em;
  font-size: 14px;
}
.brand-text small,
.studio-motto small {
  color: var(--ink-muted);
}
.studio-motto span {
  color: var(--ink-secondary);
}
.nav-group-label {
  color: var(--ink-muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
}
.nav-link {
  color: var(--ink-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 1px;
}
.nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--ink-primary);
}
.nav-link.active {
  background: var(--sidebar-active);
  color: var(--ink-primary);
  box-shadow: none;
}
.nav-ico,
.nav-link.active .nav-ico {
  color: var(--ink-muted);
}
.nav-badge,
.nav-badge.muted {
  background: transparent;
  color: var(--ink-muted);
  font-weight: 500;
  padding: 0 2px;
}
.nav-link-today .nav-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 1px 7px;
}
.sync-pill {
  color: var(--ink-muted);
}
.pulse-dot {
  background: #4CAF7D;
  box-shadow: none;
}
.icon-btn {
  border-color: var(--border-light);
}

/* 顶栏 */
.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-light);
  height: 56px;
}
.search-trigger {
  border-radius: var(--radius-sm);
  border-color: var(--border-light);
  background: var(--bg-subtle);
}
.search-trigger:hover {
  border-color: var(--border-strong);
  box-shadow: none;
}
.search-trigger kbd {
  background: var(--bg-surface);
}
.member-switcher {
  border-color: var(--border-light);
  padding: 3px 4px 3px 10px;
  border-radius: var(--radius-sm);
}
.member-pill {
  border-radius: 5px;
}
.member-pill.active {
  background: var(--bg-hover);
  color: var(--ink-primary);
}

/* 页面标题 */
.view-container {
  padding: 36px 48px 72px;
  max-width: 1360px;
}
.page-hero {
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.page-hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-hero h1 span {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.6em;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.page-hero p {
  color: var(--ink-secondary);
}

/* 按钮与标签 */
.btn {
  border-color: var(--border-light);
  font-weight: 500;
}
.btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-ghost {
  border-color: transparent;
}
.spu-chip {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid transparent;
  font-weight: 500;
}
.spu-chip:hover {
  background: #DCEBFA;
}
.pid-chip {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
}
.pid-chip:hover {
  background: var(--bg-hover);
}
.tag-chip {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}
.status-pill {
  border-radius: 4px;
  font-weight: 500;
}
.status-pill.published,
.status-pill.done {
  background: #EEF6F1;
  color: var(--success);
}
.status-pill.pending {
  background: var(--bg-hover);
  color: var(--ink-secondary);
}

/* 总览 */
.kpi-grid {
  gap: 12px;
  margin-bottom: 32px;
}
.kpi-card {
  border-color: var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--bg-surface);
}
.kpi-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}
.kpi-card .kpi-label {
  color: var(--ink-secondary);
  font-size: 13px;
}
.kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 600;
}
.kpi-card .kpi-sub {
  color: var(--ink-muted);
}
.focus-banner {
  background: var(--bg-subtle);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.focus-banner .eyebrow {
  color: var(--primary);
}
.focus-banner h2 {
  font-size: 17px;
  font-weight: 600;
}
.focus-banner p {
  color: var(--ink-secondary);
}
.team-roster-bar {
  gap: 12px;
  margin-bottom: 32px;
}
.team-card {
  border-color: var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.team-card:hover,
.team-card.is-me {
  border-color: var(--border-strong);
  box-shadow: none;
}
.team-card.is-me {
  background: var(--bg-subtle);
}
.team-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
}
.panel-card {
  border-color: var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.panel-head h3 {
  font-size: 15px;
  font-weight: 600;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink-primary);
}

/* 渲染进度（可折叠，默认收起） */
.gpu-progress {
  margin-top: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.gpu-progress > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.gpu-progress > summary::-webkit-details-marker {
  display: none;
}
.gpu-progress > summary::after {
  content: "展开 ▾";
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
}
.gpu-progress[open] > summary::after {
  content: "收起 ▴";
}
.gpu-progress .gpu-state {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--ink-secondary);
}
.gpu-progress .gpu-state.run {
  background: var(--primary-soft);
  color: var(--primary);
}
.gpu-progress .gpu-mini-bar {
  flex: 1 1 120px;
  max-width: 220px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-hover);
  overflow: hidden;
}
.gpu-progress .gpu-mini-bar > span {
  display: block;
  height: 100%;
  background: var(--primary);
}
.gpu-progress .gpu-body {
  padding: 0 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* 筛选栏、列表、卡片 */
.filter-bar {
  border-color: var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.filter-bar select,
.filter-bar input[type="search"] {
  background: var(--bg-surface);
  border-color: var(--border-light);
}
.pill-tabs {
  background: var(--bg-subtle);
}
.pill-tab.active {
  box-shadow: 0 0 0 1px var(--border-light);
}
.todo-item-card {
  border-color: var(--border-light);
  border-radius: var(--radius-md);
}
.todo-item-card.is-priority {
  border-left-color: var(--primary);
}
.todo-item-card.is-done {
  background: var(--bg-subtle);
}
.assignee-select {
  background: var(--bg-subtle);
  border-color: var(--border-light);
}
.media-card {
  border-color: var(--border-light);
  border-radius: var(--radius-md);
}
.media-card:hover {
  box-shadow: none;
  border-color: var(--border-strong);
}
.shot-strip {
  background: var(--bg-subtle);
}
.shot-thumb-btn,
.product-card-cover {
  background: var(--bg-hover);
}
.shot-thumb-btn:hover img {
  transform: none;
}
.caption-snippet,
.activity-row,
.facts-table th {
  background: var(--bg-subtle);
}
.media-card-body h3 {
  font-weight: 600;
}
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-sale {
  font-size: 12px;
  color: var(--ink-secondary);
}
.product-counts {
  font-size: 12px;
  color: var(--ink-muted);
}
.video-stage {
  background: #1F1F1F;
}
.pagination-bar {
  border-color: var(--border-light);
}
.slide-drawer,
.studio-modal,
.cmdk-modal {
  border-radius: var(--radius-lg);
}
.auth-gate {
  background: var(--bg-subtle);
}

.mobile-only {
  display: none;
}

@media (max-width: 1080px) {
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .team-roster-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  [data-toggle-carousel-pub], [data-toggle-video-pub], [data-toggle-planner-pub] {
    margin-left: 0;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: 272px;
    z-index: 90;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.45);
  }
  .mobile-only {
    display: inline-flex;
  }
  .topbar {
    padding: env(safe-area-inset-top) 12px 0 12px;
    min-height: calc(56px + env(safe-area-inset-top));
    gap: 8px;
    flex-wrap: nowrap;
  }
  /* 手机顶栏：只留菜单、标题、放大镜、同步图标和成员切换 */
  .crumb-root,
  .crumb-sep,
  .search-placeholder,
  .search-trigger kbd {
    display: none;
  }
  .topbar-left {
    flex: 1;
    min-width: 0;
  }
  .breadcrumb-trail {
    min-width: 0;
    overflow: hidden;
  }
  .breadcrumb-trail strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }
  .topbar-center {
    flex: 0 0 auto;
    max-width: none;
  }
  .search-trigger {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .search-ico {
    font-size: 17px;
  }
  .topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }
  #refresh-all-btn .btn-label {
    display: none;
  }
  .member-switcher {
    padding: 2px;
  }
  .member-pill {
    padding: 4px 8px;
  }
  #sidebar-open {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  .member-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 34vw;
    flex-wrap: nowrap;
  }
  .member-pills::-webkit-scrollbar {
    display: none;
  }
  .member-pill {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 32px;
  }
  .view-container {
    padding: 14px 12px calc(36px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
  .member-label {
    display: none;
  }
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-hero h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  .focus-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .chip-row {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .chip-row .btn {
    min-height: 38px;
    font-size: 13px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi-card {
    padding: 14px 12px;
  }
  .kpi-value {
    font-size: 24px;
  }
  input, select, textarea {
    font-size: 16px !important;
  }
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 860px) {
  .view-container {
    padding: 18px 16px calc(36px + env(safe-area-inset-bottom));
  }
  .page-hero h1 span {
    display: block;
    margin-top: 2px;
  }
  .gpu-progress {
    margin-top: 20px;
  }
  /* 筛选栏：下拉框不超出卡片 */
  .filter-bar select {
    max-width: 100%;
    min-width: 0;
  }
  .filter-bar input[type="search"] {
    min-width: 0;
    width: 100%;
  }
  /* 商品档案：手机两列小图，点图看结构详情和大图 */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card .product-card-cover {
    aspect-ratio: 3 / 4;
  }
  .product-card .media-card-body {
    padding: 8px 10px 10px;
    gap: 4px;
  }
  .product-card .media-card-body h3 {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card .caption-snippet,
  .product-card .product-counts,
  .product-card .card-action-bar,
  .product-card .product-sale {
    display: none;
  }
  .product-card .chip-row {
    gap: 4px;
  }
  .product-card .spu-chip {
    font-size: 10.5px;
    padding: 2px 5px;
  }
  .product-card .status-pill {
    font-size: 10.5px;
    padding: 1px 5px;
  }
}
