/* ===== CSS Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-primary: #0b0b1a;
  --bg-secondary: #111128;
  --bg-card: #1a1a3e;
  --bg-card-hover: #22224a;
  --bg-sidebar: #0e0e24;
  --border-color: #2a2a50;
  --text-primary: #eeecf4;
  --text-secondary: #928ca8;
  --text-muted: #6b6580;
  --accent-1: #6c63ff;
  --accent-2: #4a3aff;
  --accent-gradient: linear-gradient(135deg, #6c63ff, #9133ff);
  --accent-pink: #f72585;
  --accent-cyan: #4cc9f0;
  --accent-green: #06d6a0;
  --accent-orange: #ff9e00;
  --accent-red: #ef476f;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --sidebar-width: 240px;
  --header-height: 60px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.light-mode {
  --bg-primary: #f5f4f9;
  --bg-secondary: #edecf3;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f7fc;
  --bg-sidebar: #e8e6f0;
  --border-color: #dddae8;
  --text-primary: #1a1730;
  --text-secondary: #5e5873;
  --text-muted: #9b94ad;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
}
html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  transition: var(--transition);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: var(--accent-1); color: white; }

/* ===== Layout ===== */
.app-container { display: flex; height: 100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 100;
}
.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  cursor: pointer;
}
.sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white;
}
.sidebar-logo h1 { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.sidebar-logo h1 span { color: var(--accent-1); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-section { margin-bottom: 20px; }
.nav-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); padding: 0 10px; margin-bottom: 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 500;
  position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(108,99,255,0.3);
}
.nav-item .badge {
  margin-left: auto;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-item.active .badge { background: rgba(255,255,255,0.2); color: white; }

/* ===== Main Content ===== */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.header-left h2 { font-size: 18px; font-weight: 600; }
.header-left .subtitle { font-size: 12px; color: var(--text-muted); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  font-size: 14px;
}
.header-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.content-area {
  flex: 1; overflow-y: auto; padding: 24px;
  background: var(--bg-primary);
}

/* ===== Tab Content ===== */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; }
.card-actions { display: flex; gap: 8px; }

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-card .stat-trend {
  font-size: 11px; margin-top: 8px; display: flex; align-items: center; gap: 4px;
}
.stat-trend.up { color: var(--accent-green); }
.stat-trend.down { color: var(--accent-red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--accent-gradient); color: white; }
.btn-primary:hover { box-shadow: 0 4px 16px rgba(108,99,255,0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.btn-danger { background: var(--accent-red); color: white; }
.btn-danger:hover { background: #d6304f; }

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-xs); color: var(--text-primary);
  font-size: 13px; font-family: inherit;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border-radius: var(--radius);
  width: 90%; max-width: 520px; max-height: 80vh; overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-color);
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 16px; transition: var(--transition); }
.modal-close:hover { background: var(--bg-primary); color: var(--text-primary); }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 8px; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 14px; }

/* ===== Dashboard ===== */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }
.activity-list { list-style: none; }
.activity-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px;
}
.activity-content { flex: 1; }
.activity-text { font-size: 13px; margin-bottom: 2px; }
.activity-time { font-size: 11px; color: var(--text-muted); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.quick-action:hover { border-color: var(--accent-1); background: var(--bg-card); }
.quick-action i { font-size: 22px; color: var(--accent-1); }
.quick-action span { font-size: 12px; color: var(--text-secondary); }

/* ===== Script Studio ===== */
.script-templates {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.template-card {
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border-color);
  cursor: pointer; text-align: center; transition: var(--transition);
}
.template-card:hover { border-color: var(--accent-1); transform: translateY(-2px); }
.template-card i { font-size: 24px; margin-bottom: 6px; }
.template-card .t-name { font-size: 12px; font-weight: 600; }
.scene-list { list-style: none; }
.scene-item {
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border-color);
  margin-bottom: 8px; transition: var(--transition);
}
.scene-item:hover { border-color: var(--accent-1); }
.scene-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.scene-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.scene-title { font-weight: 600; font-size: 13px; flex: 1; }
.scene-duration { font-size: 11px; color: var(--text-muted); }
.scene-content { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.scene-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-style: italic; }

/* ===== Storyboard ===== */
.shot-list { list-style: none; }
.shot-card {
  display: flex; gap: 12px; padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border-color);
  margin-bottom: 8px; transition: var(--transition);
  cursor: grab;
}
.shot-card:hover { border-color: var(--accent-1); }
.shot-card:active { cursor: grabbing; }
.shot-number {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.shot-details { flex: 1; }
.shot-desc { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.shot-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.shot-meta span { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.shot-actions { display: flex; gap: 4px; align-items: flex-start; }
.shot-placeholder {
  width: 60px; height: 60px; border-radius: var(--radius-xs);
  background: var(--bg-card); border: 1px dashed var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; flex-shrink: 0;
}

/* ===== Asset Library ===== */
.asset-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition); font-size: 12px;
}
.filter-btn:hover { border-color: var(--accent-1); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-gradient); color: white; border-color: transparent; }
.asset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.asset-item {
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border-color);
  transition: var(--transition);
}
.asset-item:hover { border-color: var(--accent-1); }
.asset-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 8px;
}
.asset-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.asset-meta { font-size: 11px; color: var(--text-muted); }
.asset-actions { display: flex; gap: 4px; margin-top: 8px; }

/* ===== Timeline ===== */
.phase-list { list-style: none; }
.phase-item {
  margin-bottom: 16px; padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border-color);
}
.phase-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.phase-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.phase-title { font-weight: 600; font-size: 14px; flex: 1; }
.phase-progress { flex: 0 0 160px; }
.progress-bar {
  height: 6px; background: var(--bg-card);
  border-radius: 3px; overflow: hidden; margin-top: 4px;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: var(--accent-gradient);
  transition: width 0.5s ease;
}
.task-list { list-style: none; }
.task-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border-color);
}
.task-item:last-child { border-bottom: none; }
.task-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--text-muted);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.task-check:hover { border-color: var(--accent-1); }
.task-check.checked { background: var(--accent-green); border-color: var(--accent-green); }
.task-check.checked::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: white; }
.task-text { font-size: 13px; flex: 1; }
.task-text.done { text-decoration: line-through; color: var(--text-muted); }
.task-delete { color: var(--text-muted); cursor: pointer; transition: var(--transition); font-size: 12px; }
.task-delete:hover { color: var(--accent-red); }

/* ===== Subtitle ===== */
.subtitle-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .subtitle-layout { grid-template-columns: 1fr; } }
.subtitle-list { list-style: none; max-height: 400px; overflow-y: auto; }
.subtitle-item {
  display: flex; gap: 8px; padding: 8px; align-items: center;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.subtitle-item:hover { background: var(--bg-card-hover); }
.subtitle-index {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-card); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.subtitle-times { display: flex; gap: 4px; font-size: 11px; color: var(--text-muted); font-family: monospace; flex-shrink: 0; align-items:center;}
.subtitle-times input { width: 100px; }
.subtitle-text { font-size: 13px; flex: 1; }
.subtitle-del { color: var(--text-muted); cursor: pointer; font-size: 12px; }
.subtitle-del:hover { color: var(--accent-red); }
.srt-preview {
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 12px;
  font-family: 'Courier New', monospace; font-size: 12px;
  white-space: pre-wrap; max-height: 400px; overflow-y: auto;
  line-height: 1.8;
}

/* ===== Calendar ===== */
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.calendar-title { font-size: 16px; font-weight: 600; }
.calendar-nav { display: flex; gap: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-weekday {
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--text-muted); padding: 8px 0;
}
.calendar-day {
  min-height: 70px; padding: 6px; border-radius: var(--radius-xs);
  background: var(--bg-primary); border: 1px solid var(--border-color);
  font-size: 12px; transition: var(--transition); cursor: pointer;
}
.calendar-day:hover { border-color: var(--accent-1); }
.calendar-day.today { border-color: var(--accent-1); background: rgba(108,99,255,0.08); }
.calendar-day.other-month { opacity: 0.3; }
.calendar-day .day-num { font-weight: 600; margin-bottom: 4px; }
.calendar-event {
  font-size: 10px; padding: 2px 4px; border-radius: 3px;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer;
}
.calendar-event.tiktok { background: rgba(238, 42, 67, 0.2); color: #ee2a43; }
.calendar-event.bilibili { background: rgba(0, 161, 214, 0.2); color: #00a1d6; }
.calendar-event.xiaohongshu { background: rgba(254, 44, 85, 0.2); color: #fe2c55; }
.calendar-event.weixin { background: rgba(7, 193, 96, 0.2); color: #07c160; }
.calendar-event.youtube { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.calendar-event.other { background: rgba(108, 99, 255, 0.2); color: var(--accent-1); }

/* ===== Analytics ===== */
.chart-container { margin-bottom: 20px; }
.chart-bar-group { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 0 10px; }
.chart-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.chart-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  min-height: 4px; transition: height 0.6s ease;
  background: var(--accent-gradient);
}
.chart-bar-label { font-size: 10px; color: var(--text-muted); }
.chart-bar-value { font-size: 10px; color: var(--text-secondary); font-weight: 600; }
.ranking-list { list-style: none; }
.ranking-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-bottom: 1px solid var(--border-color);
}
.ranking-item:last-child { border-bottom: none; }
.ranking-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.ranking-num.top { background: var(--accent-red); color: white; }
.ranking-num.top-2 { background: var(--accent-orange); color: white; }
.ranking-num.top-3 { background: var(--accent-cyan); color: white; }
.ranking-num.normal { background: var(--bg-card); color: var(--text-muted); }
.ranking-info { flex: 1; }
.ranking-title { font-size: 13px; font-weight: 500; }
.ranking-stats { font-size: 11px; color: var(--text-muted); }

/* ===== Page Header ===== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.page-header h3 { font-size: 20px; font-weight: 600; }
.page-subtitle { font-size: 13px; color: var(--text-muted); }

/* ===== Toggle Switch ===== */
.toggle-switch {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--border-color); cursor: pointer;
  transition: var(--transition); position: relative;
  border: none; padding: 0; flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; transition: var(--transition);
}
.toggle-switch.on { background: var(--accent-1); }
.toggle-switch.on::after { left: 20px; }

/* ===== Splash / Landing ===== */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.splash-screen.hidden { opacity: 0; pointer-events: none; }
.splash-screen .splash-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: white; margin-bottom: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.splash-screen h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.splash-screen p { font-size: 14px; color: var(--text-secondary); }
.splash-screen .splash-loader {
  margin-top: 24px; width: 120px; height: 3px;
  background: var(--border-color); border-radius: 2px; overflow: hidden;
}
.splash-screen .splash-loader::after {
  content: ''; display: block; width: 40%; height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px; animation: loading 1.2s ease-in-out infinite;
}
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -280px; top: 0; bottom: 0; z-index: 200; transition: left 0.3s ease; }
  .sidebar.open { left: 0; }
  .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }
  .mobile-overlay.open { display: block; }
  .header { padding: 0 12px; }
  .content-area { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .script-templates { grid-template-columns: repeat(2, 1fr); }
  .header-left .subtitle { display: none; }
}
