/* =========================================
   Script Prompt Builder — Styles
   ========================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-deep: #0a0e1a;
  --bg-primary: #0f1423;
  --bg-secondary: #151b2e;
  --bg-card: #1a2138;
  --bg-card-hover: #1f2847;
  --bg-input: #121830;
  --bg-modal: #141a2d;

  --border: #1e2744;
  --border-hover: #2a3558;
  --border-active: #6c5ce7;

  --text-primary: #e8ecf4;
  --text-secondary: #8892a8;
  --text-muted: #5a6478;
  --text-accent: #a78bfa;

  --accent: #7c6cf0;
  --accent-hover: #6c5ce7;
  --accent-glow: rgba(124, 108, 240, 0.15);
  --accent-soft: rgba(124, 108, 240, 0.08);

  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.1);
  --green-border: rgba(52, 211, 153, 0.25);
  
  --yellow: #fbbf24;
  --yellow-bg: rgba(251, 191, 36, 0.1);
  --yellow-border: rgba(251, 191, 36, 0.25);

  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.08);

  --orange: #fb923c;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --header-h: 56px;
  --input-panel-w: 340px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ---- Header ---- */
#app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(15, 20, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

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

.logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--accent));
}

.header-left h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--text-accent);
  border: 1px solid rgba(124, 108, 240, 0.2);
  border-radius: 4px;
}

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

.header-stat {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ---- Main Layout ---- */
#app-main {
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
}

/* ---- Input Panel (Left) ---- */
#input-panel {
  width: var(--input-panel-w);
  min-width: var(--input-panel-w);
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.panel-header h2 {
  font-size: 15px;
  font-weight: 600;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group.flex-grow {
  flex: 1;
  min-height: 0;
}

/* Estimate Card */
.estimate-card {
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.08), rgba(52, 211, 153, 0.06));
  border: 1px solid rgba(124, 108, 240, 0.2);
  border-radius: var(--radius);
  padding: 14px;
}

.estimate-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.estimate-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.estimate-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.estimate-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}


.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"], textarea, select {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  resize: none;
  flex: 1;
  min-height: 120px;
  line-height: 1.6;
}

.select-wrapper select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238892a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-primary {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b4cd4);
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 108, 240, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.input-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 108, 240, 0.1);
}

/* ---- Workflow Panel (Right) ---- */
#workflow-panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

#sections-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; max-width: 360px; margin: 0 auto; }

/* ---- Section Card ---- */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}
.section-card:hover {
  border-color: var(--border-hover);
}
.section-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.section-card.completed {
  border-color: var(--green-border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.section-header:hover {
  background: var(--bg-card-hover);
}

.section-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.section-card.completed .section-number {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green);
}

.section-card.completed .section-number::after {
  content: '✓';
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.section-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.status-pending {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.status-prompted {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
}

.status-done {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.btn-sm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-sm:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn-sm.btn-accent {
  background: var(--accent-soft);
  color: var(--text-accent);
  border-color: rgba(124, 108, 240, 0.2);
}
.btn-sm.btn-accent:hover {
  background: var(--accent);
  color: #fff;
}
.btn-sm.btn-green {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}
.btn-sm.btn-green:hover {
  background: rgba(52, 211, 153, 0.2);
}

/* Section body (expanded) */
.section-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}
.section-card.expanded .section-body {
  display: block;
}

.section-result {
  margin-top: 12px;
}

.section-result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-result-text {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

.section-result-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.word-ok { color: var(--green); }
.word-warn { color: var(--yellow); }
.word-over { color: var(--red); }

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.modal-large {
  max-width: 820px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
}
.modal-actions {
  display: flex;
  gap: 8px;
}

.btn-copy {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(124, 108, 240, 0.3);
}

.btn-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-close:hover {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.prompt-section {
  margin-bottom: 16px;
}

.prompt-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-accent);
  margin-bottom: 6px;
  padding: 4px 8px;
  background: var(--accent-soft);
  border-radius: 4px;
  display: inline-block;
}

.prompt-text {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px;
  overflow-y: auto;
}

.prompt-checklist {
  color: var(--green);
  background: rgba(52, 211, 153, 0.04);
  border-color: var(--green-border);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.result-textarea {
  width: 100%;
  min-height: 250px;
  resize: vertical;
  font-family: var(--font-sans);
}

.result-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--green-border);
  color: var(--green);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Progress Bar ---- */
.progress-bar {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-count {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-accent);
}

.progress-track {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Page Tabs ---- */
.page-tabs {
  display: flex;
  gap: 2px;
  margin-left: 16px;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}
.page-tab {
  padding: 5px 14px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.page-tab:hover { color: var(--text-secondary); }
.page-tab.active {
  background: var(--accent-soft);
  color: var(--text-accent);
}

/* Page Content Visibility */
.page-content { display: none; width: 100%; height: 100%; }
.page-content.active { display: flex; }
#page-script { display: none; }
#page-script.active { display: flex; }
#page-tracker { flex-direction: column; overflow: hidden; }

/* ---- Tracker Table ---- */
.tracker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  flex-shrink: 0;
}
.tracker-toolbar-left { display: flex; gap: 16px; align-items: center; }
.tracker-toolbar-right { display: flex; gap: 8px; align-items: center; }
.tracker-stats { display: flex; gap: 14px; }
.tracker-stat {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary);
}
.tracker-stat-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.tracker-stat-num.green { color: var(--green); }
.tracker-stat-num.gold { color: var(--yellow); }
.tracker-stat-num.purple { color: var(--text-accent); }

.tracker-wrap { flex: 1; overflow: auto; }
.tracker-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tracker-table thead { position: sticky; top: 0; z-index: 10; }
.tracker-table th {
  padding: 10px 8px;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent);
  color: var(--text-accent);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.ck-col { width: 60px; }

.tracker-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: center;
}
.tracker-table tbody tr { transition: background 0.15s; }
.tracker-table tbody tr:hover { background: rgba(124, 108, 240, 0.04); }
.tracker-table tr.completed { opacity: 0.55; }

.tracker-table .stt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  width: 40px;
}

/* Editable cells */
.cell-edit {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
  outline: none;
  transition: all 0.15s;
}
.cell-edit:hover {
  border-color: var(--border);
  background: var(--bg-input);
}
.cell-edit:focus {
  border-color: var(--accent);
  background: var(--bg-input);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Checkbox cells */
.ck-cell { display: flex; align-items: center; justify-content: center; }
.ck-cell input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  flex-shrink: 0;
}
.ck-cell input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.ck-cell input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.ck-cell input[type="checkbox"]:hover { border-color: var(--accent); }

/* Delete button */
.del-btn {
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 4px; border-radius: 4px;
  transition: all 0.15s; opacity: 0;
}
.tracker-table tbody tr:hover .del-btn { opacity: 1; }
.del-btn:hover { color: var(--red); background: var(--red-bg); }

/* Status dot */
.stt-wrap { display: flex; align-items: center; gap: 5px; justify-content: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.none { background: var(--text-muted); opacity: 0.3; }
.dot.partial { background: var(--yellow); }
.dot.full { background: var(--green); }

/* Sub-tabs (sheet tabs inside tracker) */
.sub-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 2px;
}
.sub-tab {
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sub-tab:hover { color: var(--text-secondary); background: var(--bg-secondary); }
.sub-tab.active {
  background: var(--accent-soft);
  color: var(--text-accent);
  border: 1px solid rgba(124, 108, 240, 0.2);
}

/* Textarea cell for long text */
.cell-textarea {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 32px;
  max-height: 120px;
  resize: vertical;
  text-align: left;
  outline: none;
  transition: all 0.15s;
  line-height: 1.5;
}
.cell-textarea:hover {
  border-color: var(--border);
  background: var(--bg-input);
}
.cell-textarea:focus {
  border-color: var(--accent);
  background: var(--bg-input);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Select cell */
.cell-select {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: all 0.15s;
  appearance: none;
}
.cell-select:hover { border-color: var(--border); background: var(--bg-input); }
.cell-select:focus { border-color: var(--accent); background: var(--bg-input); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  #app-main {
    flex-direction: column;
  }
  #input-panel {
    width: 100%;
    min-width: 100%;
    max-height: 40vh;
  }
  #workflow-panel {
    padding: 16px;
  }
}
