/* ─────────────────────────────────────────────────────────────
   PENJELAJAH ANGKASA EDITORIAL KANBAN — DESIGN SYSTEM
   Cosmic Editorial Theme • Swiss Flat Aesthetics • High-Contrast
   ───────────────────────────────────────────────────────────── */

:root {
  /* Light Mode (Stellar Daylight) */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0f172a;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;

  --ink-primary: #0f172a;
  --ink-primary-contrast: #ffffff;
  
  --col-ideas: #475569;
  --col-ai: #0284c7;
  --col-review: #d97706;
  --col-ready: #059669;
  --col-published: #047857;

  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;
  --accent-amber: #d97706;
  --accent-emerald: #059669;

  --danger-ink: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;

  /* Fonts */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Plus Jakarta Sans', var(--font-ui);
  --font-mono: 'JetBrains Mono', monospace;
  --font-editorial: 'Newsreader', Georgia, serif;
}

[data-theme="dark"] {
  /* Dark Mode (Deep Cosmic Void) */
  --bg-app: #07090e;
  --bg-surface: #0e121b;
  --bg-subtle: #141a27;
  --bg-hover: #1c2436;

  --border-subtle: #1e2638;
  --border-strong: #2c364f;
  --border-focus: #38bdf8;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --ink-primary: #38bdf8;
  --ink-primary-contrast: #07090e;

  --col-ideas: #94a3b8;
  --col-ai: #38bdf8;
  --col-review: #fbbf24;
  --col-ready: #34d399;
  --col-published: #4ade80;

  --accent-cyan: #38bdf8;
  --accent-purple: #c084fc;
  --accent-amber: #fbbf24;
  --accent-emerald: #34d399;

  --danger-ink: #f87171;
  --danger-bg: #450a0a;
  --danger-border: #7f1d1d;
}

/* HARD NO-SHADOW CONSTRAINT ACROSS ENTIRE APP */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  text-shadow: none !important;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────
   HEADER NAVIGATION
   ───────────────────────────────────────────────────────────── */
.app-header {
  height: 60px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1025px) {
  .header-top-bar {
    display: contents;
  }
  .header-left { order: 1; }
  .header-center { order: 2; }
  .header-top-right { order: 3; }
  .header-actions-bar { order: 4; }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--text-main);
  color: var(--bg-app);
  padding: 2px 6px;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}
.brand-domain:hover {
  color: var(--accent-cyan);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--col-ideas);
}
.status-indicator.online {
  background-color: #10b981;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 440px;
  margin: 0 16px;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-box svg {
  position: absolute;
  left: 10px;
  color: var(--text-faint);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}
.search-box input:focus {
  border-color: var(--border-focus);
}

.filter-select {
  height: 32px;
  padding: 0 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  max-width: 160px;
}

/* BUTTONS */
.btn {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}
.btn-micro {
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
}
.btn-micro:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.btn-primary {
  background: var(--ink-primary);
  color: var(--ink-primary-contrast);
  border-color: var(--ink-primary);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border-color: var(--danger-border);
}
.btn-danger:hover {
  opacity: 0.9;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: 32px;
  padding: 0;
}
.btn-chat-trigger {
  position: relative;
}
.chat-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}
.sparkle {
  color: #eab308;
}

/* ─────────────────────────────────────────────────────────────
   METRICS BAR
   ───────────────────────────────────────────────────────────── */
.metrics-bar {
  height: 40px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  overflow-x: auto;
}
.metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.metric-live {
  color: var(--col-published);
}
.metric-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-subtle);
}

/* ─────────────────────────────────────────────────────────────
   MOBILE COLUMN SWITCHER
   ───────────────────────────────────────────────────────────── */
.mobile-col-nav {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px;
  gap: 6px;
  overflow-x: auto;
}
.mobile-col-tab {
  flex: 1;
  min-width: 90px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.mobile-col-tab.active {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-strong);
}
.tab-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--border-strong);
  color: var(--text-main);
  padding: 1px 5px;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .app-header {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }
  .header-top-bar {
    width: 100%;
    justify-content: space-between;
  }
  .header-center {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .header-actions-bar {
    width: 100%;
    overflow-x: auto;
  }
  .mobile-col-nav {
    display: flex;
  }
  .kanban-board {
    display: block !important;
  }
  .kanban-col {
    display: none;
    width: 100% !important;
  }
  .kanban-col.mobile-active {
    display: flex !important;
  }
  .btn-text-full {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   KANBAN BOARD GRID
   ───────────────────────────────────────────────────────────── */
.kanban-wrapper {
  flex: 1;
  padding: 20px;
  overflow-x: auto;
  overflow-y: hidden;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(290px, 1fr));
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - 160px);
}

.kanban-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
  min-height: 400px;
}

.col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border-radius: 6px 6px 0 0;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-slate { background-color: var(--col-ideas); }
.dot-cyan { background-color: var(--col-ai); }
.dot-blue { background-color: var(--col-ai); }
.dot-amber { background-color: var(--col-review); }
.dot-emerald { background-color: var(--col-ready); }
.dot-green { background-color: var(--col-published); }

.col-title {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.col-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.col-add-btn, .col-refresh-btn {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.col-add-btn:hover, .col-refresh-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.col-body {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-body.drag-over {
  background: var(--bg-subtle);
  border: 2px dashed var(--border-strong);
}

/* ─────────────────────────────────────────────────────────────
   KANBAN CARDS
   ───────────────────────────────────────────────────────────── */
.kanban-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
  position: relative;
}
.kanban-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.kanban-card.dragging {
  opacity: 0.5;
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.card-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.card-title {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-faint);
}

.card-date {
  font-family: var(--font-mono);
}

.card-badge-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
}
.badge-wp-live {
  background: #059669;
  color: #ffffff;
}
.badge-draft-ai {
  background: var(--accent-cyan);
  color: #07090e;
}
.badge-idea {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ─────────────────────────────────────────────────────────────
   MODALS
   ───────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-sm { max-width: 440px; }
.modal-md { max-width: 600px; }

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-title-wrap h3 {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* FORMS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.label-with-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.char-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.form-control, input[type="text"], textarea, select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}
.form-control:focus, input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
}
.input-title {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
}
.form-hint {
  font-size: 11px;
  color: var(--text-faint);
}
.badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.badge-ai {
  background: var(--accent-cyan);
  color: #07090e;
}
.badge-neutral {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ─────────────────────────────────────────────────────────────
   FULL DRAWER EDITOR
   ───────────────────────────────────────────────────────────── */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 60;
  justify-content: flex-end;
}
.drawer-backdrop.open {
  display: flex;
}

.drawer-panel {
  width: 95vw;
  max-width: 1200px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.2s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}
.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.drawer-status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--border-strong);
  color: var(--text-main);
}
.drawer-meta-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.drawer-wp-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.drawer-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.editor-pane-left {
  flex: 2;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.editor-pane-right {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  padding: 20px;
  overflow-y: auto;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 860px) {
  .drawer-panel { width: 100vw; }
  .drawer-body { flex-direction: column; overflow-y: auto; }
  .editor-pane-left { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .editor-pane-right { max-width: none; }
}

.slug-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
.slug-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  padding-left: 8px;
}
.slug-input-wrap input {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* CONTENT TOOLBAR */
.content-editor-section {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-surface);
}
.content-toolbar {
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-muted);
  cursor: pointer;
}
.tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.word-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

/* EDITORIAL ARTICLE PREVIEW */
.preview-area-wrap {
  padding: 24px;
  background: var(--bg-surface);
  min-height: 400px;
}
.editorial-preview {
  max-width: 680px;
  margin: 0 auto;
}
.preview-cat-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.preview-headline {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-main);
}
.preview-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.preview-feat-img-wrap {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}
.preview-feat-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body-editable {
  font-family: var(--font-editorial);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main);
  outline: none;
  min-height: 250px;
}
.article-body-editable h2 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.article-body-editable h3 {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.article-body-editable p {
  margin-bottom: 14px;
}
.article-body-editable blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 14px;
  font-style: italic;
  color: var(--text-muted);
  margin: 16px 0;
}

.code-editor {
  width: 100%;
  min-height: 400px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 16px;
  background: var(--bg-app);
  color: var(--text-main);
  border: none;
  resize: vertical;
}

/* SIDEBAR BLOCKS */
.sidebar-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 14px;
}
.sidebar-title {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}
.featured-dropzone {
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-subtle);
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-dropzone img {
  width: 100%;
  height: auto;
  display: block;
}
.featured-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 11px;
}
.checklist-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.actions-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   DROPDOWN MENUS
   ───────────────────────────────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  min-width: 260px;
  z-index: 50;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dropdown-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 8px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}
.dropdown-item {
  padding: 8px 10px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s ease;
}
.dropdown-item:hover {
  background: var(--bg-hover);
}
.dropdown-item strong {
  font-size: 12px;
  color: var(--text-main);
}
.dropdown-item span {
  font-size: 10px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   ASTRO AI CONSOLE DRAWER
   ───────────────────────────────────────────────────────────── */
.chat-drawer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-title-wrap h4 {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
}
.chat-sub {
  font-size: 10px;
  color: var(--text-faint);
}
.btn-icon-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}
.chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  display: flex;
  flex-direction: column;
}
.msg-bubble {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.chat-msg.system .msg-bubble {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.chat-msg.user .msg-bubble {
  background: var(--ink-primary);
  color: var(--ink-primary-contrast);
  align-self: flex-end;
}
.chat-quick-prompts {
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.quick-btn {
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}
.quick-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}
.chat-footer {
  padding: 8px 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 6px;
}
.chat-footer input {
  flex: 1;
  height: 30px;
}

/* ─────────────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ───────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  animation: toastFade 0.2s ease;
}
.toast.success { border-left: 3px solid #10b981; }
.toast.info { border-left: 3px solid var(--accent-cyan); }
.toast.warning { border-left: 3px solid #f59e0b; }
@keyframes toastFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
