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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
}

header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 32px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  color: #1d1d1f;
  flex-shrink: 0;
}
header h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.btn-settings {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.btn-settings:hover { background: #f1f3f4; color: #202124; }

/* ── 섹션 탭 버튼 그리드 ────────────────────────── */
#section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  align-items: center;
}

.tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.tab:hover { border-color: #bbb; color: #1d1d1f; }

/* 고정 탭: All / Today / Read Later */
.tab-fixed {
  background: #f0f4ff;
  border-color: #c5d0f5;
  color: #3a5bd4;
}
.tab-fixed:hover { background: #e4ebff; border-color: #a0b4ed; }
.tab-fixed.active { background: #3a5bd4; color: #fff; border-color: #3a5bd4; }

/* 주제별 섹션 탭 */
.tab-section { cursor: grab; }
.tab-section:active { cursor: grabbing; }
.tab-section.active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.tab-section.dragging { opacity: 0.35; }
.tab-section.drag-over { border-color: #0071e3; background: #e8f3ff; color: #0071e3; }

/* 고정/섹션 사이 구분선 */
.tab-sep {
  width: 1px;
  height: 22px;
  background: #e0e0e0;
  flex-shrink: 0;
  align-self: center;
  margin: 0 2px;
}

/* "+" 추가 버튼 */
.tab-add {
  border: 1.5px dashed #ccc;
  background: none;
  color: #aaa;
  font-size: 17px;
  padding: 4px 14px;
  font-weight: 400;
}
.tab-add:hover { border-color: #0071e3; color: #0071e3; background: #f0f7ff; }

/* ── 카드 그리드 ─────────────────────────────────── */
#card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 28px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #aaa;
}

.card-source { color: #999; }

.card-title-link { text-decoration: none; color: inherit; }

.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #1d1d1f;
}
.card-title.is-read { color: #aaa; font-weight: 500; }
.card-title-link:hover .card-title { color: #0071e3; }

.card-summary {
  font-size: 13px;
  line-height: 1.65;
  color: #444;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.card-link {
  font-size: 12px;
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #c5daf5;
  background: #f0f7ff;
  transition: background 0.15s, border-color 0.15s;
}
.card-link:hover { background: #dceeff; border-color: #a0c4f0; text-decoration: none; }

/* 카드 액션 버튼 */
.card-actions {
  display: flex;
  gap: 2px;
  opacity: 0.35;
  transition: opacity 0.15s;
}
.card:hover .card-actions { opacity: 1; }

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 3px 5px;
  border-radius: 5px;
  color: #bbb;
  line-height: 1;
  transition: color 0.12s, background 0.12s;
}
.action-btn:hover { background: #f0f0f0; color: #555; }
.active-like { color: #e0314b !important; }
.active-rl   { color: #0071e3 !important; }
.action-delete:hover { background: #fff0f0; color: #e0314b !important; }

/* 섹션 구분 헤더 (전체 탭) */
.section-header {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
  margin-top: 8px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-icon { font-size: 36px; margin-bottom: 4px; }
.empty-hint { font-size: 12px; color: #bbb; }

.empty-state.onboarding {
  padding: 80px 20px;
  gap: 12px;
  color: #444;
}
.empty-state.onboarding h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}
.empty-state.onboarding p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ── 토스트 알림 ─────────────────────────────────── */
#ni-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
  white-space: nowrap;
}
#ni-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 설정 오버레이 ───────────────────────────────── */
#settings-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.settings-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
  border-radius: 16px 16px 0 0;
  background: #fff;
}
.settings-title { font-size: 16px; font-weight: 700; }
.settings-close { font-size: 16px; color: #888; }

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

/* 인증 화면 */
.settings-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
}
.settings-auth-icon { font-size: 38px; }
.settings-auth h2   { font-size: 17px; font-weight: 700; }
.settings-auth p    { font-size: 13px; color: #666; }

.settings-auth input {
  width: 100%;
  max-width: 300px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.settings-auth input:focus { border-color: #0071e3; }

.settings-loading {
  text-align: center;
  padding: 60px;
  color: #aaa;
  font-size: 14px;
}

/* 툴바 */
.settings-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* 섹션 목록 (All/Today/ReadLater에서 ⚙️ 눌렀을 때) */
.section-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.section-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.section-list-item:hover { background: #f5f5f7; border-color: #ddd; }

.section-list-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  flex: 1;
  cursor: pointer;
  padding: 2px 0;
}
.section-list-name:hover { color: #0071e3; }
.section-list-arrow { color: #aaa; font-size: 14px; }

/* 섹션 에디터 필드 */
.editor-field { margin-bottom: 14px; }
.editor-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.editor-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.editor-input:focus { border-color: #0071e3; }

/* 블록 (RSS/키워드) */
.section-block { margin-top: 20px; }
.section-block-title {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kw-hint { font-weight: 400; color: #aaa; font-size: 11px; }

.rss-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}
.rss-name { width: 130px; flex-shrink: 0; }
.rss-url { flex: 1; }
.rss-name, .rss-url {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.rss-name:focus, .rss-url:focus { border-color: #0071e3; }
.empty-hint { font-size: 12px; color: #bbb; padding: 4px 2px; }

/* ── 채널3 키워드 빌더 ───────────────────────────────── */
.kw-group {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafafa;
}
.kw-group-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #bbb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.kw-group-or-divider::before,
.kw-group-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}
.kw-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kw-group-num { font-size: 12px; font-weight: 600; color: #555; }

.kw-row-section {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 7px;
}
.kw-type-label {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 3px;
  flex-shrink: 0;
  width: 58px;
  text-align: center;
}
.kw-type-and { background: #e8f3ff; color: #0057b8; }
.kw-type-or  { background: #e8f5eb; color: #1a7a35; }
.kw-type-not { background: #fff0f0; color: #c0000a; }

.kw-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  flex: 1;
}
.kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.kw-tag-and { background: #ddeeff; color: #0057b8; border: 1px solid #b8d8f5; }
.kw-tag-or  { background: #d8f0dd; color: #1a7a35; border: 1px solid #aadbb8; }
.kw-tag-not { background: #ffe5e5; color: #c0000a; border: 1px solid #f5bbbb; }
.kw-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: inherit;
  opacity: 0.5;
  padding: 0 1px;
  line-height: 1;
}
.kw-tag-remove:hover { opacity: 1; }

.kw-tag-input {
  border: 1px dashed #ccc;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  outline: none;
  width: 110px;
  background: #fff;
}
.kw-tag-input:focus { border-color: #0071e3; border-style: solid; }
.kw-tag-input::placeholder { color: #bbb; }

.kw-preview {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kw-preview-label {
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.kw-preview code {
  font-size: 11px;
  color: #555;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", Consolas, monospace;
  word-break: break-all;
}

/* 저장 푸터 */
.settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  gap: 12px;
}
#save-status { font-size: 12px; }
.save-ok    { color: #28a745; }
.save-error { color: #dc3545; }

/* 섹션 추가 버튼 */
.btn-add-section {
  border: 2px dashed #ccc;
  background: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s, color 0.15s;
}
.btn-add-section:hover { border-color: #0071e3; color: #0071e3; }

/* 공통 버튼 */
.btn-primary {
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #005bbf; }
.btn-primary:disabled { background: #aaa; cursor: not-allowed; }

.btn-save { min-width: 80px; }

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #e0e0e0; }

.btn-small { padding: 4px 10px; font-size: 11px; border-radius: 5px; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: #888;
  transition: background 0.12s;
}
.btn-icon:hover { background: #f0f0f0; color: #333; }

.btn-danger-text { color: #dc3545; }
.btn-danger-text:hover { background: #fff0f0; color: #dc3545; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
}

.settings-error {
  color: #dc3545;
  font-size: 13px;
  padding: 8px 12px;
  background: #fff5f5;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin-top: 4px;
}

/* ── 반응형 (앱) ──────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 14px 16px; }
  #section-tabs { padding: 10px 16px; gap: 6px; }
  .tab { padding: 6px 12px; font-size: 12px; }
  .tab-sep { display: none; }
  #card-grid { padding: 16px; gap: 14px; }
  #settings-panel { padding: 0; align-items: flex-end; }
  .settings-modal { border-radius: 16px 16px 0 0; max-width: 100%; }
  .rss-name { width: 90px; }
}

/* ══════════════════════════════════════════════════
   랜딩 페이지
══════════════════════════════════════════════════ */

/* 랜딩 네비게이션 */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.landing-brand-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
}

/* 히어로 */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  flex: 1;
  max-width: 520px;
}
.hero-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.18;
  color: #1d1d1f;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 18px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 14px 28px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
}
.btn-white {
  background: #fff !important;
  color: #1d1d1f !important;
}
.btn-white:hover { background: #f0f0f0 !important; }

.btn-ghost {
  background: none;
  border: 1.5px solid #d0d0d0;
  color: #444;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: #aaa; color: #1d1d1f; }

/* 히어로 미리보기 카드 */
.hero-preview {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-card-muted { opacity: 0.5; }
.preview-meta { font-size: 11px; color: #aaa; }
.preview-title { font-size: 14px; font-weight: 600; color: #1d1d1f; line-height: 1.4; }
.preview-summary {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 기능 소개 */
.features-section {
  background: #f5f5f7;
  padding: 72px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.feature-icon { font-size: 32px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: #1d1d1f; }
.feature-card p { font-size: 14px; line-height: 1.65; color: #555; }

/* 이용 방법 */
.how-it-works {
  padding: 72px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section-heading {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 44px;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.step {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  width: 210px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  background: #0071e3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.step h3 { font-size: 15px; font-weight: 700; color: #1d1d1f; margin-bottom: 6px; }
.step p { font-size: 13px; line-height: 1.65; color: #666; }
.step-arrow { font-size: 22px; color: #ccc; flex-shrink: 0; }

/* 하단 CTA */
.landing-bottom-cta {
  background: #1d1d1f;
  color: #fff;
  text-align: center;
  padding: 80px 48px;
}
.landing-bottom-cta h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
}
.landing-bottom-cta p {
  font-size: 16px;
  color: #999;
  margin-bottom: 32px;
}

/* 푸터 */
.landing-footer {
  background: #1d1d1f;
  color: #555;
  text-align: center;
  padding: 20px 48px;
  font-size: 12px;
  border-top: 1px solid #2e2e2e;
}

/* ══════════════════════════════════════════════════
   온보딩 위저드
══════════════════════════════════════════════════ */

.wizard-wrap {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 20px;
  padding: 48px 44px;
  max-width: 560px;
  margin: 32px auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wizard-logo {
  color: #0071e3;
  margin-bottom: 20px;
}

.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.wizard-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.wizard-step-dot.active { background: #0071e3; }
.wizard-step-dot.done   { background: #34c759; }

.wizard-step-line {
  width: 44px;
  height: 2px;
  background: #e0e0e0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.wizard-step-line.done { background: #34c759; }

.wizard-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 10px;
  line-height: 1.35;
}

.wizard-subtitle {
  font-size: 14px;
  line-height: 1.75;
  color: #666;
  margin-bottom: 24px;
}

.wizard-field {
  width: 100%;
  text-align: left;
  margin-bottom: 14px;
}

.wizard-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.wizard-optional {
  font-weight: 400;
  text-transform: none;
  color: #bbb;
  font-size: 11px;
}

.wizard-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s;
}
.wizard-input:focus { border-color: #0071e3; }

.wizard-source-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.wizard-tab {
  flex: 1;
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wizard-tab:hover { border-color: #bbb; color: #1d1d1f; }
.wizard-tab.active { border-color: #0071e3; background: #f0f7ff; color: #0071e3; }

.wizard-field-row {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  align-items: center;
}
.wizard-field-row .wizard-input { padding: 9px 12px; }

.wizard-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-height: 26px;
  margin-bottom: 6px;
}

.wizard-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #f0f4ff;
  color: #3a5bd4;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #c5d0f5;
}

.wizard-error {
  width: 100%;
  color: #dc3545;
  font-size: 13px;
  padding: 8px 12px;
  background: #fff5f5;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin-top: 2px;
  margin-bottom: 6px;
  text-align: left;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 20px;
}

.wizard-actions-2 {
  justify-content: space-between;
  align-items: center;
}

.wizard-btn-skip {
  background: none;
  border: none;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.wizard-btn-skip:hover { color: #666; }

.wizard-complete-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.wizard-complete .wizard-subtitle { margin-bottom: 16px; }

.wizard-schedule-box {
  width: 100%;
  background: #f5f9ff;
  border: 1px solid #d5e6fb;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #3a5bd4;
  line-height: 1.65;
  margin-bottom: 4px;
  text-align: left;
}

@media (max-width: 600px) {
  .wizard-wrap { padding: 32px 20px; margin: 16px auto; }
  .wizard-title { font-size: 18px; }
  .wizard-field-row { flex-wrap: wrap; }
  .wizard-field-row input[style*="width:130px"] { width: 100% !important; }
}

/* ── AI 위저드 추가 스타일 ──────────────────────── */
.wizard-wrap-wide { max-width: 680px; }
.wizard-textarea { resize: vertical; min-height: 84px; font-family: inherit; line-height: 1.55; }

.wizard-loading { display: flex; flex-direction: column; align-items: center; padding: 40px 0; }
.wizard-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e0e0e0; border-top-color: #0071e3;
  border-radius: 50%; animation: wiz-spin 0.8s linear infinite;
}
@keyframes wiz-spin { to { transform: rotate(360deg); } }

.wizard-ai-question {
  width: 100%;
  background: #f5f9ff; border: 1px solid #d5e6fb;
  border-radius: 10px; padding: 14px 18px;
  font-size: 14px; color: #1d3d7c; line-height: 1.6;
  margin-bottom: 16px; text-align: left;
}

.wiz-section { width: 100%; text-align: left; margin-bottom: 18px; }
.wiz-section-title {
  font-size: 12px; font-weight: 600; color: #555;
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.wiz-hint { font-weight: 400; color: #aaa; text-transform: none; letter-spacing: 0; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wiz-chip {
  display: inline-block; padding: 6px 12px;
  border: 1.5px solid #0071e3; border-radius: 16px;
  font-size: 13px; color: #0071e3; background: #fff;
  cursor: pointer; user-select: none;
  transition: background 0.12s, color 0.12s;
}
.wiz-chip.selected { background: #0071e3; color: #fff; }
.wiz-chip-info {
  border-color: #e0e0e0; color: #666; cursor: default; background: #f7f7f8;
}
.wiz-chip-exclude {
  border-color: #f0c0c0; color: #b03030; background: #fff5f5; cursor: default;
}
.wiz-empty { color: #bbb; font-size: 13px; }

.wiz-query {
  display: block; width: 100%;
  background: #f7f7f8; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #1d1d1f;
  font-family: 'SF Mono', Menlo, monospace; word-break: break-all;
}

.wiz-rss-list { display: flex; flex-direction: column; gap: 8px; }
.wiz-rss-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px;
  cursor: pointer; transition: border-color 0.12s, background 0.12s;
}
.wiz-rss-item:hover { border-color: #0071e3; background: #f5f9ff; }
.wiz-rss-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: #0071e3; }
.wiz-rss-info { flex: 1; min-width: 0; }
.wiz-rss-name { font-size: 14px; color: #1d1d1f; font-weight: 500; }
.wiz-rss-lang {
  display: inline-block; font-size: 10px; background: #eef; color: #558;
  padding: 1px 6px; border-radius: 3px; margin-left: 4px; font-weight: 400;
}
.wiz-rss-cat { font-size: 11px; color: #888; margin-top: 2px; }

.wiz-ai-edit {
  width: 100%; background: #fafbff; border: 1px dashed #c9d4ee;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
}
.wiz-ai-edit .wizard-label { margin-bottom: 8px; color: #4060a8; }

.wiz-preview-notice {
  width: 100%; background: #fff8e6; border: 1px solid #ffd480;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #8a5a00; margin-bottom: 14px; text-align: left;
}
.wiz-preview-list { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.wiz-preview-card {
  border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 12px 14px; text-align: left; background: #fff;
}
.wiz-preview-meta { font-size: 11px; color: #888; margin-bottom: 4px; }
.wiz-preview-title { font-size: 14px; font-weight: 600; color: #1d1d1f; margin-bottom: 6px; }
.wiz-preview-summary { font-size: 13px; color: #555; line-height: 1.55; }
.wiz-preview-summary-box {
  background: #f7f7f8; border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 14px 16px; font-size: 13px; color: #333; text-align: left;
  line-height: 1.85;
}
.wiz-preview-summary-box code {
  background: #fff; padding: 1px 6px; border-radius: 4px;
  font-size: 12px; border: 1px solid #e0e0e0;
}

/* ── 랜딩 반응형 ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero { flex-direction: column; padding: 52px 32px; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 40px; }
  .hero-preview { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; padding: 0 32px; }
  .features-section { padding: 52px 0; }
  .landing-nav { padding: 14px 24px; }
  .how-it-works { padding: 52px 24px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step { width: 100%; max-width: 320px; }
  .landing-bottom-cta { padding: 56px 24px; }
  .landing-bottom-cta h2 { font-size: 28px; }
}
