/* ==========================================================================
   ToolGuest Video to Blog — shared stylesheet for the repurposing cluster
   Used by /video-to-blog and its six dedicated sub-tool pages.
   Light is the default; dark mode follows html.dark, html[data-theme="dark"]
   and body.dark so it works with every theme convention on the site.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --fg: #0a0b0d;
  --muted: #646b78;
  --card: #ffffff;
  --border: #e5e7eb;
  --glass: rgba(255, 255, 255, 0.78);
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.10);
  --accent-2: #db2777;
  --ok: #059669;
  --danger: #dc2626;
  --shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.35);
  --radius: 18px;
  color-scheme: light;
}

html.dark,
html[data-theme="dark"],
body.dark {
  --bg: #07080a;
  --bg-soft: #0b0d10;
  --fg: #f4f5f7;
  --muted: #8d95a3;
  --card: #101216;
  --border: #1e2228;
  --glass: rgba(12, 14, 18, 0.75);
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.16);
  --accent-2: #f472b6;
  --ok: #34d399;
  --danger: #f87171;
  --shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body.vb-page {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.tabnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------- header --------------------------------- */
.vb-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.vb-header-in {
  display: flex; align-items: center; gap: 12px;
  height: 56px; max-width: 1240px; margin: 0 auto; padding: 0 18px;
}
.vb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.vb-brand img { height: 28px; width: auto; }
.vb-brand span { font-size: 0.875rem; font-weight: 800; letter-spacing: -0.01em; }
.vb-nav { display: none; align-items: center; gap: 2px; margin-left: 14px; }
.vb-nav a {
  border-radius: 9px; padding: 6px 10px; font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.vb-nav a:hover { background: var(--bg-soft); color: var(--fg); }
.vb-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.vb-pill {
  display: none; align-items: center; gap: 6px; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
}
.vb-icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: transparent;
  color: var(--muted); transition: color 0.15s, background 0.15s;
}
.vb-icon-btn:hover { color: var(--fg); background: var(--bg-soft); }
.vb-cta {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 10px;
  background: var(--fg); color: var(--bg); padding: 8px 14px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity 0.15s;
}
.vb-cta:hover { opacity: 0.88; }
@media (min-width: 860px) { .vb-nav { display: flex; } .vb-pill { display: inline-flex; } }

/* -------------------------------- hero ---------------------------------- */
.vb-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.vb-hero::before,
.vb-hero::after {
  content: ""; position: absolute; border-radius: 999px; filter: blur(90px);
  opacity: 0.42; pointer-events: none;
}
.vb-hero::before {
  width: 420px; height: 420px; top: -170px; left: -90px;
  background: radial-gradient(circle, #6366f1, transparent 65%);
}
.vb-hero::after {
  width: 380px; height: 380px; top: -140px; right: -70px;
  background: radial-gradient(circle, #22d3ee, transparent 65%);
}
html.dark .vb-hero::before, html[data-theme="dark"] .vb-hero::before, body.dark .vb-hero::before { opacity: 0.32; }
html.dark .vb-hero::after, html[data-theme="dark"] .vb-hero::after, body.dark .vb-hero::after { opacity: 0.24; }
.vb-hero-in { position: relative; z-index: 1; padding: 30px 18px 34px; }
.vb-crumbs {
  display: flex; align-items: center; gap: 6px; margin-bottom: 22px;
  font-size: 12px; color: var(--muted);
}
.vb-crumbs a { color: inherit; text-decoration: none; }
.vb-crumbs a:hover { color: var(--fg); }
.vb-crumbs svg { width: 12px; height: 12px; opacity: 0.7; }
.vb-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--muted);
}
.vb-dot { position: relative; display: flex; width: 6px; height: 6px; }
.vb-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: #34d399; opacity: 0.75; animation: vbPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.vb-dot::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #10b981; }
@keyframes vbPing { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.vb-hero h1 {
  margin: 0; max-width: 21ch;
  font-size: clamp(2rem, 5.2vw, 3.15rem); font-weight: 900;
  line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.vb-hero h1 .vb-grad {
  display: block;
  background: linear-gradient(90deg, #6366f1, #8b5cf6 45%, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The site-wide .tg-hero shimmer in fonts.css paints the gradient with
   !important, so the fallback above only matters where background-clip on
   text is unsupported. Keeping the lead-in on its own span is what stops the
   whole headline turning into one long gradient. */
.vb-lede {
  margin: 18px 0 0; max-width: 60ch;
  font-size: 15px; line-height: 1.7; color: var(--muted);
}
.vb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.vb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 11px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, opacity 0.15s;
}
.vb-btn:active { transform: translateY(1px); }
.vb-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; box-shadow: 0 16px 34px -18px rgba(79, 70, 229, 0.85);
}
.vb-btn-primary:hover { opacity: 0.94; }
.vb-btn-ghost { border-color: var(--border); color: var(--fg); background: transparent; }
.vb-btn-ghost:hover { background: var(--bg-soft); }
.vb-btn svg { width: 16px; height: 16px; }

.vb-chips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--muted); max-width: 640px;
}
.vb-chips li { display: flex; align-items: center; gap: 8px; }
.vb-chips svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
@media (min-width: 640px) { .vb-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.vb-tool { padding: 26px 0 8px; }
.vb-tool-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.vb-tool-head h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.vb-tool-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.vb-kbd {
  font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 10px;
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px;
  background: var(--card);
}
.vb-kbd-hint { display: none; font-size: 11px; color: var(--muted); }
@media (min-width: 640px) { .vb-kbd-hint { display: block; } }

/* action bar */
.vb-bar {
  position: sticky; top: 62px; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 9px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.vb-seg { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); }
.vb-seg button {
  border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--muted);
  font-family: inherit; transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.vb-seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.vb-seg-currency { flex-wrap: wrap; }
.vb-bar-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vb-save {
  display: none; align-items: center; gap: 6px; padding: 4px 8px;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.vb-save svg { width: 14px; height: 14px; color: var(--ok); }
@media (min-width: 720px) { .vb-save { display: inline-flex; } }
.vb-action {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: transparent;
  padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--fg);
  font-family: inherit; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vb-action:hover { background: var(--fg); color: var(--bg); }
.vb-action svg { width: 15px; height: 15px; }
.vb-action.is-primary {
  border-color: transparent; background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-weight: 700; box-shadow: 0 14px 30px -18px rgba(124, 58, 237, 0.9);
}
.vb-action.is-primary:hover { opacity: 0.94; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }
.vb-action.is-icon { padding: 8px; }
.vb-action.is-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* layout */
.vb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1024px) {
  .vb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; }
  .vb-preview-col { position: sticky; top: 128px; }
}
.vb-form { display: grid; gap: 14px; min-width: 0; }

.vb-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 16px; }
.vb-card h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.005em;
}
.vb-card h3 svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.vb-card h3 .vb-opt { font-weight: 500; color: var(--muted); }

.vb-field { display: block; min-width: 0; }
.vb-field > span {
  display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.vb-inp {
  width: 100%; box-sizing: border-box; border-radius: 9px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  padding: 8px 11px; font-size: 13px; line-height: 1.35; font-family: inherit;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.vb-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vb-inp::placeholder { color: var(--muted); opacity: 0.8; }
textarea.vb-inp { resize: vertical; min-height: 58px; }
select.vb-inp { appearance: none; cursor: pointer; }
.vb-fields { display: grid; gap: 12px; }
.vb-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vb-fields .span-2 { grid-column: 1 / -1; }
@media (max-width: 420px) { .vb-fields.two { grid-template-columns: minmax(0, 1fr); } }
/* toasts */
.vb-toasts {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.vb-toast {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  color: var(--fg); font-size: 12.5px; font-weight: 700;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
  animation: vbToast 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.vb-toast svg { width: 16px; height: 16px; color: var(--ok); }
.vb-toast.is-error svg { color: var(--danger); }
@keyframes vbToast {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ------------------------- answer-engine summary ------------------------ */
.vb-summary { padding: 30px 0 0; }
.vb-aeo {
  border: 1px solid rgba(99, 102, 241, 0.32); border-radius: var(--radius);
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.06));
}
.vb-aeo-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.vb-aeo-label svg { width: 13px; height: 13px; }
.vb-aeo p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--fg); }

/* ------------------------------- content -------------------------------- */
.vb-content { max-width: 1120px; margin: 0 auto; padding: 8px 18px 64px; }
.vb-sec { margin-top: 52px; }
.vb-eyebrow {
  display: inline-block; margin-bottom: 8px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.vb-sec h2 {
  margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance;
}
.vb-sec h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.015em; }
.vb-sec p { margin: 12px 0 0; font-size: 15px; line-height: 1.78; color: var(--muted); }
.vb-sec p strong { color: var(--fg); font-weight: 700; }
.vb-sec ul, .vb-sec ol { margin: 14px 0 0; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.vb-sec li { margin-top: 6px; }
.vb-sec a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(124, 58, 237, 0.35); }
.vb-sec a:hover { border-bottom-color: currentColor; }
.vb-cards { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vb-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .vb-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.vb-card-soft {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  background: var(--card); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.vb-card-soft:hover {
  transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 44px -26px rgba(79, 70, 229, 0.5);
}
.vb-card-soft h3 { margin: 0; }
.vb-card-soft p { margin-top: 8px; font-size: 14px; }
.vb-city { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }

.vb-tablewrap {
  margin-top: 22px; overflow-x: auto; max-width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.vb-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; text-align: left; }
.vb-table th, .vb-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.vb-table tbody tr:last-child th, .vb-table tbody tr:last-child td { border-bottom: 0; }
.vb-table thead th {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.vb-table th[scope="row"] { font-weight: 700; color: var(--fg); }
.vb-table td { color: var(--muted); }
.vb-table .yes { color: var(--ok); font-weight: 700; }
.vb-table .no { color: var(--muted); }
.vb-table .tg { color: var(--accent); font-weight: 700; }
.vb-table caption { padding: 14px 16px 0; text-align: left; font-size: 12px; color: var(--muted); }

.vb-steps { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .vb-steps { grid-template-columns: repeat(3, 1fr); } }
.vb-steps li { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 18px; }
.vb-steps .num {
  display: block; font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 800; color: var(--accent);
}
.vb-steps h3 { margin-top: 6px; }
.vb-steps p { margin-top: 6px; font-size: 14px; }

/* faq */
.vb-faq { display: grid; gap: 10px; margin-top: 20px; }
.vb-faq details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  padding: 0 18px;
}
.vb-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700;
}
.vb-faq summary::-webkit-details-marker { display: none; }
.vb-faq summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.vb-faq details[open] summary::after { content: "\2013"; }
.vb-faq p { margin: 0; padding-bottom: 15px; font-size: 14.5px; line-height: 1.75; }

/* cluster grid */
.vb-cluster { margin-top: 52px; }
.vb-cluster-grid { display: grid; gap: 12px; margin-top: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vb-cluster-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .vb-cluster-grid { grid-template-columns: repeat(3, 1fr); } }
.vb-cluster-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  text-decoration: none; color: var(--fg);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.vb-cluster-card:hover {
  transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 18px 40px -26px rgba(79, 70, 229, 0.55);
}
.vb-cluster-card .name { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.vb-cluster-card .desc { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vb-cluster-card .tag {
  align-self: flex-start; margin-top: 4px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-2);
}
.vb-cluster-card[aria-current="page"] { border-color: rgba(124, 58, 237, 0.55); background: var(--accent-soft); }

/* ========================================================================== */
/* Video-to-blog tool                                                         */
/* ========================================================================== */

.vb-tool { padding: 26px 0 8px; }

.vb-tool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.vb-tool-head h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.vb-tool-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.vb-suite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.vb-suite > span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.vb-suite a {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--fg); background: var(--card);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.vb-suite a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.vb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1080px) {
  .vb-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: start; }
  .vb-out-col { position: sticky; top: 86px; }
}

.vb-form { display: grid; gap: 14px; min-width: 0; }
.vb-textarea { min-height: 190px; font-size: 13px; line-height: 1.6; }
.vb-counter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.vb-counter b { color: var(--fg); font-variant-numeric: tabular-nums; }

.vb-url-row { display: flex; gap: 8px; }
.vb-url-row .vb-inp { flex: 1 1 auto; }
.vb-url-state {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 11.5px; color: var(--muted);
}
.vb-url-state svg { width: 13px; height: 13px; flex: none; }
.vb-url-state.is-ok { color: var(--ok); }
.vb-url-state.is-warn { color: #b45309; }
html.dark .vb-url-state.is-warn, html[data-theme="dark"] .vb-url-state.is-warn, body.dark .vb-url-state.is-warn { color: #fbbf24; }

.vb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vb-actions .vb-action.is-primary { flex: 1 1 190px; justify-content: center; padding: 11px 16px; font-size: 14px; }

.vb-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.vb-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* output column */
.vb-out-col { min-width: 0; }
.vb-out {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.vb-out-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.vb-out-top h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: -0.005em; }
.vb-pill {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); padding: 3px 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.vb-pill.is-accent { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.vb-out-top .vb-actions { margin-left: auto; }

.vb-empty { padding: 34px 22px; text-align: center; }
.vb-empty svg { width: 30px; height: 30px; color: var(--muted); opacity: 0.6; }
.vb-empty h3 { margin: 12px 0 0; font-size: 15px; font-weight: 800; }
.vb-empty p { margin: 6px auto 0; max-width: 42ch; font-size: 13px; line-height: 1.6; color: var(--muted); }
.vb-empty ol { margin: 14px auto 0; padding-left: 18px; max-width: 42ch; text-align: left; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.vb-result { display: grid; }
.vb-seo { display: grid; gap: 1px; background: var(--border); }
@media (min-width: 560px) { .vb-seo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vb-seo-card { background: var(--card); padding: 14px 16px; }
.vb-seo-card h4 {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.vb-headline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: hl; }
.vb-headline-list li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px;
  font-size: 12.5px; line-height: 1.45; color: var(--fg);
}
.vb-headline-list li::before {
  counter-increment: hl; content: counter(hl);
  font-size: 10px; font-weight: 800; color: var(--accent);
  border: 1px solid var(--border); border-radius: 5px; text-align: center; line-height: 16px;
}
.vb-headline-list button {
  all: unset; cursor: pointer; border-radius: 5px; padding: 1px 2px;
  border-bottom: 1px dashed transparent; transition: border-color 0.15s, background 0.15s;
}
.vb-headline-list button:hover { border-color: var(--accent); background: var(--accent-soft); }
.vb-headline-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vb-kv { display: grid; gap: 8px; }
.vb-kv-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.vb-kv-row dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vb-kv-row dd { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg); word-break: break-word; }
.vb-kv-row dd code { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 11.5px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.vb-copy-mini { all: unset; cursor: pointer; margin-left: 4px; color: var(--muted); font-size: 11px; }
.vb-copy-mini:hover { color: var(--accent); }

.vb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
@media (min-width: 560px) { .vb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vb-stat { background: var(--card); padding: 10px 14px; }
.vb-stat b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vb-stat span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.vb-export { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.vb-export .vb-action { background: var(--card); }
.vb-export .vb-action.is-primary { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; border-color: transparent; }
.vb-export .vb-action.is-primary:hover { opacity: 0.94; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }

.vb-warn {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 16px;
  border-top: 1px solid var(--border); background: var(--accent-soft);
  font-size: 12px; line-height: 1.5; color: var(--fg);
}
.vb-warn svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--accent); }

/* the draft itself */
.vb-preview { padding: 20px 18px 26px; max-height: none; }
@media (min-width: 1080px) { .vb-preview { max-height: 62vh; overflow: auto; } }
.vb-preview h1 { margin: 0; font-size: 1.28rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.vb-preview .vb-meta-line { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.vb-preview h2 {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 1rem; font-weight: 800; letter-spacing: -0.015em;
}
.vb-preview h3 { margin: 16px 0 0; font-size: 0.9rem; font-weight: 800; }
.vb-preview p { margin: 9px 0 0; font-size: 13.5px; line-height: 1.72; color: var(--fg); }
.vb-preview ul { margin: 10px 0 0; padding-left: 20px; }
.vb-preview li { margin-top: 6px; font-size: 13px; line-height: 1.65; }
.vb-preview li::marker { color: var(--accent); }

.vb-busy { position: relative; }
.vb-busy::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(2px);
}

/* content links + tables reuse the site pattern */
.vb-content a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The cross-cluster link list on every page in the cluster. */
.vb-more-list { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.vb-more-list li { margin-top: 7px; }
.vb-more-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.vb-more-list a:hover { text-decoration: underline; }

/* The suite chips carry inline SVGs, which default to 100% width. */
.vb-suite a svg { width: 14px; height: 14px; flex: none; }
.vb-actions .vb-action svg { width: 15px; height: 15px; }
.vb-out-top .vb-action svg { width: 15px; height: 15px; }
.vb-note svg, .vb-empty > svg, .vb-warn svg { width: 15px; height: 15px; flex: none; }
.vb-empty > svg { width: 30px; height: 30px; opacity: 0.55; }
.vb-kbd { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 10px; border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; background: var(--card); }
.vb-kbd-hint { display: none; font-size: 11px; color: var(--muted); }
@media (min-width: 640px) { .vb-kbd-hint { display: block; } }

/* On a phone the header keeps the brand, the theme toggle and nothing else:
   the hero repeats the call to action two lines below. */
@media (max-width: 560px) {
  .vb-cta { display: none; }
  .vb-header-in { gap: 8px; padding: 0 14px; }
  .vb-tool { padding-top: 20px; }
  .vb-out-top { padding: 10px 12px; }
  .vb-preview { padding: 16px 14px 22px; }
  .vb-preview h1 { font-size: 1.15rem; }
}

/* The locale chip in the header is a different element from the .vb-pill used
   inside the output card, so it gets its own class: sharing one made the
   output card's display rule reveal the header chip on phones. */
.vb-locale {
  display: none; align-items: center; gap: 6px; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
}
.vb-locale svg { width: 13px; height: 13px; }
@media (min-width: 860px) { .vb-locale { display: inline-flex; } }

/* The panels set display themselves, so the HTML hidden attribute needs to win. */
#vbOutput [hidden] { display: none !important; }
