/* ==========================================================================
   Vibebook app stylesheet
   Facebook-esque, warm and fast. Mobile-first.
   ========================================================================== */

:root {
  --vb-blue: #1B5BFF;
  --vb-blue-dark: #0F3FCC;
  --vb-blue-soft: #E7EEFF;
  --vb-bg: #F0F2F5;
  --vb-card: #FFFFFF;
  --vb-text: #050505;
  --vb-muted: #65676B;
  --vb-line: #DADDE1;
  --vb-green: #31A24C;
  --vb-red: #E41E3F;
  --vb-grey: #E4E6EB;
  --vb-grey-hover: #D8DADF;
  --vb-vibe: linear-gradient(135deg, #1B5BFF 0%, #8A3FFC 55%, #FF4FA3 100%);
  --vb-top-h: 56px;
  --vb-tabs-h: 56px;
  --vb-radius: 8px;
  --vb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--vb-font);
  background: var(--vb-bg);
  color: var(--vb-text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--vb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* A link inside running text is underlined, so it never relies on color alone (WCAG 1.4.1). */
p a:not([class]), li a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; }
p { margin: 0 0 12px; }

.vb-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- top bar -- */

.vb-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--vb-top-h);
  background: var(--vb-blue);
  color: #fff;
}

.vb-top-inner {
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vb-logo {
  display: flex;
  align-items: center;
  height: 34px;
  flex: 0 0 auto;
  text-decoration: none;
}
.vb-logo:hover { text-decoration: none; }
.vb-logo img { height: 22px; width: auto; display: block; }
.vb-logo-text {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
  font-family: var(--vb-font);
}

.vb-search {
  flex: 1 1 auto;
  max-width: 420px;
  display: none;
}
.vb-search input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.vb-search input::placeholder { color: rgba(255, 255, 255, 0.78); }
.vb-search input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  color: var(--vb-text);
}
.vb-search input:focus::placeholder { color: var(--vb-muted); }

.vb-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vb-iconbtn {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.vb-iconbtn:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.vb-iconbtn.is-active { background: rgba(255, 255, 255, 0.22); }
.vb-iconbtn svg { width: 22px; height: 22px; display: block; }

.vb-avatarbtn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.vb-avatarbtn img {
  width: 30px; height: 30px; border-radius: 50%; display: block;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: #fff;
}

.vb-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 8px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--vb-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--vb-blue);
  box-sizing: content-box;
}
.vb-badge[hidden] { display: none; }

/* --------------------------------------------------------------- layout -- */

.vb-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 12px calc(var(--vb-tabs-h) + 24px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.vb-col-left, .vb-col-right { display: none; }

.vb-col-main { min-width: 0; }

/* ---------------------------------------------------------------- cards -- */

.vb-card {
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  padding: 14px;
  margin-bottom: 14px;
}
.vb-card--flush { padding: 0; overflow: hidden; }
.vb-card h2 { font-size: 17px; }

.vb-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--vb-muted);
  margin-bottom: 10px;
}

.vb-muted { color: var(--vb-muted); }
.vb-small { font-size: 13px; }
.vb-center { text-align: center; }
.vb-row { display: flex; align-items: center; gap: 10px; }
.vb-spacer { flex: 1 1 auto; }

.vb-empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--vb-muted);
  font-size: 14px;
}

/* -------------------------------------------------------------- buttons -- */

.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--vb-grey);
  color: var(--vb-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, opacity 0.12s ease;
}
.vb-btn:hover { background: var(--vb-grey-hover); text-decoration: none; }
.vb-btn:disabled { opacity: 0.55; cursor: default; }

.vb-btn--primary { background: var(--vb-blue); color: #fff; }
.vb-btn--primary:hover { background: var(--vb-blue-dark); }
.vb-btn--ghost { background: transparent; border-color: var(--vb-line); }
.vb-btn--ghost:hover { background: var(--vb-bg); }
.vb-btn--danger { background: #fff; color: var(--vb-red); border-color: var(--vb-line); }
.vb-btn--danger:hover { background: #FDECEF; }
.vb-btn--block { display: flex; width: 100%; }
.vb-btn--sm { min-height: 36px; font-size: 14px; padding: 0 12px; }
.vb-btn--vibe { background: var(--vb-vibe); color: #fff; border: 0; }
.vb-btn--vibe:hover { opacity: 0.92; background: var(--vb-vibe); }

.vb-btn--google {
  background: #fff;
  border-color: var(--vb-line);
  color: #1F2328;
}
.vb-btn--google:hover { background: #F5F6F7; }
.vb-btn--google svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- forms -- */

.vb-field { margin-bottom: 14px; }
.vb-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.vb-hint { font-size: 13px; color: var(--vb-muted); margin-top: 6px; }

/* The age confirmation on signup (legal-guard LG-01). A real checkbox with a
 * 24px target so it passes WCAG 2.5.8 on a phone. */
.vb-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.vb-check input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--vb-blue);
  cursor: pointer;
}
.vb-check .vb-hint { display: block; margin-top: 2px; }
.vb-legal-note { font-size: 13px; color: var(--vb-muted); margin: 12px 0 0; }

.vb-input, .vb-textarea, .vb-select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--vb-text);
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 6px;
  padding: 12px 14px;
}
.vb-input { min-height: 48px; }
.vb-textarea { min-height: 110px; resize: vertical; }
.vb-input:focus, .vb-textarea:focus, .vb-select:focus {
  outline: none;
  border-color: var(--vb-blue);
  box-shadow: 0 0 0 3px var(--vb-blue-soft);
}
.vb-input--big { min-height: 56px; font-size: 19px; font-weight: 600; }

.vb-inputwrap { position: relative; }
.vb-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vb-muted);
  font-size: 19px;
  font-weight: 600;
  pointer-events: none;
}
.vb-inputwrap .vb-input--big { padding-left: 30px; }

.vb-status { font-size: 13px; margin-top: 6px; min-height: 18px; font-weight: 600; }
.vb-status--ok { color: var(--vb-green); }
.vb-status--bad { color: var(--vb-red); }
.vb-status--busy { color: var(--vb-muted); font-weight: 500; }

.vb-error {
  background: #FDECEF;
  border: 1px solid #F5C2CC;
  color: #8A1226;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 12px;
}
.vb-error[hidden] { display: none; }

.vb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vb-muted);
  font-size: 13px;
  margin: 16px 0;
}
.vb-divider::before, .vb-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--vb-line);
}

/* -------------------------------------------------------------- avatars -- */

.vb-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--vb-grey);
  object-fit: cover;
  display: block;
}
.vb-av--sm { width: 32px; height: 32px; }
.vb-av--lg { width: 84px; height: 84px; border: 3px solid #fff; }

/* ----------------------------------------------------------------- feed -- */

.vb-composer textarea {
  border: 0;
  padding: 8px 0;
  min-height: 64px;
  font-size: 17px;
}
.vb-composer textarea:focus { box-shadow: none; }
.vb-composer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--vb-line);
  padding-top: 10px;
  margin-top: 6px;
}

.vb-tabs {
  display: flex;
  gap: 6px;
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  padding: 6px;
  margin-bottom: 14px;
}
.vb-tab {
  flex: 1 1 0;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vb-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.vb-tab:hover { background: var(--vb-bg); }
.vb-tab.is-active { background: var(--vb-blue-soft); color: var(--vb-blue-dark); }

.vb-post-head { display: flex; gap: 10px; align-items: flex-start; }
.vb-post-name { font-weight: 600; font-size: 15px; color: var(--vb-text); }
.vb-post-name:hover { text-decoration: underline; }
.vb-post-meta { font-size: 13px; color: var(--vb-muted); }
.vb-post-text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vb-post-counts {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--vb-muted);
  padding: 10px 0 8px;
}
.vb-post-actions {
  display: flex;
  border-top: 1px solid var(--vb-line);
  padding-top: 4px;
}
.vb-act {
  flex: 1 1 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vb-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vb-act:hover { background: var(--vb-bg); }
.vb-act.is-on { color: var(--vb-blue); }
.vb-act svg { width: 18px; height: 18px; }

.vb-comments { border-top: 1px solid var(--vb-line); margin-top: 6px; padding-top: 10px; }
.vb-comment { display: flex; gap: 8px; margin-bottom: 10px; }
.vb-comment-body {
  background: var(--vb-bg);
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 0;
}
.vb-comment-name { font-weight: 600; font-size: 13px; }
.vb-comment-text { font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.vb-comment-time { font-size: 12px; color: var(--vb-muted); margin: 2px 0 0 12px; }
.vb-comment-form { display: flex; gap: 8px; align-items: flex-start; }
.vb-comment-form .vb-input {
  min-height: 40px;
  border-radius: 18px;
  padding: 9px 14px;
  background: var(--vb-bg);
}

.vb-loader { padding: 18px; text-align: center; color: var(--vb-muted); font-size: 14px; }

/* ------------------------------------------------------------ skeletons -- */

/* Every app page ships its own skeleton in the HTML so the layout is on screen
   before a single module has parsed. Painting real content replaces it. */
.vb-skel {
  background: linear-gradient(90deg, #E4E6EB 25%, #EFF1F4 37%, #E4E6EB 63%);
  background-size: 400% 100%;
  animation: vb-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes vb-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) { .vb-skel { animation: none; } }

/* Skeleton containers deliberately do not reuse .vb-card / .vb-note / .vb-vcard:
   a placeholder must never answer to a selector that means "real content". */
.vb-skel-card {
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  padding: 14px;
  margin-bottom: 14px;
}
.vb-skel-tile {
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  overflow: hidden;
}
.vb-skel-tile > .vb-skel { display: block; width: 100%; height: 180px; border-radius: 0; }
.vb-skel-tile .vb-skel-row { padding: 12px; margin: 0; }
.vb-skel-head { display: flex; align-items: center; gap: 14px; }
.vb-skel-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px; }
.vb-skel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vb-skel-av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.vb-skel-av--lg { width: 84px; height: 84px; }
.vb-skel-line { height: 11px; margin-bottom: 8px; }
.vb-skel-line:last-child { margin-bottom: 0; }
.vb-skel-line--xs { width: 32%; }
.vb-skel-line--sm { width: 46%; }
.vb-skel-line--md { width: 72%; }
.vb-skel-block { height: 160px; border-radius: var(--vb-radius); }
.vb-skel-stack { flex: 1 1 auto; min-width: 0; }

/* --------------------------------------------------------------- people -- */

.vb-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vb-line);
}
.vb-person:last-child { border-bottom: 0; }
.vb-person-main { min-width: 0; flex: 1 1 auto; }
.vb-person-name { font-weight: 600; display: block; color: var(--vb-text); }
.vb-person-handle { font-size: 13px; color: var(--vb-muted); }

/* ------------------------------------------------------------- profile -- */

.vb-vibe-wrap {
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.vb-vibe-frame {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  background: #fff;
}
.vb-vibe-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--vb-line);
  font-size: 12px;
  color: var(--vb-muted);
}
.vb-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  background: var(--vb-vibe);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.vb-profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.vb-profile-name { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.vb-profile-handle { color: var(--vb-muted); font-size: 15px; }
.vb-profile-bio { max-width: 480px; margin: 6px auto 0; }
.vb-profile-stats { display: flex; gap: 18px; justify-content: center; color: var(--vb-muted); font-size: 14px; }
.vb-profile-stats b { color: var(--vb-text); }
.vb-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }

.vb-about-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--vb-line); font-size: 15px; }
.vb-about-row:last-child { border-bottom: 0; }
.vb-about-key { width: 110px; flex: 0 0 auto; color: var(--vb-muted); }

/* ---------------------------------------------------------- onboarding -- */

.vb-onb {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--vb-bg);
}
.vb-onb-top {
  height: var(--vb-top-h);
  background: var(--vb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.vb-onb-body {
  flex: 1 1 auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.vb-dots { display: flex; gap: 7px; justify-content: center; padding: 18px 0 6px; }
.vb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vb-line); }
.vb-dot.is-on { background: var(--vb-blue); }
.vb-dot.is-done { background: #A9BEFF; }

.vb-step { display: none; }
.vb-step.is-on { display: block; }
.vb-step h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 6px; }
.vb-step .vb-lede { color: var(--vb-muted); font-size: 16px; margin-bottom: 20px; }

.vb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vb-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid var(--vb-line);
  background: #fff;
  color: var(--vb-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vb-chip:hover { border-color: var(--vb-blue); background: var(--vb-blue-soft); }
.vb-chip.is-on { border-color: var(--vb-blue); background: var(--vb-blue-soft); color: var(--vb-blue-dark); }

.vb-avgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.vb-avpick {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  line-height: 0;
}
.vb-avpick img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.vb-avpick.is-on { border-color: var(--vb-blue); box-shadow: 0 0 0 3px var(--vb-blue-soft); }

.vb-gen {
  text-align: center;
  padding: 28px 0 8px;
}
.vb-gen-mark {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--vb-vibe);
  display: flex; align-items: center; justify-content: center;
  animation: vb-breathe 2.2s ease-in-out infinite;
}
.vb-gen-mark svg { width: 38px; height: 38px; }
@keyframes vb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .vb-gen-mark { animation: none; }
}
.vb-gen-line { font-size: 18px; font-weight: 600; min-height: 26px; }
.vb-gen-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--vb-line);
  overflow: hidden;
  max-width: 320px;
  margin: 16px auto 0;
}
.vb-gen-bar > i {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 3px;
  background: var(--vb-vibe);
  transition: width 0.5s ease;
}

/* --------------------------------------------------------------- toasts -- */

.vb-toasts {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--vb-tabs-h) + 14px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.vb-toast {
  max-width: 460px;
  width: 100%;
  background: #1C1E21;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  animation: vb-toast-in 0.18s ease;
}
.vb-toast--bad { background: #8A1226; }
@keyframes vb-toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- bottom tabs -- */

.vb-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: var(--vb-tabs-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--vb-card);
  border-top: 1px solid var(--vb-line);
  display: flex;
}
.vb-tabbar a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--vb-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.vb-tabbar a.is-active { color: var(--vb-blue); }
.vb-tabbar svg { width: 22px; height: 22px; }
.vb-tabbar .vb-badge { border-color: var(--vb-card); top: 4px; right: calc(50% - 18px); }

/* ---------------------------------------------------------- left nav -- */

.vb-nav { display: flex; flex-direction: column; gap: 2px; }
.vb-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--vb-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.vb-nav a:hover { background: var(--vb-grey); text-decoration: none; }
.vb-nav a.is-active { background: var(--vb-blue-soft); color: var(--vb-blue-dark); }
.vb-nav svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ---------------------------------------------------- notifications -- */

.vb-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--vb-text);
}
.vb-note:hover { background: var(--vb-bg); text-decoration: none; }
.vb-note.is-unread { background: var(--vb-blue-soft); }
.vb-note-text { font-size: 15px; }
.vb-note-time { font-size: 13px; color: var(--vb-muted); margin-top: 2px; }

/* -------------------------------------------------------------- footers -- */

/* The quiet links row at the end of every page: below the main column in the
 * app (config.js VB.tabs adds it), below the card on the signed-out pages. */
.vb-appfoot, .vb-onb-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--vb-muted);
}
.vb-appfoot { padding: 4px 4px 0; }
.vb-onb-foot { justify-content: center; padding: 0 16px 24px; }
.vb-appfoot a, .vb-onb-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--vb-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vb-appfoot a:hover, .vb-onb-foot a:hover { color: var(--vb-text); }

/* ------------------------------------------------- accessibility page -- */

.vb-doc h1 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 4px; }
.vb-doc h2 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; margin: 22px 0 6px; }
.vb-doc p, .vb-doc li { font-size: 15px; line-height: 1.55; }
.vb-doc ul, .vb-doc ol { margin: 0 0 12px; padding-left: 20px; }
.vb-doc li { margin-bottom: 6px; }

/* ----------------------------------------------------------- utilities -- */

.vb-only-mobile { display: block; }
.vb-mt { margin-top: 14px; }
.vb-mb0 { margin-bottom: 0; }

/* ------------------------------------------------------------ desktop -- */

@media (min-width: 900px) {
  .vb-search { display: block; }
  .vb-iconbtn { display: flex; }
  .vb-tabbar { display: none; }
  .vb-shell {
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    padding-bottom: 28px;
    align-items: start;
  }
  .vb-col-left, .vb-col-right { display: block; position: sticky; top: calc(var(--vb-top-h) + 12px); }
  .vb-col-main { max-width: 680px; margin: 0 auto; width: 100%; }
  .vb-toasts { bottom: 20px; }
  .vb-profile-head { flex-direction: row; text-align: left; align-items: flex-end; }
  .vb-profile-head .vb-profile-bio { margin-left: 0; }
  .vb-profile-stats { justify-content: flex-start; }
  .vb-profile-actions { width: auto; margin-left: auto; justify-content: flex-end; }
  .vb-avgrid { grid-template-columns: repeat(6, 1fr); }
  .vb-only-mobile { display: none; }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .vb-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .vb-col-right { display: none; }
}

/* ==========================================================================
   v2: about you, talk to your profile, explore, frozen canvas fallback
   ========================================================================== */

/* ------------------------------------------------------------ about you -- */

.vb-mini-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.vb-mini { display: block; }
.vb-mini .vb-label { margin-bottom: 4px; }
.vb-mini input {
  width: 100%;
  min-height: 48px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--vb-text);
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 6px;
  padding: 10px 12px;
}
.vb-mini input:focus {
  outline: none;
  border-color: var(--vb-blue);
  box-shadow: 0 0 0 3px var(--vb-blue-soft);
}

.vb-more {
  border: 0;
  background: transparent;
  color: var(--vb-blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vb-more svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.vb-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.vb-more-panel[hidden] { display: none; }

/* The About tab on a profile. */
.vb-about-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vb-about-item {
  border: 1px solid var(--vb-line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
.vb-about-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--vb-muted);
  margin-bottom: 4px;
}
.vb-about-value { font-size: 16px; overflow-wrap: anywhere; }
.vb-quote {
  border-left: 4px solid transparent;
  border-image: var(--vb-vibe) 1;
  background: #FBFBFD;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.45;
  font-style: italic;
  overflow-wrap: anywhere;
}
.vb-quote-by { display: block; font-style: normal; font-size: 13px; color: var(--vb-muted); margin-top: 8px; }
.vb-about-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vb-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--vb-blue-soft);
  color: var(--vb-blue-dark);
  font-size: 12px;
  font-weight: 600;
}

/* ------------------------------------------------- talk to your profile -- */

.vb-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 5, 5, 0.22);
  display: none;
}
.vb-edit-backdrop[hidden] { display: none; }

.vb-edit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  height: 70vh;
  height: 70dvh;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--vb-card);
  border-top: 1px solid var(--vb-line);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 24px rgba(5, 5, 5, 0.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.vb-edit[hidden] { display: none; }

.vb-edit-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--vb-line);
  margin: 8px auto 2px;
}

.vb-edit-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--vb-line);
}
.vb-edit-headtext { flex: 1 1 auto; min-width: 0; }
.vb-edit-title { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.vb-edit-sub { font-size: 13px; color: var(--vb-muted); }
.vb-edit-x {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vb-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vb-edit-x:hover { background: var(--vb-bg); }
.vb-edit-x svg { width: 16px; height: 16px; }

.vb-edit-log {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vb-edit-empty { color: var(--vb-muted); font-size: 14px; }

.vb-bub {
  max-width: 90%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.vb-bub--you { align-self: flex-end; background: var(--vb-blue); color: #fff; border-bottom-right-radius: 5px; }
.vb-bub--vibe { align-self: flex-start; background: var(--vb-bg); color: var(--vb-text); border-bottom-left-radius: 5px; }
.vb-bub--vibe.is-pending { color: var(--vb-muted); }
.vb-bub--vibe.is-pending::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--vb-muted);
  animation: vb-pulse 1s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes vb-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vb-bub--vibe.is-pending::after { animation: none; } }
.vb-bub--err { align-self: flex-start; background: #FDECEF; border: 1px solid #F5C2CC; color: #8A1226; }
.vb-bub--err a { color: #8A1226; text-decoration: underline; }

.vb-edit-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px 14px;
  border-top: 1px solid var(--vb-line);
  scrollbar-width: none;
}
.vb-edit-chips::-webkit-scrollbar { display: none; }
.vb-chip--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 18px; white-space: nowrap; flex: 0 0 auto; }

.vb-edit-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 14px 8px;
}
.vb-edit-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  max-height: 120px;
  resize: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  color: var(--vb-text);
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 10px;
  padding: 13px 14px;
}
.vb-edit-input:focus { outline: none; border-color: var(--vb-blue); box-shadow: 0 0 0 3px var(--vb-blue-soft); }
.vb-edit-send { flex: 0 0 auto; min-height: 48px; white-space: nowrap; }

/* What this instruction costs, under the box. It keeps its line whether or
 * not there is a quote yet, so the sheet never jumps as you type. */
.vb-edit-quote {
  padding: 0 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vb-muted);
  min-height: 18px;
}
.vb-edit-quote[hidden] { display: block; visibility: hidden; }

/* Three dots while the price is being worked out. */
.vb-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.vb-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: vb-dot 1s infinite ease-in-out;
}
.vb-dots i:nth-child(2) { animation-delay: 0.15s; }
.vb-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes vb-dot {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .vb-dots i { animation: none; opacity: 0.6; }
}

.vb-edit-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 12px;
}
.vb-edit-foot-note { font-size: 12px; color: var(--vb-muted); }

/* The canvas dims while a rewrite is in flight. */
.vb-vibe-wrap.is-rewriting { position: relative; }
.vb-vibe-wrap.is-rewriting .vb-vibe-frame { opacity: 0.42; transition: opacity 0.15s ease; }
.vb-vibe-wrap.is-rewriting::after {
  content: "Rewriting";
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  background: var(--vb-vibe);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 999px;
}

body.vb-edit-open .vb-tabbar { display: none; }
body.vb-edit-open .vb-shell { padding-bottom: 74vh; }

/* --------------------------------------------------------- frozen canvas -- */

.vb-fallback { padding: 30px 18px 26px; text-align: center; }
.vb-fallback-ring {
  width: 96px; height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  padding: 4px;
  background: var(--vb-vibe);
}
.vb-fallback-ring img { width: 100%; height: 100%; border-radius: 50%; display: block; background: #fff; }
.vb-fallback-name { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 2px; }
.vb-fallback-handle { color: var(--vb-muted); font-size: 15px; margin-bottom: 10px; }
.vb-fallback-bio { max-width: 420px; margin: 0 auto 12px; }
.vb-fallback-note { font-size: 13px; color: var(--vb-muted); margin: 0; }
.vb-fallback-hint { font-size: 13px; color: var(--vb-blue-dark); margin: 8px 0 0; }

/* ---------------------------------------------------------------- explore -- */

.vb-searchbar { display: flex; gap: 8px; align-items: stretch; }
.vb-searchbar .vb-input { min-height: 48px; }
.vb-searchbar .vb-btn { flex: 0 0 auto; min-height: 48px; }

.vb-explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vb-vcard {
  display: block;
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  overflow: hidden;
  color: var(--vb-text);
  text-decoration: none;
}
.vb-vcard:hover { text-decoration: none; border-color: #B9C6E8; }
.vb-vcard:focus-visible { outline: 3px solid var(--vb-blue-soft); outline-offset: 2px; }

.vb-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(180deg, #F7F8FB 0%, #EDF0F6 100%);
  border-bottom: 1px solid var(--vb-line);
}
.vb-thumb-stage { position: absolute; inset: 0; pointer-events: none; }
.vb-thumb-frame {
  border: 0;
  display: block;
  transform-origin: 0 0;
  pointer-events: none;
  background: #fff;
}
.vb-thumb-quiet,
.vb-thumb-holding {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vb-muted);
  font-size: 13px;
}
.vb-thumb-holding span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--vb-line);
}

.vb-vcard-body { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px 14px; }
.vb-vcard-main { min-width: 0; flex: 1 1 auto; }
.vb-vcard-name { font-weight: 700; font-size: 15px; display: block; overflow-wrap: anywhere; }
.vb-vcard-handle { font-size: 13px; color: var(--vb-muted); }
.vb-vcard-prompt {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--vb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vb-vcard-match { font-size: 12px; color: var(--vb-blue-dark); font-weight: 600; margin-top: 6px; }

.vb-explore-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.vb-explore-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; margin: 0; }
.vb-explore-count { font-size: 13px; color: var(--vb-muted); }

/* ------------------------------------------------------------- desktop -- */

@media (min-width: 640px) {
  .vb-mini-grid { grid-template-columns: 1fr 1fr; }
  .vb-explore-grid { grid-template-columns: 1fr 1fr; }
  .vb-about-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .vb-edit-backdrop { display: block; }
  .vb-edit-backdrop[hidden] { display: none; }
  .vb-edit {
    left: auto;
    right: 0;
    top: var(--vb-top-h);
    bottom: 0;
    width: 380px;
    height: auto;
    max-height: none;
    border-radius: 0;
    border-left: 1px solid var(--vb-line);
    border-top: 0;
    box-shadow: -6px 0 24px rgba(5, 5, 5, 0.10);
  }
  .vb-edit-grip { display: none; }
  body.vb-edit-open .vb-shell { padding-bottom: 28px; }
}

/* --------------------------------------------------------- segmented -- */

.vb-seg {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--vb-grey);
  border-radius: 8px;
  max-width: 100%;
}
.vb-seg-btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vb-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.vb-seg-btn.is-on { background: #fff; color: var(--vb-text); }
.vb-seg-btn:disabled { opacity: 0.6; cursor: default; }

.vb-credit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--vb-blue-soft);
  color: var(--vb-blue-dark);
  font-size: 14px;
  font-weight: 700;
}
.vb-credit-pill.is-low { background: #FDECEF; color: #8A1226; }

.vb-lock { width: 14px; height: 14px; vertical-align: -2px; }
.vb-lock-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vb-muted);
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------------------------------- locked card -- */

.vb-locked { padding: 34px 20px; text-align: center; }
.vb-locked-badge {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--vb-blue-soft);
  color: var(--vb-blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.vb-locked-badge svg { width: 24px; height: 24px; }
.vb-locked h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 6px; }
.vb-locked p { color: var(--vb-muted); max-width: 420px; margin: 0 auto 14px; }
.vb-thumb-locked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--vb-muted);
  font-size: 13px;
  font-weight: 600;
}
.vb-thumb-locked svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------- credits -- */

.vb-note-ok {
  background: #E8F6EC;
  border: 1px solid #B7E3C3;
  color: #14602C;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.vb-note-ok[hidden] { display: none; }

.vb-packs { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.vb-pack {
  position: relative;
  background: var(--vb-card);
  border: 1px solid var(--vb-line);
  border-radius: var(--vb-radius);
  padding: 18px 14px 14px;
  text-align: center;
}
.vb-pack.is-best { border-color: var(--vb-blue); border-width: 2px; }
.vb-pack-flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vb-vibe);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.vb-pack-credits { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.vb-pack-unit { font-size: 13px; color: var(--vb-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.vb-pack-price { font-size: 20px; font-weight: 700; margin-top: 10px; }
.vb-pack-each { font-size: 12px; color: var(--vb-muted); margin-bottom: 12px; }

@media (min-width: 640px) {
  .vb-packs { grid-template-columns: repeat(3, 1fr); }
}

/* What things cost: the complexity tiers, on credits.html. */
.vb-tiers { display: grid; gap: 2px; }
.vb-tier {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--vb-line);
}
.vb-tier:first-child { border-top: 0; }
.vb-tier-cost {
  font-size: 14px;
  font-weight: 800;
  color: var(--vb-blue-dark);
  white-space: nowrap;
  padding-top: 1px;
}
.vb-tier-name { font-size: 14px; font-weight: 700; }
.vb-tier-what { font-size: 13px; color: var(--vb-muted); margin: 2px 0 0; }

.vb-credit-pill--sm { min-height: 28px; padding: 0 10px; font-size: 12px; text-decoration: none; flex: 0 0 auto; }
.vb-credit-pill--sm:hover { text-decoration: none; opacity: 0.9; }
.vb-credit-pill[hidden] { display: none; }

/* ------------------------------------------------------------- sheets -- */

.vb-sheet-back {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(5, 5, 5, 0.34);
}

.vb-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 86;
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  background: var(--vb-card);
  border-radius: 14px 14px 0 0;
  border-top: 1px solid var(--vb-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.vb-sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--vb-line);
}
.vb-sheet-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.vb-sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
}

.vb-seg--full { display: flex; width: 100%; }
.vb-seg--full .vb-seg-btn { flex: 1 1 0; padding: 0 8px; font-size: 14px; }

.vb-share-preview {
  margin: 14px 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vb-bg);
  border: 1px solid var(--vb-line);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
}
.vb-share-loading { color: var(--vb-muted); font-size: 14px; text-align: center; padding: 24px 10px; }
.vb-share-img { display: block; max-width: 100%; border-radius: 6px; border: 1px solid var(--vb-line); }
.vb-share-img--story { max-height: 320px; width: auto; }
.vb-share-img--square { max-height: 300px; width: auto; }

.vb-share-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.vb-share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--vb-line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--vb-text);
}
.vb-share-btn:hover { background: var(--vb-bg); }
.vb-share-ico {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vb-blue-soft);
  color: var(--vb-blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.vb-share-ico svg { width: 19px; height: 19px; }
.vb-share-txt { display: flex; flex-direction: column; min-width: 0; }
.vb-share-txt b { font-size: 15px; font-weight: 600; }
.vb-share-txt span { font-size: 12px; color: var(--vb-muted); overflow-wrap: anywhere; }
.vb-share-friends { margin-top: 14px; border-top: 1px solid var(--vb-line); padding-top: 10px; }
.vb-share-friends[hidden] { display: none; }

@media (min-width: 640px) {
  .vb-share-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .vb-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-height: 84vh;
    border-radius: 12px;
    border: 1px solid var(--vb-line);
  }
  .vb-sheet .vb-edit-grip { display: none; }
}

/* -------------------------------------------------------------- photos -- */

.vb-composer-img {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 2px;
}
.vb-composer-img[hidden] { display: none; }
.vb-composer-img img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--vb-line);
  background: var(--vb-grey);
}

.vb-post-img {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--vb-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--vb-grey);
  cursor: zoom-in;
}
.vb-post-img img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.vb-post-img img.is-missing { min-height: 160px; }

.vb-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.vb-photo { margin: 0; }
.vb-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--vb-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--vb-grey);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.vb-photo-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-photo figcaption { font-size: 13px; color: var(--vb-muted); margin-top: 6px; overflow-wrap: anywhere; }
.vb-photo-tools { display: flex; gap: 6px; margin-top: 6px; }
.vb-photo-tools .vb-btn { flex: 1 1 0; }

.vb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 5, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vb-lightbox-fig { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.vb-lightbox-fig img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  background: #1C1E21;
}
.vb-lightbox-fig figcaption { color: #fff; font-size: 14px; margin-top: 12px; max-width: 620px; }
.vb-lightbox-x {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vb-lightbox-x svg { width: 16px; height: 16px; }

/* the avatar tile in settings and onboarding */
.vb-av-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.vb-av-upload img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--vb-grey);
  border: 2px solid #fff;
}

/* photo picker inside the profile editor */
.vb-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.vb-pick {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--vb-grey);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.vb-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-pick.is-on { border-color: var(--vb-blue); }
.vb-pick-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (min-width: 640px) {
  .vb-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.vb-edit-photos {
  border-top: 1px solid var(--vb-line);
  padding: 10px 14px;
  max-height: 40vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vb-edit-photos[hidden] { display: none; }
