:root {
  --bg: #0b0f17;
  --bg-elevated: #131a26;
  --bg-card: #172030;
  --bg-card-hover: #1c273a;
  --bg-input: #0d131d;
  --border: #273449;
  --border-strong: #374966;

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-bg: rgba(245, 158, 11, 0.14);

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.14);

  --rose: #fb7185;
  --rose-bg: rgba(251, 113, 133, 0.12);

  --sky: #38bdf8;
  --sky-bg: rgba(56, 189, 248, 0.12);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

/* 상단 고정 헤더 */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0f17;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.brand-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

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

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.sync-badge.sync-ok .sync-dot {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.sync-badge.sync-ok {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.35);
}

.sync-badge.sync-error .sync-dot {
  background: var(--rose);
}

.sync-badge.sync-error {
  color: var(--rose);
  border-color: rgba(251, 113, 133, 0.4);
}

.btn-icon,
.btn-icon-pill {
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-icon-pill {
  background: var(--amber-bg);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--amber-bright);
  font-size: 14px;
}

.btn-icon:hover,
.btn-icon-pill:hover {
  background: var(--bg-card-hover);
}

.btn-icon:active,
.btn-icon-pill:active {
  transform: scale(0.96);
}

/* 카테고리 탭 */
.category-nav {
  max-width: 980px;
  margin: 0 auto;
  padding: 6px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.cat-tab {
  min-height: 46px;
  padding: 8px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cat-tab.active {
  background: var(--amber);
  color: #0b0f17;
  border-color: var(--amber-bright);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.cat-count {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.cat-tab.active .cat-count {
  background: rgba(11, 15, 23, 0.2);
  color: #0b0f17;
}

/* 알림 배너 */
.alert-banner {
  max-width: 948px;
  margin: 14px auto 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--rose-bg);
  border: 1px solid rgba(251, 113, 133, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert-content strong {
  display: block;
  color: #fda4af;
  font-size: 15px;
  margin-bottom: 4px;
}

.alert-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* 메인 컨텐츠 */
.main-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Smart Importer 대왕 버튼 */
.btn-smart-importer {
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(23, 32, 48, 0.96) 65%);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.14);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-smart-importer:hover {
  border-color: var(--amber-bright);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.btn-smart-importer:active {
  transform: scale(0.99);
}

.cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--amber);
  color: #0b0f17;
  font-size: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cta-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cta-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--amber-bright);
}

.cta-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cta-arrow {
  font-size: 22px;
  font-weight: 800;
  color: var(--amber-bright);
}

/* 필터 & 검색 툴바 */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--sky);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 210px;
  max-width: 340px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 15px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--sky);
}

/* 카드 리스트 */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 860px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.idea-card.all-done {
  border-color: rgba(16, 185, 129, 0.5);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-category {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  background: var(--sky-bg);
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
}

.badge-category option {
  background: var(--bg-card);
  color: var(--text);
}

.badge-source {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge-pending-sync {
  font-size: 11px;
  color: var(--amber-bright);
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-time {
  font-size: 12.5px;
  color: var(--text-dim);
}

.btn-card-del {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.btn-card-del:hover {
  background: var(--rose-bg);
  color: var(--rose);
  border-color: rgba(251, 113, 133, 0.3);
}

.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* 섹션 박스 (요약 / 리스크) */
.insight-box {
  border-radius: var(--radius-md);
  padding: 13px 14px;
}

.summary-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.risk-box {
  background: var(--rose-bg);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.box-heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-box .box-heading {
  color: var(--sky);
}

.risk-box .box-heading {
  color: #fda4af;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* Action Splitter 체크리스트 */
.action-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--amber-bright);
}

.action-progress-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-bright);
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #0b0f17;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber) 0%, var(--emerald) 100%);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.task-item.done {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.task-check-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2px solid var(--border-strong);
  background: var(--bg-input);
  color: #0b0f17;
  font-size: 17px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.task-item.done .task-check-btn {
  background: var(--emerald);
  border-color: var(--emerald-bright);
}

.task-label {
  flex: 1;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  word-break: keep-all;
}

.task-item.done .task-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-edit-input {
  flex: 1;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--sky);
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-task-mini {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.btn-task-mini:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.add-task-form {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.add-task-input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14.5px;
}

.add-task-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--amber);
}

.btn-add-task {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: var(--amber-bg);
  color: var(--amber-bright);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* 원본 보기 */
.raw-details {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.raw-details summary {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.raw-text-body {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 13.5px;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

/* 하단 엄지손가락 마이크 독 */
.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(11, 15, 23, 0.98) 70%, rgba(11, 15, 23, 0));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.btn-voice-dock {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 68px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #34d399;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #05130d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.42);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-voice-dock:active {
  transform: scale(0.97);
}

.mic-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 19, 13, 0.2);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.mic-label-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mic-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.mic-sub {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.85;
}

/* 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-panel {
  width: 100%;
  max-width: 660px;
  max-height: 92dvh;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

@media (min-width: 640px) {
  .modal-panel {
    border-radius: 22px;
  }
}

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

.modal-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.btn-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.form-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pick-btn {
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cat-pick-btn.selected {
  background: var(--amber);
  color: #0b0f17;
  border-color: var(--amber-bright);
}

.big-textarea,
.voice-textarea {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
}

.voice-textarea {
  font-size: 18px;
}

.big-textarea:focus,
.voice-textarea:focus {
  outline: none;
  border-color: var(--amber);
}

/* 음성 모달 상태 */
.voice-status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.voice-orb {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  border: 3px solid var(--emerald);
  display: grid;
  place-items: center;
  font-size: 34px;
}

.voice-orb.listening {
  animation: orbPulse 1.5s infinite ease-in-out;
}

@keyframes orbPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(16, 185, 129, 0);
  }
}

.voice-status-text {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.voice-timer {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.voice-footer {
  flex-wrap: wrap;
}

.voice-footer .btn-primary-large {
  flex: 1;
}

/* 버튼 공용 */
.btn-primary-large {
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0f17;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-large.btn-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #05130d;
}

.btn-primary-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost-small {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-small-amber {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 10px;
  border: none;
  background: var(--amber);
  color: #0b0f17;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* 설정 모달 */
.setting-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.helper-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.input-row {
  display: flex;
  gap: 8px;
}

.text-input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14.5px;
}

.btn-row-end {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.code-box {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #070a10;
  border: 1px solid var(--border);
  color: #a7f3d0;
  font-size: 13px;
  overflow-x: auto;
}

.guide-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

/* 빈 상태 / 로딩 / 에러 */
.loading-state,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
}

.empty-state h3 {
  margin: 10px 0 6px;
  font-size: 19px;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.inline-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rose-bg);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fecdd3;
  font-size: 14px;
}

/* 토스트 */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 460px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.toast.toast-success {
  border-color: var(--emerald);
  background: #064e3b;
}

.toast.toast-error {
  border-color: var(--rose);
  background: #4c0519;
}

@media (max-width: 480px) {
  .hide-xs {
    display: none;
  }
  .cta-title {
    font-size: 16.5px;
  }
}
