:root {
  --zb-bg: #050816;
  --zb-bg-soft: #0a1020;
  --zb-surface: rgba(15, 23, 42, 0.86);
  --zb-surface-soft: rgba(15, 23, 42, 0.64);
  --zb-border: rgba(148, 163, 184, 0.22);
  --zb-border-strong: rgba(34, 211, 238, 0.38);
  --zb-text: #f8fafc;
  --zb-muted: #94a3b8;
  --zb-muted-strong: #cbd5e1;
  --zb-orange: #f47a20;
  --zb-orange-soft: rgba(244, 122, 32, 0.16);
  --zb-live: #22d3ee;
  --zb-live-blue: #38bdf8;
  --zb-success: #22c55e;
  --zb-warning: #f59e0b;
  --zb-danger: #ef4444;
  --zb-radius: 1.25rem;
  --zb-radius-lg: 1.75rem;
  --zb-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --zb-shadow-soft: 0 18px 50px rgba(8, 13, 30, 0.35);
  --zb-mobile-gap: 1rem;
  --zb-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.zb-page {
  min-height: 100vh;
  margin: 0;
  color: var(--zb-text);
  font-family: var(--zb-font);
  background:
    radial-gradient(circle at top left, rgba(244, 122, 32, 0.16), transparent 34rem),
    radial-gradient(circle at 78% 10%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(135deg, var(--zb-bg) 0%, #08111f 48%, #030712 100%);
}

.zb-page a { color: inherit; }

.zb-shell {
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem);
}

.zb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zb-mobile-gap);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.zb-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.zb-logo-lockup__mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 122, 32, 0.42);
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(244, 122, 32, 0.18), rgba(34, 211, 238, 0.12));
  box-shadow: 0 0 32px rgba(244, 122, 32, 0.18);
}

.zb-logo-lockup__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zb-logo-lockup__eyebrow,
.zb-kicker {
  margin: 0;
  color: var(--zb-live);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.zb-logo-lockup__title {
  margin: 0.12rem 0 0;
  color: var(--zb-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.zb-card,
.zb-card-soft {
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius-lg);
  box-shadow: var(--zb-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.zb-card {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 30, 0.84)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 24rem);
}

.zb-card-soft {
  background: var(--zb-surface-soft);
  box-shadow: var(--zb-shadow-soft);
}

.zb-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.zb-button:hover { transform: translateY(-1px); }
.zb-button:focus-visible { outline: 3px solid rgba(34, 211, 238, 0.32); outline-offset: 2px; }
.zb-button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.zb-button-primary {
  color: #08111f;
  background: linear-gradient(135deg, var(--zb-orange), #ffb347);
  box-shadow: 0 14px 34px rgba(244, 122, 32, 0.28);
}

.zb-button-secondary {
  color: var(--zb-text);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(15, 23, 42, 0.76);
}

.zb-button-danger {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(127, 29, 29, 0.78);
}

.zb-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.95rem;
  padding: 0.82rem 0.95rem;
  color: var(--zb-text);
  background: rgba(2, 6, 23, 0.72);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.zb-input:focus {
  border-color: var(--zb-live);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
  outline: none;
}

.zb-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--zb-muted-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.zb-alert {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--zb-muted-strong);
  background: rgba(15, 23, 42, 0.72);
}

.zb-alert--error {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(127, 29, 29, 0.38);
}

.zb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  color: #cffafe;
  background: rgba(8, 47, 73, 0.38);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zb-live-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--zb-success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.48);
  animation: zb-live-pulse 1.45s ease-out infinite;
}

.zb-section-title {
  margin: 0;
  color: var(--zb-text);
  font-size: clamp(2rem, 6vw, 4.7rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.zb-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.zb-mobile-stack {
  display: flex;
  flex-direction: column;
  gap: var(--zb-mobile-gap);
}

@keyframes zb-live-pulse {
  70% { box-shadow: 0 0 0 0.55rem rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (min-width: 760px) {
  .zb-mobile-stack { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .zb-button,
  .zb-live-dot {
    animation: none;
    transition: none;
  }
}

/* zWall authenticated home screen */
.zwall-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.zwall-public-preview-bar {
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  color: #e0f2fe;
  background: rgba(8, 47, 73, 0.82);
}

.zwall-public-preview-bar__inner {
  display: flex;
  width: min(100%, 74rem);
  margin: 0 auto;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem clamp(1rem, 2vw, 2rem);
}

.zwall-public-preview-bar__inner p { margin: 0; }
.zwall-public-preview-bar__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.zwall-topbar { align-items: flex-start; }

.zwall-nav {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zwall-nav__link {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: var(--zb-muted-strong);
  background: rgba(15, 23, 42, 0.64);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.zwall-nav__link:hover,
.zwall-nav__link--active {
  color: var(--zb-text);
  border-color: rgba(244, 122, 32, 0.48);
  background: var(--zb-orange-soft);
}

.zwall-hero {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.zwall-hero__copy,
.zwall-hero__panel { position: relative; z-index: 1; }
.zwall-hero__copy .zb-kicker { margin-top: clamp(1.4rem, 4vw, 2.6rem); }

.zwall-hero__subtitle {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--zb-muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.zwall-hero__panel { padding: 1rem; align-self: end; }
.zwall-status-copy { margin: 0.55rem 0 0; color: var(--zb-text); font-size: 1rem; font-weight: 800; line-height: 1.45; }
.zwall-status-copy--error { color: #fca5a5; }
.zwall-muted { margin: 0.35rem 0 0; color: var(--zb-muted); font-size: 0.86rem; line-height: 1.5; }
.zwall-warning { margin: 0.35rem 0 0; color: #fcd34d; font-size: 0.78rem; line-height: 1.45; }
.zwall-alert-warning { margin-top: 1rem; color: #ffedd5; border-color: rgba(245, 158, 11, 0.42); background: rgba(120, 53, 15, 0.34); }
.zwall-inline-link { color: #fed7aa; font-weight: 900; text-decoration: underline; }

.zwall-layout {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.zwall-feed-panel { min-width: 0; padding: clamp(1rem, 2.5vw, 1.4rem); }
.zwall-feed-toolbar { display: grid; gap: 1rem; margin-bottom: 1rem; }
.zwall-panel-title,
.zwall-side-title { margin: 0.25rem 0 0; color: var(--zb-text); font-size: 1.35rem; font-weight: 950; letter-spacing: -0.035em; }

.zwall-filters { display: grid; gap: 0.65rem; }
.zwall-filter-control { min-height: 2.65rem; font-size: 0.88rem; }
.zwall-filter-button { min-height: 2.65rem; white-space: nowrap; }
.zwall-feed { display: grid; gap: 0.95rem; }
.zwall-load-more { width: 100%; margin-top: 1rem; }

.zwall-empty-state {
  border: 1px dashed rgba(34, 211, 238, 0.32);
  border-radius: 1.2rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--zb-muted-strong);
  background: rgba(2, 6, 23, 0.42);
  text-align: center;
  font-weight: 800;
}

.zwall-feed-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 30, 0.84)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 16rem);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.zwall-feed-card__header { display: flex; flex-direction: column; gap: 0.75rem; }
.zwall-feed-card__speaker-row { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.zwall-feed-card__speaker { margin: 0; overflow-wrap: anywhere; color: var(--zb-text); font-size: 1.02rem; font-weight: 950; }
.zwall-feed-card__badge,
.zwall-channel-pill,
.zwall-identity-pill,
.zwall-recent-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.zwall-feed-card__badge { border: 1px solid rgba(34, 211, 238, 0.38); padding: 0.32rem 0.52rem; color: #cffafe; background: rgba(8, 47, 73, 0.34); }
.zwall-feed-card__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; color: var(--zb-muted); font-size: 0.78rem; }
.zwall-channel-pill { border: 1px solid rgba(244, 122, 32, 0.4); padding: 0.38rem 0.58rem; color: #fed7aa; background: rgba(244, 122, 32, 0.12); cursor: pointer; }
.zwall-channel-pill:hover { border-color: rgba(34, 211, 238, 0.54); color: #cffafe; }
.zwall-time { color: var(--zb-muted-strong); }
.zwall-card-summary { margin: 0; color: var(--zb-muted-strong); font-size: 0.96rem; line-height: 1.6; overflow-wrap: anywhere; }
.zwall-transcript { margin: 0; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 1rem; padding: 0.9rem; color: var(--zb-muted-strong); background: rgba(2, 6, 23, 0.52); font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }
.zwall-transcript--text { color: var(--zb-text); white-space: pre-wrap; }
.zwall-duration { margin: 0; color: var(--zb-muted); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.zwall-audio-player { display: block; width: 100%; max-width: 100%; min-width: 0; }
.zwall-card-image { display: block; max-width: 100%; max-height: 24rem; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 1rem; object-fit: contain; }

.zwall-side { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.zwall-side-card { padding: 1rem; }
.zwall-side-card--muted { opacity: 0.72; }
.zwall-identity-pill { width: fit-content; max-width: 100%; margin-top: 0.55rem; border: 1px solid rgba(34, 211, 238, 0.32); padding: 0.45rem 0.65rem; color: #cffafe; background: rgba(8, 47, 73, 0.34); overflow-wrap: anywhere; text-transform: none; letter-spacing: normal; }
.zwall-status-line { margin: 0.75rem 0 0; color: var(--zb-muted-strong); font-size: 0.86rem; }
.zwall-quick-links { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.zwall-quick-links a { border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 0.9rem; padding: 0.72rem 0.8rem; color: var(--zb-muted-strong); background: rgba(2, 6, 23, 0.42); font-weight: 850; text-decoration: none; }
.zwall-quick-links a:hover { border-color: rgba(244, 122, 32, 0.46); color: var(--zb-text); }
.zwall-side-input { margin-top: 0.85rem; min-height: 2.75rem; }
.zwall-index-list { display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.zwall-channel-card { width: 100%; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 0.95rem; padding: 0.75rem; color: inherit; background: rgba(2, 6, 23, 0.46); text-align: left; cursor: pointer; }
.zwall-channel-card:hover { border-color: rgba(34, 211, 238, 0.44); }
.zwall-channel-card span:first-child { display: block; color: var(--zb-text); font-weight: 900; overflow-wrap: anywhere; }
.zwall-channel-card span:last-child { display: block; margin-top: 0.2rem; color: var(--zb-muted); font-size: 0.78rem; }

.zwall-users-panel { padding: clamp(1rem, 2.5vw, 1.4rem); }
.zwall-users-header { display: grid; gap: 1rem; }
.zwall-users-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.zwall-users-toggle__icon { color: var(--zb-muted); font-size: 1.4rem; }
.zwall-user-search { min-height: 2.75rem; }
.zwall-users-body { margin-top: 1rem; }
.zwall-users-list { display: grid; gap: 0.75rem; }
.zwall-user-card { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 1rem; padding: 0.85rem; color: inherit; background: rgba(2, 6, 23, 0.46); text-align: left; cursor: pointer; }
.zwall-user-card:hover { border-color: rgba(34, 211, 238, 0.44); }
.zwall-user-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.zwall-user-name { display: block; color: var(--zb-text); font-weight: 900; }
.zwall-recent-pill { flex-shrink: 0; border: 1px solid rgba(34, 197, 94, 0.36); padding: 0.34rem 0.5rem; color: #bbf7d0; background: rgba(20, 83, 45, 0.28); }
.zwall-user-card__meta,
.zwall-user-card__channels { display: block; margin-top: 0.45rem; color: var(--zb-muted); font-size: 0.8rem; line-height: 1.45; }
.zwall-user-card__meta span { color: var(--zb-muted-strong); font-weight: 900; }
.zwall-privacy-note { margin: 1rem 0 0; color: var(--zb-muted); font-size: 0.78rem; line-height: 1.55; }

@media (min-width: 640px) {
  .zwall-feed-card__header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .zwall-feed-card__meta { justify-content: flex-end; }
  .zwall-filters { grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
  .zwall-users-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .zwall-public-preview-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .zwall-nav { width: auto; justify-content: flex-end; }
  .zwall-users-header { grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); align-items: center; }
}

@media (min-width: 980px) {
  .zwall-hero { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.36fr); align-items: end; }
  .zwall-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); align-items: start; }
  .zwall-users-toggle { pointer-events: none; }
  .zwall-users-toggle__icon { display: none; }
  .zwall-users-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* UI-4 dashboard control-room shell */
.zb-dashboard-page {
  overflow-x: hidden;
}

.zb-dashboard-shell {
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: clamp(0.85rem, 2.4vw, 2rem);
}

.zb-dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.85rem clamp(0.85rem, 2.4vw, 1.5rem);
  width: min(100%, 82rem);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-top: 0;
  border-radius: 0 0 1.35rem 1.35rem;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.82));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.zb-dashboard-nav {
  display: flex;
  flex: 1 1 24rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.zb-dashboard-nav__link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.5rem 0.82rem;
  color: var(--zb-muted-strong);
  background: rgba(15, 23, 42, 0.5);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.zb-dashboard-nav__link:hover,
.zb-dashboard-nav__link:focus-visible,
.zb-dashboard-nav__link[aria-current="page"] {
  color: var(--zb-text);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.zb-dashboard-nav__link--logout {
  border-color: rgba(244, 122, 32, 0.36);
  color: #fed7aa;
  background: rgba(244, 122, 32, 0.12);
}

.zb-user-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  padding: 0.45rem 0.7rem;
  color: var(--zb-muted-strong);
  background: rgba(2, 6, 23, 0.45);
}

.zb-user-chip__label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  line-height: 1.25;
}

.zb-user-chip__name {
  display: block;
  color: var(--zb-text);
  font-weight: 900;
}

.zb-dashboard-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--zb-radius-lg);
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at top left, rgba(244, 122, 32, 0.22), transparent 22rem),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.18), transparent 22rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--zb-shadow-soft);
}

.zb-dashboard-hero__layout {
  display: grid;
  gap: 1rem;
}

.zb-dashboard-hero__title {
  margin: 0.25rem 0 0;
  color: var(--zb-text);
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.zb-dashboard-hero__copy {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  color: var(--zb-muted-strong);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.zb-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.zb-dashboard-summary__card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.05rem;
  padding: 0.9rem;
  background: rgba(2, 6, 23, 0.48);
}

.zb-dashboard-summary__label {
  display: block;
  color: var(--zb-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.zb-dashboard-summary__value {
  display: block;
  min-width: 0;
  margin-top: 0.35rem;
  color: var(--zb-text);
  font-size: 1.25rem;
  font-weight: 950;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 430px) {
  .zb-dashboard-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .zb-dashboard-summary__card {
    padding: 0.8rem;
  }

  .zb-dashboard-summary__value {
    font-size: 1.1rem;
  }
}

.zb-dashboard-section {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.35rem;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--zb-shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.zb-dashboard-section .section-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.zb-dashboard-section .section-body {
  border-radius: 0 0 1.35rem 1.35rem;
  background: rgba(2, 6, 23, 0.28) !important;
}

.zb-bot-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.76)),
    radial-gradient(circle at top right, rgba(244, 122, 32, 0.12), transparent 18rem);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.zb-bot-card__eyebrow,
.zb-bot-meta__label {
  color: var(--zb-live);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zb-bot-card__account {
  color: var(--zb-text);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.zb-bot-meta-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.zb-bot-meta {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.95rem;
  padding: 0.65rem 0.75rem;
  background: rgba(2, 6, 23, 0.42);
}

.zb-bot-meta__value {
  display: block;
  margin-top: 0.2rem;
  color: var(--zb-muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.zb-status-pill--online { border-color: rgba(34, 197, 94, 0.45); color: #bbf7d0; background: rgba(20, 83, 45, 0.44); }
.zb-status-pill--connecting { border-color: rgba(245, 158, 11, 0.5); color: #fde68a; background: rgba(120, 53, 15, 0.42); }
.zb-status-pill--offline { border-color: rgba(148, 163, 184, 0.28); color: #cbd5e1; background: rgba(51, 65, 85, 0.36); }
.zb-status-pill--stale { border-color: rgba(245, 158, 11, 0.5); color: #fed7aa; background: rgba(124, 45, 18, 0.38); }

@media (min-width: 840px) {
  .zb-dashboard-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
    align-items: end;
  }
}

@media (max-width: 640px) {
  .zb-dashboard-topbar {
    position: static;
    border-radius: 0 0 1rem 1rem;
  }
  .zb-dashboard-nav {
    justify-content: flex-start;
  }
  .zb-dashboard-nav__link {
    flex: 1 1 auto;
  }
}


/* Admin / maintenance surfaces share the ZBots shell without changing routes or runtime behavior. */
.admin-page {
  color: var(--zb-text);
  overflow-x: hidden;
}

.admin-page #admin-shell,
.admin-page .zb-shell {
  max-width: min(74rem, 100vw);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand-link { color: var(--zb-text); }

.admin-product-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.admin-product-links a,
.quicklink-bar__link {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.58);
  text-decoration: none;
}

.admin-product-links a:hover,
.quicklink-bar__link:hover {
  border-color: rgba(244, 122, 32, 0.55);
  color: #fff7ed;
  background: rgba(244, 122, 32, 0.14);
}

.admin-product-links__logout { border-color: rgba(244, 122, 32, 0.38) !important; }

.admin-page .banner-surface,
.admin-page .quicklink-bar,
.admin-page .admin-section {
  border: 1px solid var(--zb-border) !important;
  border-radius: var(--zb-radius-lg) !important;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 30, 0.84)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 24rem) !important;
  box-shadow: var(--zb-shadow-soft) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-page .admin-section {
  padding: clamp(1rem, 2.5vw, 1.5rem) !important;
  overflow: hidden;
}

.admin-zb-section {
  display: grid;
  gap: 1rem;
}

.admin-zb-section--scanner {
  border-color: rgba(34, 211, 238, 0.38) !important;
}

.admin-zb-section--maintenance {
  border-color: rgba(244, 122, 32, 0.34) !important;
}

.admin-zb-section__header,
.admin-page .section-header {
  gap: 1rem;
  min-width: 0;
}

.admin-page .section-title,
.admin-page h2,
.admin-page h3 {
  overflow-wrap: anywhere;
}

.admin-safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
}

.zb-alert--warning {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(120, 53, 15, 0.32);
}

.zb-alert--danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(127, 29, 29, 0.4);
}

.zb-alert--info {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(8, 47, 73, 0.34);
}

.zb-status-pill--success {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(20, 83, 45, 0.42);
}

.zb-status-pill--warning {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(120, 53, 15, 0.38);
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
}

.admin-status-tile,
.admin-action-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(2, 6, 23, 0.52);
}

.admin-status-tile--live {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.32);
}

.admin-status-tile--wide { grid-column: span 2; }

.admin-status-tile dt {
  color: var(--zb-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-status-tile dd {
  margin: 0.3rem 0 0;
  color: var(--zb-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-action-card h3 {
  margin: 0;
  color: var(--zb-text);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-action-card p {
  margin: 0;
  color: var(--zb-muted-strong);
  font-size: 0.82rem;
}

.admin-output-panel {
  max-width: 100%;
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  color: #dbeafe;
  background: rgba(0, 0, 0, 0.46);
  font-size: 0.78rem;
}

.admin-page .zb-button { min-height: 2.5rem; font-size: 0.85rem; }
.admin-page .zb-input { color: var(--zb-text); }

@media (max-width: 720px) {
  .admin-topbar { align-items: stretch; flex-direction: column; }
  .admin-product-links { justify-content: flex-start; }
  .admin-product-links a { flex: 1 1 auto; text-align: center; }
  .admin-status-tile--wide { grid-column: span 1; }
}

/* UI-6 user account/profile/content surfaces */
.user-account-page {
  overflow-x: hidden;
}

.user-account-shell {
  width: min(100%, 68rem);
}

.user-account-nav {
  align-items: flex-start;
}

.user-account-nav__links,
.user-account-actions,
.user-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.user-account-nav__links .zb-button,
.user-account-actions .zb-button,
.user-content-actions .zb-button {
  min-height: 2.45rem;
  padding: 0.66rem 0.82rem;
  font-size: 0.84rem;
}

.user-account-hero,
.user-account-panel,
.user-account-empty-state,
.user-content-card {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.user-account-hero {
  margin-bottom: 1rem;
}

.user-account-grid {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.user-profile-identity,
.user-content-card__top {
  display: grid;
  gap: 1rem;
}

.user-profile-identity {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.user-profile-avatar-wrap {
  flex: 0 0 auto;
}

.user-profile-copy,
.user-content-card__title-block,
.user-content-card__status {
  min-width: 0;
}

.user-account-heading-row,
.user-account-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.user-account-title {
  max-width: 11ch;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
}

.user-account-lede,
.user-account-muted,
.user-account-detail-list dd,
.user-profile-facts dd,
.user-content-preview p {
  overflow-wrap: anywhere;
}

.user-account-lede {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  color: var(--zb-muted-strong);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.user-account-muted {
  margin: 0.7rem 0 0;
  color: var(--zb-muted-strong);
  line-height: 1.55;
}

.user-account-error {
  margin: 0.7rem 0 0;
  color: #fecaca;
  font-weight: 800;
}

.user-account-panel h2,
.user-account-empty-state h2,
.user-content-card h2 {
  margin: 0.45rem 0 0;
  color: var(--zb-text);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.1;
}

.user-profile-facts,
.user-account-detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.user-profile-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.user-account-detail-list--inline {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.user-profile-facts div,
.user-account-detail-list div,
.user-content-preview {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  padding: 0.8rem;
  background: rgba(2, 6, 23, 0.45);
}

.user-profile-facts dt,
.user-account-detail-list dt,
.user-content-preview__label {
  color: var(--zb-live);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.user-profile-facts dd,
.user-account-detail-list dd {
  margin: 0.3rem 0 0;
  color: var(--zb-text);
  font-weight: 850;
}

.user-account-status--verified,
.user-account-pill--ztick {
  border-color: rgba(34, 197, 94, 0.36);
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.42);
}

.user-account-status--pending,
.user-account-status--expired,
.user-account-status--unverified,
.user-account-status--needs-api-pairing {
  border-color: rgba(245, 158, 11, 0.38);
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.42);
}

.user-account-callout {
  margin-top: 1rem;
  border-color: rgba(244, 122, 32, 0.38);
  color: #ffedd5;
  background: rgba(124, 45, 18, 0.34);
}

.user-account-callout--warning,
.user-account-warning-panel {
  border-color: rgba(245, 158, 11, 0.34);
}

.user-account-actions {
  margin-top: 1rem;
}

.user-account-form-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.user-account-file-input::file-selector-button {
  margin-right: 0.8rem;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  color: #08111f;
  background: var(--zb-orange);
  font-weight: 900;
}

.user-account-empty-state {
  display: grid;
  gap: 0.8rem;
  place-items: start;
  margin-top: 1rem;
}

.user-content-list {
  display: grid;
  gap: 1rem;
}

.user-content-card__top {
  grid-template-columns: minmax(0, 1fr);
}

.user-content-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-content-preview {
  margin-top: 1rem;
}

.user-content-preview p {
  margin: 0.55rem 0 0;
  color: var(--zb-muted-strong);
  line-height: 1.55;
  white-space: pre-wrap;
}

.user-content-audio {
  width: 100%;
  margin-top: 1rem;
}

.user-content-actions {
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .user-account-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .user-content-card__top {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.48fr);
    align-items: start;
  }
}

@media (max-width: 720px) {
  .user-account-nav,
  .user-profile-identity {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .user-account-nav__links .zb-button,
  .user-account-actions .zb-button,
  .user-content-actions .zb-button,
  .user-content-actions form {
    width: 100%;
  }

  .user-account-nav__links .zb-button,
  .user-account-actions .zb-button,
  .user-content-actions .zb-button {
    justify-content: center;
  }

  .user-profile-avatar-wrap {
    justify-self: start;
  }
}

.profile-identity-copy {
  min-width: 0;
}

/* UI-7 final polish: reusable mobile, accessibility, empty-state, and motion helpers. */
.zb-wrap-anywhere,
.zb-wrap-anywhere * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zb-scroll-x,
.zb-safe-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zb-safe-table table {
  width: 100%;
  min-width: 42rem;
}

.zb-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.zb-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0), rgba(5, 8, 22, 0.96) 35%);
}

.zb-card,
.zb-card-soft,
.zwall-feed-card,
.admin-action-card,
.admin-status-tile,
.user-content-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.zb-card:hover,
.zb-card-soft:hover,
.zwall-feed-card:hover,
.admin-action-card:hover,
.admin-status-tile:hover,
.user-content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.zb-button:hover,
.zb-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.zb-input:focus-visible,
.zwall-channel-card:focus-visible,
.zwall-user-card:focus-visible,
.zwall-users-toggle:focus-visible,
.zwall-nav__link:focus-visible,
.zb-dashboard-nav__link:focus-visible,
.quicklink-bar__link:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.34);
  outline-offset: 2px;
}

.zb-loading-shimmer {
  position: relative;
  overflow: hidden;
}

.zb-loading-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.14), transparent);
  animation: zb-shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}

.ztick-badge {
  animation: zb-ztick-pop 420ms ease both;
}

@keyframes zb-shimmer {
  to { transform: translateX(100%); }
}

@keyframes zb-ztick-pop {
  0% { transform: scale(0.86); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .zb-shell,
  .zb-dashboard-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .zb-topbar,
  .zb-dashboard-topbar,
  .zwall-topbar,
  .user-account-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .zb-mobile-stack,
  .zwall-public-preview-bar__actions,
  .admin-product-links,
  .user-account-actions,
  .user-content-actions {
    width: 100%;
  }

  .zb-mobile-stack > *,
  .zwall-public-preview-bar__actions > *,
  .admin-product-links > *,
  .user-account-actions > *,
  .user-content-actions > *,
  .user-content-actions form {
    width: 100%;
  }

  audio,
  .zwall-audio-player,
  .user-content-audio,
  .login-audio {
    max-width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Shared expandable-image viewer for zWall and Media & Artifacts. */
.zb-expandable-image {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 0.65rem;
  color: inherit;
  background: #020617;
  cursor: zoom-in;
  overflow: hidden;
}

.zb-expandable-image:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.zb-image-lightbox {
  width: min(96vw, 90rem);
  max-width: none;
  height: min(94vh, 70rem);
  max-height: none;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 1rem;
  padding: 0;
  color: var(--zb-text, #f8fafc);
  background: rgba(2, 6, 23, 0.98);
}

.zb-image-lightbox::backdrop { background: rgba(2, 6, 23, 0.9); }
.zb-image-lightbox__panel { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 3.5rem 1rem 1rem; }
.zb-image-lightbox__image { display: block; max-width: 100%; max-height: calc(94vh - 7rem); object-fit: contain; }
.zb-image-lightbox__close { position: absolute; top: 0.75rem; right: 0.75rem; border: 1px solid rgba(148, 163, 184, 0.55); border-radius: 999px; padding: 0.5rem 0.85rem; color: #f8fafc; background: rgba(15, 23, 42, 0.92); font-weight: 800; cursor: pointer; }
.zb-image-lightbox__caption { margin: 0.75rem 0 0; color: var(--zb-muted-strong, #cbd5e1); text-align: center; }
