/* ── Base reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ─────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 64px;
  transition: background .2s, color .2s;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 40px;
}
header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  cursor: pointer;
  display: inline-block;
}
header h1 .logo-black  { color: #000; }
header h1 .logo-purple { color: var(--accent); }
header p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 1rem;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 24px;
}

/* ── Auth tabs ────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all .15s;
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s, background .2s, color .2s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; font-family: inherit; }
select { cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent);  color: #fff; }
.btn-success { background: var(--accent2); color: var(--btn-success-text); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.alert.show  { display: block; }
.alert-error { background: rgba(220,38,38,.10);  border: 1px solid var(--danger); color: var(--danger); }
.alert-ok    { background: rgba(22,163,74,.10);  border: 1px solid var(--ok);     color: var(--ok); }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
#top-bar {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 24px;
}
#top-bar .user-info { font-size: 0.88rem; color: var(--muted); }
#top-bar .user-info strong { color: var(--text); }
#top-bar .plan-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.topbar-nav-btn {
  padding: 7px 16px;
  border: none;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.topbar-nav-btn:hover { opacity: 0.85; }

/* ── App nav tabs ─────────────────────────────────────────────────────────── */
#app-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}
.app-tab-btn {
  flex: 1;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all .15s;
}
.app-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Fact-check / Results ─────────────────────────────────────────────────── */
#factcheck-card { max-width: 800px; }
#results        { max-width: 800px; }

.verdict-banner {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.verdict-SUPPORTED    { background: rgba(22,163,74,.10);   border: 1px solid var(--ok); }
.verdict-MIXED        { background: rgba(215,119,0,.10);   border: 1px solid var(--warn); }
.verdict-UNSUPPORTED  { background: rgba(220,38,38,.10);   border: 1px solid var(--danger); }
.verdict-SATIRICAL    { background: rgba(59,130,246,.10);  border: 1px solid #3b82f6; }
/* legacy verdict classes kept for cached results */
.verdict-TRUE         { background: rgba(22,163,74,.10);   border: 1px solid var(--ok); }
.verdict-FALSE        { background: rgba(220,38,38,.10);   border: 1px solid var(--danger); }
.verdict-UNVERIFIABLE { background: rgba(107,112,128,.10); border: 1px solid var(--muted); }
.verdict-AI-GENERATED { background: rgba(220,38,38,.10);   border: 1px solid var(--danger); }
.verdict-REAL         { background: rgba(22,163,74,.10);   border: 1px solid var(--ok); }

.verdict-icon    { font-size: 1.8rem; }
.verdict-label   { font-size: 1.1rem; font-weight: 700; }
.verdict-summary { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

.section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 20px 0 10px;
}

.verdict-breakdown {
  margin: 12px 0 4px;
}
.breakdown-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 8px;
}
.breakdown-seg {
  border-radius: 99px;
  min-width: 4px;
  transition: opacity .15s;
}
.breakdown-seg:hover { opacity: .8; }
.breakdown-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.breakdown-pill {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.claim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.claim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.claim-confidence {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.claim-verdict {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  text-transform: uppercase;
}
.cv-SUPPORTED    { background: rgba(22,163,74,.15);   color: var(--ok); }
.cv-DISPUTED     { background: rgba(220,38,38,.15);   color: var(--danger); }
.cv-UNVERIFIED   { background: rgba(107,112,128,.15); color: var(--muted); }
.cv-MISLEADING   { background: rgba(215,119,0,.15);   color: var(--warn); }
/* legacy claim verdict classes */
.cv-TRUE         { background: rgba(22,163,74,.15);   color: var(--ok); }
.cv-FALSE        { background: rgba(220,38,38,.15);   color: var(--danger); }
.cv-MIXED        { background: rgba(215,119,0,.15);   color: var(--warn); }
.cv-UNVERIFIABLE { background: rgba(107,112,128,.15); color: var(--muted); }
.claim-text        { font-weight: 600; margin-bottom: 6px; }
.claim-explanation { font-size: 0.88rem; color: var(--muted); }

.source-list { list-style: none; margin-top: 10px; }
.source-list li { font-size: 0.82rem; margin-bottom: 4px; }
.source-list a { color: var(--accent); text-decoration: none; }
.source-list a:hover { text-decoration: underline; }

.ai-meter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.ai-meter-label { font-size: 0.9rem; margin-bottom: 10px; }
.ai-meter-bar-wrap {
  background: var(--bg);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.ai-meter-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .5s ease;
}
.ai-meter-pct { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.remaining-badge {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  margin-top: 10px;
}

.beta-warning {
  background: rgba(180, 120, 0, 0.10);
  border: 1px solid rgba(180, 120, 0, 0.35);
  border-radius: var(--radius);
  color: #7a5500;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 8px 12px;
  margin-bottom: 10px;
}
[data-theme="dark"] .beta-warning {
  background: rgba(255, 180, 0, 0.08);
  border-color: rgba(255, 180, 0, 0.25);
  color: #d4a017;
}

.cached-badge {
  font-size: 0.8rem;
  color: var(--accent);
  text-align: right;
  margin-top: 10px;
}

/* ── Token usage bar ──────────────────────────────────────────────────────── */
.usage-bar-wrap {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.usage-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 0.8rem;
}
.usage-label { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.usage-count { color: var(--text); }
.usage-count.usage-warn { color: var(--warn); font-weight: 600; }
.usage-overage { color: var(--danger); font-weight: 600; }
.usage-bar-track {
  background: var(--bg);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width .4s ease;
}
.usage-bar-fill.usage-bar-warn { background: var(--warn); }
.usage-bar-fill.usage-bar-over { background: var(--danger); }

/* In the account profile, the usage bar sits between rows — no bottom gap needed */
#acct-usage-bar .usage-bar-wrap { margin-bottom: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 12px 0; background: transparent; }

/* ── Usage preference checkboxes ──────────────────────────────────────────── */
.fc-preferences {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pref-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.pref-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.pref-note {
  color: var(--muted);
  font-size: 0.8rem;
}
.pref-checkbox.pref-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pref-checkbox.pref-disabled input[type="checkbox"] {
  cursor: not-allowed;
}
.pref-paid-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ── History ──────────────────────────────────────────────────────────────── */
#history-panel { width: 100%; }
.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
.history-item:hover { border-color: var(--accent); }
.history-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.history-verdict-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hv-SUPPORTED    { background: rgba(22,163,74,.15);   color: var(--ok); }
.hv-MIXED        { background: rgba(215,119,0,.15);   color: var(--warn); }
.hv-UNSUPPORTED  { background: rgba(220,38,38,.15);   color: var(--danger); }
.hv-SATIRICAL    { background: rgba(59,130,246,.15);  color: #3b82f6; }
/* legacy history badge classes kept for cached results */
.hv-TRUE         { background: rgba(22,163,74,.15);   color: var(--ok); }
.hv-FALSE        { background: rgba(220,38,38,.15);   color: var(--danger); }
.hv-UNVERIFIABLE { background: rgba(107,112,128,.15); color: var(--muted); }
.hv-AI-GENERATED { background: rgba(220,38,38,.15);   color: var(--danger); }
.hv-REAL         { background: rgba(22,163,74,.15);   color: var(--ok); }
.history-cached-tag {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-content-preview {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.history-item-body {
  border-top: 1px solid var(--border);
  padding: 16px;
  display: none;
}
.history-item.expanded .history-item-body { display: block; }
.history-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 0.95rem;
}
.history-load-more {
  width: 100%;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color .15s;
}
.history-load-more:hover { border-color: var(--accent); }

/* ── Account settings ─────────────────────────────────────────────────────── */
.account-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}
.account-tab-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all .15s;
}
.account-tab-btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.profile-row:last-child { border-bottom: none; }
.profile-row .label { color: var(--muted); font-size: 0.82rem; }

/* ── Theme selector ───────────────────────────────────────────────────────── */
.theme-selector {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.theme-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.theme-btn.active {
  border-color: var(--accent);
  color: var(--text);
}
.theme-preview {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.theme-preview-light { background: linear-gradient(135deg, #f0f2f8 50%, #cccccc 50%); }
.theme-preview-dark  { background: linear-gradient(135deg, #0f1117 50%, #1a1d27 50%); }

/* ── Plan cards (upgrade) ─────────────────────────────────────────────────── */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.plan-card.current { border-color: var(--accent); }
.plan-card-name  { font-size: 1rem; font-weight: 700; }
.plan-card-price { font-size: 1.5rem; font-weight: 700; }
.plan-card-price span { font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.plan-card-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-card-features li::before { content: '✓ '; color: var(--ok); }
.plan-card .btn { margin-top: auto; }
.plan-current-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  position: absolute;
  top: 12px;
  right: 12px;
}
.plan-pending-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #d97706;
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  position: absolute;
  top: 12px;
  right: 12px;
}
.plan-card.pending { border-color: #d97706; }
#account-alert { margin-bottom: 1rem; }
.pending-plan-notice {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  padding: 6px 10px;
  border-left: 2px solid var(--accent);
  background: rgba(99,102,241,.07);
  border-radius: 4px;
}
#account-panel .card { max-width: 100%; }

/* ── 2FA QR setup ─────────────────────────────────────────────────────────── */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 12px 0;
}
.qr-wrap img { border-radius: 6px; background: #fff; padding: 6px; }
.qr-secret {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}
.qr-secret-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-copy-secret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.btn-copy-secret:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.twofa-enabled-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22,163,74,.08);
  border: 1px solid var(--ok);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.twofa-enabled-row span { color: var(--ok); font-weight: 600; font-size: 0.9rem; }

/* ── Progress steps ──────────────────────────────────────────────────────── */
.progress-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.28;
  transition: opacity 0.4s;
}
.progress-step.progress-done {
  opacity: 0.55;
}
.progress-step.progress-active {
  opacity: 1;
}
.progress-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.progress-text {
  font-size: 0.95rem;
  color: var(--text);
}
.progress-step.progress-done .progress-text {
  color: var(--ok);
}
.progress-step.progress-active .progress-text {
  color: var(--accent);
  font-weight: 600;
}
.progress-step.progress-active .progress-icon {
  animation: pulse-icon 1.2s ease-in-out infinite;
}
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--spinner-border);
  border-top-color: var(--spinner-top);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cog / user menu ──────────────────────────────────────────────────────── */
.cog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s, transform .2s;
}
.cog-btn:hover { background: rgba(108,99,255,.12); }
.cog-btn:active { transform: rotate(30deg); }

.cog-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 100;
  overflow: hidden;
}
.cog-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .12s;
}
.cog-dropdown-item:hover { background: var(--bg); }
.cog-dropdown-item-danger { color: var(--danger); }
.cog-dropdown-item-danger:hover { background: rgba(220,38,38,.07); }

/* ── TOTP digit inputs ────────────────────────────────────────────────────── */
.totp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.totp-digit {
  width: 44px !important;
  height: 52px;
  padding: 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  caret-color: var(--accent);
}
.totp-digit:focus { border-color: var(--accent); }

/* ── Image upload zone ────────────────────────────────────────────────────── */
.image-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.image-drop-zone:hover,
.image-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(108,99,255,.04);
}
.image-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  pointer-events: none;
}
.image-drop-label svg { margin-bottom: 4px; }
.image-drop-label u   { color: var(--accent); }
.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  cursor: default;
}
.image-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}
.image-preview-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.image-preview-name { font-size: 0.88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.image-preview-size { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.image-clear-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .12s, color .12s;
}
.image-clear-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ── Image input note ─────────────────────────────────────────────────────── */
.fc-image-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 1.5;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
