/* ============================================================
   style.css — 温暖主题全局样式
   设计方向: Warm Scholarly Sanctuary（暖色书斋）
   ============================================================ */

/* ---- Font Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@600;700&display=swap');

:root {
  /* Warm Color Palette */
  --bg: #FFF8F0;
  --bg-alt: #F5EDE3;
  --card: #FFFFFF;
  --primary: #D4875E;
  --primary-hover: #BF6F45;
  --primary-light: #F5E0D4;
  --primary-glow: rgba(212, 135, 94, 0.25);
  --accent: #8FA88A;
  --accent-light: #E8F0E6;
  --highlight: #E8B87A;
  --highlight-light: #F5E8D0;

  --text: #3D2C2E;
  --text-secondary: #6B5557;
  --text-muted: #9A8082;

  --border: #E8DDD4;
  --border-light: #F0E8E0;
  --shadow: rgba(150, 100, 70, 0.08);
  --shadow-lg: rgba(150, 100, 70, 0.16);
  --shadow-button: rgba(212, 135, 94, 0.25);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'Noto Sans SC', serif;

  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Container ---- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Warm Background Pattern ---- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 135, 94, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(143, 168, 138, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(232, 184, 122, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--shadow), 0 1px 4px var(--shadow);
  padding: 44px 40px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2px);
  animation: cardEntrance 0.6s ease-out;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Decorative Top Bar ---- */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--highlight), var(--accent));
  border-radius: 0 0 3px 3px;
}

/* ---- Typography ---- */
.study-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 2px;
}

.study-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  color: var(--primary-hover);
}

/* ---- Welcome Embellishment ---- */
.welcome-ornament {
  text-align: center;
  margin-bottom: 8px;
  font-size: 2.5rem;
  opacity: 0.6;
  letter-spacing: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 16px var(--shadow-button);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px var(--shadow-button);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent), #7A9A75);
  color: #fff;
  box-shadow: 0 4px 16px rgba(143, 168, 138, 0.3);
}

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Progress Bar ---- */
.progress-container { margin-bottom: 28px; }

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  border-radius: 3px;
  transition: width var(--transition-smooth);
}

.progress-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   Likert Scale — 水平视觉量表
   ============================================================ */
.likert-section {
  margin: 24px 0 20px;
}

.likert-scale {
  position: relative;
  padding: 16px 4px 0;
}

/* The connecting line */
.likert-track {
  position: absolute;
  top: 32px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
  overflow: hidden;
}

.likert-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  border-radius: 2px;
  transition: width var(--transition-smooth);
  width: 0%;
}

/* Options row */
.likert-options {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  max-width: 20%;
  -webkit-tap-highlight-color: transparent;
}

/* The dot */
.likert-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  flex-shrink: 0;
}

.likert-dot::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: var(--primary-glow);
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition);
}

.likert-dot:hover {
  border-color: var(--primary-light);
  transform: scale(1.1);
}

.likert-dot.filled {
  border-color: var(--primary);
  background: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.likert-dot.filled::after {
  opacity: 1;
  transform: scale(1);
}

.likert-dot.filled ~ .likert-label {
  color: var(--primary-hover);
  font-weight: 500;
}

/* Labels */
.likert-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  transition: color var(--transition-smooth);
  max-width: 100%;
  word-break: keep-all;
}

.likert-label.active {
  color: var(--primary-hover);
  font-weight: 500;
}

/* ---- Question Text ---- */
.question-number {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text);
}

/* ---- Navigation ---- */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.nav-buttons .btn { min-width: 130px; }

/* ---- Error Message ---- */
.error-message {
  color: #C0392B;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(192, 57, 43, 0.06);
  border-radius: var(--radius-xs);
  display: none;
}

/* ---- Complete Area ---- */
.complete-area {
  display: none;
  text-align: center;
  margin-top: 24px;
  animation: cardEntrance 0.5s ease-out;
}

.complete-area p {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 500;
}

/* ---- Research Info (Index) ---- */
.research-info {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.research-info p { margin-bottom: 10px; }

.privacy-note {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.participant-id-display {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 16px;
}

/* ---- Game Page ---- */
.game-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #F5EDE3 0%, #EDE0D0 50%, #E8D5C0 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 20px;
}

.game-container.has-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.game-card {
  max-width: 680px;
  width: 100%;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(150, 100, 70, 0.15);
  padding: 36px 32px;
  position: relative;
  animation: cardEntrance 0.6s ease-out;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--highlight), var(--accent));
  border-radius: 0 0 3px 3px;
}

.game-scene-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 6px;
  font-weight: 500;
}

.game-scene-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 14px;
}

.game-question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 20px;
  line-height: 1.5;
}

.game-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  background: rgba(212, 135, 94, 0.04);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-align: left;
  color: var(--text);
  transition: all var(--transition);
  line-height: 1.5;
}

.game-option-btn:hover {
  background: rgba(212, 135, 94, 0.08);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.game-option-btn .option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all var(--transition);
}

.game-option-btn:hover .option-label {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ---- Result Page ---- */
.result-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.completion-header {
  text-align: center;
  margin-bottom: 36px;
  animation: cardEntrance 0.6s ease-out;
}

.completion-header h1 {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.completion-header p {
  color: var(--text-secondary);
}

.result-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  animation: cardEntrance 0.6s ease-out;
}

.result-section:nth-child(2) { animation-delay: 0.1s; }
.result-section:nth-child(3) { animation-delay: 0.2s; }

.result-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-hover);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.dimension-table {
  width: 100%;
  border-collapse: collapse;
}

.dimension-row {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-smooth);
}

.dimension-row:hover {
  background: rgba(212, 135, 94, 0.03);
}

.dimension-row:last-child { border-bottom: none; }

.dim-label {
  padding: 12px 8px 12px 0;
  font-weight: 500;
  width: 32%;
  color: var(--text);
}

.dim-data {
  padding: 12px 8px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dim-data:last-child { text-align: right; }

.dim-header {
  padding: 10px 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dim-header:first-child { text-align: left; }
.dim-header:last-child { text-align: right; }

.overall-row {
  background: var(--primary-light) !important;
  font-weight: 600;
}

.overall-row .dim-label {
  color: var(--primary-hover);
}

.dim-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
  display: block;
  font-weight: 400;
}

/* ---- Warning ---- */
.warning-message {
  text-align: center;
  padding: 60px 20px;
  animation: cardEntrance 0.5s ease-out;
}

.warning-message h2 {
  color: #C0392B;
  margin-bottom: 12px;
}

.warning-message p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .container { padding: 20px 12px; }

  .card {
    padding: 32px 20px;
    border-radius: var(--radius-sm);
  }

  .card::before { left: 20px; right: 20px; }

  .study-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .game-card { padding: 28px 20px; }
  .game-card::before { left: 20px; right: 20px; }

  .game-container { padding: 12px; align-items: flex-start; padding-top: 32px; }

  .game-scene-text { font-size: 0.9rem; }
  .game-question-text { font-size: 1rem; }
  .game-option-btn { padding: 12px 16px; font-size: 0.9rem; }

  .result-section { padding: 24px 18px; }

  .nav-buttons { flex-direction: column; }
  .nav-buttons .btn { width: 100%; }

  /* Likert mobile */
  .likert-dot {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }

  .likert-label {
    font-size: 0.65rem;
  }

  .likert-track { top: 28px; }

  .dim-label { font-size: 0.85rem; }
  .dim-data { font-size: 0.8rem; }
}

/* ============================================================
   Editor Styles — Scholar's Workbench
   ============================================================ */

.editor-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  overflow: hidden;
}

.editor-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 8px var(--shadow);
}

.editor-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.editor-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 0;
}

.editor-badge {
  font-size: 0.7rem;
  background: var(--highlight-light);
  color: var(--text-secondary);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
  flex-shrink: 0;
}

.editor-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-danger-outline {
  background: transparent;
  color: #C0392B;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.btn-danger-outline:hover {
  background: rgba(192, 57, 43, 0.06);
  border-color: #C0392B;
}

/* Tabs */
.editor-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.editor-tab {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  position: relative;
}

.editor-tab:hover {
  background: rgba(212, 135, 94, 0.06);
  color: var(--text);
}

.editor-tab.active {
  background: var(--card);
  color: var(--primary-hover);
  box-shadow: 0 -2px 8px var(--shadow);
}

.editor-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

.tab-count {
  display: inline-block;
  background: var(--border-light);
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 6px;
  color: var(--text-muted);
}

.editor-tab.active .tab-count {
  background: var(--primary-light);
  color: var(--primary-hover);
}

/* Main split panel */
.editor-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left list panel */
.editor-list-panel {
  width: 300px;
  min-width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.list-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.list-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.list-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.list-item {
  padding: 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  border-left: 3px solid transparent;
}

.list-item:hover {
  background: rgba(212, 135, 94, 0.04);
}

.list-item-active {
  background: var(--primary-light) !important;
  border-left-color: var(--primary);
}

.list-item-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 2px;
}

.list-item-label {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.list-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 20px;
}

/* Right form panel */
.editor-form-panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--card);
}

.editor-form {
  max-width: 680px;
  animation: cardEntrance 0.3s ease-out;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 6px;
  margin: 24px 0 16px;
  border-bottom: 2px solid var(--primary-light);
}

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

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.form-row-2col > .form-group {
  flex: 1;
}

.form-row-3col > .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group-id {
  flex: 0 0 160px;
}

.form-group-type {
  flex: 1;
}

.form-group-check {
  flex: 1;
}

.form-group-order {
  flex: 0 0 100px;
}

.form-group-url {
  flex: 2;
}

.form-group-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text);
}

.form-group-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--card);
}

.form-input[readonly] {
  background: var(--border-light);
  color: var(--text-muted);
  cursor: default;
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  outline: none;
  resize: vertical;
  line-height: 1.6;
}

.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--card);
}

/* Options sub-form */
.options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.options-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  transition: background var(--transition-smooth);
}

.option-item:hover {
  background: var(--bg-alt);
}

.option-editing {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

.option-preview {
  font-size: 0.85rem;
  color: var(--text);
  font-family: monospace;
}

.option-actions {
  display: flex;
  gap: 4px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.btn-icon:hover {
  background: var(--border-light);
  color: var(--text);
}

.btn-icon-danger:hover {
  background: rgba(192, 57, 43, 0.1);
  color: #C0392B;
}

.option-editor {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 16px;
  margin-bottom: 12px;
}

.option-editor-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.option-editor label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-sm {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-smooth);
  margin-top: 3px;
}

.input-sm:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.option-editor-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* Empty state */
.editor-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}

.editor-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.editor-empty p {
  font-size: 0.95rem;
}

/* Toast */
.editor-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 1000;
  pointer-events: none;
}

.editor-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive editor */
@media (max-width: 768px) {
  .editor-main {
    flex-direction: column;
  }

  .editor-list-panel {
    width: 100%;
    min-width: 0;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .editor-form-panel {
    padding: 16px;
  }

  .editor-header-inner {
    flex-wrap: wrap;
  }

  .editor-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
  }
}
