.creator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.creator-left {
  padding: 28px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.creator-right {
  padding: 24px 20px;
  overflow-y: auto;
  background: var(--surface);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  margin-top: 24px;
}

.section-title:first-child { margin-top: 0; }

.field { margin-bottom: 18px; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  font-family: var(--font-mono);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(123, 97, 255, 0.3);
}

.field-badge.required {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 77, 109, 0.3);
}

.field-hint { font-size: 11px; color: var(--muted); margin-bottom: 7px; }

.input,
.textarea,
.select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Noto Sans Thai', sans-serif;
  padding: 11px 14px;
  outline: none;
  transition: border 0.15s;
}

.input:focus,
.textarea:focus,
.select:focus { border-color: var(--accent); }

.textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 80px;
}

.select { cursor: pointer; }

.pipeline-select-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pipeline-option {
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
  text-align: center;
}

.pipeline-option:hover { border-color: var(--accent); }

.pipeline-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.po-icon { font-size: 32px; margin-bottom: 8px; }
.po-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.po-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.po-agents { font-size: 10px; color: var(--accent); font-family: var(--font-mono); margin-top: 6px; }

.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.platform-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
  font-size: 12px;
}

.platform-chip:hover { border-color: var(--border2); }

.platform-chip.checked {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.platform-icon { font-size: 16px; }

.check-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border2);
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent);
}

.platform-chip.checked .check-box {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.mode-card {
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
}

.mode-card:hover { border-color: var(--border2); }

.mode-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.mode-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 8px; }
.mode-title { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.mode-desc { font-size: 10px; color: var(--muted); line-height: 1.4; }

.style-list { display: flex; flex-direction: column; gap: 8px; }

.style-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
}

.style-item:hover { border-color: var(--border2); }

.style-item.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.style-color { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.style-info { flex: 1; }
.style-name { font-size: 13px; font-weight: 600; }
.style-desc { font-size: 11px; color: var(--muted); }
.style-tag { font-size: 10px; font-family: var(--font-mono); color: var(--muted2); }

.panel-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.summary-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.summary-row { display: flex; gap: 8px; margin-bottom: 10px; }
.summary-row:last-child { margin-bottom: 0; }
.summary-key { font-size: 11px; color: var(--muted); width: 90px; flex-shrink: 0; }
.summary-val { font-size: 12px; font-weight: 500; }
.summary-topic { font-size: 11px; line-height: 1.5; }

.output-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.output-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.output-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.output-item:last-child { border-bottom: none; }
.output-item-disabled { color: var(--muted2); }

.output-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.output-dot-muted { background: var(--muted2); }
.output-dot-yellow { background: var(--yellow); }
.output-dot-pink { background: var(--accent2); }
.output-dot-green { background: var(--green); }
.output-note { font-size: 10px; }

.estimate-box { margin-bottom: 16px; }

.run-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #9d7fff);
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans Thai', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(123, 97, 255, 0.35);
  transition: all 0.2s;
  text-decoration: none;
}

.run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 97, 255, 0.5);
}

.est-time {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.inline-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.schedule-field { margin-bottom: 10px; }

.schedule-btn {
  width: 100%;
  justify-content: center;
}
