/* ==================== Admin Panel Styles ==================== */

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #0a0a0a;
}

/* Sidebar */
.admin-sidebar {
  width: 240px;
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.admin-badge {
  padding: 3px 8px;
  background: rgba(212, 165, 116, 0.2);
  color: #D4A574;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 12px 8px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.admin-nav-item.active {
  background: rgba(212, 165, 116, 0.15);
  color: #D4A574;
}

.admin-nav-icon {
  font-size: 18px;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-user-info {
  margin-bottom: 8px;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.admin-user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.admin-link-secondary {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.admin-link-secondary:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  max-width: 1400px;
}

.admin-page {
  color: #fff;
}

.admin-page-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.admin-page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
}

.admin-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

/* ── 라이트모드 관리자 패널 ── */
[data-theme="light"] .admin-layout { background: var(--bg-primary); }
[data-theme="light"] .admin-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border-primary); }
[data-theme="light"] .admin-sidebar-header { border-bottom: 1px solid var(--border-primary); }
[data-theme="light"] .admin-sidebar-footer { border-top: 1px solid var(--border-primary); }
[data-theme="light"] .admin-nav-item { color: var(--text-secondary); }
[data-theme="light"] .admin-nav-item:hover { background: rgba(0, 0, 0, 0.05); color: var(--text-primary); }
[data-theme="light"] .admin-user-name { color: var(--text-primary); }
[data-theme="light"] .admin-user-role { color: var(--text-muted); }
[data-theme="light"] .admin-link-secondary { color: var(--text-secondary); }
[data-theme="light"] .admin-link-secondary:hover { color: var(--text-primary); }
[data-theme="light"] .admin-page { color: var(--text-primary); }
[data-theme="light"] .admin-page-title { color: var(--text-primary); }
[data-theme="light"] .admin-stat-card { background: var(--bg-secondary); border: 1px solid var(--border-tertiary); }
[data-theme="light"] .admin-stat-label { color: var(--text-secondary); }
[data-theme="light"] .admin-stat-value { color: var(--text-primary); }
[data-theme="light"] .admin-mobile-menu-btn { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-primary); }

/* Sections */
.admin-section {
  margin-bottom: 32px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
}

.admin-link-primary {
  color: #D4A574;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.admin-link-primary:hover {
  text-decoration: underline;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.admin-tab.active {
  color: #D4A574;
  border-bottom-color: #D4A574;
}

/* Table */
.admin-table-wrapper {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
}

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

.admin-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #222;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table tbody tr {
  transition: background 0.2s;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.admin-badge-secondary {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.admin-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.admin-badge-new,
.admin-badge-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.admin-badge-contacted,
.admin-badge-confirmed {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.admin-badge-consulting {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.admin-badge-contracted,
.admin-badge-success {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.admin-badge-completed,
.admin-badge-expired {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.admin-badge-primary {
  background: rgba(212, 165, 116, 0.2);
  color: #D4A574;
}

/* Empty State */
.admin-empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 2001;
}

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.admin-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.admin-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Detail Grid */
.admin-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-detail-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-detail-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.admin-detail-json {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: #4ade80;
  overflow-x: auto;
  max-height: 200px;
  overflow-y: auto;
}

/* Buttons */
.admin-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.admin-btn-primary {
  background: #D4A574;
  color: #0a0a0a;
}

.admin-btn-primary:hover {
  background: #c39564;
}

.admin-btn-secondary {
  background: #333;
  color: #fff;
}

.admin-btn-secondary:hover {
  background: #444;
}

/* Note */
.admin-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Mobile */
.admin-mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}

.admin-sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

  .admin-main {
    margin-left: 0;
    padding: 80px 16px 16px;
  }

  .admin-mobile-menu-btn {
    display: block;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-wrapper {
    overflow-x: auto;
  }

  .admin-modal {
    width: 95%;
    max-height: 90vh;
  }
}

/* ==================== Course Admin Cards ==================== */
.course-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.course-admin-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.course-admin-card:hover {
  border-color: #444;
}

.course-admin-thumb {
  position: relative;
  height: 160px;
  background: #1a1a1a;
  overflow: hidden;
}

.course-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-admin-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.15);
}

.course-admin-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.course-admin-status.published {
  background: rgba(74,222,128,0.2);
  color: #4ade80;
}

.course-admin-status.draft {
  background: rgba(156,163,175,0.2);
  color: #9ca3af;
}

.course-admin-info {
  padding: 16px;
}

.course-admin-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.course-admin-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 12px 0;
}

.course-admin-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.course-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== Admin Form ==================== */
.admin-form {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-form-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form-input {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.admin-form-input:focus {
  outline: none;
  border-color: #D4A574;
}

.admin-form-input[type="file"] {
  padding: 6px 10px;
  cursor: pointer;
}

textarea.admin-form-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

select.admin-form-input {
  cursor: pointer;
}

.admin-form-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ==================== Curriculum ==================== */
.curriculum-chapter {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.curriculum-chapter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid #222;
}

.curriculum-chapter-order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.curriculum-move-btn {
  background: none;
  border: 1px solid #333;
  color: rgba(255,255,255,0.5);
  border-radius: 4px;
  width: 24px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.curriculum-move-btn:hover:not(:disabled) {
  border-color: #D4A574;
  color: #D4A574;
}

.curriculum-move-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.curriculum-chapter-title-input {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.curriculum-chapter-title-input:hover,
.curriculum-chapter-title-input:focus {
  border-color: #444;
  outline: none;
  background: rgba(255,255,255,0.05);
}

.curriculum-lessons {
  padding: 8px;
}

.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}

.curriculum-lesson:hover {
  background: rgba(255,255,255,0.03);
}

.curriculum-lesson-order {
  display: flex;
  gap: 2px;
}

.curriculum-lesson-title-input {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.curriculum-lesson-title-input:hover,
.curriculum-lesson-title-input:focus {
  border-color: #444;
  outline: none;
  background: rgba(255,255,255,0.05);
}

/* ==================== Novel Editor ==================== */
.novel-editor-wrapper {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
}

.novel-editor .ProseMirror {
  padding: 16px;
  min-height: 280px;
  color: #e0e0e0;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
}

.novel-editor .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  position: absolute;
}

.novel-editor .ProseMirror h1 { font-size: 1.6em; font-weight: 700; margin: 0.8em 0 0.4em; color: #fff; }
.novel-editor .ProseMirror h2 { font-size: 1.3em; font-weight: 600; margin: 0.8em 0 0.4em; color: #fff; }
.novel-editor .ProseMirror h3 { font-size: 1.1em; font-weight: 600; margin: 0.8em 0 0.4em; color: #fff; }
.novel-editor .ProseMirror ul, .novel-editor .ProseMirror ol { padding-left: 1.5em; margin-bottom: 0.75em; }
.novel-editor .ProseMirror li { margin-bottom: 0.25em; }
.novel-editor .ProseMirror blockquote { border-left: 3px solid #D4A574; padding-left: 1em; color: rgba(255,255,255,0.7); font-style: italic; }
.novel-editor .ProseMirror pre { background: #111; border: 1px solid #333; border-radius: 6px; padding: 12px; overflow-x: auto; }
.novel-editor .ProseMirror code { background: #222; padding: 2px 5px; border-radius: 4px; font-size: 0.9em; color: #4ade80; }
.novel-editor .ProseMirror img { max-width: 100%; border-radius: 6px; }
.novel-editor .ProseMirror hr { border: none; border-top: 1px solid #333; margin: 1em 0; }

/* Slash command menu */
.novel-command-menu {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 4px;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9999;
}

.novel-command-empty {
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.novel-command-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.novel-command-item:hover,
.novel-command-item[aria-selected="true"] {
  background: rgba(212,165,116,0.15);
}

.novel-command-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.novel-command-title {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.novel-command-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Bubble menu */
.novel-bubble-menu {
  display: flex;
  gap: 2px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
}

.novel-bubble-item {
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border: none;
  background: none;
  transition: all 0.15s;
}

.novel-bubble-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ==================== Learn page Novel content ==================== */
.learn-book-content-novel {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.8;
}

.learn-book-content-novel h1 { font-size: 1.6em; color: #fff; margin: 1em 0 0.5em; }
.learn-book-content-novel h2 { font-size: 1.3em; color: #fff; margin: 1em 0 0.5em; }
.learn-book-content-novel h3 { font-size: 1.1em; color: #fff; margin: 1em 0 0.5em; }
.learn-book-content-novel ul, .learn-book-content-novel ol { padding-left: 1.5em; margin-bottom: 0.75em; }
.learn-book-content-novel li { margin-bottom: 0.3em; }
.learn-book-content-novel img { max-width: 100%; border-radius: 8px; }

@media (max-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .course-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== TipTap Editor ==================== */

.tiptap-editor-wrapper {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.tiptap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tiptap-content-area {
  min-height: 300px;
  padding: 16px;
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.8;
  outline: none;
}

.tiptap-content-area .ProseMirror {
  outline: none;
  min-height: 260px;
}

.tiptap-content-area .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  height: 0;
}

.tiptap-content-area .ProseMirror h1 { font-size: 1.7em; font-weight: 700; color: #fff; margin: 1em 0 0.5em; }
.tiptap-content-area .ProseMirror h2 { font-size: 1.4em; font-weight: 600; color: #fff; margin: 1em 0 0.5em; }
.tiptap-content-area .ProseMirror h3 { font-size: 1.15em; font-weight: 600; color: #fff; margin: 1em 0 0.4em; }
.tiptap-content-area .ProseMirror p { margin-bottom: 0.75em; }
.tiptap-content-area .ProseMirror ul { padding-left: 1.5em; margin-bottom: 0.75em; list-style: disc; }
.tiptap-content-area .ProseMirror ol { padding-left: 1.5em; margin-bottom: 0.75em; list-style: decimal; }
.tiptap-content-area .ProseMirror li { margin-bottom: 0.25em; }
.tiptap-content-area .ProseMirror ul[data-type="taskList"] { list-style: none; padding-left: 0.5em; }
.tiptap-content-area .ProseMirror ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 8px; }
.tiptap-content-area .ProseMirror ul[data-type="taskList"] li label { display: flex; align-items: center; }
.tiptap-content-area .ProseMirror blockquote {
  border-left: 3px solid #D4A574;
  padding-left: 16px;
  margin-left: 0;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: 0.75em;
}
.tiptap-content-area .ProseMirror pre {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin-bottom: 0.75em;
}
.tiptap-content-area .ProseMirror pre code {
  color: #4ade80;
  font-size: 13px;
  background: none;
  padding: 0;
}
.tiptap-content-area .ProseMirror code {
  background: #222;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #4ade80;
}
.tiptap-content-area .ProseMirror img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 0.75em;
  display: block;
}
.tiptap-content-area .ProseMirror hr {
  border: none;
  border-top: 1px solid #333;
  margin: 1em 0;
}
.tiptap-content-area .ProseMirror a {
  color: #D4A574;
  text-decoration: underline;
}

.tiptap-bubble-menu {
  display: flex;
  gap: 2px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 9999;
}


/* ==================== Phase 10: 콘텐츠 영역 Font Scaling & Bebas Neue → SUIT ====================
   적용 범위: 사이드바 제외, 콘텐츠 영역(카드/테이블/모달/폼/섹션) 전용
   기준: 데스크탑 16px min / 모바일 17px min | base 12px → D:x1.333 / M:x1.417
   크기 매핑: 12px→D:16/M:17  13px→D:17/M:18  14px→D:19/M:20
              18px→D:24/M:26  20px→D:27/M:28  28px→D:37/M:40  32px→D:43/M:45
   ==================================================================================== */

/* ── 1. 콘텐츠 영역 헤딩 Bebas Neue → SUIT 교체 (사이드바 제외) ── */
.admin-main h1, .admin-main h2, .admin-main h3,
.admin-main h4, .admin-main h5, .admin-main h6 {
  font-family: 'SUIT', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

/* ── 2. 데스크탑 콘텐츠 폰트 크기 상향 (scale x1.333) ── */

/* 페이지 제목 */
.admin-page-title      { font-size: 37px; }                        /* 28 x 1.333 */

/* 통계 카드 */
.admin-stat-card       { padding: 27px; }
.admin-stat-label      { font-size: 17px; }                        /* 13 x 1.333 */
.admin-stat-value      { font-size: 43px; }                        /* 32 x 1.333 */

/* 섹션 */
.admin-section-title   { font-size: 27px; }                        /* 20 x 1.333 */
.admin-link-primary    { font-size: 19px; }                        /* 14 x 1.333 */

/* 탭 */
.admin-tab             { font-size: 19px; padding: 16px 27px; }    /* 14 x 1.333 */

/* 테이블 */
.admin-table th        { font-size: 16px; padding: 16px 20px; }    /* 12px min */
.admin-table td        { font-size: 19px; padding: 16px 18px; }    /* 14 x 1.333 */

/* 뱃지 */
.admin-badge           { font-size: 16px; padding: 5px 11px; }     /* 12px min */
.admin-badge-secondary { font-size: 16px; padding: 5px 11px; }

/* 빈 상태 */
.admin-empty           { font-size: 19px; }                        /* 14 x 1.333 */

/* 모달 */
.admin-modal-title     { font-size: 24px; }                        /* 18 x 1.333 */
.admin-modal-close     { font-size: 32px; }                        /* 24 x 1.333 */
.admin-modal-body      { padding: 32px; }
.admin-modal-footer    { padding: 21px 32px; }

/* 상세 뷰 */
.admin-detail-label    { font-size: 16px; }                        /* 12px min */
.admin-detail-value    { font-size: 19px; }                        /* 14 x 1.333 */
.admin-detail-json     { font-size: 16px; }                        /* 12px min */

/* 버튼 */
.admin-btn             { font-size: 19px; padding: 11px 21px; line-height: 1.4; }

/* 노트 */
.admin-note            { font-size: 19px; }

/* 강좌 카드 */
.course-admin-title    { font-size: 21px; }                        /* 16 x 1.333 */
.course-admin-subtitle { font-size: 17px; }                        /* 13 x 1.333 */
.course-admin-meta     { font-size: 16px; }                        /* 12px min */
.course-admin-status   { font-size: 16px; padding: 5px 11px; }

/* 폼 */
.admin-form-label      { font-size: 16px; }                        /* 12px min */
.admin-form-input      { font-size: 19px; padding: 11px 16px; }    /* 14 x 1.333 */
.admin-form-hint       { font-size: 16px; }                        /* 12px min */
textarea.admin-form-input { min-height: 107px; }

/* 커리큘럼 */
.curriculum-chapter-title-input { font-size: 19px; }
.curriculum-lesson-title-input  { font-size: 17px; }

/* Novel 에디터 */
.novel-editor .ProseMirror { font-size: 19px; }
.novel-command-empty       { font-size: 17px; }
.novel-command-icon        { font-size: 16px; }
.novel-command-title       { font-size: 17px; }
.novel-command-desc        { font-size: 16px; }
.novel-bubble-item         { font-size: 17px; }

/* TipTap 에디터 */
.tiptap-content-area                       { font-size: 20px; }    /* 15 x 1.333 */
.tiptap-content-area .ProseMirror pre code { font-size: 17px; }    /* 13 x 1.333 */

/* ===================================================================
   ADS PAGES - /dashboard/ads/*
   광고 페이지 전용 스타일 (인라인 → CSS 전환)
   =================================================================== */

/* --- 공통: 모달 --- */
.ads-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ads-modal-box {
  background: #111; border: 1px solid #2a2a2a; border-radius: 16px;
  padding: 28px 32px; width: 100%;
}
.ads-modal-title {
  font-size: 23px; font-weight: 700; color: #fff; margin: 0 0 20px 0;
}
.ads-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ads-modal-btn-cancel {
  padding: 9px 20px; border-radius: 8px; font-size: 17px; font-weight: 500;
  border: 1px solid #2a2a2a; background: transparent;
  color: rgba(255,255,255,0.6); cursor: pointer;
}
.ads-modal-btn-confirm {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px; font-size: 17px; font-weight: 700;
  border: none; background: #fff; color: #000; cursor: pointer;
}
.ads-modal-btn-confirm:disabled { background: #333; cursor: not-allowed; opacity: 0.6; }
.ads-modal-error {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 16px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  font-size: 17px; color: #f87171;
}
.ads-modal-note {
  font-size: 16px; color: rgba(255,255,255,0.4); margin: 0 0 20px 0; line-height: 1.6;
}
.ads-modal-info {
  padding: 14px 16px; border-radius: 10px; margin-bottom: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid #2a2a2a;
  font-size: 17px; display: flex; flex-direction: column; gap: 8px;
}
.ads-modal-info-row { display: flex; gap: 8px; }
.ads-modal-info-label { color: rgba(255,255,255,0.4); min-width: 72px; }
.ads-modal-info-value { color: #fff; font-weight: 600; }

/* --- 공통: 배너 --- */
.ads-banner {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 20px;
  font-size: 17px;
  display: flex; justify-content: space-between; align-items: center;
}
.ads-banner-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.ads-banner-error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.ads-banner-warning { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); color: rgba(255,255,255,0.6); line-height: 1.6; }
.ads-banner-close-btn {
  background: none; border: none; color: inherit; cursor: pointer; font-size: 21px; padding: 0 4px;
}

/* --- 공통: 폼 --- */
.ads-form-input {
  width: 100%; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 10px 14px; color: #fff; font-size: 19px; outline: none; box-sizing: border-box;
}
.ads-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px; border: none;
  background: #fff; color: #000; font-size: 19px; font-weight: 700; cursor: pointer;
}
.ads-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.ads-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px; border: 1px solid #2a2a2a;
  background: transparent; color: rgba(255,255,255,0.6); font-size: 19px; font-weight: 500; cursor: pointer;
}
.ads-form-label  { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.ads-form-error  {
  padding: 10px 14px; border-radius: 8px; margin-top: 8px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  font-size: 17px; color: #f87171;
}

/* --- 광고 목록 페이지 --- */
.ads-page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.ads-page-header-left    { display: flex; align-items: center; gap: 10px; }
.ads-page-header-actions { display: flex; gap: 8px; }
.ads-btn-settings {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.5);
  border: 1px solid #252525; border-radius: 8px; padding: 7px 12px; text-decoration: none;
}
.ads-btn-create {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 600; color: #fff;
  background: rgba(96,165,250,0.15); border: 1px solid rgba(96,165,250,0.3);
  border-radius: 8px; padding: 7px 14px; cursor: pointer;
}
.ads-filter-bar { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.ads-filter-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 21px;
  border: 1px solid #252525; background: transparent;
  color: rgba(255,255,255,0.45); font-weight: 400;
  cursor: pointer; transition: all 0.15s;
}
.ads-filter-tab-active {
  border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: #fff; font-weight: 600;
}
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ads-state-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 80px 0; text-align: center;
}
.ads-state-title { font-size: 23px; font-weight: 700; color: #fff; margin: 0; }
.ads-state-desc  { font-size: 17px; color: rgba(255,255,255,0.35); margin: 0; }
.ads-btn-retry {
  padding: 8px 20px; border-radius: 8px; font-size: 17px; font-weight: 600;
  border: 1px solid #2a2a2a; background: transparent; color: rgba(255,255,255,0.6); cursor: pointer;
}

/* 스켈레톤 */
.ads-skeleton-card {
  background: #111; border: 1px solid #1e1e1e; border-radius: 12px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
}
.ads-skeleton-row     { display: flex; justify-content: space-between; align-items: flex-start; }
.ads-skeleton-metrics { display: flex; gap: 16px; margin-top: 4px; }
.ads-skeleton-block   { background: #1e1e1e; border-radius: 6px; }
.ads-skeleton-title   { height: 16px; width: 55%; }
.ads-skeleton-badge   { height: 22px; width: 60px; }
.ads-skeleton-sub     { height: 13px; width: 35%; }
.ads-skeleton-metric  { height: 36px; width: 70px; border-radius: 8px; }

/* 메트릭 칩 */
.ads-metric-chip       { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 6px 12px; min-width: 64px; }
.ads-metric-chip-label { font-size: 16px; color: rgba(255,255,255,0.35); margin-bottom: 2px; }
.ads-metric-chip-value { font-size: 17px; font-weight: 600; color: #fff; }

/* 캠페인 카드 */
.ads-card-link { display: block; text-decoration: none; }
.ads-card {
  background: #111; border: 1px solid #1e1e1e; border-radius: 12px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.15s;
}
.ads-card:hover { border-color: #333; }
.ads-card-header  { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ads-card-title   { font-size: 20px; font-weight: 700; color: #fff; margin: 0; line-height: 1.4; }
.ads-card-badge   { font-size: 16px; font-weight: 700; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.ads-card-domain  { font-size: 16px; color: rgba(255,255,255,0.4); }
.ads-card-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.ads-card-date    { font-size: 16px; color: rgba(255,255,255,0.25); margin-top: -4px; }

/* --- 광고 상세 페이지 --- */
.ads-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.ads-btn-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; color: rgba(255,255,255,0.5); text-decoration: none;
}
.ads-header-actions { display: flex; gap: 8px; align-items: center; }
.ads-btn-edit {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 17px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7); cursor: pointer;
}
.ads-btn-deploying {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 8px; font-size: 17px; font-weight: 600;
  border: 1px solid rgba(96,165,250,0.3); background: rgba(96,165,250,0.08);
  color: #60a5fa; cursor: not-allowed;
}
.ads-btn-deploy {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 8px; font-size: 17px; font-weight: 700;
  border: none; background: #fff; color: #000; cursor: pointer;
}
.ads-btn-connect-account {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px; font-size: 16px; font-weight: 500;
  border: 1px solid rgba(245,158,11,0.3); background: rgba(245,158,11,0.07);
  color: #fbbf24; text-decoration: none;
}
.ads-campaign-header { margin-bottom: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ads-campaign-title  { font-size: 29px; font-weight: 800; color: #fff; margin: 0; }
.ads-campaign-badge  { font-size: 16px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.ads-campaign-url    { font-size: 17px; color: rgba(255,255,255,0.35); }
.ads-notice-warning {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 20px;
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2);
  font-size: 17px; color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between; align-items: center;
}
.ads-notice-settings-link {
  font-size: 17px; color: #60a5fa; text-decoration: none; flex-shrink: 0; margin-left: 12px;
}
.ads-sections { display: flex; flex-direction: column; gap: 20px; }

/* 섹션 박스 */
.ads-section-box       { background: #111; border: 1px solid #1e1e1e; border-radius: 14px; padding: 20px 24px; }
.ads-section-box-title {
  font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px 0;
}

/* 인포 로우 */
.ads-info-row       { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ads-info-row-label { font-size: 17px; color: rgba(255,255,255,0.4); min-width: 100px; flex-shrink: 0; }
.ads-info-row-value { font-size: 17px; color: rgba(255,255,255,0.85); flex: 1; }

/* 키워드 */
.ads-section-sublabel { font-size: 16px; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.ads-keyword-list     { display: flex; flex-wrap: wrap; gap: 6px; }
.ads-keyword-tag      {
  font-size: 16px; padding: 4px 10px; border-radius: 6px;
  background: rgba(96,165,250,0.1); color: #93c5fd; border: 1px solid rgba(96,165,250,0.2);
}

/* 카피 섹션 */
.ads-copy-sublabel  { font-size: 16px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.ads-copy-list      { display: flex; flex-direction: column; gap: 6px; }
.ads-copy-item      { font-size: 19px; color: #fff; padding: 8px 12px; background: rgba(255,255,255,0.04); border-radius: 8px; }
.ads-copy-item-desc { font-size: 19px; color: rgba(255,255,255,0.8); padding: 8px 12px; background: rgba(255,255,255,0.04); border-radius: 8px; line-height: 1.6; }

/* 기간 탭 */
.ads-period-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.ads-period-tab {
  padding: 5px 14px; border-radius: 20px; font-size: 16px;
  border: 1px solid #252525; background: transparent;
  color: rgba(255,255,255,0.4); font-weight: 400; cursor: pointer; transition: all 0.15s;
}
.ads-period-tab-active { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; }

/* 메트릭 카드 */
.ads-metric-grid        { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 24px; }
.ads-metric-card        { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px 16px; }
.ads-metric-card-label  { font-size: 16px; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.ads-metric-card-value  { font-size: 27px; font-weight: 700; color: #fff; }

/* 차트 & AI 인사이트 */
.ads-chart-empty    { height: 200px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); font-size: 17px; }
.ads-insights-empty { padding: 20px 0; text-align: center; color: rgba(255,255,255,0.25); font-size: 17px; }
.ads-insights-list  { display: flex; flex-direction: column; gap: 10px; }
.ads-insight-item   {
  font-size: 17px; color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 12px 16px; line-height: 1.65;
}

/* 로딩 상태 */
.ads-loading-center { padding: 80px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 19px; }

/* 상태 이모지 */
.ads-state-emoji-md { font-size: 48px; }
.ads-state-emoji-lg { font-size: 64px; }

/* 에러/재시도 액션 행 */
.ads-error-actions { display: flex; gap: 10px; margin-top: 16px; }

/* --- 광고 생성 페이지 --- */
.ads-create-header         { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ads-create-progress       { margin-bottom: 32px; }
.ads-create-progress-info  { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ads-create-progress-text  { font-size: 16px; color: rgba(255,255,255,0.35); }
.ads-create-progress-track { height: 4px; background: #1e1e1e; border-radius: 2px; overflow: hidden; }
.ads-create-progress-bar   { height: 100%; background: #60a5fa; border-radius: 2px; transition: width 0.3s; }
.ads-create-container      { max-width: 580px; }
.ads-create-step           { display: flex; flex-direction: column; gap: 20px; }
.ads-create-step-title     { font-size: 27px; font-weight: 700; color: #fff; margin: 0 0 6px 0; }
.ads-create-step-desc      { font-size: 19px; color: rgba(255,255,255,0.4); margin: 0; }
.ads-create-url-row        { display: flex; gap: 8px; }
.ads-create-nav            { display: flex; justify-content: space-between; }
.ads-create-nav-end        { display: flex; justify-content: flex-end; }

/* CSL 옵션 버튼 */
.ads-csl-options        { display: flex; flex-direction: column; gap: 8px; }
.ads-csl-option-btn     {
  padding: 12px 16px; border-radius: 8px;
  border: 1px solid #2a2a2a; background: transparent;
  color: rgba(255,255,255,0.7); font-size: 19px; text-align: left;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 10px;
}
.ads-csl-option-btn-active { border-color: rgba(96,165,250,0.5); background: rgba(96,165,250,0.1); color: #93c5fd; }
.ads-csl-radio         { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 2px solid #333; background: transparent; display: flex; align-items: center; justify-content: center; }
.ads-csl-checkbox      { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; border: 2px solid #333; background: transparent; display: flex; align-items: center; justify-content: center; }
.ads-csl-radio-active    { border-color: #60a5fa; background: #60a5fa; }
.ads-csl-checkbox-active { border-color: #60a5fa; background: #60a5fa; }
.ads-csl-header        { display: flex; justify-content: space-between; align-items: center; }
.ads-csl-progress      { font-size: 16px; color: rgba(255,255,255,0.3); }
.ads-csl-multiple-hint { font-size: 16px; color: rgba(255,255,255,0.3); }
.ads-csl-question      { font-size: 21px; font-weight: 600; color: #fff; margin: 0; line-height: 1.5; }

/* 요약 */
.ads-summary-list   { display: flex; flex-direction: column; gap: 12px; }
.ads-summary-title  { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.ads-summary-item   { padding: 12px 14px; background: #0d0d0d; border: 1px solid #1e1e1e; border-radius: 8px; }
.ads-summary-item-q { font-size: 16px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.ads-summary-item-a { font-size: 19px; color: #fff; font-weight: 500; }
.ads-summary-nav    { display: flex; justify-content: space-between; margin-top: 8px; }

/* 스피너 */
.ads-spinner-wrap { padding: 60px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ads-spinner      { width: 40px; height: 40px; border: 3px solid #1e1e1e; border-top-color: #60a5fa; border-radius: 50%; animation: ads-spin 0.8s linear infinite; }
@keyframes ads-spin { to { transform: rotate(360deg); } }
.ads-spinner-text { font-size: 19px; color: rgba(255,255,255,0.4); margin: 0; }

/* Step 4 전략 */
.ads-strategy-header      { display: flex; align-items: center; gap: 8px; }
.ads-strategy-badge       { font-size: 16px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.ads-strategy-label       { font-size: 19px; color: rgba(255,255,255,0.55); }
.ads-frame-options        { display: flex; flex-direction: column; gap: 10px; }
.ads-frame-hint           { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.ads-frame-option-btn     { padding: 16px 18px; border-radius: 10px; border: 1px solid #2a2a2a; background: transparent; text-align: left; cursor: pointer; transition: all 0.15s; width: 100%; }
.ads-frame-option-header  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ads-frame-option-badge   { font-size: 16px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,0.4); flex-shrink: 0; }
.ads-frame-option-title   { font-size: 19px; font-weight: 600; color: #fff; }
.ads-frame-option-desc    { font-size: 17px; color: rgba(255,255,255,0.6); margin: 0 0 6px 0; line-height: 1.5; }
.ads-frame-option-expected{ font-size: 16px; color: rgba(255,255,255,0.38); margin: 0 0 8px 0; line-height: 1.4; }
.ads-frame-option-constraints { display: flex; gap: 14px; font-size: 16px; color: rgba(255,255,255,0.45); }
.ads-strategy-fallback    { padding: 18px 20px; border-radius: 12px; font-size: 19px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.ads-strategy-nav         { display: flex; justify-content: space-between; margin-top: 4px; }

/* Step 5 미리보기 */
.ads-preview-list             { display: flex; flex-direction: column; gap: 16px; }
.ads-preview-summary          { padding: 16px 18px; background: #0d0d0d; border: 1px solid #1e1e1e; border-radius: 10px; }
.ads-preview-summary-label    { font-size: 16px; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.ads-preview-summary-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 17px; }
.ads-preview-label            { color: rgba(255,255,255,0.4); }
.ads-preview-value            { color: #fff; }
.ads-preview-campaign         { background: #111; border: 1px solid #1e1e1e; border-radius: 10px; overflow: hidden; }
.ads-preview-campaign-header  { padding: 12px 16px; border-bottom: 1px solid #1e1e1e; font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.7); }
.ads-preview-campaign-body    { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ads-preview-section-label    { font-size: 16px; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.ads-preview-keyword-list     { display: flex; flex-wrap: wrap; gap: 4px; }
.ads-preview-keyword          { font-size: 16px; padding: 3px 8px; border-radius: 4px; background: rgba(96,165,250,0.08); color: #93c5fd; border: 1px solid rgba(96,165,250,0.15); }
.ads-preview-keyword-more     { font-size: 16px; color: rgba(255,255,255,0.3); }
.ads-preview-copy-item        { font-size: 17px; color: #fff; padding: 6px 10px; background: rgba(255,255,255,0.04); border-radius: 6px; margin-bottom: 4px; }
.ads-preview-copy-item-desc   { font-size: 17px; color: rgba(255,255,255,0.75); padding: 6px 10px; background: rgba(255,255,255,0.04); border-radius: 6px; margin-bottom: 4px; line-height: 1.5; }
.ads-preview-saved            { padding: 16px; text-align: center; color: #22c55e; font-size: 20px; font-weight: 600; }
.ads-preview-nav              { display: flex; flex-direction: column; gap: 8px; }
.ads-preview-nav-row          { display: flex; justify-content: space-between; }

/* --- 광고 수정 페이지 --- */
.ads-edit-header         { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ads-edit-container      { max-width: 580px; display: flex; flex-direction: column; gap: 28px; }
.ads-edit-field-header   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ads-edit-field-hint     { font-size: 16px; color: rgba(255,255,255,0.3); }
.ads-edit-field-list     { display: flex; flex-direction: column; gap: 8px; }
.ads-edit-item-row       { display: flex; gap: 8px; }
.ads-edit-item-footer    { display: flex; justify-content: space-between; margin-top: 3px; }
.ads-edit-char-count     { font-size: 16px; color: rgba(255,255,255,0.25); }
.ads-edit-char-count-over{ font-size: 16px; color: #f87171; }
.ads-edit-field-error    { font-size: 16px; color: #f87171; }
.ads-edit-remove-btn     { padding: 0 10px; border-radius: 8px; border: 1px solid #2a2a2a; background: transparent; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.ads-edit-remove-btn:enabled  { cursor: pointer; }
.ads-edit-remove-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ads-edit-add-btn        { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 17px; border: 1px dashed #333; background: transparent; color: rgba(255,255,255,0.4); cursor: pointer; }
.ads-edit-budget-wrapper { position: relative; }
.ads-edit-budget-prefix  { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); font-size: 19px; }
.ads-edit-actions        { display: flex; justify-content: space-between; padding-bottom: 32px; }
.ads-edit-modal-title    { font-size: 23px; font-weight: 700; color: #fff; margin: 0 0 10px 0; }
.ads-edit-modal-deployed-note { font-size: 17px; color: #fbbf24; margin: 0 0 16px 0; line-height: 1.6; }
.ads-edit-modal-note     { font-size: 17px; color: rgba(255,255,255,0.5); margin: 0 0 24px 0; line-height: 1.6; }
.ads-edit-load-error-p   { font-size: 19px; color: #f87171; margin-bottom: 16px; }

/* --- 광고 설정 페이지 --- */
.ads-settings-header           { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ads-settings-breadcrumb-link  { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; color: rgba(255,255,255,0.5); text-decoration: none; }
.ads-settings-breadcrumb-sep   { color: rgba(255,255,255,0.2); font-size: 17px; }
.ads-settings-container        { max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.ads-settings-card             { background: #111; border: 1px solid #1e1e1e; border-radius: 14px; padding: 24px 26px; }
.ads-settings-card-header      { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ads-settings-card-title       { font-size: 21px; font-weight: 700; color: #fff; margin: 0; }
.ads-settings-status-badge     { font-size: 16px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.ads-settings-loading          { padding: 24px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 17px; }
.ads-settings-connected-box    { padding: 14px 16px; border-radius: 10px; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); margin-bottom: 16px; }
.ads-settings-connected-status { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ads-settings-connected-indicator { font-size: 17px; color: #4ade80; font-weight: 600; }
.ads-settings-connected-info   { display: flex; flex-direction: column; gap: 5px; font-size: 17px; }
.ads-settings-connected-row    { display: flex; gap: 8px; }
.ads-settings-connected-label  { color: rgba(255,255,255,0.4); min-width: 60px; }
.ads-settings-connected-name   { color: #fff; font-weight: 500; }
.ads-settings-connected-date   { color: rgba(255,255,255,0.7); }
.ads-settings-account-actions  { display: flex; align-items: center; gap: 10px; }
.ads-btn-change-account        { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 17px; font-weight: 600; border: 1px solid rgba(96,165,250,0.35); background: rgba(96,165,250,0.08); color: #60a5fa; cursor: pointer; }
.ads-btn-disconnect            { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 17px; font-weight: 600; border: 1px solid rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); color: #f87171; cursor: pointer; }
.ads-settings-select-desc      { font-size: 17px; color: rgba(255,255,255,0.55); margin: 0 0 16px 0; line-height: 1.6; }
.ads-settings-select-loading   { padding: 20px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 17px; }
.ads-settings-select-error     { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); font-size: 17px; color: #f87171; display: flex; align-items: center; gap: 10px; }
.ads-settings-select-error-retry { background: none; border: none; color: #60a5fa; cursor: pointer; font-size: 17px; flex-shrink: 0; }
.ads-settings-select-empty     { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); font-size: 17px; color: rgba(255,255,255,0.6); }
.ads-settings-account-list     { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ads-settings-account-item     { padding: 14px 16px; border-radius: 10px; cursor: pointer; border: 1px solid #2a2a2a; background: rgba(255,255,255,0.02); transition: border-color 0.15s, background 0.15s; }
.ads-settings-account-item-active { border-color: rgba(96,165,250,0.5); background: rgba(96,165,250,0.08); }
.ads-settings-account-item-inner { display: flex; align-items: center; gap: 10px; }
.ads-settings-radio            { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.25); background: transparent; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.ads-settings-radio-active     { border-color: #60a5fa; background: #60a5fa; }
.ads-settings-radio-dot        { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ads-settings-account-info     { flex: 1; }
.ads-settings-account-name     { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.ads-settings-account-sub      { font-size: 16px; color: rgba(255,255,255,0.4); }
.ads-settings-mcc-badge        { margin-left: 8px; font-size: 16px; padding: 2px 6px; border-radius: 4px; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; font-weight: 700; }
.ads-settings-mcc-warning      { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); font-size: 16px; color: #fbbf24; }
.ads-settings-confirm-error    { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); font-size: 17px; color: #f87171; }
.ads-settings-confirm-btns     { display: flex; gap: 8px; }
.ads-btn-confirm-select        { padding: 10px 20px; border-radius: 8px; font-size: 17px; font-weight: 700; border: none; background: #fff; color: #000; cursor: pointer; }
.ads-btn-confirm-select:disabled { background: #333; cursor: not-allowed; opacity: 0.5; }
.ads-settings-cancel-change    { padding: 10px 16px; border-radius: 8px; font-size: 17px; font-weight: 500; border: 1px solid #2a2a2a; background: transparent; color: rgba(255,255,255,0.5); cursor: pointer; }
.ads-not-connected-notice      { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.ads-settings-connect-error    { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); font-size: 17px; color: #f87171; }
.ads-btn-google-connect        { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 19px; font-weight: 700; border: none; background: #fff; color: #000; cursor: pointer; }
.ads-btn-google-connect:disabled { background: #333; cursor: not-allowed; opacity: 0.6; }
.ads-settings-note             { padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid #1e1e1e; font-size: 16px; color: rgba(255,255,255,0.35); line-height: 1.7; }
.ads-disconnect-modal-title    { font-size: 23px; font-weight: 700; color: #fff; margin: 0 0 12px 0; }
.ads-disconnect-modal-note     { font-size: 17px; color: rgba(255,255,255,0.55); margin: 0 0 24px 0; line-height: 1.7; }
.ads-btn-disconnect-confirm    { padding: 9px 20px; border-radius: 8px; font-size: 17px; font-weight: 700; border: 1px solid rgba(239,68,68,0.35); background: rgba(239,68,68,0.15); color: #f87171; cursor: pointer; }
.ads-btn-disconnect-confirm:disabled { cursor: not-allowed; opacity: 0.6; }

/* --- layout.tsx 접근 제한 --- */
.ads-access-denied { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 16px; text-align: center; }
.ads-access-icon   { font-size: 53px; }
.ads-access-title  { font-size: 27px; font-weight: 700; color: #fff; margin: 0; }
.ads-access-desc   { font-size: 19px; color: rgba(255,255,255,0.45); margin: 0; }

/* === TREND PAGES - /dashboard/trend/* === */

/* --- 공통 --- */
.trend-loading            { padding: 60px 0; text-align: center; color: rgba(255,255,255,0.25); font-size: 19px; }
.trend-empty              { padding: 60px 0; text-align: center; color: rgba(255,255,255,0.25); font-size: 19px; }
.trend-back-link          { display: flex; align-items: center; gap: 6px; font-size: 17px; color: rgba(255,255,255,0.5); text-decoration: none; }

/* --- 목록 페이지 --- */
.trend-bookmarks-link     { display: flex; align-items: center; gap: 6px; font-size: 17px; color: #f59e0b; text-decoration: none; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: 8px; padding: 6px 12px; }
.trend-todays-emoji       { font-size: 24px; }
.trend-todays-title       { font-size: 20px; font-weight: 700; color: #fff; }
.trend-todays-date        { font-size: 16px; color: rgba(255,255,255,0.4); margin-left: 2px; }
.trend-new-badge          { margin-left: auto; font-size: 16px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.trend-filter-tab         { padding: 6px 14px; border-radius: 20px; font-size: 17px; cursor: pointer; transition: all 0.15s; }
.trend-filter-tab-active  { border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; }
.trend-filter-tab-idle    { border: 1px solid #252525; background: transparent; color: rgba(255,255,255,0.45); font-weight: 400; }
.trend-date-header        { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.trend-date-label         { font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.5); white-space: nowrap; }
.trend-date-divider       { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.trend-load-more-wrap     { display: flex; justify-content: center; padding-top: 8px; }
.trend-load-more-btn      { padding: 9px 32px; border: 1px solid #2a2a2a; background: transparent; color: rgba(255,255,255,0.55); font-size: 17px; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.trend-load-more-btn:hover { background: #1a1a1a; color: #fff; }
.trend-pagination-wrap    { display: flex; justify-content: center; align-items: center; gap: 4px; padding-top: 8px; }
.trend-pagination-ellipsis { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 17px; }
.trend-pagination-btn     { width: 32px; height: 32px; border-radius: 8px; font-size: 17px; border: none; cursor: pointer; transition: all 0.15s; }
.trend-pagination-btn:hover { background: #1a1a1a; }
.trend-pagination-nav     { width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.trend-pagination-nav:disabled { cursor: not-allowed; }

/* 카드 */
.trend-card-wrap          { position: relative; }
.trend-bookmark-btn       { position: absolute; top: 8px; right: 8px; z-index: 10; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.trend-card               { background: #111; border: 1px solid #1e1e1e; border-radius: 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: border-color 0.15s; }
.trend-card:hover         { border-color: #333; }
.trend-card-img           { aspect-ratio: 16/9; background: #1a1a1a; overflow: hidden; flex-shrink: 0; }
.trend-card-no-image      { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #333; font-size: 16px; }
.trend-card-body          { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trend-card-name-row      { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.trend-card-name          { color: #fff; font-weight: 600; font-size: 17px; line-height: 1.45; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-card-verdict       { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; }
.trend-card-price-row     { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 16px; margin-top: auto; }

/* --- 상세 페이지 --- */
.trend-detail-header      { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.trend-detail-loading     { padding: 80px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 19px; }
.trend-bookmark-toggle    { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 17px; font-weight: 500; cursor: pointer; }
.trend-section-box        { background: #111; border: 1px solid #1e1e1e; border-radius: 14px; padding: 20px 24px; }
.trend-section-title      { font-size: 19px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 16px 0; }
.trend-product-title      { font-size: 21px; font-weight: 700; color: #fff; margin: 0; line-height: 1.5; }
.trend-verdict-badge-lg   { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 6px; font-size: 17px; font-weight: 700; }
.trend-stat-grid          { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trend-stat-card          { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 10px 12px; }
.trend-stat-label         { font-size: 16px; color: rgba(255,255,255,0.4); margin: 0 0 3px 0; }
.trend-stat-value         { font-size: 21px; font-weight: 700; color: #fff; margin: 0; }
.trend-stat-date-value    { font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.7); margin: 0; }
.trend-stat-margin        { background: rgba(34,197,94,0.06); border-radius: 8px; padding: 10px 12px; border: 1px solid rgba(34,197,94,0.15); }
.trend-stat-margin-label  { font-size: 16px; color: rgba(34,197,94,0.6); margin: 0 0 3px 0; }
.trend-stat-margin-value  { font-size: 21px; font-weight: 700; color: #22c55e; margin: 0; }
.trend-detail-no-image    { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #444; font-size: 19px; }
.trend-target-tags        { display: flex; flex-wrap: wrap; gap: 8px; }
.trend-target-tag         { font-size: 17px; padding: 5px 12px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border-radius: 6px; }
.trend-source-link        { display: flex; align-items: center; gap: 6px; font-size: 17px; color: #60a5fa; text-decoration: none; }
.trend-ai-section         { display: flex; flex-direction: column; gap: 16px; }
.trend-ai-label           { font-size: 16px; color: rgba(255,255,255,0.4); margin: 0 0 6px 0; }
.trend-ai-text            { font-size: 19px; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.7; }
.trend-ai-main-text       { font-size: 19px; color: #fff; margin: 0; line-height: 1.7; font-weight: 500; }
.trend-ai-risk-val        { font-size: 19px; font-weight: 700; min-width: 40px; }
.trend-ai-list-item       { font-size: 19px; color: rgba(255,255,255,0.8); line-height: 1.6; }
.trend-suggestion-item    { padding: 10px 12px; background: rgba(255,255,255,0.04); border-radius: 8px; }
.trend-suggestion-name    { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 3px 0; }
.trend-suggestion-reason  { font-size: 16px; color: rgba(255,255,255,0.5); margin: 0; }
.trend-no-analysis        { font-size: 19px; color: rgba(255,255,255,0.3); margin: 0; }

/* --- 북마크 페이지 --- */
.trend-bm-back-link       { display: flex; align-items: center; gap: 5px; font-size: 17px; color: rgba(255,255,255,0.4); text-decoration: none; }
.trend-bm-sep             { color: #333; }
.trend-bm-loading         { padding: 60px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 19px; }
.trend-bm-empty-wrap      { padding: 80px 20px; text-align: center; }
.trend-bm-empty-icon      { font-size: 53px; margin-bottom: 16px; }
.trend-bm-empty-title     { font-size: 21px; color: rgba(255,255,255,0.5); margin: 0 0 8px 0; }
.trend-bm-empty-hint      { font-size: 17px; color: rgba(255,255,255,0.3); margin: 0 0 24px 0; }
.trend-bm-go-link         { display: inline-block; padding: 9px 20px; background: rgba(255,255,255,0.08); color: #fff; border-radius: 8px; text-decoration: none; font-size: 17px; font-weight: 500; }
.trend-bm-count           { font-size: 17px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.trend-bm-grid            { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.trend-bm-card            { background: #111; border: 1px solid #222; border-radius: 14px; overflow: hidden; position: relative; }
.trend-bm-remove-btn      { position: absolute; top: 8px; right: 8px; z-index: 10; background: rgba(0,0,0,0.6); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); }
.trend-bm-card-link       { display: block; text-decoration: none; }
.trend-bm-card-img        { aspect-ratio: 16/9; background: #1a1a1a; overflow: hidden; }
.trend-bm-no-image        { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #444; font-size: 17px; }
.trend-bm-card-body       { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.trend-bm-name-row        { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.trend-bm-name            { color: #fff; font-weight: 600; font-size: 19px; line-height: 1.4; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-bm-verdict         { font-size: 16px; font-weight: 700; border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.trend-bm-price           { font-size: 17px; color: rgba(255,255,255,0.6); margin: 0; }

/* ── 3. 모바일 콘텐츠 폰트 크기 상향 (scale x1.417) ── */
@media (max-width: 768px) {
  .admin-page-title      { font-size: 40px; }                       /* 28 x 1.417 */

  .admin-stat-label      { font-size: 18px; }
  .admin-stat-value      { font-size: 45px; }

  .admin-section-title   { font-size: 28px; }
  .admin-link-primary    { font-size: 20px; }

  .admin-tab             { font-size: 20px; padding: 17px 28px; }

  .admin-table th        { font-size: 17px; padding: 17px 18px; }
  .admin-table td        { font-size: 20px; padding: 17px 16px; }

  .admin-badge           { font-size: 17px; }
  .admin-badge-secondary { font-size: 17px; }

  .admin-empty           { font-size: 20px; }

  .admin-modal-title     { font-size: 26px; }
  .admin-detail-value    { font-size: 20px; }
  .admin-btn             { font-size: 20px; padding: 12px 24px; }
  .admin-note            { font-size: 20px; }
  .admin-form-input      { font-size: 20px; padding: 12px 17px; }

  .curriculum-chapter-title-input { font-size: 20px; }
  .curriculum-lesson-title-input  { font-size: 18px; }

  .novel-editor .ProseMirror { font-size: 20px; }
  .novel-command-title       { font-size: 18px; }
  .novel-bubble-item         { font-size: 18px; }
  .tiptap-content-area       { font-size: 21px; }

  .course-admin-title    { font-size: 23px; }
  .course-admin-subtitle { font-size: 18px; }

  /* ADS 반응형 */
  /* 목록 */
  .ads-filter-tab         { font-size: 23px; }
  .ads-state-title        { font-size: 24px; }
  .ads-state-desc         { font-size: 18px; }
  .ads-btn-retry          { font-size: 18px; }
  .ads-btn-settings       { font-size: 18px; }
  .ads-btn-create         { font-size: 18px; }
  .ads-metric-chip-label  { font-size: 17px; }
  .ads-metric-chip-value  { font-size: 18px; }
  .ads-card-title         { font-size: 21px; }
  .ads-card-badge         { font-size: 17px; }
  .ads-card-domain        { font-size: 17px; }
  .ads-card-date          { font-size: 17px; }

  /* 상세 */
  .ads-btn-back           { font-size: 18px; }
  .ads-btn-edit           { font-size: 18px; }
  .ads-btn-deploying      { font-size: 18px; }
  .ads-btn-deploy         { font-size: 18px; }
  .ads-btn-connect-account { font-size: 17px; }
  .ads-campaign-title     { font-size: 31px; }
  .ads-campaign-badge     { font-size: 17px; }
  .ads-campaign-url       { font-size: 18px; }
  .ads-notice-warning     { font-size: 18px; }
  .ads-section-box-title  { font-size: 17px; }
  .ads-info-row-label     { font-size: 18px; }
  .ads-info-row-value     { font-size: 18px; }
  .ads-section-sublabel   { font-size: 17px; }
  .ads-keyword-tag        { font-size: 17px; }
  .ads-copy-sublabel      { font-size: 17px; }
  .ads-copy-item          { font-size: 20px; }
  .ads-copy-item-desc     { font-size: 20px; }
  .ads-period-tab         { font-size: 17px; }
  .ads-metric-card-label  { font-size: 17px; }
  .ads-metric-card-value  { font-size: 28px; }
  .ads-chart-empty        { font-size: 18px; }
  .ads-insights-empty     { font-size: 18px; }
  .ads-insight-item       { font-size: 18px; }
  .ads-loading-center     { font-size: 20px; }

  /* 생성 */
  .ads-create-progress-text { font-size: 17px; }
  .ads-create-step-title  { font-size: 28px; }
  .ads-create-step-desc   { font-size: 20px; }
  .ads-csl-progress       { font-size: 17px; }
  .ads-csl-multiple-hint  { font-size: 17px; }
  .ads-csl-question       { font-size: 23px; }
  .ads-csl-option-btn     { font-size: 20px; }
  .ads-summary-title      { font-size: 21px; }
  .ads-summary-item-q     { font-size: 17px; }
  .ads-summary-item-a     { font-size: 20px; }
  .ads-spinner-text       { font-size: 20px; }
  .ads-strategy-label     { font-size: 20px; }
  .ads-frame-hint         { font-size: 18px; }
  .ads-frame-option-title { font-size: 20px; }
  .ads-frame-option-desc  { font-size: 18px; }
  .ads-preview-summary-grid { font-size: 18px; }
  .ads-preview-copy-item  { font-size: 18px; }
  .ads-preview-copy-item-desc { font-size: 18px; }
  .ads-preview-saved      { font-size: 21px; }

  /* 수정 */
  .ads-edit-field-hint    { font-size: 17px; }
  .ads-edit-char-count    { font-size: 17px; }
  .ads-edit-char-count-over { font-size: 17px; }
  .ads-edit-field-error   { font-size: 17px; }
  .ads-edit-add-btn       { font-size: 18px; }
  .ads-edit-modal-title   { font-size: 24px; }
  .ads-edit-modal-note    { font-size: 18px; }

  /* 설정 */
  .ads-settings-card-title { font-size: 23px; }
  .ads-settings-account-name { font-size: 20px; }
  .ads-settings-account-sub { font-size: 17px; }
  .ads-btn-google-connect { font-size: 20px; }

  /* 모달 공통 */
  .ads-modal-title        { font-size: 24px; }
  .ads-modal-btn-cancel   { font-size: 18px; }
  .ads-modal-btn-confirm  { font-size: 18px; }
  .ads-modal-error        { font-size: 18px; }
  .ads-modal-note         { font-size: 17px; }

  /* 배너 */
  .ads-banner             { font-size: 18px; }

  /* 폼 */
  .ads-form-input         { font-size: 20px; }
  .ads-btn-primary        { font-size: 20px; }
  .ads-btn-secondary      { font-size: 20px; }
  .ads-form-label         { font-size: 18px; }

  /* 접근 제한 */
  .ads-access-title       { font-size: 28px; }
  .ads-access-desc        { font-size: 20px; }

  /* TREND 반응형 */
  .trend-loading            { font-size: 20px; }
  .trend-empty              { font-size: 20px; }
  .trend-back-link          { font-size: 18px; }
  .trend-bookmarks-link     { font-size: 18px; }
  .trend-todays-emoji       { font-size: 25px; }
  .trend-todays-title       { font-size: 21px; }
  .trend-todays-date        { font-size: 17px; }
  .trend-new-badge          { font-size: 17px; }
  .trend-filter-tab         { font-size: 18px; }
  .trend-date-label         { font-size: 18px; }
  .trend-load-more-btn      { font-size: 18px; }
  .trend-pagination-ellipsis { font-size: 18px; }
  .trend-pagination-btn     { font-size: 18px; }
  .trend-card-no-image      { font-size: 17px; }
  .trend-card-name          { font-size: 18px; }
  .trend-card-verdict       { font-size: 17px; }
  .trend-card-price-row     { font-size: 17px; }
  .trend-detail-loading     { font-size: 20px; }
  .trend-bookmark-toggle    { font-size: 18px; }
  .trend-section-title      { font-size: 20px; }
  .trend-product-title      { font-size: 23px; }
  .trend-verdict-badge-lg   { font-size: 18px; }
  .trend-stat-label         { font-size: 17px; }
  .trend-stat-value         { font-size: 23px; }
  .trend-stat-date-value    { font-size: 18px; }
  .trend-stat-margin-label  { font-size: 17px; }
  .trend-stat-margin-value  { font-size: 23px; }
  .trend-detail-no-image    { font-size: 20px; }
  .trend-target-tag         { font-size: 18px; }
  .trend-source-link        { font-size: 18px; }
  .trend-ai-label           { font-size: 17px; }
  .trend-ai-text            { font-size: 20px; }
  .trend-ai-main-text       { font-size: 20px; }
  .trend-ai-risk-val        { font-size: 20px; }
  .trend-ai-list-item       { font-size: 20px; }
  .trend-suggestion-name    { font-size: 18px; }
  .trend-suggestion-reason  { font-size: 17px; }
  .trend-no-analysis        { font-size: 20px; }
  .trend-bm-back-link       { font-size: 18px; }
  .trend-bm-loading         { font-size: 20px; }
  .trend-bm-empty-icon      { font-size: 57px; }
  .trend-bm-empty-title     { font-size: 23px; }
  .trend-bm-empty-hint      { font-size: 18px; }
  .trend-bm-go-link         { font-size: 18px; }
  .trend-bm-count           { font-size: 18px; }
  .trend-bm-no-image        { font-size: 18px; }
  .trend-bm-name            { font-size: 20px; }
  .trend-bm-verdict         { font-size: 17px; }
  .trend-bm-price           { font-size: 18px; }
}
