/* Zibasho Pastel — RTL magazine shell */

/* Self-hosted Vazirmatn (also enqueued via assets/css/fonts.css for login). */
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
}

:root {
  --zb-canvas: #faf7f2;
  --zb-card: #ffffff;
  --zb-line: #f0eae4;
  --zb-rose: #d47a8f;
  --zb-coral: #e07a5f;
  --zb-rose-soft: #fceeef;
  --zb-peach-soft: #fdf0ed;
  --zb-lav: #e2d4f0;
  --zb-lav-ink: #5e4b75;
  --zb-sage: #d8e2dc;
  --zb-sage-ink: #3b5249;
  --zb-ink: #2d3142;
  --zb-mute: #8d99ae;
  --zb-foot: #f4ece1;
  --zb-gold: #c9a86a;
  --zb-shadow: 0 4px 25px -4px rgba(45, 49, 66, 0.04);
  --zb-lift: 0 12px 32px -4px rgba(212, 122, 143, 0.12);
  --zb-radius: 1.5rem;
  --zb-max: 72rem;
  --zb-sticky-top: 5.75rem;
}
body.admin-bar { --zb-sticky-top: calc(5.75rem + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar { --zb-sticky-top: calc(5.75rem + 46px); }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  direction: rtl;
  max-width: 100% !important;
  overflow-x: clip !important;
}

body {
  margin: 0;
  max-width: 100% !important;
  overflow-x: clip !important;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  background: var(--zb-canvas);
  color: var(--zb-ink);
  text-align: start;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.zb-wrap {
  width: min(100% - 2rem, var(--zb-max));
  margin-inline: auto;
}

.zb-glass {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
}

/* Header */
/* Only the top navbar bar sticks — category chips scroll away with the page. */
.zb-header-desktop {
  display: none;
  position: relative;
  z-index: 40;
  padding-top: 1rem;
  overflow: visible;
}
.zb-header-desktop .zb-header-bar {
  position: sticky;
  top: 0;
  z-index: 41;
}
.zb-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  border: 1px solid var(--zb-line);
  border-radius: var(--zb-radius);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--zb-shadow);
  overflow: visible;
  position: relative;
  z-index: 40;
}
.zb-brand { flex-shrink: 0; }
.zb-logo img,
.custom-logo { height: 3.5rem; width: auto; }
@media (min-width: 768px) {
  .zb-logo img,
  .custom-logo { height: 4rem; }
}
/* لوگوی سفید → رنگ برند روی پس‌زمینه روشن (نه فوتر کرم) */
.zb-logo--rose img,
.zb-logo--rose .custom-logo {
  filter: brightness(0) saturate(100%) invert(58%) sepia(24%) saturate(780%) hue-rotate(300deg) brightness(95%) contrast(90%);
}
/* White logo asset → dusty-rose on cream surfaces */
.zb-footer .zb-logo img,
.zb-footer .zb-logo .custom-logo,
.zb-footer .zb-footer-logo img,
.zb-footer .custom-logo {
  filter: brightness(0) saturate(100%) invert(58%) sepia(24%) saturate(780%) hue-rotate(300deg) brightness(95%) contrast(90%) !important;
  opacity: 1 !important;
}
.zb-logo--header img,
.zb-logo--header .custom-logo {
  /* اگر لوگو سفید است روی هدر هم رز دیده شود */
  filter: brightness(0) saturate(100%) invert(58%) sepia(24%) saturate(780%) hue-rotate(300deg) brightness(95%) contrast(90%);
}
.zb-nav-pills {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: var(--zb-canvas);
  font-size: 0.8125rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.zb-nav-pills::-webkit-scrollbar { display: none; }
.zb-nav-pills-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.zb-nav-pills a {
  border-radius: 9999px;
  padding: 0.45rem 0.7rem;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}
.zb-nav-pills a.is-active,
.zb-nav-pills .current-menu-item > a {
  background: var(--zb-rose);
  color: #fff;
  font-weight: 600;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.zb-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.zb-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
  border-radius: 9999px;
  background: var(--zb-rose-soft);
  padding: 0 1rem;
  color: var(--zb-mute);
  font-size: 0.875rem;
}
.zb-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 9rem;
  text-align: start;
  color: var(--zb-ink);
}
.zb-icon-btn,
.zb-notif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
  border: 1px solid #E2D8C9;
  border-radius: 9999px;
  background: #FAF7F2;
  color: #2D3142;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}
.zb-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.zb-auth-login,
.zb-auth-register {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.zb-account-wrap { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; }
.zb-account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
  border: 0;
  background: transparent;
  border-radius: 9999px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.zb-account-toggle--circle .zb-account-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  padding: 2px;
  background: linear-gradient(135deg, #D47A8F, #E07A5F);
  box-shadow: 0 2px 8px rgba(212, 122, 143, 0.25);
  box-sizing: border-box;
}
.zb-account-toggle--circle .zb-account-ring img,
.zb-account-toggle--circle .zb-account-ring .zb-pastel-avatar,
.zb-account-toggle--circle .zb-account-ring svg,
.zb-account-toggle--circle .zb-account-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9999px !important;
  object-fit: cover;
  display: block;
  background: #FAF7F2;
}
.zb-account-online {
  position: absolute;
  inset-block-end: 1px;
  inset-inline-start: 1px;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #52796F;
  border: 1.5px solid #FFF;
  box-sizing: border-box;
}
.zb-account-toggle.is-guest {
  width: auto;
  height: 40px;
  padding: 0 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
}
.zb-account-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  /* آواتار لبه چپ صفحه است → پنل به داخل (راست در RTL) باز شود */
  inset-inline-start: auto;
  inset-inline-end: 0;
  z-index: 80;
  width: min(16.5rem, calc(100vw - 2rem));
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.15rem;
  box-shadow: var(--zb-lift);
  overflow: hidden;
}
.zb-account-panel[hidden] { display: none !important; }
.zb-account-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(to bottom left, var(--zb-rose-soft), var(--zb-peach-soft));
  border-bottom: 1px solid var(--zb-line);
}
.zb-account-panel-head img { border-radius: 9999px; display: block; }
.zb-account-name { margin: 0; font-size: 0.85rem; font-weight: 700; }
.zb-account-meta { margin: 0.15rem 0 0; font-size: 0.7rem; color: var(--zb-mute); }
.zb-account-menu { list-style: none; margin: 0; padding: 0.35rem; }
.zb-account-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.zb-account-menu a:hover { background: var(--zb-canvas); }
.zb-account-menu a.is-danger { color: var(--zb-coral); }
.zb-account-menu .is-sep {
  margin-top: 0.25rem;
  border-top: 1px solid var(--zb-line);
  padding-top: 0.25rem;
}
.zb-account-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--zb-lav);
  flex-shrink: 0;
}
.zb-account-link img,
.zb-account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
  display: block;
}
.zb-notif-wrap { position: relative; }
.zb-notif-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  inset-inline-end: 0;
  z-index: 70;
  width: 20rem;
  border: 1px solid var(--zb-line);
  border-radius: 1.25rem;
  background: var(--zb-card);
  box-shadow: var(--zb-lift);
  overflow: hidden;
}
.zb-notif-panel[hidden] { display: none !important; }
.zb-notif-panel--mobile {
  position: fixed;
  inset-inline: 0.75rem;
  top: 4rem;
  width: auto;
}
.zb-notif-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zb-line);
}
.zb-notif-title { margin: 0; font-size: 0.9rem; font-weight: 700; }
.zb-notif-sub { margin: 0.15rem 0 0; font-size: 0.7rem; color: var(--zb-mute); }
.zb-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(22rem, 60vh);
  overflow-y: auto;
}
.zb-notif-list a {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  transition: background 0.15s ease;
  color: inherit;
  text-decoration: none;
  align-items: flex-start;
}
.zb-notif-list a:hover { background: var(--zb-canvas); }
.zb-notif-item.is-unread a {
  background: color-mix(in srgb, #FCEEEF 70%, #fff);
}
.zb-notif-ico,
.zb-notif-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--zb-rose-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.zb-notif-avatar img,
.zb-notif-avatar svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.zb-notif-body { min-width: 0; flex: 1; }
.zb-notif-list strong { display: block; font-size: 0.85rem; line-height: 1.45; font-weight: 700; }
.zb-notif-list small { display: block; margin-top: 0.2rem; color: var(--zb-mute); font-size: 0.7rem; }
.zb-notif-empty {
  padding: 1.1rem 1rem 1.25rem;
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.zb-notif-empty p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--zb-mute);
}
.zb-notif-dot {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #D47A8F;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px #FAF7F2;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.zb-notif-dot.is-fading {
  opacity: 0;
  transform: scale(0.7);
}
.zb-account-dna-cta {
  color: #D47A8F;
  font-weight: 700;
  text-decoration: none;
}
.zb-account-dna-cta:hover { text-decoration: underline; }
.zb-chip.is-active-cat {
  background: #D47A8F !important;
  color: #fff !important;
  border-color: #D47A8F !important;
  font-weight: 800;
}
.zb-archive-mag .zb-chip-row {
  display: flex;
  margin-bottom: 0.35rem;
}
.zb-archive-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.4rem;
  margin: 0.35rem 0 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid var(--zb-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, #FCEEEF 55%, #fff) 0%, #FAF7F2 48%, color-mix(in srgb, #EAF3EE 40%, #fff) 100%);
  box-shadow: var(--zb-shadow);
}
.zb-archive-hero-main { min-width: 0; flex: 1 1 16rem; }
.zb-archive-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #D47A8F;
  letter-spacing: 0.02em;
}
.zb-archive-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.zb-archive-ico { font-size: 1.15em; line-height: 1; }
.zb-archive-desc {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--zb-mute);
  max-width: 42rem;
}
.zb-archive-desc p { margin: 0; }
.zb-archive-count {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--zb-line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zb-ink);
}
.zb-archive-bridge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, #D47A8F 35%, var(--zb-line));
  color: #D47A8F;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--zb-shadow);
  white-space: nowrap;
}
.zb-archive-bridge:hover {
  background: #FCEEEF;
}
@media (max-width: 720px) {
  .zb-archive-bridge {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
.zb-product-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--zb-mute);
}
.zb-badge {
  position: absolute;
  inset-block-start: -0.15rem;
  inset-inline-start: -0.15rem;
  min-width: 1rem;
  height: 1rem;
  padding-inline: 0.25rem;
  border-radius: 9999px;
  background: var(--zb-rose);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--zb-card);
}

.zb-header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--zb-line);
  padding: 0.75rem 1rem;
  background: #FAF7F2;
}
.zb-header-mobile .zb-logo img { height: 2.25rem; }

.zb-chip-row {
  display: none;
  position: relative;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.75rem 0.5rem;
}
@media (min-width: 768px) {
  .zb-chip-row { display: flex; }
}
.zb-chip,
.zb-dna-pill,
.zb-reply-pill,
.zb-twin-featured-badge,
.zb-first-reply-pill,
.zb-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap !important;
  max-width: 100%;
}
.zb-chip {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  box-shadow: var(--zb-shadow);
  line-height: 1.2;
}
.zb-chip.is-hot {
  border: 0;
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
  font-weight: 700;
}
.zb-engage-card .zb-chip.is-lav {
  background: var(--zb-lav);
  color: var(--zb-lav-ink);
  font-weight: 700;
}
.zb-engage-card .zb-chip.is-hot {
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
}
.zb-engage-card .zb-chip.is-gold {
  background: var(--zb-sage);
  color: var(--zb-sage-ink);
  font-weight: 700;
}
.zb-btn-soft-rose {
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
  border: 1px solid var(--zb-rose);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.zb-btn-soft-rose:hover {
  background: var(--zb-rose);
  color: #fff;
  transform: translateY(-1px);
}
.zb-engage-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--zb-mute);
  line-height: 1.55;
  font-weight: 500;
}
.zb-footer-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--zb-mute);
}
.zb-footer-secondary a:hover { color: var(--zb-rose); }

/* Instagram-style category stories (mobile home) */
.zb-story-row {
  display: block;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .zb-story-row { display: none; }
}
.zb-story-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.zb-story {
  width: 4.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  scroll-snap-align: start;
}
.zb-story-ring {
  display: block;
  padding: 2px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #e07a5f, #d47a8f 45%, #e2d4f0);
}
.zb-story-disc {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  font-size: 1.15rem;
  background: var(--zb-rose-soft);
  box-shadow: inset 0 0 0 2px var(--zb-canvas);
}
.zb-story-disc.tone-rose { background: var(--zb-rose-soft); }
.zb-story-disc.tone-peach { background: var(--zb-peach-soft); }
.zb-story-disc.tone-sage { background: var(--zb-sage); }
.zb-story-disc.tone-lav { background: var(--zb-lav); }
.zb-story-disc.is-forum {
  background: var(--zb-lav-ink);
  color: #fff;
}
.zb-story-label {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Buttons */
.zb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.zb-btn:hover { box-shadow: var(--zb-lift); }
.zb-btn:active { transform: translateY(1px); }
.zb-btn-rose { background: var(--zb-rose); color: #fff; }
.zb-btn-ghost {
  background: var(--zb-canvas);
  border: 1px solid var(--zb-line);
  color: var(--zb-ink);
}

/* Hero + forum bento */
.zb-bento {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.zb-hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--zb-radius);
  box-shadow: var(--zb-shadow);
}
.zb-hero-track {
  display: flex;
  direction: ltr;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.zb-hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  direction: rtl;
}
.zb-hero-media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(to top, #2d3142, rgba(212, 122, 143, 0.7), #fdf0ed);
}
.zb-hero-slide:nth-child(2) .zb-hero-media {
  background: linear-gradient(to top, #2d3142, rgba(94, 75, 117, 0.75), #e2d4f0);
}
.zb-hero-slide:nth-child(3) .zb-hero-media {
  background: linear-gradient(to top, #2d3142, rgba(59, 82, 73, 0.7), #d8e2dc);
}
.zb-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zb-hero-copy {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(45, 49, 66, 0.9), transparent);
  color: #fff;
}
.zb-hero-copy h2 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.35;
}
.zb-pill {
  display: inline-flex;
  border-radius: 9999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}
.zb-hero-nav {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding-inline: 0.75rem;
}
.zb-hero-nav button {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(45, 49, 66, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.zb-hero-dots {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}
.zb-hero-dots button {
  width: 0.4rem;
  height: 0.4rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.zb-hero-dots button[aria-current="true"] {
  width: 1.35rem;
  background: #fff;
}

.zb-live-forum {
  border-radius: var(--zb-radius);
  background: var(--zb-lav);
  padding: 1.25rem;
  box-shadow: var(--zb-shadow);
}
.zb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.zb-section-head h2 { margin: 0; font-size: 1.1rem; color: var(--zb-lav-ink); }
.zb-section-head a { font-size: 0.75rem; font-weight: 500; color: var(--zb-lav-ink); flex-shrink: 0; }
.zb-live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.zb-live-item {
  border-radius: 1rem;
  background: var(--zb-card);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.zb-live-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.zb-live-item p { margin: 0; }
.zb-live-item .title { font-size: 0.875rem; font-weight: 600; }
.zb-live-item .meta { font-size: 0.75rem; color: var(--zb-mute); }
.zb-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.45rem;
}
.zb-live-foot .meta {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
/* Apple / Figma-style overlapping avatar stack — real users only */
.zb-avatar-stack {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  flex-shrink: 0;
  overflow: visible;
}
.zb-avatar-stack-item {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9999px !important;
  border: 2.5px solid #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(45, 49, 66, 0.08);
  margin-inline-start: -9px;
  overflow: visible;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease, z-index 0.2s;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}
.zb-avatar-stack-item .zb-avatar-circle {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: #FAF7F2;
}
.zb-avatar-stack-item:last-child {
  margin-inline-start: 0;
}
.zb-avatar-stack-item:hover {
  transform: translateY(-2px) scale(1.08);
  z-index: 20 !important;
}
.zb-avatar-stack-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #2D3142;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.18s ease;
  z-index: 30;
}
.zb-avatar-stack-item[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.zb-avatar-stack-item svg,
.zb-avatar-stack-item img,
.zb-avatar-stack-item .zb-avatar-wrap,
.zb-avatar-stack-item .zb-stack-svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.zb-first-reply-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: #F4F8F3;
  color: #3d5a45;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}
.zb-topic-aside-faces {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  overflow: visible;
}
.zb-challenge-goal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--zb-ink);
}
.zb-challenge-goal-row [data-challenge-pct] {
  color: var(--zb-rose);
  white-space: nowrap;
}
.zb-avatar-stack-more {
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 7px !important;
  border-radius: 9999px !important;
  border: 2.5px solid #FFFFFF !important;
  background: #FCEEEF !important;
  color: #D47A8F !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-inline-start: -8px;
  position: relative;
  z-index: 15 !important;
  box-shadow: 0 2px 6px rgba(212, 122, 143, 0.15);
  flex-shrink: 0;
  line-height: 1;
  box-sizing: border-box;
}
.zb-live-foot .zb-avatar-stack {
  width: auto !important;
  max-width: max-content !important;
  display: inline-flex !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  margin-inline-start: auto;
}
.zb-live-foot .zb-avatar-stack-item {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  margin-inline-start: -8px !important;
  border: 2px solid #FFFFFF !important;
}
.zb-live-foot .zb-avatar-stack-item:last-child {
  margin-inline-start: 0 !important;
}
.zb-live-foot .zb-avatar-stack-more {
  height: 26px !important;
  min-width: 26px !important;
  font-size: 9.5px !important;
  margin-inline-start: -8px !important;
}

/* Cards grid */
.zb-latest { margin-top: 2rem; }
.zb-latest .zb-section-head h2 { color: var(--zb-ink); font-size: 1.25rem; }
.zb-latest .zb-section-head a { color: var(--zb-rose); }
.zb-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.zb-card {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: var(--zb-radius);
  padding: 0.75rem;
  box-shadow: var(--zb-shadow);
  transition: box-shadow 0.2s ease;
}
.zb-card:hover { box-shadow: var(--zb-lift); }
.zb-card-media {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  background: var(--zb-rose-soft);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.zb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.zb-card h3 { margin: 0.5rem 0 0; font-size: 1rem; line-height: 1.4; }
.zb-card .meta { margin-top: 0.5rem; font-size: 0.75rem; color: var(--zb-mute); }
.zb-tag {
  display: inline-flex;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
}

/* Single post */
.zb-single { padding-block: 1rem 4rem; }
.zb-single-nav { margin-bottom: 1rem; }
.zb-back-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 9999px;
  padding: 0.3rem 1rem 0.3rem 0.3rem;
  box-shadow: var(--zb-shadow);
  font-size: 0.875rem;
  color: var(--zb-mute);
  max-width: 100%;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.zb-back-chip:hover {
  color: var(--zb-rose);
  box-shadow: var(--zb-lift);
}
.zb-back-chip-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
}
.zb-back-chip-label {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zb-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.zb-author-row img { border-radius: 9999px; }
.zb-author-row p { margin: 0; font-size: 0.875rem; color: var(--zb-mute); }
.zb-comments {
  margin-top: 2rem;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.75rem;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--zb-shadow);
}
.zb-comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.zb-comments-title { margin: 0; font-size: 1.15rem; }
.zb-comments-sub { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--zb-mute); }
.zb-comments-forum { font-size: 0.75rem; font-weight: 600; color: var(--zb-rose); }
.zb-comment-compose {
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  background: var(--zb-canvas);
  padding: 1rem;
}
.zb-comment-form textarea {
  width: 100%;
  min-height: 5.5rem;
  border: 1px solid var(--zb-line);
  border-radius: 1rem;
  background: var(--zb-card);
  padding: 0.85rem 1rem;
  resize: vertical;
}
.zb-comment-hint { margin: 0.5rem 0 0; font-size: 0.7rem; color: var(--zb-mute); }
.zb-comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.zb-comment-list .children { list-style: none; margin: 0.75rem 0 0; padding: 0; padding-inline-start: 1rem; display: grid; gap: 0.75rem; }
.zb-comment-card {
  border-radius: 1.25rem;
  background: var(--zb-canvas);
  padding: 1rem 1.1rem;
}
.zb-comment-layout { display: flex; gap: 0.75rem; align-items: flex-start; }
.zb-comment-avatar img { border-radius: 9999px; display: block; }
.zb-comment-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.zb-comment-author { font-size: 0.875rem; font-weight: 700; }
.zb-comment-time { font-size: 0.7rem; color: var(--zb-mute); }
.zb-comment-content { margin-top: 0.45rem; font-size: 0.875rem; line-height: 1.75; }
.zb-comment-actions { margin-top: 0.55rem; font-size: 0.7rem; }
.zb-comment-actions a { color: var(--zb-mute); font-weight: 600; }
.zb-comment-actions a:hover { color: var(--zb-rose); }
.zb-comments-empty, .zb-comments-closed { color: var(--zb-mute); font-size: 0.875rem; }
.zb-feed-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-bottom: 0.5rem;
}
.zb-feed-more .zb-infinite-btn {
  min-width: min(100%, 16rem);
  font-weight: 700;
}
.zb-feed-status { margin: 0; font-size: 0.8rem; color: var(--zb-mute); text-align: center; }
.zb-feed-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--zb-mute);
}
.zb-feed-sentinel { height: 1px; width: 100%; }
/* Pastel pager — fallback only (infinite is primary) */
.zb-pager {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
.zb-pager.is-fallback[hidden] { display: none !important; }
.zb-pager.is-fallback.is-visible { display: flex; }
.zb-pager-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 9999px;
  box-shadow: var(--zb-shadow);
}
.zb-pager-item {
  margin: 0;
  display: flex;
}
.zb-pager-item a,
.zb-pager-item > span,
.zb-pager-item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.7rem;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zb-mute);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.zb-pager-item a:hover {
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
  transform: translateY(-1px);
}
.zb-pager-item.is-current a,
.zb-pager-item.is-current > span,
.zb-pager-item .page-numbers.current {
  background: var(--zb-rose);
  color: #fff;
  box-shadow: var(--zb-lift);
}
.zb-pager-item.is-dots > span,
.zb-pager-item .page-numbers.dots {
  min-width: 1.5rem;
  color: var(--zb-mute);
  opacity: 0.7;
}
.zb-page { max-width: 48rem; }
.zb-single-layout {
  display: grid;
  gap: 1.5rem;
}
.zb-article { display: grid; gap: 0.85rem; }
.zb-article > .zb-tag { justify-self: start; }
.zb-article h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  font-weight: 700;
}
.zb-article .zb-meta { margin: 0; color: var(--zb-mute); font-size: 0.875rem; }
.zb-featured {
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--zb-peach-soft);
  margin: 0.35rem 0;
  box-shadow: var(--zb-shadow);
}
.zb-featured img { width: 100%; height: 100%; object-fit: cover; }
.zb-content { font-size: 0.95rem; line-height: 2; }
@media (min-width: 768px) { .zb-content { font-size: 1rem; } }
.zb-content p { margin-block: 1rem; }
.zb-content h2 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.zb-article-inline-media {
  margin: 28px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #FAF7F2;
  border: 1px solid #EFE8DF;
  box-shadow: none;
}
.zb-article-inline-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
}
.zb-article-inline-media figcaption {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--zb-mute, #7a6f68);
}
.zb-content blockquote {
  margin: 1.25rem 0;
  border: 1px solid var(--zb-line);
  border-radius: 1.5rem;
  background: rgba(252, 238, 239, 0.7);
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
}
.zb-comment-form .form-submit { margin: 0.75rem 0 0; text-align: start; }
.zb-comment-form .comment-form-author,
.zb-comment-form .comment-form-email,
.zb-comment-form .comment-form-url {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.zb-comment-form input[type="text"],
.zb-comment-form input[type="email"],
.zb-comment-form input[type="url"] {
  border: 1px solid var(--zb-line);
  border-radius: 0.85rem;
  background: var(--zb-card);
  padding: 0.55rem 0.75rem;
  font: inherit;
}
.zb-related { margin-top: 2rem; }
.zb-related h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.zb-related .sub { margin: 0 0 1rem; font-size: 0.75rem; color: var(--zb-mute); }
.zb-related-grid {
  display: grid;
  gap: 0.75rem;
}
.zb-related-card {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: var(--zb-shadow);
}
.zb-related-card .thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background: var(--zb-rose-soft);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.zb-related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.zb-related-card h3 { margin: 0; font-size: 0.875rem; line-height: 1.5; }

.zb-single-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}
@media (min-width: 768px) {
  .zb-single-aside {
    position: sticky;
    top: var(--zb-sticky-top, 5.75rem);
  }
}
.zb-aside-card {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: var(--zb-radius);
  padding: 1rem;
  box-shadow: var(--zb-shadow);
  margin: 0;
}
.zb-aside-card.lav { background: var(--zb-lav); border: 0; }
.zb-aside-card h2 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.zb-aside-card ol,
.zb-aside-card ul { margin: 0; padding-inline-start: 1.1rem; color: var(--zb-mute); font-size: 0.875rem; }

/* Footer — دسکتاپ کامل؛ موبایل فقط کپی کوتاه + bottom nav */
.zb-footer {
  border-top: 1px solid #eae2d8;
  background: var(--zb-foot);
  margin-top: 2rem;
}
.zb-footer-grid {
  display: none;
  gap: 2rem;
  padding: 2.5rem 0;
}
.zb-footer h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.zb-footer ul { list-style: none; margin: 0; padding: 0; color: var(--zb-mute); font-size: 0.875rem; }
.zb-footer li + li { margin-top: 0.5rem; }
.zb-footer-copy {
  border-top: 0;
  padding: 0.85rem 1rem 5.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--zb-mute);
}
@media (min-width: 768px) {
  .zb-footer-grid { display: grid; }
  .zb-footer-copy {
    border-top: 1px solid #eae2d8;
    padding: 1rem;
    font-size: 0.75rem;
  }
}

/* iOS dock (mobile) */
.zb-dock {
  position: fixed;
  inset-inline: 0.65rem;
  inset-block-end: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: end;
  gap: 0.15rem;
  padding: 0.45rem 0.4rem 0.4rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--zb-line) 70%, transparent);
  box-shadow: 0 12px 40px rgba(45, 49, 66, 0.14);
}
.zb-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--zb-mute);
  padding: 0.35rem 0.15rem;
  border-radius: 16px;
}
.zb-dock a.is-active {
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
}
.zb-dock a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zb-dock-orb {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zb-rose), #f08a6b);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--zb-lift);
}
.zb-dock-orb svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
}

/* Bottom sheets */
.zb-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(45, 49, 66, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.zb-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.zb-sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 75;
  max-height: 88vh;
  overflow: auto;
  padding: 0.55rem 1.1rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 -18px 50px rgba(45, 49, 66, 0.16);
  transform: translateY(110%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.zb-sheet.is-open { transform: translateY(0); }
.zb-sheet[hidden],
.zb-sheet-backdrop[hidden] { display: none !important; }
.zb-sheet.is-open[hidden],
.zb-sheet-backdrop.is-open[hidden] { display: block !important; }
.zb-sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: #c9c0b5;
  margin: 0.2rem auto 0.95rem;
}
.zb-sheet-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}
.zb-sheet-sub {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--zb-mute);
  text-align: center;
  line-height: 1.55;
}
.zb-sheet-actions {
  display: grid;
  gap: 0.55rem;
}
.zb-sheet-dismiss { width: 100%; margin-top: 0.85rem; }
.zb-sheet-chips { justify-content: center; margin-bottom: 0.5rem; }

.zb-footer-blurb {
  color: var(--zb-mute);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-top: 0.75rem;
}
.zb-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.zb-footer-news {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.zb-footer-news input {
  width: 100%;
  border: 1px solid var(--zb-line);
  border-radius: 9999px;
  padding: 0.65rem 0.9rem;
  background: var(--zb-card);
  font: inherit;
}
.zb-footer-trust {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: var(--zb-mute);
}
.zb-footer a { color: inherit; text-decoration: none; }
.zb-footer a:hover { color: var(--zb-rose); }

/* Home engage widgets */
.zb-engage { margin: 1.5rem 0; }
.zb-engage-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .zb-engage-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.zb-engage-card {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.35rem;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--zb-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}
.zb-engage-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}
.zb-engage-card p { margin: 0; font-size: 0.82rem; color: var(--zb-mute); line-height: 1.6; }
.zb-engage-meta { font-size: 0.75rem; color: var(--zb-mute); }
.zb-engage-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.zb-engage-card > .zb-btn,
.zb-engage-card > .zb-engage-actions,
.zb-engage-card > .zb-poll-opts {
  margin-top: auto;
}
.zb-progress {
  height: 0.45rem;
  border-radius: 99px;
  background: var(--zb-line);
  overflow: hidden;
}
.zb-progress > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--zb-rose), #f08a6b);
}
.zb-poll-opts { display: grid; gap: 0.5rem; }
.zb-poll-opts .zb-react { justify-content: center; width: 100%; }
.zb-challenge-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.zb-challenge-joined {
  width: 100%;
  justify-content: center;
  text-align: center;
  line-height: 1.45;
  background: linear-gradient(135deg, #D8E2DC, #FCEEEF) !important;
  color: #3d5a45 !important;
  border: 1px solid color-mix(in srgb, var(--zb-rose) 28%, #D8E2DC) !important;
  font-weight: 700;
}
.zb-poll-opt {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  border: 1.5px solid #E8DFD5 !important;
  border-radius: 16px !important;
  background: #FFFFFF;
  padding: 10px 14px !important;
  text-align: start;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.35s ease;
}
.zb-poll-opt:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--zb-rose) 45%, #E8DFD5) !important;
}
.zb-poll-opt.is-mine,
.zb-poll-opt.is-selected {
  border-color: #D47A8F !important;
  background: linear-gradient(to left, rgba(252, 238, 239, 0.85) var(--poll-pct, var(--pct, 100%)), #FFFFFF var(--poll-pct, var(--pct, 100%))) !important;
  box-shadow: 0 2px 10px rgba(212, 122, 143, 0.12) !important;
}
.zb-poll-opt.is-revealed:not(.is-mine):not(.is-selected) {
  background: linear-gradient(to left, rgba(252, 238, 239, 0.45) var(--poll-pct, var(--pct, 0%)), #FFFFFF var(--poll-pct, var(--pct, 0%))) !important;
}
.zb-poll-opt-fill {
  position: absolute;
  inset: 0;
  inline-size: 0;
  background: transparent;
  transition: inline-size 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.zb-poll-opt-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.zb-poll-opt-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--zb-ink);
  min-width: 0;
  line-height: 1.35;
}
.zb-poll-opt-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.zb-poll-opt-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #8E929F;
  white-space: nowrap !important;
  line-height: 1;
}
.zb-poll-opt-pct.is-mine-pct,
.zb-poll-opt.is-mine .zb-poll-opt-pct,
.zb-poll-opt.is-selected .zb-poll-opt-pct {
  background: #D47A8F;
  color: #FFF;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.zb-poll-yours { display: none !important; }
.zb-poll-opt-pct.is-hidden,
.zb-poll-foot.is-hidden,
.zb-form-msg.is-hidden,
[hidden].zb-poll-opt-pct,
[hidden].zb-poll-foot {
  display: none !important;
}
.zb-poll-foot {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.zb-poll-discuss {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zb-rose);
  text-decoration: none;
}
.zb-poll-discuss:hover { text-decoration: underline; }
.zb-btn-sage {
  background: var(--zb-sage);
  color: var(--zb-sage-ink);
  border: 0;
}
.zb-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; }

.zb-ad-slot { margin-block: 1rem; }

@media (min-width: 768px) {
  .zb-header-desktop { display: block; }
  .zb-header-mobile,
  .zb-dock { display: none; }
  /* شیت‌های موبایل مخفی — DNA اجباری روی دسکتاپ هم باید دیده شود وگرنه اسکرول قفل می‌ماند */
  .zb-sheet:not(#zb-dna-sheet),
  .zb-sheet-backdrop:not(#zb-dna-backdrop) { display: none !important; }
  #zb-dna-backdrop {
    display: block !important;
  }
  #zb-dna-sheet {
    display: block !important;
    inset-inline: auto;
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(92vw, 26rem);
    max-height: min(88vh, 40rem);
    border-radius: 1.5rem;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 24px 64px rgba(45, 49, 66, 0.22);
  }
  #zb-dna-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .zb-bento { grid-template-columns: repeat(12, 1fr); }
  .zb-hero-carousel { grid-column: span 7; }
  .zb-live-forum { grid-column: span 5; }
  .zb-hero-media { aspect-ratio: 16 / 10; }
  .zb-hero-copy { padding: 1.75rem; }
  .zb-hero-copy h2 { font-size: 1.75rem; }
  .zb-grid { grid-template-columns: repeat(3, 1fr); }
  .zb-single-layout { grid-template-columns: 2fr 1fr; }
  .zb-related-grid { grid-template-columns: repeat(3, 1fr); }
  .zb-footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .zb-main { padding-bottom: 3rem; }
}

/* App-like mobile: room only for the dock (footer hidden below) */
body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
html.zb-sheet-open,
html.zb-sheet-open body { overflow: hidden; }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

/* —— پروفایل زیبایی —— */
.zb-forum-page { padding-block: 1rem 3rem; }
.zb-forum-shell { width: 100%; }

.zb-beauty {
  padding: 1rem 0 0.5rem;
}
@media (min-width: 768px) {
  .zb-beauty { padding: 1.25rem 0 3rem; }
}
.zb-profile-hero {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: var(--zb-radius);
  overflow: visible;
  box-shadow: var(--zb-shadow);
}
.zb-profile-cover {
  position: relative;
  height: 7.25rem;
  border-radius: var(--zb-radius) var(--zb-radius) 0 0;
  background: linear-gradient(135deg, #E8B4BC 0%, #D47A8F 42%, #C9B8E0 100%);
  overflow: visible;
}
@media (min-width: 768px) {
  .zb-profile-cover { height: 8.5rem; }
}
.zb-cover-match {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #5E4B75;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(45, 49, 66, 0.12);
}
/* Avatar sits on the cover bottom edge — never under site header */
.zb-avatar-ring--hero {
  position: absolute;
  right: 1.1rem;
  bottom: -2.15rem;
  z-index: 3;
}
@media (min-width: 768px) {
  .zb-avatar-ring--hero {
    right: 1.5rem;
    bottom: -2.6rem;
  }
}
.zb-profile-body {
  padding: 2.6rem 1.1rem 1.25rem;
}
@media (min-width: 768px) {
  .zb-profile-body { padding: 3.1rem 1.5rem 1.5rem; }
}
.zb-profile-meta {
  min-width: 0;
  padding-inline-end: 6.5rem; /* keep text clear of avatar */
}
@media (min-width: 768px) {
  .zb-profile-meta { padding-inline-end: 8rem; }
}
.zb-profile-identity { min-width: 0; }
.zb-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.zb-name-row[hidden] { display: none !important; }
.zb-name-edit {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--zb-mute);
  cursor: pointer;
  flex-shrink: 0;
}
.zb-name-edit:hover {
  color: var(--zb-rose);
  background: var(--zb-rose-soft);
}
/* Instagram-like follow chip beside the name */
.zb-follow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 1rem;
  border-radius: 0.65rem;
  border: 0;
  background: var(--zb-rose);
  color: #fff !important;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.zb-follow-chip:hover { background: #c96a7f; transform: translateY(-1px); }
.zb-follow-chip:active { transform: translateY(1px); }
.zb-follow-chip.is-on {
  background: #F0EAE4;
  color: var(--zb-ink) !important;
}
.zb-follow-chip.is-on:hover { background: #e7e0d8; }
.zb-name-edit-form {
  display: none;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  max-width: 22rem;
}
.zb-name-edit-form.is-open,
.zb-name-edit-form:not([hidden]) {
  display: grid;
}
.zb-name-edit-form[hidden] {
  display: none !important;
}
.zb-name-edit-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.zb-name-edit-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--zb-line);
  border-radius: 0.75rem;
  background: var(--zb-canvas);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}
.zb-name-save,
.zb-name-cancel {
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.75rem;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.zb-name-save {
  background: var(--zb-rose);
  color: #fff;
}
.zb-name-save:hover { background: #c96a7f; }
.zb-name-cancel {
  background: transparent;
  color: var(--zb-mute);
}
.zb-name-cancel:hover { color: var(--zb-ink); }
.zb-name-hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--zb-mute);
  line-height: 1.4;
}
.zb-priv-tag {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--zb-lav) 40%, #fff);
  color: var(--zb-lav-ink);
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}
.zb-product.is-private {
  border-color: color-mix(in srgb, var(--zb-lav) 55%, var(--zb-line));
  background: color-mix(in srgb, var(--zb-lav) 12%, #fff);
}
.zb-profile-meta h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .zb-profile-meta h1 { font-size: 1.55rem; }
}
.zb-profile-meta .zb-member-since {
  margin: 0.35rem 0 0;
  color: var(--zb-mute);
  font-size: 0.78rem;
  font-weight: 600;
}
.zb-profile-meta .zb-bio { margin-top: 0.45rem; }
.zb-profile-dna {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.zb-dna-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}
.zb-dna-pill.is-sage { background: var(--zb-sage); color: var(--zb-sage-ink); }
.zb-dna-pill.is-lav { background: var(--zb-lav); color: var(--zb-lav-ink); }
.zb-dna-pill.is-rose { background: var(--zb-rose-soft); color: var(--zb-rose); }
/* Instagram-like stats: quiet, no heavy box */
.zb-profile-stats {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
  border: 0;
  background: transparent;
}
.zb-profile-stats li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0;
}
.zb-profile-stats strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--zb-ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.zb-profile-stats span {
  font-size: 0.72rem;
  color: var(--zb-mute);
  font-weight: 600;
  line-height: 1.35;
}
.zb-profile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.95rem;
}
.zb-profile-cta .zb-btn {
  flex: 0 0 auto;
  justify-content: center;
}
.zb-profile-quiet-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--zb-lav-ink);
  text-decoration: none;
}
.zb-profile-quiet-link:hover { color: var(--zb-rose); }
.zb-icon-edit-dna {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--zb-line);
  background: #fff;
  color: var(--zb-mute);
  cursor: pointer;
  margin-top: 0.75rem;
}
.zb-icon-edit-dna:hover { color: var(--zb-rose); border-color: var(--zb-rose); }
.zb-activity-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.zb-activity-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--zb-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 480px) {
  .zb-activity-list a {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "kind when"
      "title title";
  }
  .zb-activity-kind { grid-area: kind; justify-self: start; }
  .zb-activity-when { grid-area: when; justify-self: end; }
  .zb-activity-title { grid-area: title; }
}
.zb-activity-list a:hover { border-color: var(--zb-rose); }
.zb-activity-kind {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--zb-rose);
  background: var(--zb-rose-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
}
.zb-activity-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}
.zb-activity-when {
  font-size: 0.68rem;
  color: var(--zb-mute);
  white-space: nowrap;
}
.zb-avatar-ring {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 3px;
  background: conic-gradient(#D47A8F 0 72%, #F0EAE4 0);
  box-shadow: 0 10px 28px rgba(45, 49, 66, 0.14);
  background-clip: padding-box;
}
.zb-avatar-ring img {
  display: block;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 9999px;
  border: 3px solid #fff;
  object-fit: cover;
  background: #fff;
}
@media (min-width: 768px) {
  .zb-avatar-ring img {
    width: 7rem;
    height: 7rem;
    border-width: 4px;
  }
}
.zb-bio { margin: 0.5rem 0 0; color: var(--zb-mute); font-size: 0.875rem; max-width: 28rem; line-height: 1.7; }

.zb-card-block {
  margin-top: 1.25rem;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: var(--zb-radius);
  padding: 1.25rem;
  box-shadow: var(--zb-shadow);
}
.zb-passport {
  background:
    linear-gradient(135deg, rgba(212,122,143,0.08), transparent 40%),
    linear-gradient(225deg, rgba(226,212,240,0.35), transparent 45%),
    #fff;
}
.zb-block-head { margin-bottom: 1rem; }
.zb-kicker { margin: 0; font-size: 0.7rem; color: var(--zb-mute); font-weight: 600; }
.zb-card-block h2 { margin: 0.2rem 0 0; font-size: 1.15rem; }
.zb-sub { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--zb-mute); line-height: 1.6; }
.zb-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zb-chip.is-sage { background: var(--zb-sage); color: var(--zb-sage-ink); border: 0; }
.zb-chip.is-lav { background: var(--zb-lav); color: var(--zb-lav-ink); border: 0; }
.zb-chip.is-rose { background: var(--zb-rose-soft); color: var(--zb-rose); border: 0; font-weight: 600; }
.zb-chip.is-gold {
  border: 0;
  background: color-mix(in srgb, var(--zb-peach-soft) 70%, #fff);
  color: #9a6b2f;
  font-weight: 600;
}
.zb-chip.is-archive {
  border: 0;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}
.zb-chip.zb-chip-xs {
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
}
.zb-dna-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0 0.15rem;
}
.zb-twin-bar {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 1rem;
  background: rgba(250,247,242,.85);
  padding: 0.85rem 1rem;
}
@media (min-width: 640px) {
  .zb-twin-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.zb-twin-bar p { margin: 0; font-size: 0.8rem; color: var(--zb-mute); }

.zb-shelf-empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 16rem;
  border: 1.5px dashed var(--zb-line);
  border-radius: 1.25rem;
  background: rgba(250, 247, 242, 0.9);
  padding: 1.75rem 1rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.zb-shelf-empty:hover {
  border-color: var(--zb-rose);
  background: var(--zb-rose-soft);
}
.zb-shelf-empty-plus {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--zb-rose);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.zb-shelf-empty-title { font-size: 0.9rem; font-weight: 700; }
.zb-shelf-empty-hint { font-size: 0.75rem; color: var(--zb-mute); }

.zb-shelf {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  direction: rtl;
}
.zb-product {
  width: 10rem;
  flex-shrink: 0;
  border: 1px solid var(--zb-line);
  background: var(--zb-canvas);
  border-radius: 1rem;
  padding: 0.75rem;
}
.zb-product-swatch {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--zb-rose-soft), #fff, var(--zb-peach-soft));
  margin-bottom: 0.5rem;
}
.zb-product-swatch.tone-rose { background: linear-gradient(135deg, #f7c9d2, #fff, var(--zb-rose-soft)); }
.zb-product-swatch.tone-peach { background: linear-gradient(135deg, var(--zb-peach-soft), #fff, #fce8e0); }
.zb-product-swatch.tone-sage { background: linear-gradient(135deg, var(--zb-sage), #fff, #e8f0ea); }
.zb-product-swatch.tone-lav { background: linear-gradient(135deg, var(--zb-lav), #fff, #efe8f7); }
.zb-product-swatch.tone-a,
.zb-product-swatch.tone-b { background: linear-gradient(135deg, var(--zb-rose-soft), #fff, var(--zb-lav)); }
.zb-product-swatch.tone-c,
.zb-product-swatch.tone-d { background: linear-gradient(135deg, var(--zb-peach-soft), #fff, var(--zb-sage)); }
.zb-product-swatch.tone-e,
.zb-product-swatch.tone-f { background: linear-gradient(135deg, var(--zb-lav), #fff, var(--zb-peach-soft)); }
.zb-product-name { margin: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.4; }
.zb-product-role { margin: 0.25rem 0 0.5rem; font-size: 0.65rem; color: var(--zb-mute); }
.zb-product-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.zb-icon-action {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--zb-line);
  border-radius: 9999px;
  background: #fff;
  color: var(--zb-mute);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.zb-icon-action:hover {
  color: var(--zb-rose);
  border-color: rgba(212, 122, 143, 0.45);
  background: var(--zb-rose-soft);
  transform: translateY(-1px);
}
.zb-icon-action.is-danger:hover {
  color: var(--zb-coral);
  border-color: rgba(224, 122, 95, 0.45);
  background: var(--zb-peach-soft);
}
.zb-confirm-card { text-align: center; }
.zb-confirm-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: var(--zb-peach-soft);
  color: var(--zb-coral);
}
.zb-confirm-text {
  margin: 0.35rem 0 1.1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--zb-mute);
}
.zb-confirm-card .zb-modal-actions { justify-content: center; }

.zb-badge-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.zb-medal { text-align: center; width: 5.5rem; }
.zb-medal span {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; margin-inline: auto;
  border-radius: 9999px;
  background: linear-gradient(145deg, #F7C9D2, #D47A8F);
  font-size: 1.25rem;
  box-shadow: var(--zb-lift);
}
.zb-medal p { margin: 0.5rem 0 0; font-size: 0.7rem; font-weight: 700; }
.zb-medal-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  color: var(--zb-mute);
  font-weight: 500;
  line-height: 1.35;
}
.zb-medal.is-locked { opacity: 0.55; filter: grayscale(0.85); }
.zb-member-since { color: var(--zb-mute) !important; font-weight: 600; }

.zb-tour-overlay {
  position: fixed; inset: 0; z-index: 999998;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem;
  background: rgba(45,49,66,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.22s ease;
}
@media (min-width: 768px) { .zb-tour-overlay { align-items: center; } }
.zb-tour-overlay.is-closing { opacity: 0; pointer-events: none; }
.zb-tour-overlay.is-closing .zb-tour-modal {
  transform: translateY(12px) scale(0.98);
}
.zb-tour-overlay.is-hidden { display: none !important; }
.zb-tour-modal {
  width: min(28rem, 100%);
  border-radius: 1.75rem;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  box-shadow: var(--zb-lift);
  overflow: hidden;
  transition: transform 0.22s ease;
}
.zb-tour-hero h2 { margin: 0.35rem 0 0; font-size: 1.2rem; }
.zb-tour-hero {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(to bottom left, var(--zb-rose-soft), var(--zb-lav), var(--zb-peach-soft));
}
.zb-tour-kicker { margin: 0; font-size: 0.7rem; font-weight: 700; color: var(--zb-rose); }
.zb-tour-hero h1 { margin: 0.35rem 0 0; font-size: 1.2rem; }
.zb-tour-hero p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.7; color: rgba(45,49,66,.8); }
.zb-tour-steps { margin: 0; padding: 1rem 1.35rem; list-style: none; display: grid; gap: 0.5rem; }
.zb-tour-steps li { border-radius: 1rem; background: var(--zb-canvas); padding: 0.75rem 1rem; font-size: 0.875rem; }
.zb-tour-actions { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--zb-line); }
.zb-tour-actions .zb-btn { flex: 1; }

.zb-block-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.zb-inline-form {
  margin-top: 1rem;
  border-radius: 1.25rem;
  background: rgba(250,247,242,.9);
  padding: 1rem;
  border: 1px dashed var(--zb-line);
}
.zb-form-label { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700; }
.zb-form-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 640px) {
  .zb-form-grid { grid-template-columns: 1fr 1fr; }
  .zb-span-2 { grid-column: span 2; }
}
.zb-inline-form label,
.zb-modal-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.zb-inline-form input,
.zb-inline-form select,
.zb-modal-card input,
.zb-modal-card select {
  border: 1px solid var(--zb-line);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.55rem 0.75rem;
  font: inherit;
}
.zb-form-msg { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--zb-coral); }
.zb-modal {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(45, 49, 66, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.zb-modal[hidden] { display: none !important; }
.zb-modal-card {
  width: min(24rem, 100%);
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--zb-line);
  box-shadow: var(--zb-lift);
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}
.zb-modal-card h3 { margin: 0; font-size: 1.05rem; }
.zb-modal-card form { display: grid; gap: 0.85rem; }
.zb-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.zb-vanity-modal-card {
  width: min(34rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: auto;
  padding: 0;
}
.zb-vanity-modal-card .zb-passport-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--zb-line);
}
.zb-vanity-modal-card form {
  padding: 1rem 1.15rem 1.25rem;
}
.zb-field { display: grid; gap: 0.45rem; }
.zb-field-label,
.zb-vanity-modal-card .zb-field > span:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zb-ink);
}
.zb-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.zb-seg-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.zb-seg-pills--privacy {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .zb-seg-pills--privacy { grid-template-columns: 1fr 1fr; }
}
.zb-vanity-mood-pills .zb-verdict.is-on.is-love {
  box-shadow: 0 0 0 2px #3B5249;
}
.zb-vanity-mood-pills .zb-verdict.is-on.is-ok {
  box-shadow: 0 0 0 2px #E07A5F;
}
.zb-vanity-mood-pills .zb-verdict.is-on.is-regret {
  box-shadow: 0 0 0 2px #D47A8F;
}
.zb-modal-card select {
  display: none !important;
}

/* ===== Forum board shell (pastel-forum mockup) ===== */
.zb-forum-shell--pastel { width: 100%; }
.zb-forum-hero {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: linear-gradient(to bottom left, var(--zb-lav), var(--zb-rose-soft), var(--zb-peach-soft));
  padding: 1.5rem;
  box-shadow: var(--zb-shadow);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .zb-forum-hero { padding: 2rem; } }
.zb-forum-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}
.zb-live-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zb-lav-ink);
}
.zb-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--zb-rose);
  box-shadow: 0 0 0 0 rgba(212, 122, 143, 0.5);
  animation: zb-pulse 1.6s infinite;
}
@keyframes zb-pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
}
.zb-forum-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
}
.zb-forum-hero-copy p {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(45, 49, 66, 0.75);
}
.zb-forum-hero-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zb-btn-on-grad {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: var(--zb-lav-ink) !important;
}
.zb-forum-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .zb-forum-stats { grid-template-columns: repeat(4, 1fr); } }
.zb-forum-stat {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1rem;
}
.zb-forum-stat.is-cta {
  display: block;
  border: 1px dashed color-mix(in srgb, var(--zb-rose) 40%, transparent);
  background: var(--zb-rose-soft);
  transition: transform 0.15s ease;
}
.zb-forum-stat.is-cta:hover { transform: translateY(-2px); }
.zb-forum-stat .num { margin: 0; font-size: 1.25rem; font-weight: 700; }
.zb-forum-stat .lbl { margin: 0.15rem 0 0; font-size: 0.7rem; color: var(--zb-mute); }
.zb-forum-stat.is-cta .num { font-size: 1rem; color: var(--zb-rose); }
.zb-forum-stat.is-cta .lbl { color: var(--zb-rose); font-weight: 600; }

.zb-forum-rooms { margin-bottom: 1.5rem; }
.zb-room-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.zb-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
}
.zb-room-card {
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: var(--zb-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.zb-room-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--zb-lift);
}
.zb-room-card.is-twins {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #D47A8F, #E2D4F0) border-box;
}
.zb-room-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  background: var(--zb-canvas);
}
.zb-room-icon.is-sage { background: #D8E2DC; }
.zb-room-icon.is-peach { background: #FDF0ED; }
.zb-room-icon.is-lav { background: #E2D4F0; }
.zb-room-icon.is-rose { background: #FCEEEF; }
.zb-room-icon.is-vanilla { background: #FFF8E7; }
.zb-room-title { margin: 0.75rem 0 0; font-weight: 700; font-size: 0.9rem; line-height: 1.4; }
.zb-room-meta { margin: 0.25rem 0 0; font-size: 0.7rem; color: var(--zb-mute); }

.zb-forum-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .zb-forum-grid { grid-template-columns: 2fr 1fr; align-items: start; }
}
.zb-threads-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.zb-threads-head h2 { margin: 0; font-size: 1.15rem; }
.zb-thread-tabs {
  display: flex;
  gap: 0.25rem;
  border-radius: 9999px;
  background: var(--zb-card);
  padding: 0.25rem;
  box-shadow: var(--zb-shadow);
}
.zb-thread-tabs span,
.zb-thread-tabs a {
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  color: var(--zb-mute);
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}
.zb-thread-tabs a:hover { color: var(--zb-ink); }
.zb-thread-tabs .is-active {
  background: var(--zb-rose);
  color: #fff;
  font-weight: 600;
}
.zb-thread-tabs a.is-active:hover { color: #fff; }
.zb-thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.zb-thread {
  display: block;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.5rem;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--zb-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zb-thread:hover {
  transform: translateY(-2px);
  box-shadow: var(--zb-lift);
}
.zb-thread-main { display: block; color: inherit; text-decoration: none; }
.zb-thread-main h3 { color: var(--zb-ink); }
.zb-thread-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
  font-size: 0.875rem;
  font-weight: 700;
  overflow: hidden;
}
.zb-thread-avatar.is-link { text-decoration: none; }
.zb-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zb-author-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.zb-author-link:hover { color: var(--zb-rose); }
.zb-thread-body { min-width: 0; flex: 1; }
.zb-thread-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.zb-thread-main h3,
.zb-thread-body h3 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}
.zb-forum-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
}
.zb-forum-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--zb-line);
  border-radius: 9999px;
  background: var(--zb-card);
  padding: 0.65rem 1rem;
  outline: none;
}
.zb-forum-search input[type="search"]:focus {
  border-color: color-mix(in srgb, var(--zb-rose) 45%, var(--zb-line));
}
.zb-topic-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.zb-thread-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zb-mute);
}
.zb-thread-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: var(--zb-mute);
}
.zb-thread-meta-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  min-width: 0;
}
.zb-thread-meta-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  margin-inline-start: auto;
}
.zb-thread--twin .zb-thread-meta-end {
  flex-shrink: 1;
  max-width: 100%;
}
.zb-thread-meta .author { font-weight: 600; color: var(--zb-ink); }
.zb-thread-meta .replies,
.zb-reply-pill { font-weight: 700; color: var(--zb-rose); white-space: nowrap; }
.zb-thread-meta .zb-avatar-stack-item {
  width: 26px !important;
  height: 26px !important;
}
.zb-thread--twin .zb-thread-meta {
  width: 100%;
}
.zb-thread-empty {
  border: 1px dashed var(--zb-line);
  border-radius: 1.5rem;
  background: var(--zb-card);
  padding: 1.5rem;
  text-align: center;
}

.zb-forum-aside { display: grid; gap: 1rem; }
.zb-aside-cta {
  border-radius: 1.5rem;
  background: var(--zb-rose-soft);
  padding: 1.25rem;
  box-shadow: var(--zb-shadow);
}
.zb-aside-cta .kicker { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--zb-rose); }
.zb-aside-cta h2 { margin: 0.35rem 0 0; font-size: 1.1rem; }
.zb-aside-cta p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--zb-mute); }
.zb-aside-cta .zb-btn { margin-top: 1rem; }
.zb-aside-card {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: var(--zb-shadow);
}
.zb-aside-card h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.zb-inspire-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.zb-inspire-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.zb-inspire-list .swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--zb-rose-soft), var(--zb-peach-soft));
  flex-shrink: 0;
}
.zb-inspire-list strong { display: block; font-size: 0.875rem; }
.zb-inspire-list small { font-size: 0.7rem; color: var(--zb-mute); }
.zb-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.zb-rules li { font-size: 0.75rem; line-height: 1.6; color: var(--zb-mute); }

/* Single forum room */
.zb-room-nav { margin-bottom: 1rem; }
.zb-room-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.75rem;
  background: linear-gradient(to bottom left, var(--zb-lav), var(--zb-rose-soft), var(--zb-peach-soft));
  box-shadow: var(--zb-shadow);
}
@media (min-width: 768px) {
  .zb-room-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.zb-room-hero h1 { margin: 0.35rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.zb-room-hero-copy p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--zb-mute); }
.zb-room-hero-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zb-room-composer {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  box-shadow: var(--zb-shadow);
}
.zb-room-composer h2 { margin: 0 0 0.85rem; font-size: 1.05rem; }
.zb-room-composer-err {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: #fdf0ed;
  color: #9a3b2f;
  font-size: 0.85rem;
}
.zb-room-form { display: grid; gap: 0.85rem; }
.zb-room-form .zb-field { display: grid; gap: 0.35rem; }
.zb-room-form .zb-field span { font-size: 0.8rem; font-weight: 600; color: var(--zb-mute); }
.zb-room-form input,
.zb-room-form textarea {
  width: 100%;
  border: 1px solid var(--zb-line);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  font: inherit;
  color: var(--zb-ink);
}
.zb-room-form textarea { resize: vertical; min-height: 7rem; }
.zb-room-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zb-room-threads { margin-top: 0.5rem; }

/* Topic thread */
.zb-topic-hero {
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.75rem;
  background: linear-gradient(to bottom left, var(--zb-lav), var(--zb-rose-soft), var(--zb-peach-soft));
  box-shadow: var(--zb-shadow);
}
.zb-topic-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.zb-topic-hero h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.35;
}
.zb-topic-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--zb-mute);
}
.zb-topic-layout {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 72rem);
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .zb-topic-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    align-items: start;
    gap: 1.5rem;
  }
}
.zb-topic-main { min-width: 0; max-width: 740px; width: 100%; }
@media (min-width: 1024px) {
  .zb-topic-main { max-width: none; }
}
.zb-topic-aside {
  display: grid;
  gap: 0.85rem;
}
@media (max-width: 1023px) {
  .zb-topic-aside-summary {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .zb-topic-aside {
    position: sticky;
    top: calc(var(--zb-sticky-top, 5.75rem) + 0.5rem);
  }
  .zb-topic-mobile-summary {
    display: none !important;
  }
}
.zb-topic-mobile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--zb-line);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #FCEEEF, #FAF7F2);
  box-shadow: var(--zb-shadow);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.zb-topic-mobile-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.zb-topic-mobile-summary-cta {
  flex-shrink: 0;
  white-space: nowrap !important;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
}
.zb-topic-aside-card {
  border: 1px solid var(--zb-line);
  background: #fff;
  border-radius: 1.35rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--zb-shadow);
}
.zb-topic-aside-card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.zb-topic-aside-starter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.zb-topic-aside-starter p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--zb-mute);
}
.zb-topic-aside-faces { margin-bottom: 0.85rem; }
.zb-topic-aside-cta {
  width: 100%;
  text-align: center;
}
.zb-topic-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.zb-topic-related a {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: #FAF7F2;
  text-decoration: none;
  color: inherit;
}
.zb-topic-related a:hover { background: #FCEEEF; }
.zb-topic-related span {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}
.zb-topic-related small {
  font-size: 0.68rem;
  color: var(--zb-mute);
}
.zb-topic-stream { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.zb-topic-post {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.5rem;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--zb-shadow);
}
.zb-topic-post.is-first {
  border: 1.5px solid #D47A8F40;
  background: linear-gradient(180deg, #FFFDFB 0%, #FFFFFF 100%);
}
.zb-topic-post-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.zb-topic-post-head .zb-thread-avatar,
.zb-topic-post-head .zb-thread-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  flex-shrink: 0;
  overflow: hidden;
}
.zb-topic-post-head strong { display: block; font-size: 0.9rem; }
.zb-topic-post-head .when { font-size: 0.7rem; color: var(--zb-mute); }
.zb-topic-post-meta { min-width: 0; flex: 1 1 auto; }
.zb-topic-post-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.zb-post-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--zb-mute);
}
.zb-topic-post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--zb-line) 80%, transparent);
}
.zb-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
}
.zb-react {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--zb-line);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--zb-mute);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.zb-react:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.zb-react.is-on {
  background: var(--zb-rose-soft);
  border-color: transparent;
  color: var(--zb-rose);
}
.zb-react-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.zb-quote-btn { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
.zb-quote-preview {
  border: 1px solid var(--zb-line);
  background: color-mix(in srgb, var(--zb-lav) 40%, #fff);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
}
.zb-quote-preview[hidden] { display: none !important; }
.zb-quote-preview-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--zb-mute);
}
.zb-quote-preview-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--zb-ink);
}
.zb-topic-post-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--zb-ink);
  overflow-wrap: anywhere;
}
.zb-topic-post-body p:first-child { margin-top: 0; }
.zb-topic-post-body p:last-child { margin-bottom: 0; }
.zb-topic-post-body .zb-quote {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--zb-line);
  background: color-mix(in srgb, var(--zb-lav) 45%, #fff);
  font-size: 0.9rem;
}
.zb-topic-post-body .zb-quote cite {
  display: block;
  margin-bottom: 0.35rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--zb-rose);
}
.zb-topic-post-body .zb-code {
  display: block;
  overflow-x: auto;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f6f4f1;
  font-size: 0.8rem;
}
.zb-topic-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
.zb-topic-reply {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.5rem;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--zb-shadow);
}
.zb-topic-reply h2 { margin: 0 0 0.85rem; font-size: 1.05rem; }
.zb-reply-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 0.65rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.zb-reply-chip {
  appearance: none;
  border: 1px solid #E2D8C9;
  background: #FAF7F2;
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap !important;
}
.zb-reply-chip.is-fmt {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5E4B75;
}
.zb-reply-chip:hover {
  border-color: #D47A8F;
  background: #FCEEEF;
}
.zb-reply-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.zb-reply-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--zb-mute);
  flex: 1 1 12rem;
}
.zb-reply-submit {
  padding: 12px 32px !important;
  border-radius: 9999px !important;
  flex-shrink: 0;
}
.zb-topic-reply .zb-btn-rose:not(.zb-reply-submit) {
  width: auto;
}

/* Twins hub (Wave C) */
.zb-twins-hero,
.zb-twin-hero {
  border-radius: 1.75rem;
  background: linear-gradient(to bottom left, var(--zb-lav), var(--zb-rose-soft), var(--zb-peach-soft));
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--zb-shadow);
}
.zb-twin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.zb-twins-hero h1,
.zb-twin-hero h1 { margin: 0.35rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.zb-twins-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .zb-twins-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.zb-twins-main { min-width: 0; width: 100%; }
.zb-twins-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}
.zb-twins-grid--full { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .zb-twins-grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .zb-twins-grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.zb-twins-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid #E2D8C9;
  background: linear-gradient(135deg, #FCEEEF, #E2D4F0);
}
.zb-twins-banner p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.55;
}
.zb-twins-empty-full {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 1.5px dashed #E2D8C9;
  border-radius: 1.25rem;
  background: #FAF7F2;
}
.zb-twins-empty-full p { margin: 0 0 0.85rem; }
.zb-twin-posts {
  display: block;
  margin-top: 0;
  font-size: 12px;
  color: var(--zb-mute);
  white-space: nowrap !important;
}
.zb-twins-topics,
.zb-twins-topics .zb-thread-list,
.zb-twins-topics .zb-thread-list > li {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.zb-thread--twin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--zb-line);
  background: #fff;
  border-radius: 1.15rem;
  padding: 16px 18px;
  box-shadow: var(--zb-shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.zb-thread--twin .zb-thread-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.zb-thread--twin .zb-thread-avatar img,
.zb-thread--twin .zb-thread-avatar svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 9999px;
}
.zb-thread--twin .zb-thread-body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  overflow: hidden;
}
.zb-thread--twin .zb-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.zb-thread--twin .zb-thread-title-link {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}
.zb-thread--twin .zb-thread-title-link h3,
.zb-thread--twin h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #2D3142;
  line-height: 1.45;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.zb-thread--twin .zb-thread-excerpt {
  margin: 0;
  font-size: 13.5px;
  color: #5C6070;
  line-height: 1.5;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zb-thread--twin .zb-thread-meta {
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 639px) {
  .zb-thread--twin {
    gap: 10px;
    padding: 14px 14px;
  }
  .zb-thread--twin .zb-thread-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
  }
  .zb-thread--twin .zb-thread-title-link h3,
  .zb-thread--twin h3 {
    font-size: 15px;
  }
  .zb-thread--twin .zb-thread-meta-end {
    max-width: 100%;
    flex-wrap: wrap;
  }
}
.zb-twins-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .zb-twins-grid:not(.zb-twins-grid--full) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .zb-twins-grid:not(.zb-twins-grid--full) { grid-template-columns: repeat(3, 1fr); } }
.zb-twin-card.zb-twin-card-match,
.zb-twin-card-match {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 20px !important;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.25rem;
  box-shadow: var(--zb-shadow);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.zb-twin-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.zb-twin-match-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.zb-twin-match-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.zb-twin-match-meta strong {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.zb-twin-match-pill {
  background: #FCEEEF;
  color: #D47A8F;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}
.zb-twin-match-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.zb-twin-match-actions .zb-btn {
  white-space: nowrap;
}
.zb-twin-match-dna {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #F3EDE6;
}
.zb-twin-card-match .zb-twin-avatar-link img,
.zb-twin-card-match .zb-twin-avatar-link svg {
  width: 54px !important;
  height: 54px !important;
  border-radius: 9999px !important;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .zb-twin-match-top {
    flex-wrap: wrap;
  }
  .zb-twin-match-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.zb-twin-card.zb-twin-card-rich,
.zb-twin-card-rich {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.25rem;
  padding: 20px 24px;
  box-shadow: var(--zb-shadow);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.zb-twin-card-rich.is-featured {
  position: relative;
  padding: 20px 24px;
}
.zb-twin-right {
  display: flex !important;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.zb-twin-avatar-link {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}
.zb-twin-avatar-link img,
.zb-twin-avatar-link svg,
.zb-twin-right > img,
.zb-twin-body > img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 9999px !important;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.zb-twin-card-rich .zb-twin-body {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.zb-twin-card-rich .zb-twin-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  margin-inline-start: auto;
  width: auto !important;
  min-width: 7.5rem;
}
.zb-twin-body {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.zb-twin-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.zb-twin-copy strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.zb-twin-featured-badge,
.zb-twin-match-badge {
  position: static;
  margin: 0.25rem 0 0;
  font-size: 11px !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
}
.zb-twin-match-badge {
  background: #FCEEEF !important;
  color: #D47A8F !important;
  font-weight: 800 !important;
}
.zb-twin-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.zb-twin-actions .zb-btn {
  white-space: nowrap !important;
  justify-content: center;
}
@media (min-width: 641px) {
  .zb-twin-card-rich .zb-twin-actions {
    flex-direction: row !important;
    align-items: center !important;
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .zb-twin-card.zb-twin-card-rich,
  .zb-twin-card-rich {
    flex-wrap: wrap !important;
    padding: 1rem;
  }
  .zb-twin-card-rich .zb-twin-actions {
    width: 100% !important;
    flex-direction: row !important;
    justify-content: flex-start;
    margin-inline-start: 0;
    min-width: 0;
  }
}
.zb-match-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: conic-gradient(var(--zb-rose) calc(var(--pct, 90) * 1%), var(--zb-line) 0);
}
.zb-match-ring span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--zb-rose);
}
.zb-holy-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.zb-holy-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--zb-peach-soft) 55%, #fff);
  border: 1px solid var(--zb-line);
}
.zb-holy-rank {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: var(--zb-rose-soft);
  color: var(--zb-rose);
  font-size: 0.75rem;
  font-weight: 800;
}
.zb-holy-item strong { display: block; font-size: 0.85rem; }
.zb-holy-item small { color: var(--zb-mute); font-size: 0.72rem; }
.zb-twins-topics { margin-top: 1.5rem; }
.zb-twins-aside .zb-aside-card + .zb-aside-card { margin-top: 1rem; }

/* Profile dual mode */
.zb-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--zb-line) 55%, #fff);
  border: 1px solid var(--zb-line);
}
.zb-switch button {
  border: 0;
  background: transparent;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zb-mute);
  cursor: pointer;
}
.zb-switch button.is-on {
  background: #fff;
  color: var(--zb-rose);
  box-shadow: var(--zb-shadow);
}
.zb-profile-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.zb-folder-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .zb-folder-grid { grid-template-columns: 1fr 1fr; } }
.zb-folder-card {
  border: 1px solid var(--zb-line);
  border-radius: 1.15rem;
  padding: 0.9rem 1rem;
  background: #fff;
}
.zb-folder-card.is-private { background: color-mix(in srgb, var(--zb-lav) 35%, #fff); }
.zb-folder-card strong { display: block; margin-bottom: 0.25rem; }
.zb-preview-note { width: 100%; margin: 0; }

/* Article polish */
.zb-author-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border: 1px solid var(--zb-line);
  border-radius: 9999px;
  background: #FAF7F2;
  max-width: 100%;
  box-sizing: border-box;
}
.zb-author-inline img,
.zb-author-inline .zb-pastel-avatar,
.zb-author-inline svg {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9999px !important;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.zb-author-inline-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.zb-author-inline-copy strong {
  font-size: 0.88rem;
  line-height: 1.25;
}
.zb-author-inline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--zb-mute);
  white-space: nowrap;
}
.zb-sheet-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: start;
  padding: 0.85rem 1rem !important;
  border-radius: 1rem !important;
  white-space: normal !important;
  line-height: 1.35;
}
.zb-sheet-action-card strong {
  font-size: 0.9rem;
  font-weight: 800;
}
.zb-sheet-action-card small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.78;
}
.zb-content blockquote,
.zb-content .zb-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  background: var(--zb-lav);
  border: 1px solid color-mix(in srgb, var(--zb-lav-ink) 12%, var(--zb-line));
  color: var(--zb-ink);
}
.zb-toc {
  /* Sticky moved to .zb-single-aside so TOC never slides over author/forum cards */
  position: static;
  z-index: auto;
  max-height: none;
  overflow: visible;
}
.zb-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.zb-toc a { color: var(--zb-mute); font-size: 0.8rem; text-decoration: none; }
.zb-toc a:hover { color: var(--zb-rose); }
.zb-toc .is-h3 { padding-inline-start: 0.75rem; }
.zb-article-forum { margin-top: 1.5rem; }
.zb-mob-comments-btn { display: inline-flex; margin: 1rem 0; }
.zb-comments-bar {
  position: fixed;
  inset-inline: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: none;
  width: calc(100% - 2rem);
  border: 0;
  border-radius: 9999px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(45,49,66,0.16);
  font: inherit;
  font-weight: 700;
  color: var(--zb-rose);
}
@media (max-width: 767px) {
  .zb-comments-bar { display: block; }
  .zb-comments-desktop { /* moved into sheet portal on mobile via JS */ }
}
@media (min-width: 768px) {
  .zb-mob-comments-btn,
  .zb-comments-bar { display: none !important; }
}
.zb-composer-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.zb-composer-tabs .zb-chip { cursor: pointer; border: 0; font: inherit; }
.zb-composer-tabs .zb-chip.is-on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--zb-rose) 35%, transparent); }
.zb-upload-preview { margin-top: 0.5rem; }
.zb-thread .zb-avatar-stack { flex-shrink: 0; }
.zb-twin-card {
  border: 1px solid var(--zb-line);
  background: var(--zb-card);
  border-radius: 1.5rem;
  padding: 1.15rem;
  box-shadow: var(--zb-shadow);
  display: grid;
  gap: 0.85rem;
}
/* Rich member cards must stay horizontal (overrides grid above). */
.zb-twin-card.zb-twin-card-rich {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.zb-twin-top { display: flex; gap: 0.75rem; align-items: center; }
.zb-twin-top img { border-radius: 9999px; }
.zb-twin-top h2 { margin: 0; font-size: 1rem; }
.zb-twin-top .score { margin: 0.2rem 0 0; font-size: 0.75rem; font-weight: 600; color: var(--zb-rose); }

/* —— 0.5.9 polish: footer / composer / passport / static —— */
.zb-footer {
  border-top: 0;
  background: transparent;
  margin-top: 0;
  padding: 0 0 1rem;
}
.zb-footer-card {
  margin: 4rem auto 2rem;
  max-width: 80rem;
  background: #F4ECE1;
  border: 1px solid #E2D8C9;
  border-radius: 28px;
  padding: 44px 36px 24px;
}
.zb-footer-grid {
  display: none;
  gap: 2rem;
  padding: 0;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.3fr;
}
.zb-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.zb-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  display: inline-block;
}
.zb-dot-rose { background: #D47A8F; }
.zb-dot-lav { background: #5E4B75; }
.zb-footer ul { list-style: none; margin: 0; padding: 0; color: var(--zb-mute); font-size: 0.875rem; }
.zb-footer li + li { margin-top: 0.5rem; }
.zb-footer-logo img {
  height: 3.75rem;
  width: auto;
  display: block;
  margin-bottom: 0.85rem;
  opacity: 1 !important;
}
.zb-footer-blurb {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(45, 49, 66, 0.78);
  max-width: 22rem;
}
.zb-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.zb-social-pill {
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #FFFFFF !important;
  border: 1px solid #E2D8C9;
  color: #2D3142 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.zb-social-pill span { color: #2D3142 !important; }
.zb-social-pill:hover,
.zb-footer .zb-social-pill:hover {
  background: #FFFFFF !important;
  color: #2D3142 !important;
  border-color: #D47A8F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 122, 143, 0.18);
}
.zb-social-pill:hover span { color: #2D3142 !important; }
.zb-social-svg { display: block; flex-shrink: 0; }
.zb-social-pill--telegram .zb-social-svg { color: #26A5E4; }
.zb-social-pill--instagram .zb-social-svg { color: #E1306C; }
.zb-social-pill--youtube .zb-social-svg { color: #FF0000; }
.zb-social-pill--aparat .zb-social-svg { color: #ED145B; }
.zb-footer-news-pill {
  background: #FFFFFF;
  border: 1px solid #E2D8C9;
  border-radius: 9999px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.zb-footer-news-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}
.zb-footer-news-pill button {
  border: 0;
  border-radius: 9999px;
  background: #D47A8F;
  color: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}
.zb-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.zb-trust-card {
  height: 60px;
  background: #FFFFFF;
  border: 1px solid #E2D8C9;
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2D3142;
  line-height: 1.35;
}
.zb-footer-bar {
  border-top: 1px solid #E2D8C9;
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.zb-footer-copy-text {
  margin: 0;
  font-size: 0.72rem;
  color: var(--zb-mute);
}
.zb-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.zb-footer-legal a { color: var(--zb-mute); text-decoration: none; }
.zb-footer-legal a:hover { color: var(--zb-rose); }
.zb-footer a { color: inherit; text-decoration: none; }
.zb-footer a:hover { color: var(--zb-rose); }
@media (min-width: 768px) {
  .zb-footer-grid { display: grid; }
}
@media (max-width: 767px) {
  /* Mobile = app shell: dock only, no web footer dead-space */
  .zb-footer { display: none !important; }
}

/* Review composer */
.zb-star-picker { display: flex; gap: 0.25rem; margin-top: 0.35rem; }
.zb-star {
  border: 0;
  background: transparent;
  padding: 0.15rem;
  cursor: pointer;
  color: #d6c7b8;
}
.zb-star.is-on { color: #B47B2B; }
.zb-verdict-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
@media (min-width: 640px) {
  .zb-verdict-pills { grid-template-columns: repeat(3, 1fr); }
}
.zb-verdict {
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.35;
}
.zb-verdict.is-love { background: #D8E2DC; color: #3B5249; }
.zb-verdict.is-ok { background: #FDF0ED; color: #E07A5F; }
.zb-verdict.is-regret { background: #FCEEEF; color: #D47A8F; }
.zb-verdict.is-on { box-shadow: 0 0 0 2px rgba(45, 49, 66, 0.18); }
.zb-upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 1.15rem 1rem;
  border: 1.5px dashed #E2D8C9;
  border-radius: 1.15rem;
  background: #FBF7F2;
  text-align: center;
  cursor: pointer;
  color: var(--zb-mute);
}
.zb-upload-drop-text { font-size: 0.75rem; font-weight: 600; line-height: 1.5; max-width: 18rem; }
.zb-upload-drop-icon { color: var(--zb-rose); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Passport chips */
.zb-chip-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.zb-passport-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.zb-passport-edit-wrap { margin-top: 1rem; }

/* Static about/contact */
.zb-static-lux { max-width: 52rem; }
.zb-static-hero { margin-bottom: 1.5rem; }
.zb-static-hero h1 { margin: 0.35rem 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.zb-contact-bento,
.zb-about-bento {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .zb-contact-bento { grid-template-columns: 1fr 1.2fr; }
  .zb-about-bento { grid-template-columns: repeat(2, 1fr); }
}
.zb-contact-card,
.zb-about-card {
  border: 1px solid var(--zb-line);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
}
.zb-about-card--wide { grid-column: 1 / -1; background: linear-gradient(135deg, #fceeef, #f4ece1); }
.zb-contact-card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--zb-mute);
  margin-bottom: 0.35rem;
}
.zb-contact-form {
  border: 1px solid var(--zb-line);
  background: #fff;
  border-radius: 1.35rem;
  padding: 1.25rem;
}

/* —— 0.5.28 Instagram profile + passport chips + pastel avatars —— */
.zb-beauty-ig {
  max-width: 900px;
  margin: 0 auto;
}
.zb-ig-card {
  border-radius: 28px;
  background: #FFFFFF;
  padding: 28px 32px;
  border: 1px solid #F0EAE4;
  box-shadow: 0 10px 28px rgba(45, 49, 66, 0.05);
}
@media (max-width: 640px) {
  .zb-ig-card { padding: 1.1rem 1rem; border-radius: 1.35rem; }
}
.zb-ig-header {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .zb-ig-header { flex-direction: column; align-items: center; text-align: center; }
}
.zb-ig-avatar-col {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.zb-ig-story-ring {
  background: linear-gradient(135deg, #D47A8F, #E07A5F, #E2D4F0);
  padding: 3.5px;
  border-radius: 9999px;
  width: 111px;
  height: 111px;
  box-sizing: border-box;
}
.zb-ig-avatar {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.zb-ig-avatar img,
.zb-ig-avatar .zb-pastel-avatar,
.zb-ig-avatar .zb-avatar-wrap,
.zb-ig-avatar svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  border-radius: 9999px;
}
.zb-ig-avatar-edit {
  position: absolute;
  bottom: -0.15rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 0;
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  background: #fff;
  color: #D47A8F;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(45, 49, 66, 0.12);
  cursor: pointer;
  z-index: 2;
}
.zb-ig-meta { flex: 1; min-width: 0; }
.zb-ig-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}
.zb-ig-row:last-child { margin-bottom: 0; }
.zb-ig-row--top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}
@media (max-width: 640px) {
  .zb-ig-row--top { flex-direction: column; align-items: center; }
  .zb-ig-actions { justify-content: center; }
}
.zb-ig-name-block h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.zb-ig-since-pill {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  background: #FAF7F2;
  border: 1px solid #E2D8C9;
  color: #5E4B75;
  font-size: 0.72rem;
  font-weight: 700;
}
.zb-ig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.zb-ig-btn {
  min-height: 2.15rem !important;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.78rem !important;
}
.zb-ig-follow {
  background: linear-gradient(135deg, #D47A8F, #E07A5F) !important;
  border-radius: 9999px !important;
  min-height: 2.15rem;
  padding: 0.4rem 1.1rem;
}
.zb-ig-follow.is-on {
  background: #F0EAE4 !important;
}
.zb-ig-match-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #E2D4F0;
  color: #5E4B75;
  font-size: 0.72rem;
  font-weight: 700;
}
.zb-ig-counters,
.zb-profile-stats {
  font-size: 0.92rem;
  color: var(--zb-ink);
  font-weight: 600;
}
.zb-ig-counters strong,
.zb-profile-stats strong {
  font-weight: 800;
  font-size: 1.05rem;
  margin-inline-end: 0.15rem;
}
.zb-ig-dot { color: var(--zb-mute); font-weight: 700; }
@media (max-width: 480px) {
  .zb-ig-counters.zb-profile-stats,
  .zb-profile-stats {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .zb-profile-stats strong {
    font-size: 12.5px;
  }
  .zb-profile-stats .zb-ig-dot {
    margin: 0;
  }
}
.zb-ig-dna { align-items: center; }
.zb-ig-dna-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zb-mute);
  white-space: nowrap;
}
.zb-ig-dna-empty {
  font-size: 0.78rem;
  color: var(--zb-mute);
}
.zb-ig-highlights {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #F0EAE4;
}
.zb-ig-highlights-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zb-mute);
}
.zb-ig-highlights-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.zb-ig-highlight {
  flex: 0 0 auto;
  width: 4.5rem;
  text-align: center;
}
.zb-ig-highlight-ring {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 0.35rem;
  border-radius: 9999px;
  border: 1.5px solid #E2D8C9;
  background: #FAF7F2;
}
.zb-ig-highlight-icon { font-size: 1.35rem; line-height: 1; }
.zb-ig-highlight-caption {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zb-ink);
}
.zb-ig-highlight.is-locked {
  opacity: 0.45;
}
.zb-ig-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1.15rem 0 1rem;
  border-bottom: 1px solid #F0EAE4;
  overflow-x: auto;
  justify-content: space-between;
  padding: 0 2px;
  scrollbar-width: none;
}
.zb-ig-tabs::-webkit-scrollbar { display: none; }
.zb-ig-tab {
  flex: 1 1 auto;
  min-width: max-content;
  border: 0;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--zb-mute);
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 639px) {
  .zb-ig-tabs {
    gap: 12px;
    padding: 0 12px;
    justify-content: space-between;
  }
  .zb-ig-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.25rem;
    font-size: 12px;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
  .zb-ig-tab-full { display: none; }
  .zb-ig-tab-short { display: inline; }
}
@media (min-width: 641px) {
  .zb-ig-tab-short { display: none; }
  .zb-ig-tab-full { display: inline; }
}
.zb-ig-tab.is-active {
  color: var(--zb-ink);
  border-bottom-color: #D47A8F;
}
.zb-ig-panel[hidden] { display: none !important; }
.zb-ig-panel.is-active { display: block; }
.zb-ig-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .zb-ig-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .zb-ig-shelf { grid-template-columns: 1fr; }
}
.zb-ig-shelf > .zb-shelf-empty {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.zb-ig-product {
  border-radius: 1.1rem;
  border: 1px solid #F0EAE4;
  background: #fff;
  padding: 0.85rem;
}
.zb-ig-panel-foot { margin-top: 1rem; }

/* Passport editor chips — soft capsules, no black browser borders */
.zb-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.25rem 0 0.85rem;
}
button.zb-choice,
.zb-choice {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 9999px;
  padding: 7px 16px;
  background: #FAF7F2;
  border: 1.5px solid #E2D8C9 !important;
  color: #2D3142;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.35;
  outline: none;
  box-shadow: none;
}
button.zb-choice:hover,
.zb-choice:hover {
  border-color: #D47A8F !important;
}
button.zb-choice.is-on,
.zb-choice.is-on,
button.zb-choice.is-on:focus,
.zb-choice.is-on:focus {
  background: #FCEEEF;
  border-color: #D47A8F !important;
  color: #D47A8F;
  outline: none;
  box-shadow: none;
}

.zb-passport-modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(45, 49, 66, 0.22);
  overflow: hidden;
  padding: 0 !important;
  border: 0;
}
.zb-wiz-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #F0EAE4;
  background: #FAF7F2;
}
.zb-wiz-step {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--zb-mute);
  padding: 0.4rem 0.55rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--zb-line);
}
.zb-wiz-step.is-on {
  color: #D47A8F;
  border-color: #D47A8F;
  background: #FCEEEF;
}
.zb-wiz-step.is-done {
  color: var(--zb-sage-ink, #3d6b4f);
  border-color: transparent;
  background: var(--zb-sage, #D8E2DC);
}
.zb-wiz-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}
.zb-wiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.zb-wiz-panel .zb-btn[disabled],
.zb-wiz-nav .zb-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.zb-passport-wizard.is-mandatory {
  pointer-events: auto;
}
.zb-coach-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
.zb-coach-card {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 1.5rem));
  pointer-events: auto;
  background: #fff;
  border: 1px solid var(--zb-line);
  border-radius: 1.35rem;
  box-shadow: 0 18px 48px rgba(45, 49, 66, 0.28);
  padding: 1rem 1.1rem;
  z-index: 10002;
}
.zb-coach-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: #D47A8F;
}
.zb-coach-title {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}
.zb-coach-text {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(45, 49, 66, 0.82);
}
.zb-coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  justify-content: flex-end;
}
.zb-coach-spot {
  position: relative !important;
  z-index: 10001 !important;
  box-shadow: 0 0 0 6px rgba(212, 122, 143, 0.35), 0 0 0 9999px rgba(45, 49, 66, 0.45) !important;
  border-radius: 24px !important;
  transition: all 0.3s ease;
  background-clip: padding-box;
}
html.zb-coach-open {
  overflow: hidden;
}
.zb-dna-pill.is-hot {
  background: #FCEEEF;
  color: #D47A8F;
  text-decoration: none;
}
.zb-passport-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 18px 24px;
  border-bottom: 1px solid #F0EAE4;
  flex-shrink: 0;
  background: #fff;
}
.zb-passport-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}
.zb-modal-close {
  appearance: none;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #E2D8C9;
  border-radius: 9999px;
  background: #FAF7F2;
  color: #2D3142;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.zb-modal-close:hover {
  border-color: #D47A8F;
  color: #D47A8F;
  background: #FCEEEF;
}
.zb-passport-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.zb-passport-modal-body .zb-inline-form {
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.zb-passport-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid #F0EAE4;
  background: #FAF7F2;
  flex-shrink: 0;
  display: flex;
  justify-content: stretch;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}
.zb-passport-modal-foot .zb-btn[hidden],
.zb-passport-modal-foot .zb-btn[aria-hidden="true"] {
  display: none !important;
}
.zb-passport-modal-foot.is-step-1 {
  flex-direction: column;
}
.zb-passport-modal-foot.is-step-1 [data-wiz-foot-step="1"] {
  width: 100%;
  justify-content: center;
}
.zb-passport-modal-foot.is-step-2,
.zb-passport-modal-foot.is-step-3 {
  flex-direction: row;
  gap: 10px;
}
.zb-passport-modal-foot.is-step-2 [data-wiz-foot-back],
.zb-passport-modal-foot.is-step-2 [data-wiz-foot-step="2"],
.zb-passport-modal-foot.is-step-3 [data-wiz-foot-back],
.zb-passport-modal-foot.is-step-3 [data-wiz-foot-step="3"] {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}
.zb-verify-banner {
  position: relative;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, #D47A8F 28%, var(--zb-line));
  background: linear-gradient(135deg, #FCEEEF 0%, #FAF7F2 55%, #EEF6F1 100%);
  box-shadow: var(--zb-shadow);
}
.zb-verify-dismiss {
  position: absolute;
  top: 0.55rem;
  inset-inline-start: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--zb-mute);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.25rem;
}
.zb-verify-text {
  margin: 0 0 0.75rem;
  padding-inline-end: 1.25rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--zb-ink);
}
.zb-verify-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.zb-verify-email,
.zb-verify-code {
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid var(--zb-line);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  font: inherit;
}
.zb-verify-code {
  flex: 0 1 7rem;
  letter-spacing: 0.28em;
  text-align: center;
  font-weight: 800;
}
.zb-verify-msg {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
}
.zb-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #EAF3EE;
  color: #3D6B55;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.zb-avatar-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0.25rem 0 0.85rem;
}
@media (max-width: 560px) {
  .zb-avatar-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.zb-avatar-pick {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 9999px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  width: 64px;
  height: 64px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1;
}
@media (max-width: 560px) {
  .zb-avatar-pick {
    width: 100%;
    height: auto;
  }
}
.zb-avatar-pick svg {
  width: 100%;
  height: 100%;
  display: block;
}
.zb-avatar-pick.is-on {
  border-color: #D47A8F;
  box-shadow: 0 0 0 3px rgba(212, 122, 143, 0.22);
}
.zb-pastel-avatar {
  border-radius: 9999px !important;
  object-fit: cover;
}


/* === 0.5.31 twins full === */
.zb-twins-main { min-width: 0; width: 100%; }
.zb-twins-grid--full { width: 100%; }
.zb-twins-empty-full {
  grid-column: 1 / -1;
  width: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--zb-rose-soft), var(--zb-peach-soft));
  border: 1px solid var(--zb-line);
}
.zb-twin-featured-badge { margin-bottom: 0; }
.zb-thread--twin { width: 100%; }

/* Self-hosted shield captcha on forum composers */
.zb-room-form .zb-math-captcha,
.zb-room-form .zb-shield-captcha {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--zb-line);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, var(--zb-rose-soft), var(--zb-peach-soft));
}
.zb-room-form .zb-math-captcha__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.zb-room-form .zb-math-captcha__head p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--zb-mute);
}
.zb-room-form .zb-shield-reload {
  margin-inline-start: auto;
  border: 0;
  background: #fff;
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  box-shadow: var(--zb-shadow);
}
.zb-room-form .zb-shield-captcha__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.zb-room-form .zb-shield-captcha__svg {
  display: inline-flex;
  padding: 0.2rem 0.4rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--zb-line);
}
.zb-room-form .zb-shield-captcha__svg svg {
  display: block;
  width: 148px;
  height: 48px;
}
.zb-room-form .zb-math-captcha input[type="number"],
.zb-room-form .zb-math-captcha input.zb-shield-answer,
.zb-room-form .zb-shield-answer {
  width: 110px !important;
  max-width: 110px !important;
  flex: 0 0 110px !important;
  min-height: 2.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  border: 1.5px solid #E2D8C9 !important;
  border-radius: 14px !important;
  padding: 0.45rem 0.6rem;
  background: #fff;
  font-family: inherit;
  outline: none !important;
  box-shadow: none !important;
}
.zb-room-form .zb-shield-answer:focus {
  border-color: var(--zb-rose) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--zb-rose) 22%, transparent) !important;
}
.zb-room-form .zb-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.zb-forum-shell.is-spa-loading,
main.is-spa-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
html.zb-spa-busy {
  cursor: progress;
}
.zb-spa-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 999999;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.zb-spa-progress.is-on {
  opacity: 1;
}
.zb-spa-progress > span {
  display: block;
  height: 100%;
  width: 28%;
  background: #D47A8F;
  border-radius: 99px;
  animation: zb-spa-slide 0.9s ease-in-out infinite;
}
@keyframes zb-spa-slide {
  0% { transform: translateX(120%); width: 20%; }
  50% { transform: translateX(-40%); width: 55%; }
  100% { transform: translateX(-160%); width: 20%; }
}

/* Admin quarantine control (manage_options only) */
.zb-thread { position: relative; }
.zb-admin-q-btn {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 3;
  border: 1px solid var(--zb-line);
  background: rgba(255, 255, 255, 0.92);
  color: #8a4a55;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  box-shadow: var(--zb-shadow);
}
.zb-admin-q-btn:hover { background: #fff; color: #c0392b; }
.zb-topic-hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
}
.zb-topic-hero-title-row .zb-admin-q-btn {
  position: static;
  flex-shrink: 0;
}

/* Composer room selector pills */
.zb-room-pick { margin-bottom: 0.85rem; }
.zb-room-pick-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zb-mute);
}
.zb-room-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.zb-room-pick-chip {
  border: 1px solid var(--zb-line);
  background: #fff;
  cursor: pointer;
}
.zb-room-pick-chip.is-on {
  border-color: var(--zb-rose);
  background: var(--zb-rose-soft);
  color: var(--zb-ink);
}
