/* ============================================
   Impactbook Design System
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --bg-3: #f0f0f2;
  --bg-4: #e4e4e8;
  --border: rgba(0,0,0,0.07);
  --border-md: rgba(0,0,0,0.13);
  --border-hi: rgba(0,0,0,0.18);
  --text: #111113;
  --text-2: #6b6c72;
  --text-3: #a8a9b0;
  --blue: #4f7eff;
  --blue-dim: rgba(79,126,255,0.08);
  --blue-mid: rgba(79,126,255,0.18);
  --blue-glow: rgba(79,126,255,0.22);
  --purple: #a259ff;
  --purple-dim: rgba(162,89,255,0.08);
  --green: #16a34a;
  --green-dim: rgba(22,163,74,0.08);
  --amber: #d97706;
  --amber-dim: rgba(217,119,6,0.08);
  --red: #dc2626;
  --red-dim: rgba(220,38,38,0.08);
  --ig: #e1306c;
  --li: #0077b5;
  --display: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui;
  --sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui;
  --mono: 'JetBrains Mono', monospace;
  --sidebar: 220px;
  --card-list: 200px;
  --props: 280px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
}

.dark-theme {
  --bg: #080909; --bg-2: #0f1010; --bg-3: #151617;
  --border: rgba(255,255,255,0.07); --border-md: rgba(255,255,255,0.12);
  --text: #eeecea; --text-2: #8a8b8e; --text-3: #4a4b4e;
  --green: #22c573; --green-dim: rgba(34,197,115,0.1);
}

body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.font-display { font-family: var(--display); }
.font-mono { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.1s; text-decoration: none; font-family: var(--sans); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { opacity: 0.88; box-shadow: 0 0 16px var(--blue-glow); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-md); }
.btn-ghost:hover { color: var(--text); background: var(--bg-2); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(220,38,38,0.15); }
.btn-icon { background: transparent; color: var(--text-2); border: 1px solid var(--border); width: 32px; height: 32px; padding: 0; justify-content: center; }
.btn-icon:hover { color: var(--text); background: var(--bg-2); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 100px; border: 1px solid; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-green { color: var(--green); background: var(--green-dim); border-color: rgba(22,163,74,0.2); }
.badge-green .badge-dot { background: var(--green); }
.badge-blue { color: var(--blue); background: var(--blue-dim); border-color: rgba(79,126,255,0.2); }
.badge-blue .badge-dot { background: var(--blue); }
.badge-amber { color: var(--amber); background: var(--amber-dim); border-color: rgba(217,119,6,0.2); }
.badge-amber .badge-dot { background: var(--amber); }
.badge-gray { color: var(--text-3); background: var(--bg-2); border-color: var(--border); }
.badge-red { color: var(--red); background: var(--red-dim); border-color: rgba(220,38,38,0.15); }
.badge-purple { color: var(--purple); background: var(--purple-dim); border-color: rgba(162,89,255,0.2); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border-md); border-radius: 100px; padding: 4px 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Channel dots */
.ch-dot { width: 15px; height: 15px; border-radius: 4px; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ch-ig { background: rgba(225,48,108,0.1); color: #e1306c; }
.ch-li { background: rgba(0,119,181,0.1); color: #0077b5; }
.ch-x { background: var(--bg-3); color: var(--text-3); }

/* Sidebar */
.sidebar { width: var(--sidebar); flex-shrink: 0; background: var(--bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100vh; position: fixed; left: 0; top: 0; z-index: 10; }
.sidebar-logo { padding: 18px 16px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: var(--text); }
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.nav-section-label { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius); color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.1s; text-decoration: none; position: relative; }
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: var(--blue-dim); color: var(--blue); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 14px; background: var(--blue); border-radius: 2px; }
.nav-item.active-green { background: var(--green-dim); color: var(--green); }
.nav-item.active-green::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 14px; background: var(--green); border-radius: 2px; }
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; }
.nav-badge { margin-left: auto; font-family: var(--mono); font-size: 10px; background: var(--bg-3); color: var(--text-3); border-radius: 100px; padding: 1px 7px; border: 1px solid var(--border); }
.nav-badge.on { background: var(--blue-dim); color: var(--blue); border-color: rgba(79,126,255,0.15); }
.sidebar-user { padding: 12px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 9px; cursor: pointer; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0; }
.user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.user-plan { font-size: 11px; color: var(--text-3); }

/* Topbar */
.topbar { height: 52px; flex-shrink: 0; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 16px; }

/* Stats */
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat-label { font-size: 11px; color: var(--text-3); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.stat-sub .up { color: var(--green); font-weight: 500; }

/* Generating card */
.generating-card { background: var(--bg); border: 1.5px solid rgba(79,126,255,0.25); border-radius: var(--radius-lg); padding: 16px; position: relative; overflow: hidden; }
.generating-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: scan 2s linear infinite; }
.gs-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
.gs-done { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,0.2); }
.gs-active { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(79,126,255,0.2); animation: pulse 1.2s ease infinite; }
.gs-wait { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }

/* Project card */
.project-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; cursor: pointer; transition: border-color 0.1s, box-shadow 0.1s; position: relative; overflow: hidden; text-decoration: none; color: inherit; }
.project-card:hover { border-color: var(--border-md); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.project-card.featured { border-color: rgba(79,126,255,0.3); }
.project-card.featured::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }

/* Upload/Drop zone */
.drop-zone { border: 1.5px dashed var(--border-md); border-radius: var(--radius-lg); padding: 28px 16px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--bg-2); }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--blue); background: var(--blue-dim); }

/* Toggle */
.toggle { width: 30px; height: 17px; border-radius: 100px; background: var(--bg-4); border: 1px solid var(--border); position: relative; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.toggle.on { background: var(--blue); border-color: var(--blue); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left 0.15s; }
.toggle.on::after { left: 15px; }

/* Phase/Row badges (plan review) */
.ph-trend { color: var(--blue); background: var(--blue-dim); border-color: rgba(79,126,255,0.2); }
.ph-problem { color: var(--red); background: var(--red-dim); border-color: rgba(220,38,38,0.15); }
.ph-hook { color: var(--amber); background: var(--amber-dim); border-color: rgba(217,119,6,0.2); }
.ph-solution { color: var(--green); background: var(--green-dim); border-color: rgba(22,163,74,0.2); }
.ph-diff { color: var(--purple); background: var(--purple-dim); border-color: rgba(162,89,255,0.2); }
.ph-cta { color: var(--text-2); background: var(--bg-2); border-color: var(--border-md); }
.rt-trend { color: var(--blue); background: var(--blue-dim); border-color: rgba(79,126,255,0.2); }
.rt-problem { color: var(--red); background: var(--red-dim); border-color: rgba(220,38,38,0.15); }
.rt-hook { color: var(--amber); background: var(--amber-dim); border-color: rgba(217,119,6,0.2); }
.rt-solution { color: var(--green); background: var(--green-dim); border-color: rgba(22,163,74,0.2); }
.rt-diff { color: var(--purple); background: var(--purple-dim); border-color: rgba(162,89,255,0.2); }
.rt-cta { color: var(--text-2); background: var(--bg-2); border-color: var(--border-md); }

/* Card templates (thumbnails) */
.tpl-dark { background: #0d0e10; }
.tpl-dark .thumb-tag { background: rgba(79,126,255,0.2); color: #93b4ff; font-size: 8px; font-family: var(--mono); padding: 2px 6px; border-radius: 100px; margin-bottom: 5px; display: inline-block; }
.tpl-dark .thumb-headline { font-size: 10px; font-weight: 700; color: #fff; line-height: 1.3; font-family: var(--display); }
.tpl-dark .thumb-accent { position: absolute; top: 0; right: 0; width: 40px; height: 40px; background: radial-gradient(circle, rgba(79,126,255,0.4), transparent 70%); }
.tpl-light { background: #f8f8fa; border: 1px solid var(--border); }
.tpl-light .thumb-tag { background: var(--blue-dim); color: var(--blue); font-size: 8px; font-family: var(--mono); padding: 2px 6px; border-radius: 100px; margin-bottom: 5px; display: inline-block; }
.tpl-light .thumb-headline { font-size: 10px; font-weight: 700; color: var(--text); line-height: 1.3; font-family: var(--display); }
.tpl-hook { background: linear-gradient(135deg, #1a0a2e, #0d1a40); }
.tpl-hook .thumb-tag { background: rgba(217,119,6,0.2); color: #fbbf24; font-size: 8px; font-family: var(--mono); padding: 2px 6px; border-radius: 100px; margin-bottom: 5px; display: inline-block; }
.tpl-hook .thumb-headline { font-size: 10px; font-weight: 700; color: #fff; line-height: 1.3; font-family: var(--display); }

/* Landing grid background */
.landing-grid-bg::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; z-index: 0; opacity: 0.5; }
.strip-track { display: flex; animation: marquee 32s linear infinite; width: max-content; }
.step-card { background: var(--bg-2); padding: 32px 28px; position: relative; }
.step-card::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--border); pointer-events: none; }
.mode-block { padding: 48px 40px; border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.mode-block-a { background: var(--bg); border: 1px solid rgba(79,126,255,0.2); }
.mode-block-b { background: var(--bg); border: 1px solid rgba(162,89,255,0.2); }
.mode-block::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; }
.mode-block-a::before { background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.mode-block-b::before { background: linear-gradient(90deg, transparent, var(--purple), transparent); }
.gen-table { width: 100%; border-collapse: collapse; }
.gen-table th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.gen-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.gen-table tr:last-child td { border-bottom: none; }
.gen-table tr.current td { background: var(--blue-dim); border-bottom: 1px solid rgba(79,126,255,0.15); }

/* Schedule row */
.schedule-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: var(--bg-2); }

/* Card row (plan review) */
.card-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; transition: all 0.1s; position: relative; }
.card-row:hover { border-color: var(--border-md); box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.card-row.selected { border-color: var(--blue); background: var(--blue-dim); }
.card-row.hook-row { border-color: rgba(217,119,6,0.25); background: var(--amber-dim); }
.card-row.hook-row:hover { border-color: rgba(217,119,6,0.4); }
.hook-star { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(217,119,6,0.2); padding: 2px 7px; border-radius: 100px; }

/* ─── SCHEDULE PAGE ─────────────────────────── */

/* Stats strip */
.stats-strip { flex-shrink: 0; display: flex; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip-stat { flex: 1; padding: 10px 16px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.strip-stat:last-child { border-right: none; }
.strip-val { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.strip-label { font-size: 11px; color: var(--text-2); font-weight: 500; }
.strip-sub { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 1px; }

/* Calendar area */
.calendar-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border); }
.cal-controls { flex-shrink: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav-btn { width: 28px; height: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.1s; }
.month-nav-btn:hover { background: var(--bg-2); color: var(--text); }
.month-label { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: -0.03em; min-width: 110px; }
.cal-controls-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Channel filters */
.ch-filters { display: flex; gap: 5px; }
.ch-filter { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border-md); background: var(--bg); cursor: pointer; transition: all 0.1s; color: var(--text-3); }
.ch-filter.active-ig { background: rgba(225,48,108,0.08); color: var(--ig); border-color: rgba(225,48,108,0.2); }
.ch-filter.active-li { background: rgba(0,119,181,0.08); color: var(--li); border-color: rgba(0,119,181,0.2); }
.ch-filter.active-x { background: var(--bg-2); color: var(--text-2); border-color: var(--border-md); }
.ch-filter-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* View toggle */
.view-toggle { display: flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; gap: 2px; }
.view-btn { width: 28px; height: 24px; border-radius: 6px; border: none; background: transparent; color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: all 0.1s; }
.view-btn.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Calendar grid */
.calendar-scroll { flex: 1; overflow-y: auto; padding: 0; }
.calendar-scroll::-webkit-scrollbar { width: 4px; }
.calendar-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-weekday { padding: 8px 0; text-align: center; font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.cal-cell { min-height: 110px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 7px 6px; vertical-align: top; cursor: pointer; transition: background 0.1s; position: relative; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--bg-2); }
.cal-cell.today { background: var(--blue-dim); }
.cal-cell.today .cal-date { color: var(--blue); }
.cal-cell.other-month { opacity: 0.35; }
.cal-cell.has-hook { border-top: 2px solid var(--amber); }
.cal-date { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-3); margin-bottom: 5px; display: flex; align-items: center; gap: 4px; }
.cal-today-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.cal-posts { display: flex; flex-direction: column; gap: 2px; }
.cal-post { display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; cursor: pointer; transition: opacity 0.1s; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-post:hover { opacity: 0.78; }
.cal-post.ig { background: rgba(225,48,108,0.10); color: var(--ig); }
.cal-post.li { background: rgba(0,119,181,0.10); color: var(--li); }
.cal-post.x { background: var(--bg-3); color: var(--text-2); }
.cal-post.hook { outline: 1px solid rgba(217,119,6,0.35); }
.cal-post-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.cal-post-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-family: var(--mono); font-size: 9px; color: var(--text-3); padding: 1px 4px; margin-top: 1px; }

/* Queue panel */
.queue-panel { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; }
.queue-header { flex-shrink: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.queue-title { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.date-tabs { flex-shrink: 0; display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; padding: 0 12px; gap: 2px; }
.date-tabs::-webkit-scrollbar { display: none; }
.date-tab { flex-shrink: 0; padding: 10px 10px 8px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.1s; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.date-tab:hover { background: var(--bg-2); }
.date-tab.active { border-bottom-color: var(--blue); }
.date-tab-day { font-family: var(--mono); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.date-tab-num { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: -0.03em; color: var(--text-3); line-height: 1; }
.date-tab.active .date-tab-num { color: var(--blue); }
.date-tab.active .date-tab-day { color: var(--blue); }
.date-tab.today-tab .date-tab-num { color: var(--text); }
.date-tab-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue-dim); margin-top: 2px; }
.date-tab.active .date-tab-dot { background: var(--blue); }
.queue-scroll { flex: 1; overflow-y: auto; padding: 10px 12px 40px; display: flex; flex-direction: column; gap: 6px; }
.queue-scroll::-webkit-scrollbar { width: 3px; }
.queue-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* Time group */
.time-group { display: flex; flex-direction: column; gap: 4px; }
.time-label { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.06em; padding: 4px 0 2px; }
.time-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Queue card */
.queue-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 11px; cursor: pointer; transition: all 0.12s; position: relative; }
.queue-card:hover { border-color: var(--border-md); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.queue-card.hook { border-left: 3px solid var(--amber); }
.queue-card.published { opacity: 0.6; }
.qc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.qc-channel { display: flex; align-items: center; gap: 5px; }
.qc-ch-badge { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.qc-ch-badge.ig { background: rgba(225,48,108,0.1); color: var(--ig); }
.qc-ch-badge.li { background: rgba(0,119,181,0.1); color: var(--li); }
.qc-ch-badge.x { background: var(--bg-3); color: var(--text-2); }
.qc-num { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.qc-status { flex-shrink: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.scheduled { background: var(--blue); box-shadow: 0 0 4px var(--blue-glow); }
.status-dot.published { background: var(--green); }
.status-dot.pending { background: var(--bg-4); }
.status-dot.failed { background: var(--red); }
.qc-thumb { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.qc-img { width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); position: relative; }
.qc-img-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 900; font-family: var(--display); }
.qc-title { font-size: 11px; font-weight: 600; line-height: 1.45; color: var(--text); }
.qc-copy { font-size: 10px; color: var(--text-3); line-height: 1.6; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-bottom { display: flex; align-items: center; justify-content: space-between; }
.qc-time { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.qc-actions { display: flex; gap: 3px; }
.qc-action-btn { width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-3); cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.1s; }
.qc-action-btn:hover { background: var(--bg-3); color: var(--text); }
.qc-action-btn.del:hover { background: var(--red-dim); color: var(--red); border-color: rgba(220,38,38,0.2); }
.hook-badge-sm { font-size: 9px; font-weight: 700; color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(217,119,6,0.2); padding: 1px 5px; border-radius: 100px; margin-left: auto; }
.published-tag { font-family: var(--mono); font-size: 9px; color: var(--green); background: var(--green-dim); border: 1px solid rgba(22,163,74,0.15); padding: 1px 6px; border-radius: 100px; }
.queue-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; color: var(--text-3); text-align: center; }
.queue-empty-icon { font-size: 28px; opacity: 0.4; }
.queue-empty-text { font-size: 12px; line-height: 1.6; }

/* ─── NEW PROJECT CARD (3-tab upload) ─── */
.upload-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.np-tabs { display: flex; border-bottom: 1px solid var(--border); }
.np-tab { flex: 1; padding: 11px 8px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; border-bottom: 2px solid transparent; transition: all 0.12s; background: var(--bg-2); position: relative; }
.np-tab:not(:last-child) { border-right: 1px solid var(--border); }
.np-tab:hover { background: var(--bg); }
.np-tab.active { background: var(--bg); border-bottom-color: var(--blue); }
.np-tab-icon { font-size: 16px; line-height: 1; }
.np-tab-label { font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: 0.02em; white-space: nowrap; }
.np-tab.active .np-tab-label { color: var(--blue); }
.np-panels { padding: 18px 18px 0; }
.np-panel { display: none; }
.np-panel.active { display: block; }
.np-panel-head { margin-bottom: 14px; }
.np-panel-label { font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.np-panel-title { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: -0.03em; line-height: 1.25; color: var(--text); }
.prompt-area { width: 100%; min-height: 110px; resize: none; background: var(--bg-2); border: 1.5px solid var(--border-md); border-radius: var(--radius-lg); padding: 13px 14px; font-size: 12px; line-height: 1.7; color: var(--text); font-family: var(--sans); outline: none; transition: border-color 0.12s; }
.prompt-area:focus { border-color: var(--blue); background: var(--bg); }
.prompt-area::placeholder { color: var(--text-3); }
.prompt-hint { margin-top: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.prompt-chip { font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--border-md); color: var(--text-2); cursor: pointer; transition: all 0.1s; }
.prompt-chip:hover { background: var(--blue-dim); color: var(--blue); border-color: rgba(79,126,255,0.2); }
.url-input-wrap { display: flex; flex-direction: column; gap: 8px; }
.url-field-row { display: flex; gap: 7px; }
.url-input { flex: 1; background: var(--bg-2); border: 1.5px solid var(--border-md); border-radius: var(--radius); padding: 8px 11px; font-size: 12px; color: var(--text); outline: none; transition: border-color 0.12s; font-family: var(--mono); }
.url-input:focus { border-color: var(--blue); background: var(--bg); }
.url-input::placeholder { color: var(--text-3); }
.url-preview { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; display: none; align-items: center; gap: 9px; }
.url-preview.show { display: flex; }
.url-preview-favicon { width: 16px; height: 16px; border-radius: 3px; background: var(--bg-3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.url-preview-info { min-width: 0; }
.url-preview-title { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-preview-domain { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.url-mode-note { font-size: 11px; color: var(--text-3); line-height: 1.6; background: var(--bg-2); border-radius: var(--radius); padding: 9px 11px; border-left: 2px solid var(--blue); }
.url-mode-note strong { color: var(--text-2); font-weight: 600; }
.options-block { margin-top: 14px; }
.options-label { font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.option-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.option-row:last-child { border-bottom: none; }
.option-name { font-size: 12px; font-weight: 500; }
.option-desc { font-size: 11px; color: var(--text-3); }
.np-footer { padding: 14px 18px 18px; }
.btn-upload { width: 100%; padding: 10px; font-size: 13px; font-weight: 600; background: var(--blue); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.12s; font-family: var(--sans); }
.btn-upload:hover { opacity: 0.88; box-shadow: 0 0 20px var(--blue-glow); }
.np-num-btn { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border-md); background: var(--bg-2); color: var(--text-2); cursor: pointer; transition: all 0.1s; font-family: var(--sans); }
.np-num-btn.active { background: var(--blue-dim); color: var(--blue); border-color: rgba(79,126,255,0.25); }
.np-num-btn:hover:not(.active) { background: var(--bg-3); }

/* ─── BUSINESS PLAN PAGE ─────────────────────── */

/* 3패널 레이아웃 컨테이너 */
.body { flex: 1; display: flex; overflow: hidden; }

/* 블록 목록 패널 */
.blocks-panel { width: 240px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; background: var(--bg-2); }
.blocks-header { padding: 14px 14px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.blocks-title { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--mono); }
.add-block-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-md); background: var(--bg); color: var(--text-2); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.1s; }
.add-block-btn:hover { background: var(--blue-dim); color: var(--blue); border-color: rgba(79,126,255,0.2); }
.blocks-scroll { flex: 1; overflow-y: auto; padding: 8px; }
.blocks-scroll::-webkit-scrollbar { width: 3px; }
.blocks-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

.block-item { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: var(--radius-lg); cursor: pointer; transition: all 0.1s; margin-bottom: 3px; border: 1px solid transparent; background: transparent; position: relative; }
.block-item:hover { background: var(--bg); border-color: var(--border); }
.block-item.active { background: var(--bg); border-color: var(--blue); }
.block-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 16px; background: var(--blue); border-radius: 2px; }
.block-type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.block-item-body { flex: 1; min-width: 0; }
.block-item-type { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.block-item-title { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-item-meta { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.block-status { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; }
.bs-done { background: var(--green-dim); color: var(--green); }
.bs-draft { background: var(--amber-dim); color: var(--amber); }
.bs-empty { background: var(--bg-3); color: var(--text-3); }
.block-section-label { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 11px 4px; display: flex; align-items: center; gap: 6px; }
.block-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* 블록 에디터 패널 */
.editor-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.editor-topbar { flex-shrink: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--bg); }
.block-breadcrumb { display: flex; align-items: center; gap: 6px; flex: 1; }
.bc-label { font-size: 11px; color: var(--text-3); }
.bc-sep { font-size: 11px; color: var(--bg-4); }
.bc-cur { font-size: 12px; font-weight: 700; color: var(--text); }
.block-type-badge { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 100px; border: 1px solid; }
.btb-problem { color: var(--red); background: var(--red-dim); border-color: rgba(220,38,38,0.2); }
.btb-solution { color: var(--blue); background: var(--blue-dim); border-color: rgba(79,126,255,0.2); }
.btb-market { color: var(--green); background: var(--green-dim); border-color: rgba(22,163,74,0.2); }
.btb-team { color: var(--blue); background: var(--blue-dim); border-color: rgba(79,126,255,0.2); }
.btb-traction { color: var(--amber); background: var(--amber-dim); border-color: rgba(217,119,6,0.2); }
.btb-biz { color: var(--text-2); background: var(--bg-2); border-color: var(--border-md); }

.ai-btn { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(79,126,255,0.2); cursor: pointer; transition: all 0.1s; }
.ai-btn:hover { background: rgba(79,126,255,0.14); }
.ai-btn-icon { font-size: 12px; }

.editor-scroll { flex: 1; overflow-y: auto; padding: 24px; }
.editor-scroll::-webkit-scrollbar { width: 4px; }
.editor-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }

.field { margin-bottom: 20px; }
.field-label { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.field-hint { font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: 0; text-transform: none; }
.field-input { width: 100%; background: var(--bg-2); border: 1px solid var(--border-md); border-radius: var(--radius); padding: 10px 13px; font-size: 13px; color: var(--text); font-family: var(--sans); outline: none; transition: border-color 0.12s; line-height: 1.6; }
.field-input:focus { border-color: var(--blue); background: var(--bg); }
.field-textarea { resize: vertical; min-height: 120px; }
.field-textarea-lg { min-height: 200px; }
.field-char { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-align: right; margin-top: 4px; }
.field-divider { height: 1px; background: var(--border); margin: 24px 0; }

.version-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.version-badge { font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--border-md); color: var(--text-3); cursor: pointer; }
.version-badge.active { background: var(--blue-dim); color: var(--blue); border-color: rgba(79,126,255,0.2); }
.version-label { font-size: 11px; color: var(--text-3); }

.traction-link-banner { background: var(--amber-dim); border: 1px solid rgba(217,119,6,0.18); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.traction-link-icon { font-size: 16px; }
.traction-link-text { flex: 1; font-size: 12px; color: #92400e; line-height: 1.55; }
.traction-link-text strong { font-weight: 700; }
.traction-link-btn { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 100px; background: var(--amber); color: #fff; border: none; cursor: pointer; white-space: nowrap; }

.editor-footer { flex-shrink: 0; padding: 12px 24px; border-top: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: space-between; }
.save-status { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.save-status.saved { color: var(--green); }

/* 조립 패널 */
.assemble-panel { width: 280px; flex-shrink: 0; border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.assemble-header { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.assemble-title { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--mono); }
.template-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 12px; gap: 2px; }
.template-tab { flex: 1; padding: 9px 6px 8px; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; text-align: center; transition: all 0.1s; }
.template-tab:hover { color: var(--text-2); }
.template-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.assemble-scroll { flex: 1; overflow-y: auto; padding: 14px 14px 0; }
.assemble-scroll::-webkit-scrollbar { width: 3px; }
.assemble-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
.template-info { background: var(--blue-dim); border: 1px solid rgba(79,126,255,0.15); border-radius: var(--radius-lg); padding: 10px 12px; margin-bottom: 14px; font-size: 11px; color: #2d5ccc; line-height: 1.65; }
.template-info strong { font-weight: 700; }
.assemble-slots { display: flex; flex-direction: column; gap: 6px; }
.assemble-slot { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.12s; position: relative; }
.assemble-slot:hover { border-color: var(--border-md); }
.assemble-slot.filled { border-color: rgba(79,126,255,0.25); }
.assemble-slot.empty { border-style: dashed; background: var(--bg-2); }
.slot-order { font-family: var(--mono); font-size: 10px; color: var(--text-3); min-width: 20px; font-weight: 500; }
.slot-body { flex: 1; min-width: 0; }
.slot-type { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.slot-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-empty-text { font-size: 11px; color: var(--text-3); }
.slot-check { font-size: 11px; flex-shrink: 0; }
.st-p { color: var(--red); }
.st-s { color: var(--blue); }
.st-sc { color: var(--green); }
.st-t { color: var(--blue); }
.progress-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.progress-track { flex: 1; height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 2px; transition: width 0.3s; }
.progress-label { font-family: var(--mono); font-size: 11px; color: var(--blue); }
.assemble-footer { border-top: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.export-btn { width: 100%; padding: 10px; font-size: 12px; font-weight: 700; border-radius: var(--radius); border: none; cursor: pointer; font-family: var(--sans); display: flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.12s; }
.export-btn-primary { background: var(--blue); color: #fff; }
.export-btn-primary:hover { opacity: 0.88; }
.export-btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-md); }
.export-btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.export-note { font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.55; }
.to-cardnews-btn { width: 100%; padding: 10px; font-size: 12px; font-weight: 700; border-radius: var(--radius); border: 1px solid rgba(79,126,255,0.25); background: var(--blue-dim); color: var(--blue); cursor: pointer; font-family: var(--sans); display: flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.12s; }
.to-cardnews-btn:hover { background: rgba(79,126,255,0.14); }

/* Scrollbar */
.content::-webkit-scrollbar { width: 4px; }
.content::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* Animations */
@keyframes scan { to { left: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
.f1 { animation: fadeUp 0.6s 0.00s ease both; }
.f2 { animation: fadeUp 0.6s 0.10s ease both; }
.f3 { animation: fadeUp 0.6s 0.20s ease both; }
.f4 { animation: fadeUp 0.6s 0.30s ease both; }
