:root {
  /* Vizix "Back end" console identity — decoded from "Vizix Back end.make"
   * (Figma Make export, 2026-06-05). MuseoModerno display + Montserrat body,
   * #14b8a6 teal on #0a0a0a, grid + radial-glow background (no X watermark).
   * Legacy token NAMES are kept and repointed so unconverted screens shift
   * to the new palette safely; see docs/plans/reskin_v2_make_console.md. */
  --bg: #0a0a0a;
  --panel: #0d0d0d;
  /* Popovers / custom dropdown panels (must be opaque) */
  --surface: #0d0d0d;
  --panel2: #0f0f0f;
  --text: #fafafa;
  --muted: #a1a1a1;
  --muted2: #737373;
  --border: #1f1f1f;
  --border2: #262626;
  --primary: #14b8a6;
  --primary2: #2dd4bf;
  --assistant-surface: #0d0d0d;
  --danger: #f87171;
  --success: #34d399;
  --warning: #f59e0b;
  --accent-rgb: 20, 184, 166;
  --teal-panel-bg: rgba(20, 184, 166, 0.1);
  --teal-panel-border: rgba(20, 184, 166, 0.4);
  --radius-pill: 999px;
  --radius-card: 16px;
  --easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --easing-emphasis: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sidebar-width: 280px;

  /* New-identity brand tokens (reused per-screen as they are reskinned). */
  --brand-ink: #ffffff;
  --brand-teal-bright: #2dd4bf;
  --brand-teal: #14b8a6;
  --brand-teal-deep: #0f766e;
  --brand-teal-dark: #134e4a;
  --brand-surface: #0a0a0a;
  --brand-green: #34d399;
  /* Text ramp + surfaces used by the new console component classes */
  --ink-2: #e5e5e5;
  --ink-3: #d4d4d4;
  --muted3: #525252;
  --teal-hover: #13a896;
  --eyebrow-track: 0.16em;
  --font-brand: "MuseoModerno", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body), "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg);
  /* Faint 140px grid motif (console identity) — kept very subtle to match
     Figma (#1f1f1f lines at ~0.18 opacity), not the heavy graph-paper look. */
  background-image: linear-gradient(rgba(31, 31, 31, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.18) 1px, transparent 1px);
  background-size: 140px 140px;
  background-attachment: fixed;
  color: var(--text);
}

/* Two fixed teal radial glows behind everything (replaces the X watermark). */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(160px);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 70%);
}

body::before {
  top: -220px;
  left: -160px;
}

body::after {
  right: -200px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 70%);
}

/* Keep app chrome above the glow layer */
.app,
#vizixMarketingRoot,
#brandGuard {
  position: relative;
  z-index: 1;
}

body.appChatFullscreen {
  overflow: hidden;
}

body.chatSidebarResizing {
  cursor: col-resize !important;
  user-select: none;
}

body.appChatFullscreen .app {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.appChatFullscreen .topbar {
  display: none;
}

body.appChatFullscreen .content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.topbar__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.topbarLogo {
  display: block;
  width: auto;
}

.topbar__title .topbarLogo {
  height: 26px;
}

.chatSidebar__logo .topbarLogo {
  height: 22px;
}

.topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.topbar__hint {
  color: var(--muted);
  font-size: 13px;
  max-width: min(520px, 100%);
  text-align: right;
  min-width: 0;
}

.topbar__teamWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.topbar__teamLabel {
  font-size: 12px;
  white-space: nowrap;
}

.topbar__teamSelect {
  max-width: min(220px, 38vw);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

/* ---- Account full screen (screen6): chat-style shell, sidebar = nav ---- */
.accountShell .accountScreenSidebar__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 10px;
}

.accountNavBtn.chatSidebar__item {
  width: 100%;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
}

.accountNavBtn.chatSidebar__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Console nav: grouped sections with section titles + icons (Figma console). */
.accountNavGroup {
  margin-bottom: 12px;
}
.accountNavGroup:last-child {
  margin-bottom: 0;
}
.accountNavGroup__label {
  padding: 4px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
}
/* Hide a whole group when permission-gating leaves it with no visible items. */
.accountNavGroup:not(:has(> .accountNavBtn:not(.hidden))) {
  display: none;
}
.accountNavBtn__icon {
  flex-shrink: 0;
  color: var(--muted2);
  transition: color 0.15s ease;
}
.accountNavBtn.chatSidebar__item:hover .accountNavBtn__icon {
  color: var(--text);
}
.accountNavBtn.chatSidebar__item--active .accountNavBtn__icon {
  color: var(--primary);
}
/* Figma: active nav item carries a small glowing teal dot on the trailing edge. */
.accountNavBtn.chatSidebar__item--active::after {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* Console top bar: breadcrumb + persistent "New brand" action (Figma). */
.accountTopbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
}
.accountTopbar__crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.accountTopbar__crumbGroup {
  color: var(--muted2);
}
.accountTopbar__crumbSep {
  color: var(--border-strong, #404040);
}
.accountTopbar__crumbItem {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accountTopbar__newBrand {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #0a0a0a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.accountTopbar__newBrand:hover {
  background: var(--primary2, #13a896);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.5);
}

.accountMain .accountMain__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
}

.accountMain__scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 24px;
  max-width: 920px;
}

.accountMain__msg {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 22px 18px;
  border-top: 1px solid var(--border);
  max-width: 920px;
}

.accountScreen__panel .accountModal__sub:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .accountShell {
    flex-direction: column;
  }

  .accountShell .chatSidebar {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    transform: none !important;
    transition: none;
    box-shadow: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .accountShell .chatSidebar.isOpen {
    transform: none;
  }

  .accountScreenSidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow-y: visible;
    padding: 6px 8px 10px;
  }

  .accountNavBtn.chatSidebar__item {
    width: auto;
    white-space: nowrap;
  }

  /* Collapse the section grouping into a flat horizontal scroller on mobile. */
  .accountNavGroup {
    display: contents;
  }
  .accountNavGroup__label {
    display: none;
  }

  .accountTopbar {
    padding: 10px 14px;
  }
}

.accountAvatarBtn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #3a4a6e, #2a3550);
  color: #e8ecf7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.accountAvatarBtn:hover {
  filter: brightness(1.08);
}

.accountAvatarBtn:focus-visible {
  outline: 2px solid #6b8cff;
  outline-offset: 2px;
}

.accountAvatarBtn__letters {
  pointer-events: none;
  line-height: 1;
}

.accountAvatarBtn--inline {
  width: 34px;
  height: 34px;
}

.topbarSignOutBtn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.chatSignOutBtn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  flex-shrink: 0;
}

.chatSidebar__footerBtn--signOut {
  color: #f0b4b4;
}

.accountSessionBar {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.vzxNotifBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #2a3550, #1f2940);
  color: #e8ecf7;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.vzxNotifBtn:hover {
  filter: brightness(1.1);
}

.vzxNotifBtn:focus-visible {
  outline: 2px solid #6b8cff;
  outline-offset: 2px;
}

.vzxNotifBtn--inline {
  height: 34px;
  padding: 0 8px;
  font-size: 0;
  gap: 0;
}

.vzxNotifBtn--inline .vzxNotifBtn__label {
  display: none;
}

.vzxNotifBtn__label {
  line-height: 1;
}

.vzxNotifBtn__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff2d3d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1b2238;
  box-shadow: 0 1px 3px rgba(255, 45, 61, 0.6);
  pointer-events: none;
  animation: vzxNotifBadgePulse 1.6s ease-in-out infinite;
}

@keyframes vzxNotifBadgePulse {
  0%, 100% {
    box-shadow: 0 1px 3px rgba(255, 45, 61, 0.6);
  }
  50% {
    box-shadow: 0 1px 3px rgba(255, 45, 61, 0.6),
      0 0 0 4px rgba(255, 45, 61, 0.18);
  }
}

/* When the badge is pinned inside a non-bell context (e.g. account sidebar
   nav button), keep it inline rather than overlapping the parent. */
.accountNavBtn--withBadge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.accountNavBtn__label {
  flex: 1;
  text-align: left;
}

.accountNavBtn__badge {
  position: static;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.vzxNotifPanel {
  position: fixed;
  top: 64px;
  right: 16px;
  width: min(380px, calc(100vw - 32px));
  max-height: 70vh;
  z-index: 11000;
  background: #1b2238;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vzxNotifPanel.hidden {
  display: none;
}

.vzxNotifPanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.vzxNotifPanel__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #e8ecf7;
}

.vzxNotifPanel__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vzxNotifPanel__clearBtn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.vzxNotifPanel__closeBtn {
  background: none;
  border: none;
  color: #b8c0d6;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}

.vzxNotifPanel__list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.vzxNotifPanel__empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
}

.vzxNotifItem {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: flex-start;
}

.vzxNotifItem:last-child {
  border-bottom: none;
}

.vzxNotifItem__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.vzxNotifItem__icon--running {
  color: #6b8cff;
}

.vzxNotifItem__icon--success {
  color: #4ec07a;
}

.vzxNotifItem__icon--error {
  color: #e85a5a;
}

.vzxNotifItem__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(107, 140, 255, 0.3);
  border-top-color: #6b8cff;
  animation: vzxNotifSpin 0.9s linear infinite;
}

@keyframes vzxNotifSpin {
  to {
    transform: rotate(360deg);
  }
}

.vzxNotifItem__main {
  min-width: 0;
}

.vzxNotifItem__title {
  font-size: 13px;
  font-weight: 600;
  color: #e8ecf7;
  margin: 0 0 2px 0;
  overflow-wrap: anywhere;
}

.vzxNotifItem__msg {
  font-size: 12px;
  color: #b8c0d6;
  margin: 0;
  overflow-wrap: anywhere;
}

.vzxNotifItem__time {
  font-size: 11px;
  color: #818ca6;
  margin-top: 4px;
}

.vzxNotifItem__dismiss {
  background: none;
  border: none;
  color: #818ca6;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}

.vzxNotifItem__dismiss:hover {
  color: #e8ecf7;
}

.vzxNotifItem__icon--invite {
  color: #f1c453;
}

.vzxNotifItem__icon--role,
.vzxNotifItem__icon--perms,
.vzxNotifItem__icon--added,
.vzxNotifItem__icon--removed,
.vzxNotifItem__icon--info {
  color: #6b8cff;
}

.vzxNotifItem--unread {
  background: rgba(107, 140, 255, 0.07);
}

.vzxNotifItem--unread .vzxNotifItem__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b8cff;
  margin-right: 6px;
  vertical-align: middle;
}

.vzxNotifItem__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vzxNotifItem__btn {
  font-size: 12px;
  padding: 4px 10px;
}

.vzxNotifItem__btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* Account screen — Companies & teams summary */
.vzxCompaniesList {
  margin-top: 10px;
  margin-bottom: 4px;
}

.vzxCompanyCard {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.02);
}

.vzxCompanyCard__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.vzxCompanyCard__name {
  font-weight: 600;
  color: #e8ecf7;
}

.vzxCompanyCard__teams {
  margin: 6px 0 0 18px;
  padding: 0;
  font-size: 12.5px;
}

.vzxCompanyCard__teams li {
  margin: 2px 0;
}

.vzxCompanyCard__empty {
  margin-top: 4px;
  font-size: 12.5px;
}

.vzxBadge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vzxBadge--active {
  background: rgba(78, 192, 122, 0.22);
  color: #8be0a8;
}

.accountCompaniesList {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 14px;
}

.accountCompanyRow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13.5px;
  line-height: 1.5;
}

.accountCompanyRow__name {
  font-weight: 600;
}

.accountModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.accountModal.hidden {
  display: none !important;
}

.shareChatModal__panel {
  max-width: 520px;
  max-height: min(90vh, 420px);
}

.shareChatModal__body {
  padding-top: 4px;
}

.shareChatModal__hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.shareChatModal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.shareChatModal__input {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 13px;
}

.shareChatModal__copyBtn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.accountModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
}

.accountModal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  max-height: min(90vh, 720px);
  overflow: auto;
  background: rgba(22, 30, 52, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  animation: modalIn 180ms var(--easing-standard);
}

.accountModal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.accountModal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.accountModal__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.accountModal__close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.accountModal__body {
  padding: 12px 18px 20px;
}

.accountModal__section {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(13, 13, 13, 0.6);
}

.accountModal__section > * {
  position: relative;
  z-index: 1;
}

/* Add brand: one grouped “Brand source” (link / notes + file; server picks file when both) */
.brandSourceField {
  display: block;
}
.brandSourceField__help {
  display: block;
  margin-bottom: 8px;
  line-height: 1.5;
}
.brandSource__box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.28);
}
.brandSource__text {
  width: 100%;
  box-sizing: border-box;
}
.brandSource__fileLine {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brandSource__file {
  width: 100%;
  max-width: min(100%, 420px);
  font-size: 13px;
}
.brandSource__fileHint {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.accountModal__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 650;
}

.accountModal__email {
  margin: 0 0 16px;
  font-size: 13px;
}

.accountModal__sub--small {
  font-size: 0.92rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  opacity: 0.92;
}

.accountImagePreview {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  margin: 0.25rem 0 0.45rem;
}

p.accountOrgDisplay.field__control {
  margin: 0;
  cursor: default;
  background: rgba(11, 15, 25, 0.35);
}

.countryChipInput {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.countryChipInput__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.countryChipInput__chips:empty {
  display: none;
}

.countryChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 10px;
  background: rgba(56, 120, 255, 0.18);
  border: 1px solid rgba(93, 143, 255, 0.45);
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text, #e8eaed);
}

.countryChip__close {
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.85;
}

.countryChip__close:hover {
  opacity: 1;
}

.countryPick {
  position: relative;
  width: 100%;
}

.countryPick__toggle {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.countryPick__panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: min(320px, 55vh);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.countryPick__search {
  width: 100%;
}

.countryPick__list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 2px;
}

.countryPick__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.countryPick__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.countryPick__row input {
  margin-top: 2px;
  flex-shrink: 0;
}

.regulatoryDiscovery {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.regulatoryDiscovery__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  border-left: 2px solid rgba(93, 143, 255, 0.25);
}

.regulatoryDiscovery__subs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.regulatoryDiscovery__subsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.regulatoryDiscovery__subOpt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text, #e8eaed);
}

.regulatoryDiscovery__subOpt input {
  margin: 0;
}

.regulatoryJobs {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---- Phase 3: Teams & members and Dashboard panels --------------------- */
.wsTeamsList {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wsTeamsBanner {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(93, 143, 255, 0.1);
  border: 1px solid rgba(93, 143, 255, 0.25);
  margin-bottom: 0.75rem;
  font-size: 12.5px;
  color: rgba(200, 215, 255, 0.95);
}

.wsTeamCard {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wsTeamCard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wsTeamCard__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text, #f1f4fa);
}

.wsTeamCard__meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.wsTeamCard__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wsTeamCard__section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.wsTeamCard__sectionTitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.wsTeamMembersTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.wsTeamMembersTable th,
.wsTeamMembersTable td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.wsTeamMembersTable th {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 11px;
}

.wsTeamMembersTable td.wsMemEmail {
  word-break: break-all;
  max-width: 220px;
}

.wsTeamMembersTable__emptyRow td {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.wsTeamMembersTable__row--pending td {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.wsTeamMembersTable__row--pending td:nth-child(3) {
  color: rgba(255, 200, 120, 0.95);
  font-style: normal;
  font-weight: 500;
}

.wsTeamsNewName {
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

.wsInviteRow {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.wsInviteRow .field {
  min-width: 180px;
}

.wsInviteBox {
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: 8px;
  font-size: 12.5px;
  word-break: break-all;
}

.wsDashboardFilters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.wsDashboardFilters .field {
  margin: 0;
  min-width: 180px;
}

.wsDashboardContent {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wsStatGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.wsStatCard {
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.wsStatCard__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wsStatCard__value {
  margin-top: 0.25rem;
  font-size: 18px;
  font-weight: 600;
}

.wsTeamBrandsModal__panel {
  width: min(640px, 92vw);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
}

.wsCreateWizard__panel {
  width: min(700px, 94vw);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
}

.wsCreateWizard__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.wsCreateWizard__steps {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.wsCreateWizard__step {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wsCreateWizard__actions {
  margin-top: 0.25rem;
}

.wsTeamBrandsModal__panel .accountModal__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
}

.wsTeamBrandsToolbar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.wsTeamBrandsFilter {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}

.wsTeamBrandsList {
  flex: 1;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.wsTeamBrandsList__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.wsTeamBrandsList__row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wsTeamBrandsList__row input {
  margin: 0;
}

.wsTeamBrandsList__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wsTeamBrandsList__key {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wsTeamBrandsList__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 1rem;
}

.legalGuidelinesAutoRow {
  display: flex;
  flex-direction: row !important;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.legalGuidelinesIntervalValue {
  max-width: 100px;
}

.legalGuidelinesIntervalUnit {
  max-width: 160px;
}

.regulatoryJob {
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 12.5px;
}

.regulatoryJob__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
}

.regulatoryJob__status {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(93, 143, 255, 0.15);
  color: rgba(175, 198, 255, 0.95);
  border: 1px solid rgba(93, 143, 255, 0.3);
}

.regulatoryJob__status--running {
  background: rgba(255, 196, 0, 0.12);
  color: rgba(255, 213, 110, 0.95);
  border-color: rgba(255, 196, 0, 0.3);
}

.regulatoryJob__status--done {
  background: rgba(52, 199, 89, 0.15);
  color: rgba(127, 230, 160, 0.95);
  border-color: rgba(52, 199, 89, 0.3);
}

.regulatoryJob__status--error {
  background: rgba(255, 69, 58, 0.12);
  color: rgba(255, 150, 140, 0.95);
  border-color: rgba(255, 69, 58, 0.3);
}

.regulatoryJob__body {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.regulatoryJob__juris {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--muted, #9fa2ad);
}

.regulatoryJob__jurisName {
  color: var(--text, #e8eaed);
}

.regulatoryJob__progressBar {
  flex: 0 0 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  align-self: center;
}

.regulatoryJob__progressFill {
  height: 100%;
  background: rgba(93, 143, 255, 0.7);
  transition: width 0.3s ease;
}

.regulatoryJob__retryWrap {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.regulatoryJob__retryBtn {
  align-self: flex-start;
  font-size: 12px;
  padding: 0.35rem 0.75rem;
}

.field__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text, #e8eaed);
  cursor: pointer;
}

.field__checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.accountModal__hr--compact {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-direction: row;
}

.field--checkbox .field__label {
  margin: 0;
  font-weight: 400;
  line-height: 1.35;
}

.field--checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
}

.field--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.field--row .field__control {
  flex: 1;
  min-width: 12rem;
}

.accountModal__sub {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.accountModal__hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.accountModal__loading {
  padding: 24px 0;
  text-align: center;
}

.accountModal__msg {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 1.2em;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.accountModal__msg[data-state="success"] {
  color: var(--success);
  background: rgba(129, 201, 149, 0.1);
  border-color: rgba(129, 201, 149, 0.35);
}

.accountModal__msg[data-state="error"] {
  color: var(--danger);
  background: rgba(242, 139, 130, 0.1);
  border-color: rgba(242, 139, 130, 0.35);
}

.accountModal__dangerZone {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 139, 130, 0.35);
  border-radius: 12px;
  background: rgba(242, 139, 130, 0.06);
}

.accountModal__dangerHint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.btn-danger {
  border: 1px solid rgba(242, 139, 130, 0.55);
  background: rgba(242, 139, 130, 0.12);
  color: #f9dedb;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-danger:hover {
  background: rgba(242, 139, 130, 0.22);
  border-color: rgba(242, 139, 130, 0.75);
}

.accountModal__msg[data-state="info"] {
  color: var(--muted);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.accountModal__usageLine {
  margin: 0 0 10px;
  font-size: 13px;
}

.accountModal__usageLine code {
  font-size: 12px;
}

.accountTeamsSummary {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

.accountTeamsSummary > div + div {
  margin-top: 4px;
}

.accountUsageControls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.accountUsageField {
  flex: 1 1 140px;
  min-width: 120px;
  margin-bottom: 0;
}

.accountUsageTotals {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.accountUsageKpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.usageKpi {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 160ms var(--easing-standard), border-color 160ms var(--easing-standard);
}

.usageKpi:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.32);
}

.usageKpi__label {
  display: block;
  color: var(--muted2);
  font-size: 11px;
  margin-bottom: 4px;
}

.usageKpi__value {
  font-size: 16px;
  font-weight: 700;
}

.accountUsageCharts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.usageChartCard {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  transition: border-color 160ms var(--easing-standard), background 160ms var(--easing-standard);
}

.usageChartCard:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.usageChartCard__title {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.usageChartSvg {
  width: 100%;
  height: 150px;
  display: block;
}

.accountUsageTableWrap {
  overflow-x: auto;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.accountUsageTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.accountUsageTable th,
.accountUsageTable td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.accountUsageTable th {
  font-weight: 650;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.15);
}

.accountUsageTable tr:last-child td {
  border-bottom: none;
}

.content {
  position: relative;
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  backdrop-filter: blur(8px);
  /* Allow inner flex chat layout to shrink / scroll instead of covering the composer */
  min-height: 0;
}

.content > * {
  position: relative;
  z-index: 1;
}

.screen__title {
  margin: 0 0 10px 0;
  font-size: 22px;
}

.catalogUserJwtNote {
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
  margin: 0 0 12px 0;
}

.accessRestricted {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.accessRestricted--inline {
  margin: 8px 0 20px;
}

.accessRestricted__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.accessRestricted__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.accessRestricted__body {
  margin: 0 auto 18px;
  max-width: 36em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.accessRestricted__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.screen2__brandGridWrap .accessRestricted {
  max-width: 420px;
  margin: 12px auto 0;
}

.screen2__brandGridWrap .grid.hidden + .accessRestricted,
.screen2__brandGridWrap .accessRestricted:not(.hidden) ~ .grid.hidden {
  /* grid hidden when empty state shown */
}

.hidden {
  display: none !important;
}

/* ===== Login / signup = full-bleed dark two-column console (Figma Make "Vizix Back end"). ===== */

/* Full-bleed: drop the topbar + content-card chrome while the login is shown. */
body.screen1Active .topbar {
  display: none;
}
body.screen1Active .app {
  max-width: none;
  margin: 0;
  padding: 0;
}
body.screen1Active .content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  min-height: 100vh;
}

.authLayout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 24px;
}

@media (min-width: 960px) {
  .authLayout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* Left brand panel (decorative; hidden on narrow viewports) */
.authBrand {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 520px;
}
@media (min-width: 960px) {
  .authBrand {
    display: flex;
  }
}

.authBrand__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.authBrand__logo {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1;
  color: #fff;
}

.authBrand__logo--mobile {
  display: block;
  text-align: center;
  margin-bottom: 8px;
}
@media (min-width: 960px) {
  .authBrand__logo--mobile {
    display: none;
  }
}

.authBrand__pill {
  border: 1px solid rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.authBrand__eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-track);
  color: var(--primary);
}

.authBrand__headline {
  margin: 12px 0 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
}
.authBrand__headline span {
  color: var(--primary);
}

.authBrand__lede {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 30rem;
}

.authBrand__bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.authBrand__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.authBrand__bullets svg {
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--primary);
}

.authBrand__foot {
  font-size: 11px;
  color: var(--muted3);
}
.authBrand__foot span {
  color: var(--muted2);
}

/* Right column */
.authCardCol {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.authCardCol .actions {
  display: block;
}

.authPanel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(6px);
  padding: 32px;
  font-family: var(--font-body);
  color: var(--text);
}

.authPanel__glow {
  position: absolute;
  top: -96px;
  right: -96px;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  filter: blur(100px);
  pointer-events: none;
}

.authPanel__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.authTabs {
  display: flex;
  gap: 22px;
  margin: 0 0 18px;
}

.authTabs__tab {
  position: relative;
  border: none;
  background: none;
  padding: 2px 0 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted2);
  cursor: pointer;
}

.authTabs__tab.is-active {
  color: #fff;
}

.authTabs__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.authPanel__title {
  margin: 4px 0 6px;
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #fff;
  text-align: left;
}

.authPanel__sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Fields */
.authField {
  display: block;
  margin: 0 0 16px;
}
.authFieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.authField__labelRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.authField__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.authField__labelRow .authField__label {
  margin-bottom: 0;
}
.authField__hint {
  font-weight: 400;
  color: var(--muted2);
  font-size: 11px;
}
.authField__wrap {
  position: relative;
  display: block;
}
.authField__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted3);
  pointer-events: none;
}
.authField__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--bg);
  color: #fff;
  font: inherit;
  font-size: 13px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.authField__icon ~ .authField__input {
  padding-left: 36px;
}
.authField__input--withEye {
  padding-right: 40px;
}
.authField__input::placeholder {
  color: var(--muted3);
}
.authField__input:focus {
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}
.authField__input--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.authField__eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 4px;
  border-radius: 6px;
  color: var(--muted2);
  cursor: pointer;
  line-height: 0;
}
.authField__eye:hover,
.authField__eye.is-on {
  color: var(--primary);
}

.authForgotLink {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  color: var(--primary);
}
.authForgotLink:hover {
  color: #fff;
}

/* Remember-me checkbox */
.authCheck {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 4px 0;
}
.authCheck input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.authCheck__box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--border2);
  border-radius: 4px;
  background: var(--bg);
  color: var(--bg);
  transition: background 0.15s, border-color 0.15s;
}
.authCheck__box svg {
  width: 10px;
  height: 10px;
  opacity: 0;
}
.authCheck input:checked + .authCheck__box {
  background: var(--primary);
  border-color: var(--primary);
}
.authCheck input:checked + .authCheck__box svg {
  opacity: 1;
}
.authCheck__label {
  font-size: 13px;
  color: #fff;
}
.authCheck__hint {
  font-size: 11px;
  color: var(--muted2);
}

/* Buttons */
.authSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.35);
  transition: background 0.15s;
}
.authSubmit:hover {
  background: var(--teal-hover);
}
.authSubmit:disabled {
  opacity: 0.6;
  cursor: default;
}
.authBtnGhost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.authBtnGhost:hover {
  border-color: rgba(20, 184, 166, 0.6);
  color: var(--primary);
}

.authHowItWorks {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.authHowItWorks:hover {
  color: #fff;
}

.authSignup__intro {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.authCreate {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
}
.authCreate__link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--primary);
}
.authCreate__link:hover {
  color: #fff;
}

/* Returning-session helpers live below the card; centre them under it. */
.authCardCol .catalogUserJwtNote,
.authCardCol .firstTimeBanner,
.authCardCol .resourceLinks,
.authCardCol .screen1ContinueWrap,
.authCardCol .error {
  margin-top: 16px;
}

/* The pre-redesign welcome heading/intro are superseded by the card heading +
   the left brand panel; kept in the DOM only for app.js state toggling. */
.screen1__legacyHead {
  display: none !important;
}

.authPanel__msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
  white-space: pre-wrap;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.authPanel__msg[data-state="success"] {
  color: var(--success);
  background: rgba(129, 201, 149, 0.1);
  border-color: rgba(129, 201, 149, 0.35);
}

.authPanel__msg[data-state="error"] {
  color: var(--danger);
  background: rgba(242, 139, 130, 0.1);
  border-color: rgba(242, 139, 130, 0.35);
}

.authPanel__msg[data-state="info"] {
  color: var(--muted);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.authSessionBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.45);
  margin-bottom: 14px;
}

.authSessionBar__text {
  font-size: 14px;
  color: var(--muted);
}

.authPwHint {
  margin: -4px 0 8px;
  font-size: 12px;
  color: var(--muted2);
  min-height: 16px;
}

.field__passwordWrap {
  position: relative;
  width: 100%;
}

.field__passwordWrap .field__control {
  padding-right: 44px;
}

.field__passwordToggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted2);
  cursor: pointer;
  transform: translateY(-50%);
}

.field__passwordToggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.field__passwordToggle:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 1px;
}

.field__control--multi {
  min-height: 160px;
  font-size: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  color: var(--muted);
}

.field__hint {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  opacity: 0.85;
}

.field__help {
  font-size: 12px;
  color: var(--muted2);
  margin-top: -2px;
}

.field__control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 140ms var(--easing-standard), box-shadow 140ms var(--easing-standard),
    background 140ms var(--easing-standard);
}

.field__control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  border: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.35);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: transform 130ms var(--easing-emphasis), border-color 130ms var(--easing-standard),
    background 130ms var(--easing-standard), box-shadow 130ms var(--easing-standard);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  border-color: transparent;
  color: #04201e;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--primary);
}

.btn-secondary:hover,
.btn:not(:disabled):hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.78);
  outline-offset: 2px;
}

.error {
  margin-top: 12px;
  color: var(--danger);
  min-height: 18px;
  font-size: 13px;
  white-space: pre-wrap;
}

/* Guideline required hint on screen 3 (warning, not a hard error) */
.error.is-warning {
  color: var(--text);
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

.brandCard {
  appearance: none;
  text-align: left;
  width: 100%;
  color: var(--brand-ink);
  font-family: var(--font-brand);
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.8);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 158px;
  cursor: pointer;
  transition: transform 160ms var(--easing-emphasis), border-color 160ms var(--easing-standard),
    background 160ms var(--easing-standard), box-shadow 160ms var(--easing-standard);
}

.brandCard:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.18);
}

/* Dashboard: the brand card the user has picked for Step 2 / project filter. */
.brandCard--selected {
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.22);
}

.brandCard--selected .brandCard__body {
  background: rgba(20, 184, 166, 0.08);
}

.brandCard__selectedBadge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--primary);
  border: 1px solid rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.15);
  backdrop-filter: blur(2px);
}

/* Gradient banner (teal → navy), tinted with the brand primary_color when set. */
.brandCard__banner {
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: 80px;
  background: linear-gradient(
    135deg,
    rgba(var(--brand-banner-rgb, 48, 167, 165), 0.92) 0%,
    #050708 100%
  );
}

/* When a brand logo is available it fills the banner on a light hue-tinted
 * backdrop (matches the .brandCard__icon--logo treatment so dark marks stay
 * legible); without a logo the gradient above is shown instead. */
.brandCard__banner--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  background: linear-gradient(
    145deg,
    hsla(var(--brand-hue, 210), 42%, 92%, 0.96),
    hsla(calc(var(--brand-hue, 210) + 22), 36%, 84%, 0.93)
  );
}

.brandCard__banner--logo .brandCard__logo {
  max-height: 76px;
}

.brandCard__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--primary);
  border: 1px solid rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.12);
  backdrop-filter: blur(2px);
}

.brandCard__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
  background: rgba(7, 11, 17, 0.55);
}

.brandCard:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.65);
  outline-offset: 2px;
}

.brandCard__name {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-ink);
  margin-bottom: 2px;
}

.brandCard__metaLine {
  font-family: var(--font-body);
  color: rgba(255, 251, 253, 0.72);
  font-size: 14px;
  line-height: 1.4;
}

.brandCard__members {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-body);
  color: rgba(255, 251, 253, 0.78);
  font-size: 13px;
}

.brandCard__membersIcon {
  display: inline-flex;
  color: var(--brand-teal-bright);
}

/*
 * Brand logo tiles use self-hosted assets under /brands/ (see scripts/normalize_brand_logos.py).
 * Wordmarks: neutral panel in SVG (256×80) or transparent vector on the light gradient below.
 * Raster marks: WebP, longest edge ≤192px (Jameson); Sun Pharma height ≤120px.
 */
.brandCard__icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    145deg,
    hsl(var(--brand-hue, 210), 52%, 42%),
    hsl(calc(var(--brand-hue, 210) + 28), 45%, 28%)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brandCard__icon--emoji {
  font-size: 40px;
  font-weight: 400;
  text-shadow: none;
}

.brandCard__icon--logo {
  padding: 10px;
  box-sizing: border-box;
  background: linear-gradient(
    145deg,
    hsla(var(--brand-hue, 210), 42%, 92%, 0.96),
    hsla(calc(var(--brand-hue, 210) + 22), 36%, 84%, 0.93)
  );
  color: inherit;
  text-shadow: none;
}

.brandVisualLogo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.btn--compact {
  padding: 6px 12px;
  font-size: 13px;
}

/* Screen 1: first-time + resource links */
.firstTimeBanner {
  margin: 14px 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(253, 214, 99, 0.35);
  background: linear-gradient(135deg, rgba(253, 214, 99, 0.12), rgba(var(--accent-rgb), 0.08));
}

.firstTimeBanner__inner {
  position: relative;
  padding-right: 32px;
}

.firstTimeBanner__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.firstTimeBanner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.firstTimeBanner__dismiss {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.firstTimeBanner__dismiss:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.resourceLinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 16px 0 8px;
}

.resourceLinks--inline {
  margin: 8px 0 14px;
}

.resourceLinks__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 100%;
}

@media (min-width: 520px) {
  .resourceLinks__label {
    width: auto;
    margin-right: 4px;
  }
}

.linkChip {
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.35);
  color: var(--primary2);
  cursor: pointer;
  transition: border-color 160ms var(--easing-standard), background 160ms var(--easing-standard);
}

.linkChip:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
}

/* =========================================================================
 * Dashboard (screen 2) — logged-in console home. Ports the Figma "User
 * dashboard": slim breadcrumb topbar, WORKSPACE header, then three steps
 * (choose brand / start project / in-flight projects). All classes are
 * `dash__*` so they never collide with the shared marketing / chat styles.
 * ========================================================================= */
.dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 24px;
  font-family: var(--font-body);
  color: var(--brand-ink);
}

/* --- Console topbar children (breadcrumb + actions). The dashboard now reuses
   the shared `.accountTopbar` bar (#screen6 shell); these child classes style
   the breadcrumb + action cluster inside it. --- */
.dashTopbar__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted2);
}

.dashTopbar__crumbHome {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--muted2);
  cursor: pointer;
}

.dashTopbar__crumbHome:hover {
  color: var(--brand-ink);
}

.dashTopbar__crumbSep {
  color: #404040;
}

.dashTopbar__crumbItem {
  color: var(--brand-ink);
}

.dashTopbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.dashTopbar__help {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  cursor: pointer;
}

.dashTopbar__help:hover {
  color: var(--brand-teal-bright, var(--primary));
}

.dashTopbar__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.8);
  color: #e8eaed;
  cursor: pointer;
}

.dashTopbar__account:hover {
  border-color: rgba(20, 184, 166, 0.5);
  color: var(--brand-teal-bright, var(--primary));
}

.dashTopbar__account .vizixMarketing__avatar {
  display: inline-flex;
}

/* --- Shared dashboard buttons --- */
.dash__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-control, 10px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms var(--easing-standard), background 160ms var(--easing-standard),
    color 160ms var(--easing-standard);
}

.dash__btn--teal {
  color: #0a0a0a;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.35);
}

.dash__btn--teal:hover {
  background: var(--primary2, #13a896);
}

.dash__btn--outline {
  color: var(--brand-ink);
  background: transparent;
  border: 1px solid #262626;
}

.dash__btn--outline:hover {
  border-color: rgba(20, 184, 166, 0.6);
  color: var(--brand-teal-bright, var(--primary));
}

/* --- WORKSPACE header --- */
.dash__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.dash__headerMain {
  max-width: 640px;
  min-width: 0;
}

.dash__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.dash__title {
  margin: 8px 0 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--brand-ink);
}

.dash__welcomeName {
  color: var(--primary);
}

.dash__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.dash__headerActions {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Section scaffolding (Step 1 / 2 / 3) --- */
.dash__section {
  margin-top: 44px;
}

.dash__section:first-of-type {
  margin-top: 0;
}

.dash__sectionHead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash__h2 {
  margin: 4px 0 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--brand-ink);
}

.dash__teal {
  color: var(--primary);
}

.dash__count {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted2);
}

/* --- Step 2: action tiles --- */
.dash__tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash__tile {
  --dash-tone: var(--primary);
  --dash-tone-soft: rgba(20, 184, 166, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.8);
  border-radius: var(--radius-card);
  padding: 20px;
  color: var(--brand-ink);
  transition: border-color 160ms var(--easing-standard), transform 160ms var(--easing-emphasis);
}

.dash__tile--teal {
  --dash-tone: #14b8a6;
  --dash-tone-soft: rgba(20, 184, 166, 0.12);
}

.dash__tile--violet {
  --dash-tone: #a78bfa;
  --dash-tone-soft: rgba(167, 139, 250, 0.12);
}

.dash__tile--sky {
  --dash-tone: #38bdf8;
  --dash-tone-soft: rgba(56, 189, 248, 0.12);
}

.dash__tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--dash-tone) 50%, transparent);
}

.dash__tileGlow {
  position: absolute;
  top: -64px;
  right: -64px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--dash-tone);
  opacity: 0;
  filter: blur(60px);
  transition: opacity 200ms var(--easing-standard);
  pointer-events: none;
}

.dash__tile:hover .dash__tileGlow {
  opacity: 0.28;
}

.dash__tileHead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash__tileIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control, 10px);
  background: var(--dash-tone-soft);
  color: var(--dash-tone);
  flex-shrink: 0;
}

.dash__tileHeadText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash__tileTagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dash-tone);
}

.dash__tileTitle {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--brand-ink);
}

.dash__tileDesc {
  position: relative;
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.dash__tileBullets {
  position: relative;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash__tileBullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #d4d4d4;
}

.dash__tileCheck {
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--dash-tone);
}

.dash__tileStart {
  position: relative;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-tone);
}

.dash__tile:hover .dash__tileArrow {
  transform: translateX(2px);
}

.dash__tileArrow {
  transition: transform 160ms var(--easing-emphasis);
}

/* --- Step 3: filters, stats, table --- */
.dash__filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control, 10px);
  background: rgba(13, 13, 13, 0.8);
}

.dash__filterPill {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: background 140ms var(--easing-standard), color 140ms var(--easing-standard);
}

.dash__filterPill:hover {
  color: var(--brand-ink);
}

.dash__filterPill.is-active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary);
}

.dash__stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.dash__stat {
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.8);
  border-radius: 14px;
  padding: 12px 16px;
}

.dash__statLabel {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.dash__statValueRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.dash__statValue {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--brand-ink);
}

.dash__statDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  align-self: center;
}

.dash__statDot--teal {
  background: #14b8a6;
  box-shadow: 0 0 8px #14b8a6;
}

.dash__statDot--violet {
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
}

.dash__statDot--amber {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.dash__statDot--sky {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.dash__tableCard {
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.8);
  border-radius: var(--radius-card);
}

.dash__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}

.dash__table thead {
  background: #0a0a0a;
}

.dash__table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
}

.dash__table td {
  padding: 12px 16px;
  border-top: 1px solid #171717;
  vertical-align: middle;
}

.dash__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dash__projectCell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash__projectAvatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: #0a0a0a;
  overflow: hidden;
  background: linear-gradient(145deg, hsl(var(--brand-hue, 174), 52%, 46%), hsl(calc(var(--brand-hue, 174) + 28), 45%, 30%));
}

.dash__projectAvatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: hsla(var(--brand-hue, 174), 42%, 92%, 0.96);
}

.dash__projectTitle {
  color: var(--brand-ink);
}

.dash__projectBrand {
  font-size: 11px;
  color: var(--muted2);
}

.dash__typeChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  border: 1px solid var(--dash-tone, var(--primary));
  color: var(--dash-tone, var(--primary));
  background: color-mix(in srgb, var(--dash-tone, var(--primary)) 8%, transparent);
}

.dash__typeChip--teal {
  --dash-tone: #14b8a6;
}

.dash__typeChip--violet {
  --dash-tone: #a78bfa;
}

.dash__typeChip--sky {
  --dash-tone: #38bdf8;
}

.dash__statusChip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--dash-tone, #525252);
  color: var(--dash-tone, #a1a1a1);
  background: color-mix(in srgb, var(--dash-tone, #525252) 10%, transparent);
}

.dash__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash__progressTrack {
  position: relative;
  width: 112px;
  height: 6px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--border);
}

.dash__progressFill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: var(--radius-pill);
}

.dash__progressFill--red {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.dash__progressFill--orange {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.dash__progressFill--green {
  background: #14b8a6;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.45);
}

.dash__progressFill--blue {
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.dash__progressLabel {
  font-size: 11px;
  color: var(--muted);
}

.dash__updated {
  color: var(--muted);
  white-space: nowrap;
}

.dash__thAction,
.dash__table td.dash__cellAction {
  text-align: right;
}

.dash__openBtn {
  appearance: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-ink);
  background: transparent;
  border: 1px solid #262626;
  transition: border-color 140ms var(--easing-standard), color 140ms var(--easing-standard);
}

.dash__openBtn:hover {
  border-color: rgba(20, 184, 166, 0.6);
  color: var(--brand-teal-bright, var(--primary));
}

.dash__emptyRow td {
  padding: 40px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
}

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

/* Responsive: tiles + stats collapse on narrow viewports. */
@media (max-width: 900px) {
  .dash__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dash__tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash__title {
    font-size: 28px;
  }
}

.screen2__brandGridWrap {
  flex: 1;
  min-height: 100px;
  padding: 0;
}

/* YOUR BRANDS: full-width, up to 3 columns (Figma 3×2). The layout stays a
 * single stack (above) so the grid is never confined to a narrow column. */
#brandGrid {
  gap: 24px;
}

@media (min-width: 720px) {
  #brandGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The dashboard topbar (`.dashTopbar`) carries screen 2's own breadcrumb +
 * actions, so the global app topbar is hidden while screen 2 is shown. */
body.screen2Active .topbar {
  display: none;
}

/* Shared logged-in header chrome. Screen 2 now uses `.dashTopbar`, but the
 * Brand Guard screen (#brandGuard) still reuses these `.screen2Header*`
 * classes — keep them. */
.screen2Header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: -18px -18px 18px;
  padding: 14px 22px;
  background: var(--brand-surface);
  border-bottom: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  font-family: var(--font-brand);
}

.screen2Header__menuBtn {
  display: inline-flex;
  align-items: center;
  color: #f2f4f5;
}

.screen2Header__nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
}

.screen2Header__navItem {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  padding: 6px 2px;
  cursor: pointer;
}

button.screen2Header__navItem:not(.screen2Header__navItem--active):hover {
  color: var(--brand-teal-bright);
}

.screen2Header__navItem--active {
  color: var(--brand-teal-bright);
}

.screen2Header__navItem--placeholder {
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
}

.screen2Header__account {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.screen2Header__welcomeBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  color: #e8eaed;
  cursor: pointer;
  padding: 2px;
}

.screen2Header__welcome {
  font-size: 14px;
  font-weight: 500;
}

.screen2Header__welcomeBtn:hover .screen2Header__welcome {
  color: var(--brand-teal-bright);
}

/* "Request Access to Brands" pill — reuses .btn .btn-primary, Figma styling. */
.screen2__requestAccessRow {
  display: flex;
  justify-content: center;
  padding: 20px 14px 18px;
}

.screen2__requestAccessBtn.btn-primary {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
  background: linear-gradient(180deg, #5fd6cf, var(--brand-teal));
  border-color: transparent;
  padding: 13px 34px;
  border-radius: var(--radius-pill);
}

/* ===== Screen 2 brand skin — base font/ink/surface for the logged-in home. ===== */
#screen2 {
  font-family: var(--font-brand);
  color: var(--brand-ink);
  background: var(--brand-surface);
}

/* Wider page for the logged-in home so the centered .dash (max 1100px) breathes. */
body.screen2Active .app {
  max-width: 1280px;
}

/* Screen 3 (Guideline & setup) and the chat/CREATE screen share global form
 * and chat components; scope the brand face + headings here so the rest of the
 * app (account modals, etc.) keeps its current type until reskinned. */
#screen3,
#screen4,
#screen5 {
  font-family: var(--font-brand);
}

.screen3Footer {
  margin-top: 40px;
}

#screen3 .screen__title,
#screen4 .chatScreen__title,
#screen4 .screen__title,
#screen5 .screen__title {
  font-family: var(--font-brand);
  color: var(--brand-ink);
}

/* Screen 5: per-brand projects (between the brand grid and Guideline & setup). */
.brandProjects {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.brandProjects__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.brandProjects__title {
  margin: 0;
}

.brandProjects__sub {
  margin: 0 0 20px;
}

.brandProjects__actions {
  margin: 0 0 22px;
}

.brandProjects__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brandProjects__empty {
  margin-top: 8px;
}

.screen2Error {
  margin: 6px 0 10px;
  min-height: 0;
}

.projectCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(30, 31, 32, 0.65);
}

.projectCard--bookmark {
  border-color: rgba(253, 214, 99, 0.35);
}

.projectCard__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.projectCard__main {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.projectCard__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  word-break: break-word;
}

.projectCard__meta {
  font-size: 12px;
  color: var(--muted2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
}

.projectCard__metaSep {
  color: var(--muted2);
}

.projectCard__progressHint {
  font-weight: 650;
}

.projectCard__progressHint--red {
  color: #f87171;
}
.projectCard__progressHint--orange {
  color: #fb923c;
}
.projectCard__progressHint--green {
  color: #4ade80;
}
.projectCard__progressHint--blue {
  color: #60a5fa;
}

.projectCard__violations {
  font-weight: 650;
  color: #fca5a5;
}

.projectCard__violations--clear {
  color: #86efac;
}

.projectCard__progressRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.projectCard__progressLabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progressLights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progressLights__dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(11, 15, 25, 0.5);
  color: var(--muted2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.progressLights__dot:hover {
  transform: scale(1.06);
  border-color: var(--border2);
}

.progressLights__dot--red {
  color: #f87171;
}
.progressLights__dot--orange {
  color: #fb923c;
}
.progressLights__dot--green {
  color: #4ade80;
}
.progressLights__dot--blue {
  color: #60a5fa;
}

.progressLights__dot--red.is-derived,
.progressLights__dot--orange.is-derived,
.progressLights__dot--green.is-derived,
.progressLights__dot--blue.is-derived {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  opacity: 0.95;
}

.progressLights__dot.is-selected {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.45);
  border-color: rgba(var(--accent-rgb), 0.55);
}

.progressLights__dot--auto {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.projectCard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.projectCard__bookmark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.35);
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms var(--easing-standard), border-color 160ms var(--easing-standard);
}

.projectCard__bookmark[aria-pressed="true"] {
  color: var(--warning);
  border-color: rgba(253, 214, 99, 0.45);
}

.projectCard__bookmark:hover {
  color: var(--text);
}

.projectCard__open {
  flex-shrink: 0;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.statusPill--chat {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--primary2);
}
.statusPill--image {
  border-color: rgba(129, 201, 149, 0.35);
  color: var(--success);
}
.statusPill--video {
  border-color: rgba(242, 153, 74, 0.45);
  color: #fb923c;
}
.statusPill--generate {
  border-color: rgba(192, 132, 252, 0.45);
  color: #d8b4fe;
}
.statusPill--wip {
  border-color: rgba(253, 214, 99, 0.45);
  color: var(--warning);
}

.projectCard__details {
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.projectCard__detailsBtn {
  margin-top: 6px;
  font-size: 12px;
}

.helpModal__body {
  max-height: min(70vh, 520px);
  overflow: auto;
}

.helpModal__list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.helpModal__list li {
  margin-bottom: 8px;
}

.helpModal__steps {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.helpModal__steps li {
  margin-bottom: 10px;
}

.helpModal__subhead {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
}

.helpModal__modelHint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

.helpModal__modelGuide {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.helpModal__modelSectionTitle {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary2);
}

.helpModal__modelBlock {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.35);
}

.helpModal__modelName {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}

.helpModal__modelTier {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid var(--border2);
  color: var(--muted2);
}

.helpModal__modelDesc {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.helpModal__modelUsage {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted2);
}

.helpModal__modelUsage::before {
  content: "Best for · ";
  font-weight: 700;
  color: var(--muted);
}

.modelHelpPopover {
  position: fixed;
  z-index: 12000;
  max-width: min(320px, calc(100vw - 24px));
  padding: 0;
  border: none;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.modelHelpPopover.hidden {
  display: none;
}

.modelHelpPopover__inner {
  position: relative;
  padding: 14px 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(22, 26, 34, 0.98);
  color: var(--text);
}

.modelHelpPopover__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modelHelpPopover__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modelHelpPopover__title {
  margin: 0 28px 8px 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--text);
}

.modelHelpPopover__desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.modelHelpPopover__usageLabel {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary2);
}

.modelHelpPopover__usage {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted2);
}

.legalGuidelinePopover__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.legalGuidelinePopover__openBtn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.legalGuidelinePopover__openBtn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.legalGuidelinePopover__src {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  white-space: nowrap;
}

.helpModal__faq {
  margin: 0;
}

.helpModal__faq dt {
  margin-top: 12px;
  font-weight: 700;
  color: var(--text);
}

.helpModal__faq dt:first-child {
  margin-top: 0;
}

.helpModal__faq dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.formGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.screen3FormGrid {
  margin-top: 4px;
}

.screen3FormGrid .field--guidelinesPick {
  grid-column: 1 / -1;
}

.screen3ModelHint {
  grid-column: 1 / -1;
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.45;
}

.debug {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* --- Chat screen (Gemini-like) --- */
.chatScreen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  padding: 0;
  position: relative;
  z-index: 0;
}

.chatShell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg);
  /* Sidebar width can be overridden by JS for drag-resize (desktop). */
  --sidebar-width: 280px;
  --chat-brand-hue: 210;
}

.chatShell.chatShell--branded {
  --chat-brand-active: 1;
}

.chatShell.chatShell--branded .chatSidebar {
  border-right-color: hsla(var(--chat-brand-hue), 42%, 48%, 0.35);
}

.chatShell.chatShell--branded .chatSidebar__header {
  background: transparent;
  border-bottom: 1px solid hsla(var(--chat-brand-hue), 50%, 50%, 0.22);
}

.chatShell.chatShell--branded.has-brand-hex .chatSidebar__header {
  border-bottom-color: rgba(var(--chat-brand-rgb), 0.32);
}

/* ---- Sidebar ---- */
.chatSidebar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chatSidebar__backdrop.isOpen {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .chatSidebar__backdrop.isOpen {
    display: block;
  }
}

.chatSidebar {
  position: relative;
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 50;
}

/* Drag handle (desktop only) — like IDE side panel resize */
.chatSidebar__resizeHandle {
  display: none;
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 6px;
  z-index: 55;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
}

.chatSidebar__resizeHandle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: transparent;
  transition: background 0.12s ease;
}

.chatSidebar__resizeHandle:hover::after,
.chatSidebar__resizeHandle.isDragging::after {
  background: rgba(var(--accent-rgb), 0.55);
}

.chatSidebar__resizeHandle:focus-visible {
  outline: none;
}

.chatSidebar__resizeHandle:focus-visible::after {
  background: var(--primary2);
  width: 2px;
}

@media (min-width: 901px) {
  .chatSidebar__resizeHandle {
    display: block;
  }
}

.chatSidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px 16px;
  gap: 8px;
}

.chatSidebar__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Small teal pill next to the wordmark identifying the surface
   ("Console" in account, "Chat" in the chat sidebar) — per Figma. */
.chatSidebar__tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--teal-panel-border);
  background: var(--teal-panel-bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.chatSidebar__iconBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted2);
  cursor: pointer;
}

.chatSidebar__iconBtn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 900px) {
  .chatSidebar__iconBtn.chatSidebar__close {
    display: inline-flex;
  }
}

.chatSidebar__newChat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 12px 16px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.28);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.chatSidebar__newChat:hover:not(:disabled) {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
}

.chatSidebar__newChat:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chatSidebar__sectionHead {
  padding: 0 16px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
}

.chatSidebar__listWrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 12px;
  -webkit-overflow-scrolling: touch;
}

.chatSidebar__listWrap,
.chatMessages,
.accountModal__panel,
.brandChecklist {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.45) transparent;
}

.chatSidebar__listWrap::-webkit-scrollbar,
.chatMessages::-webkit-scrollbar,
.accountModal__panel::-webkit-scrollbar,
.brandChecklist::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.chatSidebar__listWrap::-webkit-scrollbar-thumb,
.chatMessages::-webkit-scrollbar-thumb,
.accountModal__panel::-webkit-scrollbar-thumb,
.brandChecklist::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.chatSidebar__listWrap::-webkit-scrollbar-thumb:hover,
.chatMessages::-webkit-scrollbar-thumb:hover,
.accountModal__panel::-webkit-scrollbar-thumb:hover,
.brandChecklist::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.58);
  background-clip: content-box;
}

.chatSidebar__empty {
  padding: 12px 12px 8px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.45;
}

.chatSidebar__empty.hidden {
  display: none;
}

.chatSidebar__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chatSidebar__itemRow {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.chatSidebar__progressCycle {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: rgba(11, 15, 25, 0.45);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.chatSidebar__progressCycle:hover {
  transform: scale(1.07);
}

.chatSidebar__progressCycle--red {
  background: radial-gradient(circle at 30% 30%, #fca5a5, #b91c1c);
  border-color: rgba(248, 113, 113, 0.5);
}

.chatSidebar__progressCycle--orange {
  background: radial-gradient(circle at 30% 30%, #fdba74, #c2410c);
  border-color: rgba(251, 146, 60, 0.5);
}

.chatSidebar__progressCycle--green {
  background: radial-gradient(circle at 30% 30%, #86efac, #15803d);
  border-color: rgba(74, 222, 128, 0.5);
}

.chatSidebar__progressCycle--blue {
  background: radial-gradient(circle at 30% 30%, #93c5fd, #1d4ed8);
  border-color: rgba(96, 165, 250, 0.5);
}

.chatSidebar__progressCycle--manual {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.35);
}

.chatSidebar__bookmarkBtn[aria-pressed="true"] {
  color: var(--warning);
}

.chatSidebar__itemMain {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.chatSidebar__brandMark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(
    145deg,
    hsl(var(--brand-hue), 50%, 40%),
    hsl(calc(var(--brand-hue) + 22), 42%, 26%)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatSidebar__brandMark--emoji {
  font-size: 15px;
  font-weight: 400;
  text-shadow: none;
}

.chatSidebar__brandMark--logo {
  padding: 3px;
  box-sizing: border-box;
  background: linear-gradient(
    145deg,
    hsla(var(--brand-hue), 40%, 90%, 0.95),
    hsla(calc(var(--brand-hue) + 20), 34%, 82%, 0.92)
  );
  color: inherit;
  text-shadow: none;
}

.chatSidebar__itemLabel {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.chatSidebar__itemActions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  padding-right: 2px;
  position: relative;
}

.chatSidebar__itemIconBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted2);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.chatSidebar__itemIconBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chatSidebar__itemIconBtn--danger:hover {
  background: rgba(242, 139, 130, 0.15);
  color: #f28b82;
}

.chatSidebar__menu {
  position: absolute;
  top: 28px;
  right: 2px;
  z-index: 3;
  min-width: 190px;
  background: rgba(28, 32, 41, 0.98);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.chatSidebar__menuItem {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.chatSidebar__menuItem:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chatSidebar__menuItem.isDanger:hover {
  color: #f28b82;
  background: rgba(242, 139, 130, 0.12);
}

.chatSidebar__itemContent {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Progress dot + violations badge sit under the chat name, indented to
   align with the name text (main padding 12 + mark 26 + gap 8). */
.chatSidebar__itemMeta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 6px 46px;
  margin-top: -6px;
}

.chatSidebar__violationBadge {
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  color: #fca5a5;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.chatSidebar__violationBadge--clear {
  color: #86efac;
  background: rgba(21, 128, 61, 0.18);
  border-color: rgba(74, 222, 128, 0.25);
}

.chatSidebar__menu--progress {
  top: calc(100% + 4px);
  right: auto;
  left: 0;
  min-width: 220px;
}

.chatSidebar__menuItem.isCurrent {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--primary2);
}
.chatSidebar__menuItem--progress-red svg { color: #f87171; }
.chatSidebar__menuItem--progress-orange svg { color: #fb923c; }
.chatSidebar__menuItem--progress-green svg { color: #4ade80; }
.chatSidebar__menuItem--progress-blue svg { color: #60a5fa; }

.chatSidebar__menuItem:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.chatSidebar__menuItem:disabled:hover {
  background: transparent;
}

.chatSidebar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.12s var(--easing-standard), color 0.12s var(--easing-standard);
  min-width: 0;
}

.chatSidebar__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chatSidebar__item--active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--primary2);
}

.chatSidebar__footer {
  flex-shrink: 0;
  padding: 10px 12px 16px;
  border-top: 1px solid var(--border);
}

.chatSidebar__footerBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.chatSidebar__footerBtn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Mobile: sidebar as overlay */
@media (max-width: 900px) {
  .chatSidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(var(--sidebar-width), 88vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }

  .chatSidebar.isOpen {
    transform: translateX(0);
  }
}

/* ---- Main column ---- */
.chatMain {
  /* basis 0% avoids flex sizing from min-content (which collapsed the column to ~1ch wide) */
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  /* New-identity faint 140px grid over the near-black surface (Figma Make chat). */
  background-color: var(--bg);
  background-image: linear-gradient(rgba(31, 31, 31, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.45) 1px, transparent 1px);
  background-size: 140px 140px;
}

/* Bottom-right teal radial glow behind the chat surface (replaces the X mark). */
.chatMain::before {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.2;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
}

.chatMain > * {
  position: relative;
  z-index: 1;
}

/* The account screen reuses .chatMain; suppress the chat glow there. */
.chatMain.accountMain::before {
  display: none;
}

.chatBrandBanner {
  flex-shrink: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(
    105deg,
    hsla(var(--chat-brand-hue), 48%, 26%, 0.92),
    hsla(var(--chat-brand-hue), 38%, 14%, 0.55)
  );
  border-bottom: 1px solid hsla(var(--chat-brand-hue), 55%, 52%, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.chatShell.chatShell--branded.has-brand-hex .chatBrandBanner,
.chatBrandBanner.has-brand-hex {
  background: linear-gradient(
    105deg,
    rgba(var(--chat-brand-rgb), 0.92),
    rgba(var(--chat-brand-rgb), 0.42)
  );
  border-bottom-color: rgba(var(--chat-brand-rgb), 0.45);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.screen3BrandBanner {
  margin: 0 0 18px 0;
  border-radius: 14px;
  overflow: hidden;
}

.chatBrandBanner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.chatBrandBanner__badge {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    145deg,
    hsl(var(--brand-hue, var(--chat-brand-hue)), 52%, 42%),
    hsl(calc(var(--brand-hue, var(--chat-brand-hue)) + 26), 45%, 28%)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.chatBrandBanner__badge--emoji {
  font-size: 26px;
  font-weight: 400;
  text-shadow: none;
}

.chatBrandBanner__badge--logo {
  padding: 8px;
  box-sizing: border-box;
  background: linear-gradient(
    145deg,
    hsla(var(--brand-hue, var(--chat-brand-hue)), 44%, 93%, 0.97),
    hsla(calc(var(--brand-hue, var(--chat-brand-hue)) + 24), 38%, 86%, 0.94)
  );
  color: inherit;
  text-shadow: none;
}

.chatBrandBanner__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chatBrandBanner__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  line-height: 1.25;
}

.chatBrandBanner__hint {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.82) !important;
}

/* Full-column drag overlay (ChatGPT / Claude-style) */
.chatDropOverlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chatDropOverlay__panel {
  max-width: 420px;
  width: 100%;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1.5px dashed rgba(130, 168, 255, 0.55);
  background: rgba(22, 32, 52, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.chatDropOverlay__title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
}

.chatDropOverlay__sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.chatMain__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 6px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.chatShell.chatShell--branded .chatMain__header {
  border-bottom-color: hsla(var(--chat-brand-hue), 45%, 55%, 0.22);
  background: linear-gradient(
    92deg,
    hsla(var(--chat-brand-hue), 40%, 32%, 0.22),
    transparent 72%
  );
}

.chatShell.chatShell--branded.has-brand-hex .chatMain__header {
  border-bottom-color: rgba(var(--chat-brand-rgb), 0.3);
  background: linear-gradient(92deg, rgba(var(--chat-brand-rgb), 0.34), transparent 74%);
}

.chatMain__menuBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.chatMain__menuBtn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 900px) {
  .chatMain__menuBtn {
    display: inline-flex;
  }
}

.chatMain__heading {
  min-width: 0;
  flex: 1;
  padding-top: 4px;
}

.chatMain__title {
  margin: 0 0 2px 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.chatMain__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted2);
}

.chatMain__header .accountAvatarBtn {
  margin-left: auto;
  margin-top: 2px;
}

.btn--compact {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.chatScreen__error {
  margin: 0 12px 8px;
  flex-shrink: 0;
}

/* Prominent, centered hint when the user attaches e.g. .skp or another disallowed type */
.chatScreen__error.chatScreen__error--centered {
  text-align: center;
  align-self: center;
  max-width: min(28rem, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 14px 18px;
  line-height: 1.5;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.22);
  font-size: 14px;
  white-space: pre-wrap;
}

.chatMessages {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border: none;
  border-radius: 0;
  background: transparent;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 0;
}

.chatMessages--startup {
  filter: saturate(0.92);
}

.chatStartupOverlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
  background: linear-gradient(
    165deg,
    rgba(5, 8, 16, 0.72) 0%,
    rgba(7, 12, 24, 0.55) 45%,
    rgba(5, 8, 16, 0.68) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: inherit;
}

.chatStartupOverlay--active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.chatStartupOverlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(
    145deg,
    rgba(16, 22, 38, 0.94) 0%,
    rgba(10, 14, 26, 0.88) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 64px rgba(var(--accent-rgb), 0.08);
  max-width: min(320px, 92%);
  text-align: center;
}

.chatStartupOverlay__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text);
}

.chatStartupOverlay__sub {
  margin: -6px 0 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Conic-gradient ring (Gemini / Claude–style) */
.spinnerOrb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(
    from 210deg,
    rgba(var(--accent-rgb), 0.05),
    rgba(var(--accent-rgb), 0.95) 18%,
    rgba(147, 112, 255, 0.75) 42%,
    rgba(var(--accent-rgb), 0.15) 72%,
    rgba(var(--accent-rgb), 0.05) 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: spinnerOrbSpin 0.9s linear infinite;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.35));
}

.spinnerOrb--lg {
  width: 44px;
  height: 44px;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 0);
  animation-duration: 1s;
}

@keyframes spinnerOrbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* In-stream "thinking" indicator — pulsing teal dot (matches the Figma Make chat). */
.chatThinkingDot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
  animation: chatThinkingPulse 1.6s ease-in-out infinite;
}

@keyframes chatThinkingPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatThinkingDot {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinnerOrb {
    animation-duration: 1.6s;
  }
}

.chatMsg__bubble--pending {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chatMsg__loadingInner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.chatMsg__loadingInner .spinnerOrb {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chatMsg__loadingLabel {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: linear-gradient(
    90deg,
    rgba(232, 238, 252, 0.55),
    rgba(232, 238, 252, 0.9),
    rgba(232, 238, 252, 0.55)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: loadingLabelShimmer 2.2s ease-in-out infinite;
}

@keyframes loadingLabelShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatMsg__loadingLabel {
    animation: none;
    color: rgba(232, 238, 252, 0.65);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

.chatMsg__streamText {
  white-space: pre-wrap;
  word-break: break-word;
}

.chatLog {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 48px) 28px;
  min-height: 100%;
}

.chatMsg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  max-width: 100%;
}

.chatMsg--assistant {
  align-items: flex-start;
}

.chatMsg--user {
  align-items: flex-end;
}

.chatMsg__role {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted2);
}

.chatMsg__bubble {
  max-width: min(720px, 100%);
  border: 1px solid transparent;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--assistant-surface);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  font-size: 15px;
}

.chatMsg--assistant .chatMsg__bubble {
  border-radius: 20px;
  background: transparent;
  border-color: transparent;
  padding-left: 4px;
}

.chatMsg--user .chatMsg__bubble {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.3);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}

/* User bubble dedicated to a 3D-asset upload: shows a single hero thumbnail
   that opens the interactive viewer when clicked. Mirrors the layout of
   image-upload bubbles but with a distinct "View 3D" badge. */
.chatMsg__bubble--asset3d {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 10px;
  border-radius: 16px;
  max-width: 320px;
}
.chatAsset3dPreview {
  position: relative;
  display: block;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(800px 500px at 30% 20%, rgba(255, 255, 255, 0.06), transparent),
    #0a0e16;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.chatAsset3dPreview:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.chatAsset3dPreview:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.chatAsset3dPreview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chatAsset3dPreview__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.chatAsset3dPreview__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}
.chatAsset3dCaption {
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
  word-break: break-word;
}
.chatAsset3dMessage {
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chatComposer {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 48px) 16px;
}

.chatComposer__fileInput {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}

.attachmentChip {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "View 3D" composer button — only shown when one or more 3D models have
   been uploaded in this session. The count badge mirrors the pattern used
   by the notifications button. */
.vzx3dViewerBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px 4px;
}
.vzx3dViewerBtn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.18);
  color: #cfe1ff;
  font-size: 11px;
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Fancy 3D-asset viewer modal — fixed-position overlay with header,
   <canvas> for three.js, prev/next nav, and a graceful fallback that
   shows the rendered viewpoint thumbnails when no live loader exists
   for the asset format (e.g. .blend / .step / .stp / .3mf / .off).
   ------------------------------------------------------------------ */
.vzx3dViewer {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vzx3dViewer.hidden {
  display: none;
}
.vzx3dViewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vzx3dViewer__card {
  position: relative;
  width: min(94vw, 1100px);
  height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #11161f 0%, #0c1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  color: #e6ebf5;
}
.vzx3dViewer__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}
.vzx3dViewer__title {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.vzx3dViewer__name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vzx3dViewer__count {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.vzx3dViewer__nav,
.vzx3dViewer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e6ebf5;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.vzx3dViewer__nav:hover:not(:disabled),
.vzx3dViewer__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.vzx3dViewer__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.vzx3dViewer__canvasWrap {
  position: relative;
  flex: 1;
  background:
    radial-gradient(1200px 800px at 50% 10%, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0)) ,
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 12px),
    #0a0e16;
  overflow: hidden;
}
.vzx3dViewer__canvasWrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  cursor: grab;
}
.vzx3dViewer__canvasWrap canvas:active {
  cursor: grabbing;
}
.vzx3dViewer__loading,
.vzx3dViewer__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.vzx3dViewer__fallback {
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  pointer-events: auto;
  overflow: auto;
}
.vzx3dViewer__fallback.hidden,
.vzx3dViewer__loading.hidden {
  display: none;
}
.vzx3dViewer__fallbackTitle {
  margin: 0;
  color: #e6ebf5;
  font-weight: 600;
}
.vzx3dViewer__fallbackSub {
  margin: 0;
  max-width: 540px;
}
.vzx3dViewer__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 920px;
}
.vzx3dViewer__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1018 center / cover no-repeat;
  cursor: zoom-in;
  padding: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vzx3dViewer__thumb:hover,
.vzx3dViewer__thumb:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.55);
  transform: translateY(-1px);
  outline: none;
}
.vzx3dViewer__lightbox {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 18, 0.92);
}
.vzx3dViewer__lightbox.hidden {
  display: none;
}
.vzx3dViewer__lightboxImg {
  max-width: min(92%, 900px);
  max-height: min(82%, 720px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.vzx3dViewer__lightboxClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e6ebf5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.vzx3dViewer__lightboxClose:hover {
  background: rgba(255, 255, 255, 0.12);
}
body.vzx-modal-open {
  overflow: hidden;
}
.vzx3dViewer__hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.16);
}
@media (max-width: 640px) {
  .vzx3dViewer__card {
    width: 96vw;
    height: 92vh;
  }
}

.chatGenerateRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px 4px;
  max-width: 100%;
}

.chatGenerateRow__label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.chatGenerateRow__select {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 420px;
  font-size: 14px;
}

/* The native <select> popup inherits foreground from its parent — on dark
 * themes the option list can otherwise render dark-on-dark. Force a known
 * combination so the model picker is always legible. */
.chatGenerateRow__select option,
select.field__control option {
  background: #131826;
  color: #e8ecf7;
}

.generateToolsBar {
  display: flex;
  gap: 8px;
  margin: 0 0 10px 4px;
}

.generateToolsBar .btn--active {
  border-color: var(--accent, #6b8cff);
  background: rgba(107, 140, 255, 0.12);
}

.generateToolsPopup__hint {
  font-size: 12px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.chatAsset3dPreview__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-weight: 700;
  color: var(--muted);
}

.generateToolsPopups {
  position: relative;
  margin-bottom: 8px;
}

.generateToolsPopup {
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(20, 24, 32, 0.98);
  padding: 10px;
  margin: 0 4px 10px;
}

.generateToolsPopup__title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 650;
}

/* Veo controls when generating video from an attached reference (Generate mode) */
.generateVideoSettings {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.generateVideoSettings__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.generateVideoSettings__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.generateVideoSettings__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  font-size: 11px;
  color: var(--muted2);
}

.generateVideoSettings__field .field__control {
  font-size: 13px;
  min-width: 0;
  max-width: 160px;
}

.generateVideoSettings__row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.generateVideoSettings__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}

.generateVideoSettings__seed {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.generateVideoSettings__seed .field__control {
  width: 120px;
  font-size: 13px;
}

.chatMsg__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.chatMsg__promptCaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
  white-space: pre-wrap;
}

.chatMsg__refs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatMsg__refBtn {
  appearance: none;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.1);
  color: #cfe0ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.chatMsg__refBtn:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.48);
  transform: translateY(-1px);
}

.chatMsg__refBtn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.chatMsg__refLink {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.35);
  text-underline-offset: 2px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 120ms ease, text-decoration-color 120ms ease;
}
.chatMsg__refLink:hover {
  background: rgba(var(--accent-rgb), 0.12);
  text-decoration-color: rgba(var(--accent-rgb), 0.7);
}
.chatMsg__refLink--loading {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Structured Compliance Report ── */

.chatMsg__bubble--compliance {
  white-space: normal;
  line-height: 1.55;
}

.compReport__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}
.compReport__badge--clear {
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.compReport__badge--violations {
  background: rgba(185, 28, 28, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.compReport__badgeIcon {
  font-size: 20px;
}
.compReport__badgeSub {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.85;
}

.compReport__section {
  margin-bottom: 16px;
}
.compReport__sectionTitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2, #aaa);
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.compReport__findingsList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compReport__findingItem {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.compReport__findingItem:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
}
.compReport__findingItem.is-open {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.04);
}

.compReport__findingHeader {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}
.compReport__findingHeader:hover {
  background: rgba(var(--accent-rgb), 0.06);
}

.compReport__findingNum {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.compReport__findingStatus {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.compReport__findingStatus--ok {
  color: #4ade80;
}
.compReport__findingStatus--violation {
  color: #f87171;
}
.compReport__findingStatus--na {
  color: #94a3b8;
}

.compReport__findingItem--violation {
  border-color: rgba(248, 113, 113, 0.15);
}
.compReport__findingItem--violation:hover {
  border-color: rgba(248, 113, 113, 0.3);
}
.compReport__findingItem--violation.is-open {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.03);
}

.compReport__findingText {
  flex: 1;
  min-width: 0;
}
.compReport__findingText strong {
  color: #e2e8f0;
}
.compReport__findingSummary {
  color: var(--muted2, #999);
  font-weight: 400;
}

.compReport__citation {
  color: var(--primary);
  font-size: 0.92em;
}

.compReport__findingChevron {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--muted2, #888);
  transition: transform 0.15s ease;
  margin-top: 2px;
}
.compReport__findingItem.is-open .compReport__findingChevron {
  transform: rotate(90deg);
}

.compReport__findingDetail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
  padding: 0 12px;
}
.compReport__findingItem.is-open .compReport__findingDetail {
  max-height: 2000px;
  opacity: 1;
  padding: 0 12px 12px 44px;
}

.compReport__detailBody {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted2, #bbb);
  white-space: pre-line;
}
.compReport__detailBody strong {
  color: #e2e8f0;
}

.compReport__actionsList {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compReport__actionItem {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 6px 0;
}
.compReport__actionItem strong {
  color: #e2e8f0;
}

.compReport__detailToggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  color: var(--muted2, #aaa);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.compReport__detailToggle:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--primary);
}
.compReport__section.is-open .compReport__detailToggle {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--primary);
}

.compReport__detailFull {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
.compReport__section.is-open .compReport__detailFull {
  max-height: 20000px;
  opacity: 1;
  margin-top: 12px;
}

.compReport__detailHeading {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 16px 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}
.compReport__detailHeading:first-child {
  margin-top: 0;
}

/* Collapsible corrective suggestions (under Findings when violations > 0) */
.compReport__correctiveWrap {
  margin-top: 4px;
}
.compReport__correctiveToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 8px;
  color: #fca5a5;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.compReport__correctiveToggle:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
}
.compReport__correctiveWrap.is-open .compReport__correctiveToggle {
  border-color: rgba(248, 113, 113, 0.45);
}
.compReport__correctiveToggleLabel {
  flex: 1;
}
.compReport__correctiveBody {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  padding: 0 2px;
}
.compReport__correctiveWrap.is-open .compReport__correctiveBody {
  max-height: 20000px;
  opacity: 1;
  margin-top: 10px;
}
.compReport__actionsList--corrective {
  margin: 0 0 4px 0;
}

.referenceViewerModal__headerActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.referenceViewerModal__downloadBtn {
  font-size: 13px;
  padding: 8px 12px;
  font-weight: 650;
}

.referenceViewerModal__panel {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.referenceViewerModal__panel.referenceViewerModal__panel--layout-wide {
  width: min(96vw, 1400px);
}

.referenceViewerModal__panel.referenceViewerModal__panel--layout-tall {
  max-height: min(94vh, 960px);
}

.referenceViewerModal__panel.referenceViewerModal__panel--layout-large {
  width: min(98vw, 1680px);
  max-height: min(96vh, 1200px);
}

.referenceViewerModal__panel:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0;
}

.referenceViewerModal__panel:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0;
}

.referenceViewerModal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.referenceViewerModal__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.referenceViewerModal__toolbarLabel {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 0;
}

.referenceViewerModal__layoutSelect {
  flex: 0 1 160px;
  min-width: 120px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  background: rgba(11, 15, 25, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.referenceViewerModal__layoutSelect:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.78);
  outline-offset: 2px;
}

.referenceViewerModal__fsBtn {
  font-size: 13px;
  padding: 8px 12px;
  font-weight: 650;
}

.referenceViewerModal__meta {
  margin: 0;
  flex-shrink: 0;
}

.referenceViewerModal__frame {
  width: 100%;
  flex: 1;
  min-height: min(52vh, 360px);
  height: 0;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: var(--panel2, #1a1f2e);
}

.referenceViewerModal__panel.referenceViewerModal__panel--layout-tall .referenceViewerModal__frame,
.referenceViewerModal__panel.referenceViewerModal__panel--layout-large .referenceViewerModal__frame {
  min-height: min(68vh, 520px);
}

.referenceViewerModal__panel:fullscreen .referenceViewerModal__body,
.referenceViewerModal__panel:-webkit-full-screen .referenceViewerModal__body {
  flex: 1;
  min-height: 0;
}

.referenceViewerModal__panel:fullscreen .referenceViewerModal__frame,
.referenceViewerModal__panel:-webkit-full-screen .referenceViewerModal__frame {
  min-height: 0;
  flex: 1;
}

.referenceViewerModal__frame--hidden {
  display: none;
}

.chatMsg__video {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 520px);
  height: auto;
  border-radius: 12px;
  background: #000;
}

.chatMsg__veoPanel {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--panel2);
}

.chatMsg__veoTitle {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.chatMsg__veoField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.chatMsg__veoLabel {
  font-size: 12px;
  color: var(--muted);
}

.chatMsg__veoTextarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  font-size: 14px;
}

.chatMsg__veoCount {
  font-size: 11px;
  align-self: flex-end;
}

.chatMsg__veoRefRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.chatMsg__veoRefHint {
  font-size: 11px;
  flex: 1 1 200px;
}

.chatMsg__veoFile {
  font-size: 12px;
}

.chatMsg__veoGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.chatMsg__veoMini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  min-width: 120px;
}

.chatMsg__veoSelect {
  font-size: 13px;
}

.chatMsg__veoCheck {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.chatMsg__veoSeed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.chatMsg__veoSeedInput {
  width: 120px;
  font-size: 13px;
}

.chatMsg__veoStatus {
  font-size: 12px;
  margin-bottom: 8px;
  min-height: 1.2em;
}

.chatMsg__veoBtn {
  width: 100%;
  max-width: 280px;
}

.chatComposer__box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: border-color 160ms var(--easing-standard), box-shadow 160ms var(--easing-standard),
    background 160ms var(--easing-standard);
}

.chatComposer__box:focus-within {
  border-color: rgba(var(--accent-rgb), 0.52);
  box-shadow: 0 6px 20px rgba(5, 10, 20, 0.44);
  background: rgba(40, 42, 44, 0.98);
}

.chatComposer__textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 200px;
  resize: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  padding: 10px 4px 10px 0;
  outline: none;
  font-family: inherit;
  pointer-events: auto;
}

.chatComposer__textarea::placeholder {
  color: rgba(232, 238, 252, 0.45);
}

.chatComposer__textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chatComposer__side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.chatComposer__attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.chatComposer__attach:hover:not(:disabled) {
  background: rgba(232, 238, 252, 0.06);
  color: var(--text);
}

.chatComposer__send {
  min-width: 72px;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.3);
}

.chatComposer__send:hover:not(:disabled) {
  background: var(--teal-hover);
}

.chatComposer__hint {
  margin: 8px 0 0 6px;
  font-size: 11px;
  color: rgba(232, 238, 252, 0.45);
}

.chatComposer__hintSub:empty {
  display: none;
}

/* --- Project name field (screen 3) --- */
.chatNameField {
  display: block;
  margin: 0 0 12px 0;
  max-width: 560px;
}
.chatNameField__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.chatNameField__wrap .field__control {
  padding-right: 36px;
}
.chatNameField__spinner {
  position: absolute;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--accent-rgb), 0.25);
  border-top-color: rgba(var(--accent-rgb), 0.8);
  border-radius: 50%;
  animation: chatNameSpin 0.6s linear infinite;
  pointer-events: none;
}
.chatNameField__spinner.hidden { display: none; }
@keyframes chatNameSpin { to { transform: rotate(360deg); } }

.mediaChannelField__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mediaChannelField__wrap .field__control {
  padding-right: 36px;
}

/* --- Guideline Converter (Account panel) --- */
.converterMode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.55);
  margin: 4px 0 14px;
}

.converterMode__btn {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.converterMode__btn:hover {
  color: var(--text);
}

.converterMode__btn.is-active {
  background: rgba(130, 168, 255, 0.16);
  color: var(--text);
  font-weight: 600;
}

.converterScreen__success {
  margin: 0 0 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  display: none;
}

.converterProgress {
  margin: 0 0 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
}

.converterProgress.hidden {
  display: none;
}

.converterProgress__label {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text, #e8eaed);
}

.converterProgress__pct {
  margin: 6px 0 0 0;
  font-size: 12px;
}

.convertJob__progressBar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.convertJob__progressFill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(93, 143, 255, 0.85), rgba(130, 168, 255, 0.95));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.convertJob__progressRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.convertJob__progressRow .convertJob__progressBar {
  flex: 1 1 auto;
}

.convertJob__progressPct {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted2, #9fa2ad);
  min-width: 2.5rem;
  text-align: right;
}

.vzxNotifItem--convert .vzxNotifItem__icon--running {
  align-self: flex-start;
  margin-top: 2px;
}

.chatComposer__refStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 4px 0;
}

.chatComposer__refStrip.hidden {
  display: none;
}

.chatComposer__refChip {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(107, 140, 255, 0.55);
  background: rgba(107, 140, 255, 0.12);
}

.chatComposer__refChip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chatComposer__refChip__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chatComposer__refChip__remove:hover {
  background: rgba(0, 0, 0, 0.85);
}

.chatComposer__refBtn {
  height: 36px;
  width: 36px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf7;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chatComposer__refBtn:hover {
  background: rgba(107, 140, 255, 0.15);
  border-color: rgba(107, 140, 255, 0.6);
}

.chatComposer__refBtn.hidden {
  display: none;
}

.manageGuidelinesToolbar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 12px;
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.manageGuidelinesToolbar.hidden {
  display: none;
}

.manageGuidelinesToolbar__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.manageGuidelinesToolbar__label {
  font-size: 11px;
  font-weight: 600;
  color: #9aa3bc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.manageGuidelinesToolbar__summary {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
}

.manageRow__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 11.5px;
  color: #9aa3bc;
  margin-top: 4px;
}

.manageRow__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #b8c0d6;
}

.manageRow__badge--supplement {
  border-color: rgba(120, 180, 255, 0.35);
  color: #a8c8ff;
  background: rgba(80, 140, 255, 0.08);
}

.manageRow__badge--legal {
  border-color: rgba(200, 160, 255, 0.35);
  color: #d4b8ff;
  background: rgba(140, 80, 255, 0.08);
}

.manageList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.manageRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.manageRow__main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  min-width: 0;
}

.manageRow__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.manageRow__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e8ecf7;
  margin: 0;
  overflow-wrap: anywhere;
}

.manageRow__sub {
  font-size: 12px;
  color: #b8c0d6;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* Guideline metadata: brand / markets as labelled pills, key on its own row. */
.manageRow__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.manageRow__fact {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: #dde3f3;
}

.manageRow__fact__label,
.manageRow__key__label {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b93ad;
}

.manageRow__fact__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.manageRow__key {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 7px;
}

.manageRow__key__value {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #aab2c8;
  overflow-wrap: anywhere;
}

.manageRow__nameInput {
  height: 32px;
  font-size: 13px;
  flex: 1 1 220px;
}

.manageRow__actions {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manageRow__actionsBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Anchor the Actions flyout below the trigger, right-aligned, above sibling
   rows. Visual styling is inherited from .chatSidebar__menu. */
.manageRow__menu {
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  z-index: 20;
  min-width: 170px;
}

.manageRow__btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}

.manageRow__btn--danger {
  background: #5a2a2a;
  border-color: #844;
  color: #f7e7e7;
}

.manageRow__btn--danger:hover {
  background: #6e3232;
}

.manageRow__countries {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.manageRow__country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: #b8c0d6;
}

.manageRow__country__remove {
  background: none;
  border: none;
  color: #b8c0d6;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
}

.manageRow__country__remove:hover {
  color: #ff8b8b;
}

.chatMsg__createActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.chatMsg__createBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.chatMsg__createBtn:hover,
.chatMsg__createBtn:focus-visible {
  background: rgba(107, 140, 255, 0.1);
  border-color: rgba(107, 140, 255, 0.5);
  outline: none;
}

.chatMsg__createBtn[aria-pressed="true"] {
  background: rgba(107, 140, 255, 0.18);
  border-color: rgba(107, 140, 255, 0.7);
}

.chatMsg__createRefChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  margin: 6px 0;
  border-radius: 999px;
  background: rgba(107, 140, 255, 0.18);
  border: 1px solid rgba(107, 140, 255, 0.55);
  color: #e8ecf7;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

.chatMsg__createRefChip__thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chatMsg__createRefChip__close {
  background: none;
  border: none;
  color: #b8c0d6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.chatMsg__createRefChip__close:hover {
  color: #fff;
}

.convWizardChoices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.convWizardChoice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #e8ecf7;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.convWizardChoice:hover,
.convWizardChoice:focus-visible {
  background: rgba(107, 140, 255, 0.08);
  border-color: rgba(107, 140, 255, 0.5);
  outline: none;
}

.convWizardChoice__title {
  font-size: 14px;
  font-weight: 700;
}

.convWizardChoice__sub {
  font-size: 12.5px;
}

/* Guideline Converter — drop zone (same UX as chat products) */
.converterDropZone__or {
  text-align: center;
  margin: 8px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.converterDropZone {
  display: block;
  position: relative;
  min-height: 128px;
  margin-top: 6px;
  padding: 0;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.converterDropZone:hover {
  border-color: rgba(130, 168, 255, 0.45);
  background: rgba(130, 168, 255, 0.06);
}

.converterDropZone.is-dragover {
  border-color: rgba(130, 168, 255, 0.85);
  background: rgba(130, 168, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(130, 168, 255, 0.25) inset;
}

.converterDropZone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  z-index: 2;
}

.converterDropZone__ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 128px;
  padding: 20px 16px;
  text-align: center;
  pointer-events: none;
}

.converterDropZone__title {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.converterDropZone__file {
  font-size: 13px;
  word-break: break-all;
  max-width: 100%;
}

/* Veo reference row — drag highlight */
.chatMsg__veoRefRow--drag {
  outline: 2px dashed rgba(130, 168, 255, 0.75);
  outline-offset: 4px;
  border-radius: 10px;
}

.converterScreen__success.is-visible {
  display: block;
}

.field__req {
  color: var(--danger);
  font-weight: 700;
}

.field__control--file {
  padding: 10px 0;
  border: none;
  background: transparent;
}

.field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
}

.field--checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.guidelineToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.field__optional {
  font-weight: 500;
  color: var(--muted2);
}

/* --- Multi-select guideline picker --- */
.multiSelect {
  position: relative;
  width: 100%;
}

.multiSelect__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1b1f24;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 140ms var(--easing-standard), box-shadow 140ms var(--easing-standard);
}

.multiSelect__trigger:focus,
.multiSelect--open .multiSelect__trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.multiSelect__trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.multiSelect__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

.multiSelect__trigger--hasSelection .multiSelect__label {
  color: var(--text);
}

.multiSelect__count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.2);
  color: rgba(var(--accent-rgb), 1);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.multiSelect__arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 140ms ease;
}

.multiSelect--open .multiSelect__arrow {
  transform: rotate(180deg);
}

.multiSelect__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: 240px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 4px;
}

.multiSelect__empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.multiSelect__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 80ms ease;
  font-size: 14px;
}

.multiSelect__option:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.multiSelect__checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: rgba(var(--accent-rgb), 1);
  cursor: pointer;
}

.multiSelect__optionLabel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brandChecklist {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: rgba(11, 15, 25, 0.4);
}

.brandChecklist--guidelines {
  max-height: min(52vh, 320px);
  min-height: 120px;
}

.brandChecklist__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.brandChecklist__empty {
  margin: 0;
  padding: 12px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.brandChecklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 120ms var(--easing-standard), background 120ms var(--easing-standard),
    transform 120ms var(--easing-standard);
}

.brandChecklist__item:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(1px);
}

.brandChecklist__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brandChecklist__name {
  font-size: 13px;
  font-weight: 600;
}

.brandChecklist__key {
  font-size: 11px;
  color: var(--muted2);
}

@media (max-width: 820px) {
  .accountUsageCharts {
    grid-template-columns: 1fr;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .accountModal__panel,
  .btn,
  .brandCard,
  .usageKpi,
  .usageChartCard,
  .field__control,
  .chatComposer__box,
  .brandChecklist__item {
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Public marketing site (signed-out landing)                                 */
/* -------------------------------------------------------------------------- */

.vizixMarketingRoot {
  display: none;
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--font-brand);
  min-height: 100vh;
}

body.vizixMarketingOpen .vizixMarketingRoot {
  display: block;
}

body.vizixMarketingOpen .app {
  display: none;
}

body.vizixMarketingOpen {
  margin: 0;
}

.vizixMarketing__header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(102, 246, 239, 0.18);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.vizixMarketing__headerInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.vizixMarketing__logo {
  display: block;
  height: clamp(54px, 9vw, 104px);
  width: auto;
  margin: 0 0 18px;
}

.vizixMarketing__menuBtn {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.vizixMarketing__menuBars,
.vizixMarketing__menuBars::before,
.vizixMarketing__menuBars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.vizixMarketing__menuBars {
  position: relative;
}

.vizixMarketing__menuBars::before,
.vizixMarketing__menuBars::after {
  content: "";
  position: absolute;
  left: 0;
}

.vizixMarketing__menuBars::before {
  top: -7px;
}

.vizixMarketing__menuBars::after {
  top: 7px;
}

.vizixMarketing__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vizixMarketing__navLink {
  border: none;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

a.vizixMarketing__navLink:hover,
button.vizixMarketing__navLink:hover {
  color: var(--brand-teal-bright);
  background: rgba(255, 255, 255, 0.04);
}

.vizixMarketing__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.vizixMarketing__navAuth {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
}

.vizixMarketing__navAuth:hover {
  color: var(--brand-teal-bright);
}

.vizixMarketing__navAuthSep {
  color: var(--muted2);
}

.vizixMarketing__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  color: var(--text);
  margin-left: 6px;
}

.vizixMarketing__main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 22px 72px;
}

.vizixMarketing__hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 8px 0 32px;
}

.vizixMarketing__heroCopy {
  min-width: 0;
}

.vizixMarketing__heroMedia {
  min-width: 0;
}

.vizixMarketing__heroMedia img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.vizixMarketing__tagline {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.vizixMarketing__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-teal-deep);
}

.vizixMarketing__heroCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Logged-out hero Login / Sign Up pills (new-identity teal tokens). */
.vizixMarketing__heroCtas .btn {
  font-family: var(--font-brand);
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 32px;
  color: var(--brand-ink);
}

.vizixMarketing__heroCtas .btn-primary {
  background: var(--brand-teal);
  border-color: transparent;
}

.vizixMarketing__heroCtas .btn-secondary {
  background: var(--brand-teal-dark);
  border-color: transparent;
  color: var(--brand-ink);
}

.vizixMarketing__heroCtas .btn-secondary:hover {
  color: var(--brand-ink);
  border-color: var(--brand-teal-bright);
}

.vizixMarketing__section {
  scroll-margin-top: 88px;
  padding: 52px 0;
  border-top: 1px solid var(--border);
}

.vizixMarketing__sectionTitle {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  text-align: center;
}

.vizixMarketing__sectionTitle--left {
  text-align: left;
}

.vizixMarketing__aboutText {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--text);
}

/* Reusable teal panel (Vision / Mission / Why) — Figma Rectangle 33. */
.tealPanel {
  border: 3px solid var(--brand-teal);
  background: var(--brand-teal-deep);
  border-radius: 20px;
  padding: 32px clamp(20px, 4vw, 44px);
  backdrop-filter: blur(2px);
}

.vizixMarketing__visionGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.vizixMarketing__visionTitle {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-align: center;
}

.vizixMarketing__visionCol p,
.vizixMarketing__whyRow p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
}

.vizixMarketing__whyRow {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 251, 253, 0.28);
}

.vizixMarketing__pipe {
  color: rgba(255, 251, 253, 0.55);
  margin: 0 8px;
}

.vizixMarketing__story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.vizixMarketing__storyCopy p {
  line-height: 1.65;
  color: var(--text);
}

.vizixMarketing__storyMedia img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.vizixMarketing__band {
  padding: 56px 22px;
  text-align: center;
}

.vizixMarketing__bandText {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.vizixMarketing__bandText .vizixMarketing__dot {
  width: 12px;
  height: 12px;
}

.vizixMarketing__footer {
  border-top: 1px solid rgba(102, 246, 239, 0.55);
  margin-top: 8px;
  background: linear-gradient(rgba(9, 10, 12, 0.72), rgba(9, 10, 12, 0.92)),
    url("assets/circuit-bg.jpg") center / cover no-repeat;
}

.vizixMarketing__footerInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Teal underline beneath the footer links (Figma FOOTER 1). */
.vizixMarketing__footerInner::after {
  content: "";
  width: 100%;
  height: 1px;
  margin-top: 6px;
  background: rgba(102, 246, 239, 0.4);
}

.vizixMarketing__footerLogo {
  height: 44px;
  width: auto;
}

.vizixMarketing__footerTagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.vizixMarketing__footerTagline .vizixMarketing__dot {
  width: 5px;
  height: 5px;
}

.vizixMarketing__footerNav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.vizixMarketing__footerLink {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
}

.vizixMarketing__footerLink:hover {
  color: var(--brand-teal-bright);
}

.vizixMarketing__footerDivider {
  width: 1px;
  height: 16px;
  background: var(--brand-teal);
  opacity: 0.6;
}

@media (max-width: 860px) {
  .vizixMarketing__menuBtn {
    display: inline-flex;
    order: 1;
  }

  .vizixMarketing__headerInner {
    flex-wrap: wrap;
  }

  .vizixMarketing__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border);
    order: 4;
  }

  .vizixMarketing__actions {
    margin-left: auto;
    order: 2;
  }

  .vizixMarketing__header--mobileOpen .vizixMarketing__nav {
    display: flex;
  }

  .vizixMarketing__hero,
  .vizixMarketing__visionGrid,
  .vizixMarketing__story {
    grid-template-columns: 1fr;
  }

  /* Brand Story overlap collapses to a normal stacked layout on mobile. */
  #screen2 .vizixMarketing__storyCopy {
    width: 100%;
    padding: 0;
  }

  #screen2 .vizixMarketing__storyMedia {
    position: static;
    width: 100%;
    margin-top: 18px;
    height: 220px;
  }

  #screen2 .vizixMarketing__storyMedia::after {
    background: none;
  }

  .vizixMarketing__hero {
    text-align: center;
  }

  .vizixMarketing__heroMedia {
    order: -1;
  }

  .vizixMarketing__tagline,
  .vizixMarketing__heroCtas {
    justify-content: center;
  }
}

/* =====================================================================
 * Account → Postbox section (mirrors the bell popover inside the modal)
 * ===================================================================== */
.accountPostbox__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.accountPostbox__headActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accountPostbox__list {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b2238;
  overflow: hidden;
  margin-top: 8px;
}

.accountPostbox__list:empty + .accountPostbox__empty {
  display: block;
}

.accountPostbox__list .vzxNotifItem {
  background: transparent;
}

.accountPostbox__empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin-top: 8px;
}

/* ===== Brand Guard — standalone Ad Compliance Checker overlay ===== */
body.brandGuardActive {
  overflow: hidden;
}

.brandGuard {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.brandGuard__header {
  margin: 0;
  border-radius: 0;
}

.brandGuard__body {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 32px 48px;
}

.brandGuard__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fffbfd;
  letter-spacing: -0.01em;
}

.brandGuard__titleBrand {
  color: var(--primary);
}

.brandGuard__subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.brandGuard__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

/* Teal radial glow behind the (transparent) shells (replaces the X mark). */
.brandGuard__grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.16;
  filter: blur(170px);
  pointer-events: none;
  z-index: 0;
}

.brandGuard__card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-card);
  background: rgba(13, 13, 13, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 24px 26px;
}

.brandGuard__card--inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brandGuard__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 18px;
}

.brandGuard__filters .field__label {
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

.brandGuard__uploadTitle {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.brandGuard__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 22px;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms var(--easing-standard), background 140ms var(--easing-standard);
}

.brandGuard__dropzone:hover,
.brandGuard__dropzone:focus-visible,
.brandGuard__dropzone--drag {
  border-color: var(--primary);
  background: rgba(var(--accent-rgb), 0.08);
  outline: none;
}

.brandGuard__dropIcon {
  color: var(--text);
}

.brandGuard__dropText {
  font-size: 13px;
  line-height: 1.5;
}

.brandGuard__dropzone--hasFile .brandGuard__dropText {
  color: var(--primary);
  font-weight: 600;
}

.brandGuard__analyst {
  align-self: center;
  width: min(360px, 100%);
  margin-top: 6px;
  padding: 15px 24px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: var(--bg);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(20, 184, 166, 0.45);
  transition: transform 130ms var(--easing-emphasis), background 130ms var(--easing-standard),
    box-shadow 130ms var(--easing-standard);
}

.brandGuard__analyst:hover:not(:disabled) {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(20, 184, 166, 0.6);
}

.brandGuard__analyst:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.brandGuard__error {
  margin-top: 0;
}

/* Results pane */
.brandGuard__card--results {
  min-height: 480px;
}

.brandGuard__resultsTitle {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.brandGuard__idle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.brandGuard__sectionLabel {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.brandGuard__statusBlock {
  margin-bottom: 26px;
}

.brandGuard__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brandGuard__pill--compliant {
  background: rgba(0, 211, 32, 0.92);
  color: #04130b;
}

.brandGuard__pill--noncompliant {
  background: rgba(242, 101, 92, 0.92);
  color: #1a0605;
}

.brandGuard__resultGroup {
  margin-bottom: 26px;
}

.brandGuard__resultCard {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--teal-panel-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.brandGuard__resultIcon {
  flex: 0 0 auto;
  color: var(--primary);
  margin-top: 2px;
}

.brandGuard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.brandGuard__listItem {
  position: relative;
  padding-left: 16px;
}

.brandGuard__listItem::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.brandGuard__listItem--empty {
  color: var(--muted2);
}

.brandGuard__listItem--empty::before {
  content: "";
}

.brandGuard__errTitle {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.brandGuard__errBody {
  display: block;
}

.brandGuard__raw {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.brandGuard__resultError {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.6;
}

/* Loading state */
.brandGuard__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 420px;
}

.brandGuard__ring {
  position: relative;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brandGuard__ringArc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary) 0deg,
    var(--primary) 200deg,
    rgba(var(--accent-rgb), 0.12) 320deg,
    rgba(var(--accent-rgb), 0.05) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 60px, #000 61px);
  mask: radial-gradient(circle, transparent 60px, #000 61px);
  animation: brandGuardSpin 1.1s linear infinite;
}

@keyframes brandGuardSpin {
  to {
    transform: rotate(360deg);
  }
}

.brandGuard__loadingText {
  margin: 0;
  color: var(--primary);
  font-size: 15px;
}

@media (max-width: 860px) {
  .brandGuard__grid {
    grid-template-columns: 1fr;
  }

  .brandGuard__body {
    padding: 22px 18px 36px;
  }
}

