:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --booth: #fc4d50;
  --booth-hover: #e03a3d;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 18px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-header h1 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 999px;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.btn-booth-header {
  display: inline-block;
  background: var(--booth);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 10px;
}

.btn-booth-header:hover { background: var(--booth-hover); }

.demo-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

.upload-icon { font-size: 2.2rem; margin-bottom: 6px; }
.drop-title { margin: 0; font-weight: 700; font-size: 1.02rem; }
.drop-sub { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }
.hidden { display: none !important; }

.file-list-section {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

.section-head h2 { margin: 0; font-size: 0.92rem; }

.btn-link {
  border: none;
  background: none;
  color: #dc2626;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.file-meta { color: var(--muted); font-size: 0.8rem; }

.locked-feature {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.setting-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fcfcfd;
}

.setting-box h3 { margin: 0 0 12px; font-size: 0.96rem; }

.radio-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.radio-item span { display: flex; flex-direction: column; font-size: 0.88rem; }
.radio-item small { color: var(--muted); font-size: 0.78rem; }

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-top: 8px;
  cursor: pointer;
}

.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.btn-preset {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-preset:hover { border-color: var(--primary); color: var(--primary); }

.margin-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.margin-inputs label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.margin-inputs input {
  width: 68px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: right;
}

.small-note { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); }

.action-area { margin-top: 20px; text-align: center; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

.status-text {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  min-height: 1.4em;
}

.cta-card {
  margin-top: 22px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.cta-card h2 { margin: 0 0 8px; font-size: 1.12rem; }
.cta-card p { margin: 0 0 16px; font-size: 0.9rem; color: #cbd5e1; }

.btn-booth-cta {
  background: var(--booth);
  color: #fff;
}
.btn-booth-cta:hover { background: var(--booth-hover); }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 24px 0;
}
