/* Card page. FIRST stylesheet on the page (see CARD-PAGE.md): the protective layer must come before anything else.
   Creators may change how the showcase looks, never what its buttons do. */
@layer vf-protect {
  /* The creator's full-page background lives here: behind everything, never clickable. */
  .vf-backdrop { position: fixed !important; inset: 0 !important; z-index: -1 !important; pointer-events: none !important; display: block !important; margin: 0 !important; transform: none !important; visibility: visible !important; }
  .vf-backdrop::before, .vf-backdrop::after { content: "" !important; position: absolute !important; inset: 0 !important; pointer-events: none !important; z-index: auto !important; }
  /* It may move (animation*, owner 2026-11-29), but stands still for visitors who ask for less motion. */
  @media (prefers-reduced-motion: reduce) {
    .vf-backdrop, .vf-backdrop::before, .vf-backdrop::after { animation: none !important; }
  }

  .vf-showcase { display: block !important; visibility: visible !important; opacity: 1 !important;
    position: relative !important; overflow: hidden !important; contain: layout paint !important; isolation: isolate !important;
    transform: none !important; clip-path: none !important; mask: none !important; filter: none !important; height: auto !important; max-height: none !important; }
  .vf-showcase::before, .vf-showcase::after { z-index: 0 !important; pointer-events: none !important; }

  .vf-showcase .vf-head { display: flex !important; flex-wrap: wrap !important; visibility: visible !important; opacity: 1 !important;
    position: relative !important; z-index: 2 !important; margin: 0 !important; overflow: visible !important; height: auto !important; max-height: none !important;
    transform: none !important; clip-path: none !important; }
  /* The side column holds the buttons. Its size, background, direction and ::before (the banner) stay the creator's. */
  .vf-showcase .vf-side { display: flex !important; visibility: visible !important; opacity: 1 !important; position: relative !important; z-index: 3 !important;
    overflow: visible !important; transform: none !important; clip-path: none !important; mask: none !important; filter: none !important;
    inset: auto !important; translate: none !important; rotate: none !important; scale: none !important; margin-top: 0 !important; }
  .vf-showcase .vf-side::before, .vf-showcase .vf-side::after, .vf-showcase .vf-head::before, .vf-showcase .vf-head::after { z-index: 0 !important; pointer-events: none !important; }
  .vf-showcase .vf-main { position: relative !important; z-index: 1 !important; isolation: isolate !important; }
  .vf-showcase .vf-creator { position: relative !important; z-index: 1 !important; isolation: isolate !important; }

  .vf-showcase .vf-actions, .vf-showcase .vf-actions-2 { display: flex !important; flex-wrap: wrap !important; visibility: visible !important; opacity: 1 !important;
    position: relative !important; z-index: 2 !important; width: 100% !important; margin: 10px auto !important; height: auto !important; max-height: none !important;
    overflow: visible !important; transform: none !important; clip-path: none !important; mask: none !important; filter: none !important; inset: auto !important; translate: none !important; rotate: none !important; scale: none !important; }
  .vf-showcase .vf-btn, .vf-showcase .vf-tag, .vf-showcase .vf-creator-link, .vf-showcase .vf-dl, .vf-showcase .vf-dl-item {
    visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
    position: relative !important; transform: none !important; clip-path: none !important; mask: none !important;
    filter: none !important; inset: auto !important; translate: none !important; rotate: none !important; scale: none !important; zoom: 1 !important; float: none !important;
    max-width: 100% !important; box-sizing: border-box !important; font-size: max(12px, 1em) !important; min-width: 2em !important; min-height: 1.5em !important;
  }
  .vf-showcase .vf-btn { display: inline-flex !important; width: auto !important; height: auto !important; max-height: none !important;
    overflow: visible !important; text-indent: 0 !important; padding: 10px 16px !important; margin: 0 !important; line-height: 1.2 !important; letter-spacing: normal !important; }
  .vf-showcase .vf-btn::before, .vf-showcase .vf-btn::after { pointer-events: none !important; }
  /* Every button visibly reacts to hover and keyboard focus, whatever the creator's CSS does to its colours
     (a design that styles buttons, e.g. Chub's .ant-btn, also replaced their hover, so only EDIT, a link, lit up).
     Brightening works with any colours; the creator's own look stays as it is otherwise. */
  .vf-showcase .vf-btn:not(:disabled):hover, .vf-showcase .vf-btn:focus-visible { filter: brightness(1.35) saturate(1.1) !important; }
  .vf-showcase .vf-btn:focus-visible { outline: 2px solid var(--focus, var(--gold)) !important; outline-offset: 2px !important; }
  /* Tag Follow toggles (showcase.js tagRow): never hidden, shrunk or covered by the creator's HTML (z-index above .vf-creator).
     Creators may still hide the whole tag row, like the tags themselves. */
  .vf-showcase .vf-tag-follow { display: inline-flex !important; align-items: center !important; justify-content: center !important;
    visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; position: relative !important; z-index: 2 !important;
    transform: none !important; clip-path: none !important; mask: none !important; filter: none !important; inset: auto !important; translate: none !important; rotate: none !important; scale: none !important;
    zoom: 1 !important; float: none !important; width: auto !important; height: auto !important; min-width: 1.9em !important; min-height: 1.6em !important; max-width: none !important; max-height: none !important;
    margin: 0 !important; overflow: visible !important; text-indent: 0 !important; font-size: max(12px, 1em) !important; line-height: 1 !important; box-sizing: border-box !important; }
  .vf-showcase .vf-tag-follow::before, .vf-showcase .vf-tag-follow::after { pointer-events: none !important; }
  .vf-showcase .vf-tags .vf-tag { z-index: 2 !important; }
  .vf-showcase .vf-hook { display: none !important; }

  /* Tall creator HTML starts collapsed; creator CSS can't undo it, and can't hide or cover the control. */
  .vf-showcase .vf-creator.vf-collapsed { max-height: 560px !important; overflow: hidden !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent) !important; mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent) !important; }
  .vf-showcase .vf-more-wrap { display: flex !important; align-items: center !important; gap: 14px !important; visibility: visible !important; opacity: 1 !important;
    position: relative !important; z-index: 4 !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important;
    margin: 6px auto 0 !important; transform: none !important; clip-path: none !important; mask: none !important; filter: none !important; inset: auto !important; translate: none !important; rotate: none !important; scale: none !important; float: none !important; }
  .vf-showcase .vf-more-wrap.vf-more-off { display: none !important; }
  .vf-showcase .vf-more-wrap::before, .vf-showcase .vf-more-wrap::after { content: "" !important; flex: 1 1 0 !important; height: 1px !important; background: currentColor !important; opacity: .3 !important; position: static !important; pointer-events: none !important; }
  .vf-showcase .vf-more { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; position: relative !important; z-index: 4 !important;
    transform: none !important; clip-path: none !important; mask: none !important; filter: none !important; inset: auto !important; translate: none !important; rotate: none !important; scale: none !important; float: none !important;
    width: auto !important; height: auto !important; min-width: 2em !important; min-height: 1.5em !important; max-width: 100% !important; margin: 0 !important; padding: 8px 14px !important; overflow: visible !important;
    font-size: max(12px, 1em) !important; text-indent: 0 !important; line-height: 1.2 !important; }
  .vf-showcase .vf-more::before, .vf-showcase .vf-more::after { pointer-events: none !important; }

  /* Split buttons (Chat, Download): the arrow part is narrow, but never smaller than a clear click target. */
  .vf-showcase .vf-split { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; position: relative !important; transform: none !important; }
  .vf-showcase .vf-btn.vf-split-arrow { padding: 10px 4px !important; min-width: 20px !important; }
  .vf-showcase .vf-btn.vf-split-main { padding-left: 12px !important; padding-right: 10px !important; }
  .vf-showcase.vf-default .vf-btn.vf-split-arrow { padding: 10px 6px !important; }
  .vf-showcase.vf-default .vf-btn.vf-split-main { padding-left: 16px !important; padding-right: 14px !important; }
  /* The default look (no creator CSS on the page): shorter clip, smaller tags and secondary buttons. */
  .vf-showcase.vf-default .vf-creator.vf-collapsed { max-height: 300px !important; }
  .vf-showcase.vf-default .vf-more-wrap::before, .vf-showcase.vf-default .vf-more-wrap::after { display: none !important; }
  .vf-showcase.vf-default .vf-tag { font-size: 11.5px !important; min-height: 0 !important; }
  .vf-showcase.vf-default .vf-actions-2 .vf-btn { padding: 7px 12px !important; font-size: 12.5px !important; }
  .vf-showcase.vf-default .vf-btn-follow { padding: 4px 12px !important; font-size: 12.5px !important; }
  .vf-showcase.vf-default .vf-actions .vf-btn { font-size: 14px !important; }
  .vf-showcase.vf-default .vf-more { padding: 4px 0 !important; }
}

/* ---- default look of the showcase (creators can restyle all of this) ----
   Colours come from the site tokens in style.css (always loaded on card pages), so the default showcase follows a theme.
   (The #000 in the mask above is not a colour: it is the "fully visible" part of the fade-out mask.) */
/* Full page width. Our default layout is centred in a readable width through the head's side padding;
   creator CSS (Chub's .ant-row padding:0) can widen it to the whole page, like on Chub. */
.cp-root { max-width: none; margin: 0; padding: 0; }
.cp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.vf-showcase { margin: 18px 0; border: 1px solid var(--line-strong); border-radius: 14px; background: transparent; color: var(--text); }
.vf-showcase.vf-has-notes { border: none; border-radius: 0; background: none; box-shadow: none; margin: 0; }
.vf-showcase .vf-head { padding: 18px max(18px, calc((100% - 1120px) / 2)) 0; gap: 6px 22px; }
.vf-showcase .vf-actions-2 { padding-inline: max(18px, calc((100% - 1120px) / 2)); }
.vf-showcase .vf-more-wrap { color: var(--muted); }
.vf-showcase .vf-more { cursor: pointer; background: transparent; border: none; color: inherit; font-weight: 600; letter-spacing: 1.5px; font-family: inherit; }
.vf-showcase .vf-more:hover { color: var(--gold); }
body[data-page="card"] header { background: var(--bg); }
.vf-showcase .vf-side { flex-direction: column; flex: 0 0 240px; max-width: 100%; }
.vf-showcase .vf-main { flex: 1 1 320px; min-width: 0; }
.vf-showcase .vf-pic .card-cover { border-radius: 12px; border: 1px solid var(--line-strong); }
.vf-showcase .vf-name { margin: 0; font-size: 28px; word-break: break-word; }
.vf-showcase .vf-tagline { margin: 2px 0 6px; font-size: 16px; }
.vf-showcase .vf-by { margin: 6px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.vf-showcase .vf-creator-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.vf-showcase .vf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.vf-showcase .vf-tag { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.vf-showcase .vf-tagpair { display: inline-flex; align-items: stretch; }
.vf-showcase .vf-tagpair .vf-tag { border-radius: 12px 0 0 12px; border-right: none; }
.vf-showcase .vf-tag-follow { padding: 0 9px; border-radius: 0 12px 12px 0; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--muted); border: 1px solid var(--line); border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.vf-showcase .vf-tag-follow:hover { color: var(--gold); }
.vf-showcase .vf-tag-follow:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.vf-showcase .vf-tag-follow.vf-on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.vf-showcase .vf-tag-follow:disabled { opacity: .6; cursor: default; }
.vf-showcase .vf-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; font-size: 14px; color: var(--muted); }
.vf-showcase .vf-stats b { color: var(--text); }
.vf-showcase .vf-actions .flex { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-showcase .vf-actions-2 { justify-content: flex-end; gap: 8px; padding-bottom: 14px; }
.vf-showcase .vf-btn { align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--panel) 60%, transparent); color: var(--text);
  font-weight: 600; font-size: 12px; letter-spacing: .6px; border-radius: 6px; text-decoration: none; font-family: inherit; }
.vf-showcase .vf-btn:hover { border-color: var(--gold); color: var(--gold); }
.vf-showcase .vf-btn-favourite.vf-on, .vf-showcase .vf-btn-download, .vf-showcase .vf-btn-chat { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.vf-showcase .vf-btn-chat:hover, .vf-showcase .vf-btn-download:hover { color: var(--on-gold); opacity: .9; }
.vf-showcase .vf-btn:disabled { opacity: .5; cursor: default; }
.vf-showcase .vf-dl { margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; width: 100%; }
.vf-showcase .vf-chat-panel { display: block; }
.vf-showcase button.vf-dl-item { display: block; width: 100%; text-align: left; background: none; border: none; font-family: inherit; cursor: pointer; }
.vf-showcase .vf-dl-item { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 6px; }
.vf-showcase .vf-dl-item b { display: block; font-size: 13px; }
.vf-showcase .vf-dl-item span { display: block; font-size: 12px; color: var(--muted); }
.vf-showcase .vf-dl-item:hover { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.vf-showcase .vf-meta { margin: 4px 0; font-size: 13px; color: var(--muted); }
/* A fork's "⑂ Based on <original> by @creator" (showcase.js forkLine; owner 2026-11-25). Default look: under the creator row. */
.vf-forkline { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.vf-forkline .vf-fork-i { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vf-forkline a { color: var(--text); text-decoration: none; font-weight: 600; }
.vf-forkline a:hover, .vf-forkline a:focus-visible { color: var(--gold); text-decoration: underline; }
/* Above a creator's design (card.js): outside the box their CSS is scoped to, and above anything spilling out of it
   (their box is z-index 1-2; same idea as the footer in style.css), on a solid background. */
body .cp-wrap > p.vf-forkline-top { position: relative !important; z-index: 5 !important; isolation: isolate; display: block !important;
  visibility: visible !important; opacity: 1 !important; transform: none !important; margin: 10px 0 !important; padding: 8px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  font: 400 13.5px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: normal; text-transform: none; }
.vf-showcase .vf-creator { margin-top: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.vf-showcase .vf-creator img { max-width: 100%; height: auto; }

/* ---- split buttons (both layouts) ---- */
.vf-showcase .vf-split .vf-split-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.vf-showcase .vf-split .vf-split-arrow { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid color-mix(in srgb, var(--on-gold) 30%, transparent); }
.vf-showcase .vf-arrow { font-size: 15px; line-height: .7; }
.vf-showcase.vf-default .vf-arrow { font-size: 17px; }
.vf-showcase .vf-btn-download-more, .vf-showcase .vf-btn-chat-more { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.vf-showcase .vf-btn-chat-more:hover, .vf-showcase .vf-btn-download-more:hover { color: var(--on-gold); }

/* ---- the default look (no creator CSS): owner decisions 2026-11-24, see showcase.js ---- */
.vf-showcase.vf-default, .vf-showcase.vf-default:not(.vf-has-notes) { border: none; border-radius: 0; background: none; box-shadow: none; margin: 0; max-width: none; }
.vf-showcase.vf-default .vf-head { padding-top: 22px; gap: 10px 28px; }
.vf-showcase.vf-default .vf-side { flex: 0 0 290px; }
/* (cards.css gives the site's page wrapper, also called .vf-main, padding and a max width: not for this column) */
.vf-showcase.vf-default .vf-main { padding: 0; margin: 0; max-width: none; }
.vf-showcase.vf-default .vf-name { font-size: 30px; line-height: 1.15; }
.vf-showcase.vf-default .vf-tagline { margin: 4px 0 10px; font-size: 15px; color: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.vf-showcase.vf-default .vf-by { gap: 10px; margin: 8px 0; }
.vf-showcase.vf-default .vf-by-text { color: var(--muted); }
.vf-showcase.vf-default .vf-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 70%, var(--card)); color: var(--text); font-weight: 700; font-size: 14px; }
.vf-showcase.vf-default .vf-btn-follow { background: transparent; border-color: var(--gold); color: var(--gold); font-size: 12.5px; letter-spacing: 0; border-radius: 8px; }
.vf-showcase.vf-default .vf-creator { margin-top: 14px; color: color-mix(in srgb, var(--text) 90%, var(--bg)); }
.vf-showcase.vf-default .vf-more-wrap { justify-content: flex-start; }
.vf-showcase.vf-default .vf-more { color: var(--gold); letter-spacing: 0; font-size: 14px; }
.vf-showcase.vf-default .vf-more:hover { color: var(--gold-hi, var(--gold)); text-decoration: underline; }
.vf-showcase.vf-default .vf-btn { border-radius: 9px; font-size: 14px; letter-spacing: .03em; font-weight: 700; }
.vf-showcase.vf-default .vf-split .vf-split-main { border-radius: 9px 0 0 9px; }
.vf-showcase.vf-default .vf-split .vf-split-arrow { border-radius: 0 9px 9px 0; }
.vf-showcase.vf-default .vf-btn-download, .vf-showcase.vf-default .vf-btn-download-more { background: color-mix(in srgb, var(--gold) 86%, var(--bg)); border-color: color-mix(in srgb, var(--gold) 86%, var(--bg)); }
.vf-showcase.vf-default .vf-actions { margin-top: 12px; }
.vf-showcase.vf-default .vf-actions-2 { justify-content: flex-start; gap: 8px; padding: 0; margin-top: 0; }
.vf-showcase.vf-default .vf-actions-2 .vf-btn { font-size: 12.5px; font-weight: 600; letter-spacing: 0; border-color: var(--line); background: var(--panel); }
.vf-showcase.vf-default .vf-actions-2 .vf-btn-favourite.vf-on { background: var(--panel); color: var(--gold); border-color: var(--gold); }
.vf-showcase.vf-default .vf-break { flex-basis: 100%; height: 0; }
.vf-showcase .vf-dl .vf-danger b { color: var(--danger); }
/* the strip under the picture and text: a thin line above, no box */
.vf-showcase.vf-default .vf-info { margin: 24px max(18px, calc((100% - 1120px) / 2)) 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.vf-showcase.vf-default .vf-info .vf-stats { margin: 0; font-size: 13px; gap: 16px; }
.vf-showcase.vf-default .vf-rating { color: var(--gold); text-decoration: none; }
.vf-showcase.vf-default .vf-rating b { color: var(--gold); }
.vf-showcase.vf-default .vf-tags { gap: 4px; margin: 0; }
.vf-showcase.vf-default .vf-tag { padding: 1px 8px; line-height: 1.5; border-radius: 999px; border: none; background: color-mix(in srgb, var(--accent) 50%, var(--card)); color: color-mix(in srgb, var(--text) 92%, var(--bg)); cursor: pointer; font-family: inherit; }
.vf-showcase.vf-default .vf-tag:hover { color: var(--gold); }
.vf-showcase.vf-default .vf-tag.vf-on { outline: 1px solid var(--gold); outline-offset: -1px; }
.vf-showcase.vf-default .vf-tag:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.vf-showcase.vf-default .vf-tag-more { background: none; color: var(--muted); border: 1px dashed var(--line); }

/* ---- bottom rows: More from this creator, Similar characters ---- */
.cp-rel { margin-top: 30px; }
.cp-rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cp-rel-title { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cp-rel-all { color: var(--muted); font-size: 13px; text-decoration: none; }
.cp-rel-all:hover { color: var(--gold); }
.cp-related { padding-bottom: 40px; }

/* The creator's page background shows behind the whole page, so the page wrappers are transparent here. */
/* (body keeps its own background: it paints the page canvas, under the backdrop.) */
.vf-main.lib-main { background: none; }

/* ---- the sections as tabs (card.js tabsBox; owner 2026-11-27, mockup design-refs/character-sections-mockup.html "C") ----
   They replace the fold-outs (whose arrow showed twice: cards.css adds one to details.fold too). Like the footer
   (style.css): creators' CSS is scoped to their own box (sanitize.js) so it can't select these, and the box sits above
   anything that spills out of theirs (z-index 1-2) on a solid background, with the site's own font. */
body .cp-wrap > section.cp-tabs { position: relative !important; z-index: 5 !important; isolation: isolate; display: block !important;
  visibility: visible !important; opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important;
  margin: 18px 0 !important; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); color: var(--text);
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: normal; text-transform: none; text-align: left; }
.cp-tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
body.vf .cp-tab { display: flex; align-items: center; gap: 8px; margin: 0; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.2; font-family: inherit; letter-spacing: normal; text-transform: none; padding: 13px 17px 10px; cursor: pointer; white-space: nowrap; box-shadow: none; }
body.vf .cp-tab:hover { color: var(--text); background: none; }
body.vf .cp-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
body.vf .cp-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cp-tab-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cp-tab-n { font-weight: 400; font-size: 13px; opacity: .8; }
.cp-tab-n:empty { display: none; }
.cp-panel[hidden] { display: none !important; }
.cp-panel-body { padding: 4px 16px 16px; }
.cp-facts { margin: 12px 0 0; }
.cp-panel-body.cm { padding-top: 14px; }
.blk { margin: 12px 0; }
.blk h3, h3.sub { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gal-item { margin: 0; }
.gal-open { display: block; width: 100%; padding: 0 !important; background: none; border: 1px solid var(--line) !important; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
/* Page Studio gallery pictures in a creator's page open large (picview.js galleryClick, owner 2026-12-03) */
.vf-creator .ps-gl .ps-gi img { cursor: zoom-in; }
.gal-open img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }


@media (max-width: 760px) {
  .cp-wrap { padding: 0 14px; }
  .vf-showcase .vf-head { padding: 14px 14px 0; }
  .vf-showcase .vf-side { flex: 0 0 100%; }
  .vf-showcase .vf-pic { max-width: 300px; margin: 0 auto 12px; }
  .vf-showcase .vf-name { font-size: 23px; }
  .vf-showcase .vf-actions-2 { padding-inline: 14px; }
  .vf-showcase.vf-default .vf-side { flex: 0 0 100%; }
  .vf-showcase.vf-default .vf-pic { width: 100%; }
  .vf-showcase.vf-default .vf-actions-2 { padding-inline: 0; }
  .vf-showcase.vf-default .vf-name { font-size: 24px; }
  .vf-showcase.vf-default .vf-info { margin-inline: 14px; }
}
/* Phones: the tabs in rows of three, no sideways scrolling; the icons go on very narrow screens. */
@media (max-width: 600px) {
  .cp-tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.vf .cp-tab { justify-content: center; padding: 11px 2px 8px; gap: 5px; font-size: 13px; white-space: normal; text-align: center; min-width: 0; }
  .cp-tab-name { overflow-wrap: anywhere; }
  .cp-tab-ico { width: 15px; height: 15px; }
  .cp-tab-n { font-size: 12px; }
  .cp-panel-body { padding: 4px 12px 14px; }
}
@media (max-width: 350px) { .cp-tab-ico { display: none; } }

.vf-showcase:not(.vf-has-notes) { max-width: min(1200px, calc(100% - 28px)); margin: 18px auto; }

/* Card text with its formatting (card.js richText, RoadRash 2026-11-28): *italic*, **bold**, "speech" as in the chat,
   pictures from the text no wider than the box. Example messages: one block per example chat, a thin line between. */
.cp-rich em { font-style: italic; }
.cp-rich strong { font-weight: 700; }
.cp-rich .msg-quote { color: var(--chat-quote); }
.cp-rich img.msg-img, .cp-rich video.msg-video { max-width: 100%; max-height: 420px; height: auto; border-radius: 8px; display: block; margin: 6px 0; }
.cp-rich audio.msg-audio { max-width: 100%; display: block; margin: 6px 0; }
.cp-rich p { margin: 0 0 .6em; }
.cp-rich p:last-child { margin-bottom: 0; }
.cp-rich hr.cp-ex-sep { border: 0; border-top: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent); margin: 10px 0; }

/* The tagline at the top (libui.js taglineBlock, owner 2026-11-28): lines kept, "---" a thin rule, "# …" a bold line. */
.vf-showcase .vf-tagline { overflow-wrap: anywhere; }
.vf-showcase .vf-tagline .vf-tl-rule { border: 0; border-top: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); margin: 6px 0; height: 0; }
.vf-showcase .vf-tagline .vf-tl-h { font-weight: 700; margin: 4px 0 2px; }
.vf-showcase .vf-tagline .vf-tl-h1 { font-size: 1.2em; }
.vf-showcase .vf-tagline .vf-tl-h2 { font-size: 1.1em; }
.vf-showcase .vf-tagline .vf-tl-gap { height: .6em; }
