/* ═══════════════════════════════════════════════════════════════════
   image-base64.css
   Scope   : #i2b-root  (zero bleed - no conflicts with other tools)
   Theme   : Light only - no dark mode
   Accent  : Violet #7c3aed
   Prefix  : i2b-
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design tokens ──────────────────────────────────────────────── */
#i2b-root {
  /* Brand */
  --i2b-accent        : #7c3aed;
  --i2b-accent-dark   : #6d28d9;
  --i2b-accent-deep   : #5b21b6;
  --i2b-accent-light  : #f5f3ff;
  --i2b-accent-mid    : #ddd6fe;
  --i2b-accent-glow   : rgba(124,58,237,.15);

  /* Surfaces */
  --i2b-bg            : #f8f7ff;
  --i2b-surface       : #ffffff;
  --i2b-surface-2     : #f8fafc;
  --i2b-border        : #e5e7eb;
  --i2b-border-focus  : #a78bfa;

  /* Text */
  --i2b-text          : #1e1b4b;
  --i2b-text-muted    : #6b7280;
  --i2b-text-light    : #9ca3af;

  /* Semantic */
  --i2b-success       : #16a34a;
  --i2b-success-light : #dcfce7;
  --i2b-success-border: #86efac;
  --i2b-danger        : #dc2626;
  --i2b-danger-light  : #fee2e2;
  --i2b-warn          : #d97706;
  --i2b-warn-light    : #fef3c7;
  --i2b-info          : #0284c7;
  --i2b-info-light    : #e0f2fe;

  /* Geometry */
  --i2b-radius-xs     : 6px;
  --i2b-radius-sm     : 8px;
  --i2b-radius        : 12px;
  --i2b-radius-lg     : 16px;
  --i2b-radius-xl     : 20px;

  /* Shadows */
  --i2b-shadow-xs     : 0 1px 2px rgba(0,0,0,.05);
  --i2b-shadow-sm     : 0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(124,58,237,.04);
  --i2b-shadow        : 0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --i2b-shadow-lg     : 0 8px 32px rgba(124,58,237,.12), 0 2px 8px rgba(0,0,0,.06);
  --i2b-shadow-focus  : 0 0 0 3px var(--i2b-accent-glow);

  /* Motion */
  --i2b-ease          : cubic-bezier(.4,0,.2,1);
  --i2b-transition    : .18s var(--i2b-ease);

  /* Typography */
  --i2b-font          : 'Inter', system-ui, sans-serif;
  --i2b-font-head     : 'Outfit', system-ui, sans-serif;
  --i2b-font-mono     : 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

/* ── Scoped reset ───────────────────────────────────────────────── */
#i2b-root *, #i2b-root *::before, #i2b-root *::after { box-sizing: border-box; }
#i2b-root { font-family: var(--i2b-font); color: var(--i2b-text); background: var(--i2b-bg); }

/* ══════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
  border-bottom: 1px solid var(--i2b-accent-mid);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#i2b-root .i2b-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 10% 20%, rgba(124,58,237,.08) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 90% 80%, rgba(139,92,246,.10) 0%, transparent 70%);
  pointer-events: none;
}
#i2b-root .i2b-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--i2b-accent-mid);
  color: var(--i2b-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--i2b-shadow-xs);
  position: relative;
}
#i2b-root .i2b-hero-badge svg { width: 13px; height: 13px; }
#i2b-root .i2b-hero h1 {
  font-family: var(--i2b-font-head);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  color: var(--i2b-text);
  position: relative;
}
#i2b-root .i2b-hero h1 span { color: var(--i2b-accent); }
#i2b-root .i2b-hero p {
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--i2b-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  position: relative;
}
#i2b-root .i2b-hero-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
#i2b-root .i2b-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--i2b-accent-mid);
  color: var(--i2b-accent-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
#i2b-root .i2b-hero-chip svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

/* ══════════════════════════════════════════════════════════════════
   MODE TOGGLE (Image→Base64 / Base64→Image)
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-mode-bar {
  display: flex;
  gap: 6px;
  background: var(--i2b-surface);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius);
  padding: 5px;
  margin-bottom: 28px;
  box-shadow: var(--i2b-shadow-sm);
  max-width: 480px;
}
#i2b-root .i2b-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--i2b-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--i2b-font);
  color: var(--i2b-text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--i2b-transition);
  white-space: nowrap;
}
#i2b-root .i2b-mode-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
#i2b-root .i2b-mode-btn:hover { color: var(--i2b-text); background: var(--i2b-surface-2); }
#i2b-root .i2b-mode-btn.is-active {
  background: var(--i2b-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,.3);
}

/* ══════════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-card {
  background: var(--i2b-surface);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius-lg);
  padding: 22px;
  box-shadow: var(--i2b-shadow-sm);
  margin-bottom: 20px;
}
#i2b-root .i2b-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}
#i2b-root .i2b-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--i2b-text);
}
#i2b-root .i2b-card-title svg { width: 18px; height: 18px; color: var(--i2b-accent); flex-shrink: 0; }
#i2b-root .i2b-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════
   DROP ZONE
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-dropzone {
  border: 2.5px dashed var(--i2b-accent-mid);
  border-radius: var(--i2b-radius-lg);
  background: var(--i2b-accent-light);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--i2b-transition);
  position: relative;
  overflow: hidden;
}
#i2b-root .i2b-dropzone:hover,
#i2b-root .i2b-dropzone.is-drag-over {
  border-color: var(--i2b-accent);
  background: #ede9fe;
  box-shadow: var(--i2b-shadow-focus);
  transform: translateY(-1px);
}
#i2b-root .i2b-dropzone-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--i2b-accent-mid) 0%, var(--i2b-accent) 100%);
  border-radius: var(--i2b-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(124,58,237,.25);
}
#i2b-root .i2b-dropzone-icon svg { width: 26px; height: 26px; color: #fff; }
#i2b-root .i2b-dropzone h3 {
  font-family: var(--i2b-font-head);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--i2b-text);
}
#i2b-root .i2b-dropzone p {
  color: var(--i2b-text-muted);
  font-size: 13.5px;
  margin: 0 0 20px;
  line-height: 1.55;
}
#i2b-root .i2b-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#i2b-root .i2b-dropzone-formats {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
#i2b-root .i2b-format-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--i2b-accent-mid);
  color: var(--i2b-accent-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════════════
   IMAGE QUEUE (multi-image cards)
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-queue { display: flex; flex-direction: column; gap: 20px; }

#i2b-root .i2b-item-card {
  background: var(--i2b-surface);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius-lg);
  overflow: hidden;
  box-shadow: var(--i2b-shadow-sm);
  transition: box-shadow var(--i2b-transition);
}
#i2b-root .i2b-item-card:hover { box-shadow: var(--i2b-shadow); }

/* card top bar */
#i2b-root .i2b-item-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--i2b-surface-2);
  border-bottom: 1px solid var(--i2b-border);
}
#i2b-root .i2b-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--i2b-radius-sm);
  object-fit: cover;
  border: 1px solid var(--i2b-border);
  flex-shrink: 0;
}
#i2b-root .i2b-item-meta { flex: 1; min-width: 0; }
#i2b-root .i2b-item-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--i2b-text);
}
#i2b-root .i2b-item-info {
  font-size: 12px;
  color: var(--i2b-text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
#i2b-root .i2b-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
#i2b-root .i2b-badge-success { background: var(--i2b-success-light); color: var(--i2b-success); }
#i2b-root .i2b-badge-info    { background: var(--i2b-info-light);    color: var(--i2b-info); }
#i2b-root .i2b-item-bar-btns { display: flex; gap: 6px; flex-shrink: 0; }

/* card body */
#i2b-root .i2b-item-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: flex-start;
}

/* preview column */
#i2b-root .i2b-preview-col { display: flex; flex-direction: column; gap: 12px; }
#i2b-root .i2b-preview-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--i2b-radius);
  overflow: hidden;
  border: 1px solid var(--i2b-border);
  background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#i2b-root .i2b-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
#i2b-root .i2b-size-compare {
  background: var(--i2b-surface-2);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius-sm);
  padding: 10px 12px;
}
#i2b-root .i2b-size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
}
#i2b-root .i2b-size-label { color: var(--i2b-text-muted); font-weight: 500; }
#i2b-root .i2b-size-val { font-weight: 700; font-size: 13px; color: var(--i2b-text); font-family: var(--i2b-font-mono); }
#i2b-root .i2b-size-sep { border: none; border-top: 1px solid var(--i2b-border); margin: 5px 0; }
#i2b-root .i2b-size-overhead { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
#i2b-root .i2b-size-overhead.up   { background: var(--i2b-warn-light); color: var(--i2b-warn); }
#i2b-root .i2b-size-overhead.down { background: var(--i2b-success-light); color: var(--i2b-success); }

/* output column */
#i2b-root .i2b-output-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* output format tabs */
#i2b-root .i2b-fmt-tabs {
  display: flex;
  gap: 4px;
  background: var(--i2b-surface-2);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius-sm);
  padding: 3px;
}
#i2b-root .i2b-fmt-tab {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: var(--i2b-radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--i2b-font);
  color: var(--i2b-text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--i2b-transition);
  text-align: center;
  white-space: nowrap;
}
#i2b-root .i2b-fmt-tab.is-active {
  background: var(--i2b-accent);
  color: #fff;
  box-shadow: 0 1px 4px rgba(124,58,237,.25);
}
#i2b-root .i2b-fmt-tab:hover:not(.is-active) { background: var(--i2b-accent-mid); color: var(--i2b-accent-dark); }

/* textarea output */
#i2b-root .i2b-output-textarea {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  padding: 12px 14px;
  font-family: var(--i2b-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--i2b-text);
  background: var(--i2b-surface-2);
  border: 2px solid var(--i2b-border);
  border-radius: var(--i2b-radius-sm);
  resize: vertical;
  outline: none;
  transition: border-color var(--i2b-transition), box-shadow var(--i2b-transition);
  word-break: break-all;
}
#i2b-root .i2b-output-textarea:focus {
  border-color: var(--i2b-border-focus);
  box-shadow: var(--i2b-shadow-focus);
  background: #fff;
}

/* char counter */
#i2b-root .i2b-output-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--i2b-text-muted);
  gap: 8px;
}

/* action row */
#i2b-root .i2b-output-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════
   REVERSE MODE (Base64 → Image)
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-reverse-input {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  font-family: var(--i2b-font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--i2b-text);
  background: var(--i2b-surface-2);
  border: 2px solid var(--i2b-border);
  border-radius: var(--i2b-radius);
  resize: vertical;
  outline: none;
  transition: border-color var(--i2b-transition), box-shadow var(--i2b-transition);
  word-break: break-all;
}
#i2b-root .i2b-reverse-input:focus {
  border-color: var(--i2b-border-focus);
  box-shadow: var(--i2b-shadow-focus);
  background: #fff;
}
#i2b-root .i2b-reverse-preview-wrap {
  background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
#i2b-root .i2b-reverse-preview-wrap img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--i2b-radius-sm);
}
#i2b-root .i2b-reverse-placeholder {
  color: var(--i2b-text-light);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
#i2b-root .i2b-reverse-placeholder svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .4; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--i2b-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--i2b-font);
  border: none;
  cursor: pointer;
  transition: var(--i2b-transition);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
#i2b-root .i2b-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
#i2b-root .i2b-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* Primary */
#i2b-root .i2b-btn-primary {
  background: var(--i2b-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,.28);
}
#i2b-root .i2b-btn-primary:hover:not(:disabled) {
  background: var(--i2b-accent-dark);
  box-shadow: 0 4px 14px rgba(124,58,237,.38);
  transform: translateY(-1px);
}
#i2b-root .i2b-btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 4px rgba(124,58,237,.2); }

/* Outline */
#i2b-root .i2b-btn-outline {
  background: var(--i2b-surface);
  color: var(--i2b-text-muted);
  border: 1.5px solid var(--i2b-border);
}
#i2b-root .i2b-btn-outline:hover:not(:disabled) {
  border-color: var(--i2b-accent-mid);
  color: var(--i2b-accent);
  background: var(--i2b-accent-light);
}

/* Ghost danger */
#i2b-root .i2b-btn-danger {
  background: transparent;
  color: var(--i2b-text-muted);
  border: 1.5px solid var(--i2b-border);
}
#i2b-root .i2b-btn-danger:hover:not(:disabled) {
  background: var(--i2b-danger-light);
  color: var(--i2b-danger);
  border-color: #fca5a5;
}

/* Icon-only */
#i2b-root .i2b-btn-icon {
  padding: 7px;
  border-radius: var(--i2b-radius-xs);
  background: transparent;
  border: 1.5px solid var(--i2b-border);
  color: var(--i2b-text-muted);
}
#i2b-root .i2b-btn-icon:hover:not(:disabled) {
  background: var(--i2b-accent-light);
  color: var(--i2b-accent);
  border-color: var(--i2b-accent-mid);
}
#i2b-root .i2b-btn-icon.is-copied {
  background: var(--i2b-success-light);
  color: var(--i2b-success);
  border-color: var(--i2b-success-border);
}

/* Success state (copy flash) */
#i2b-root .i2b-btn.is-copied {
  background: var(--i2b-success-light) !important;
  color: var(--i2b-success) !important;
  border-color: var(--i2b-success-border) !important;
  box-shadow: none !important;
}

/* Large (main convert button) */
#i2b-root .i2b-btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--i2b-radius);
}

/* ══════════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
  color: var(--i2b-text-muted);
  border: 2px dashed var(--i2b-border);
  border-radius: var(--i2b-radius-lg);
  background: var(--i2b-surface);
  min-height: 240px;
}
#i2b-root .i2b-empty svg { width: 52px; height: 52px; color: var(--i2b-accent-mid); margin-bottom: 14px; }
#i2b-root .i2b-empty h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: var(--i2b-text); }
#i2b-root .i2b-empty p  { font-size: 13.5px; margin: 0; }

/* ══════════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #1e1b4b;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--i2b-radius);
  box-shadow: var(--i2b-shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  pointer-events: none;
  transition: opacity .2s var(--i2b-ease), transform .2s var(--i2b-ease);
}
#i2b-root .i2b-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#i2b-root .i2b-toast svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════════
   STICKY BOTTOM BAR (mobile)
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-sticky-bar { display: none; }

/* ══════════════════════════════════════════════════════════════════
   SEO SECTION
══════════════════════════════════════════════════════════════════ */
#i2b-root .i2b-seo {
  margin-top: 56px;
  border-top: 1px solid var(--i2b-border);
  padding-top: 40px;
}
#i2b-root .i2b-seo-h2 {
  font-family: var(--i2b-font-head);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--i2b-text);
  margin: 0 0 20px;
}
#i2b-root .i2b-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
#i2b-root .i2b-seo-card {
  background: var(--i2b-surface);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius);
  padding: 20px;
  box-shadow: var(--i2b-shadow-xs);
}
#i2b-root .i2b-seo-card h3 {
  font-family: var(--i2b-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--i2b-text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#i2b-root .i2b-seo-card h3 span { font-size: 1.1em; }
#i2b-root .i2b-seo-card p, #i2b-root .i2b-seo-card li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--i2b-text-muted);
  margin: 0 0 8px;
}
#i2b-root .i2b-seo-card ul { padding-left: 18px; margin: 0; }
#i2b-root .i2b-seo-card li { margin-bottom: 5px; }
#i2b-root .i2b-seo-card p:last-child { margin: 0; }

/* Code example */
#i2b-root .i2b-code-block {
  background: #1e1b4b;
  color: #c4b5fd;
  border-radius: var(--i2b-radius);
  padding: 16px 18px;
  font-family: var(--i2b-font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  margin-bottom: 20px;
}
#i2b-root .i2b-code-block .cm { color: #6d6a9e; }
#i2b-root .i2b-code-block .kw { color: #818cf8; }
#i2b-root .i2b-code-block .st { color: #34d399; }
#i2b-root .i2b-code-block .fn { color: #f472b6; }
#i2b-root .i2b-code-block .nt { color: #fb923c; }

/* FAQ */
#i2b-root .i2b-faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
#i2b-root .i2b-faq-item {
  background: var(--i2b-surface);
  border: 1px solid var(--i2b-border);
  border-radius: var(--i2b-radius);
  overflow: hidden;
}
#i2b-root .i2b-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--i2b-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--i2b-font);
  gap: 12px;
  transition: background var(--i2b-transition);
}
#i2b-root .i2b-faq-q:hover { background: var(--i2b-accent-light); }
#i2b-root .i2b-faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--i2b-accent); transition: transform var(--i2b-transition); }
#i2b-root .i2b-faq-item.is-open .i2b-faq-q svg { transform: rotate(180deg); }
#i2b-root .i2b-faq-a {
  display: none;
  padding: 14px 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--i2b-text-muted);
  border-top: 1px solid var(--i2b-border);
}
#i2b-root .i2b-faq-item.is-open .i2b-faq-a { display: block; }

/* Use-case table */
#i2b-root .i2b-table-wrap { overflow-x: auto; margin-bottom: 36px; }
#i2b-root .i2b-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#i2b-root .i2b-table th {
  text-align: left;
  padding: 11px 16px;
  background: var(--i2b-accent-light);
  color: var(--i2b-accent);
  font-weight: 700;
  border: 1px solid var(--i2b-border);
  white-space: nowrap;
}
#i2b-root .i2b-table td {
  padding: 10px 16px;
  border: 1px solid var(--i2b-border);
  color: var(--i2b-text-muted);
  vertical-align: top;
  line-height: 1.55;
}
#i2b-root .i2b-table tr:nth-child(even) td { background: var(--i2b-surface-2); }
#i2b-root .i2b-table .yes { color: var(--i2b-success); font-weight: 700; }
#i2b-root .i2b-table .no  { color: var(--i2b-text-light); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {
  #i2b-root .i2b-item-body { grid-template-columns: 1fr; }
  #i2b-root .i2b-preview-col { flex-direction: row; align-items: flex-start; gap: 14px; }
  #i2b-root .i2b-preview-img-wrap { width: 100px; height: 100px; flex-shrink: 0; }
  #i2b-root .i2b-size-compare { flex: 1; }
  #i2b-root .i2b-seo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #i2b-root .i2b-hero { padding: 36px 16px 32px; }
  #i2b-root .i2b-container { padding: 20px 14px 80px; }
  #i2b-root .i2b-mode-bar { max-width: 100%; }
  #i2b-root .i2b-dropzone { padding: 36px 16px; }
  #i2b-root .i2b-fmt-tabs { flex-wrap: wrap; }
  #i2b-root .i2b-output-actions { flex-direction: column; }
  #i2b-root .i2b-output-actions .i2b-btn { width: 100%; justify-content: center; }
  #i2b-root .i2b-preview-col { flex-direction: column; }
  #i2b-root .i2b-preview-img-wrap { width: 100%; height: auto; aspect-ratio: 16/9; }

  /* Sticky bar */
  #i2b-root .i2b-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--i2b-surface);
    border-top: 1px solid var(--i2b-border);
    padding: 10px 14px;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }
  #i2b-root .i2b-sticky-bar .i2b-btn { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
  #i2b-root .i2b-item-bar { flex-wrap: wrap; }
  #i2b-root .i2b-item-bar-btns { width: 100%; justify-content: flex-end; }
}
