/* ===== Web fonts (XORS brand: Instrument Serif + Courier Prime) ===== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Courier+Prime:wght@400;700&display=swap');

/* ===== Fonts (bundled Poppins for infographic rendering) ===== */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-italic.woff2') format('woff2');
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* XORS brand palette */
  --bg: #FAF8EA;          /* paper white */
  --surface: #FFFEF8;     /* warm near-white card surface */
  --beige: #F7EED7;       /* light beige alt surface */
  --border: #CCC6BA;      /* light grey */
  --text: #1C1C1A;        /* ink black */
  --text-muted: #6E665A;  /* warm muted */
  --primary: #E85328;     /* vivid orange */
  --primary-hover: #CF4A22;
  --primary-text: #FAF8EA;
  --danger: #B21612;      /* deep red */
  --danger-hover: #8F1410;
  --success: #2d8a4e;
  --warning: #dd6b20;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(28,28,26,0.08);
}

::selection {
  background: var(--primary);
  color: var(--primary-text);
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Headings use the brand display serif */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px dotted var(--border);
}

header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

header a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

header a:hover { color: var(--text); }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-meta span { display: flex; align-items: center; gap: 4px; }

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ===== Toggle Switch ===== */
.scheduler-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheduler-toggle .toggle-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle .slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .slider { background: var(--success); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}
.btn-primary:hover { background: var(--primary-hover); }

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--text);
  color: var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--bg); }

.btn-sm { padding: 5px 12px; font-size: 0.8rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Posts ===== */
.post-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.post-item:hover { border-color: var(--text-muted); }

.post-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.post-index {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dotted var(--border);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

textarea,
input[type="text"],
input[type="email"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232, 83, 40, 0.2);
}

.datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== Schedule Preview ===== */
.schedule-list {
  max-height: 400px;
  overflow-y: auto;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px dotted var(--border);
  font-size: 0.85rem;
}

.schedule-item:last-child { border-bottom: none; }

.schedule-item.current {
  background: rgba(232, 83, 40, 0.08);
  border-left: 3px solid var(--primary);
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state h3 { margin-bottom: 8px; font-size: 1.1rem; color: var(--text); }
.empty-state p { font-size: 0.9rem; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius);
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(10px);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: slideUp 0.2s ease;
}

.modal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Infographic preview modal ===== */
.ig-modal {
  max-width: 520px;
  width: 92vw;
}

.ig-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-height: 62vh;
  overflow: auto;
  margin: 12px 0 4px;
  background: var(--bg);
  padding: 12px;
}

#ig-canvas {
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.ig-modal .modal-actions {
  flex-wrap: wrap;
}

.ig-feedback-group {
  margin: 10px 0 0;
}

.ig-feedback-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ig-feedback-group textarea {
  font-size: 0.85rem;
}

/* ===== Login ===== */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.login-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.login-container .accent {
  color: var(--primary);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.btn-google:hover {
  border-color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#login-form,
#social-auth {
  width: 100%;
  max-width: 360px;
}

#social-auth .btn-google {
  display: flex;
  width: 100%;
  justify-content: center;
}

.login-error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 18px;
  margin-bottom: 10px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ===== Auth Header ===== */
.auth-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.auth-header a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Topic Combobox ===== */
.combobox {
  position: relative;
  display: flex;
  gap: 6px;
}

.combobox > input {
  flex: 1;
  min-width: 0;
}

.combobox-refresh {
  flex: 0 0 auto;
  width: 38px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.15s;
}

.combobox-refresh:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--primary);
}

.combobox-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 20;
  box-shadow: var(--shadow);
}

.combobox-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  font-family: inherit;
  line-height: 1.4;
}

.combobox-option:last-child { border-bottom: none; }

.combobox-option:hover {
  background: rgba(232, 83, 40, 0.08);
}

.combobox-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.optional {
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0 8px;
}

/* ===== Image Upload ===== */
#image-upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.image-preview {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.image-preview img {
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.image-preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.image-preview-meta input {
  width: 100%;
}

.post-thumb {
  display: block;
  max-width: 220px;
  max-height: 220px;
  margin-top: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}

/* ===== Calendar ===== */
.container-wide {
  max-width: 1400px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-nav {
  display: flex;
  gap: 6px;
}

.calendar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-pending { background: var(--primary); }
.legend-posted { background: var(--text-muted); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
}

.calendar-dayname {
  background: var(--surface);
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.calendar-day {
  background: var(--surface);
  min-height: 130px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.1s;
}

.calendar-day:hover {
  background: var(--bg);
}

.calendar-day.muted {
  background: #fafafa;
  color: #bbb;
}

.calendar-day.muted .calendar-day-num {
  color: #bbb;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day.has-posts .calendar-day-num {
  color: var(--text);
}

.calendar-day-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.calendar-day-posts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.calendar-post {
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 3px 6px;
  border-left: 2px solid;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.calendar-post.pending {
  background: rgba(232, 83, 40, 0.12);
  border-left-color: var(--primary);
}

.calendar-post.posted {
  background: #f0f0f0;
  border-left-color: var(--text-muted);
  color: var(--text-muted);
}

.calendar-post-time {
  font-weight: 700;
  margin-right: 4px;
}

.calendar-post-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-post-more {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 2px 6px;
  font-weight: 600;
}

/* ===== Wider Modal (for calendar day view) ===== */
.modal-wide {
  max-width: 640px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
}

.modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.modal-post-edit {
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 12px;
  background: var(--bg);
}

.modal-post-edit textarea {
  background: var(--surface);
}

.modal-post-readonly {
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 12px;
}

.modal-post-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.modal-post-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

/* ===== Onboarding ===== */
.onboarding-container {
  padding-top: 24px;
}

.accent {
  color: var(--primary);
}

/* ===== Onboarding Wizard ===== */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.wizard-pip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-pip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.wizard-pip-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.wizard-pip.active .wizard-pip-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}
.wizard-pip.active .wizard-pip-label { color: var(--text); }

.wizard-pip.done .wizard-pip-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.wizard-pip-sep {
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
  min-width: 8px;
}

.wizard-title { margin-bottom: 8px; }

.wizard-help {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dotted var(--border);
}

.wizard-actions #wizard-next { margin-left: auto; }

/* Suggestion chips */
.chip-suggestions { margin-top: 4px; }

.chip-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  text-align: left;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--primary);
  background: rgba(232, 83, 40, 0.08);
}

/* Niche validation feedback */
.niche-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--warning);
  border-left-width: 3px;
  background: #fff8ee;
}

.niche-feedback-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warning);
  margin-bottom: 6px;
}

.niche-feedback-text {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.niche-feedback-suggestions { margin-top: 4px; }

/* Idea rating list */
.idea-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.idea-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.idea-row.rated-good {
  border-color: var(--success);
  background: rgba(45, 138, 78, 0.06);
}

.idea-row.rated-bad {
  border-color: var(--border);
  background: var(--bg);
  opacity: 0.65;
}

.idea-text {
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1 1 auto;
}

.idea-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.idea-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.idea-btn:hover { border-color: var(--text-muted); color: var(--text); }

.idea-btn.good.active {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.idea-btn.bad.active {
  background: var(--text-muted);
  border-color: var(--text-muted);
  color: #fff;
}

/* ===== Loading ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

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