:root {
  --app-bg: #f4f7fb;
  --app-surface: #ffffff;
  --app-surface-2: #f8fafc;
  --app-border: #d8e0ea;
  --app-text: #0b1220;
  --app-muted: #526071;
  --app-primary: #2563eb;
  --app-primary-action: #2563eb;
  --app-primary-action-contrast: #ffffff;
  --app-primary-action-strong: #1d4ed8;
  --app-primary-strong: #1d4ed8;
  --app-primary-contrast: #ffffff;
  --app-primary-soft: #eaf1ff;
  --app-accent: #0f766e;
  --app-accent-action: #0f766e;
  --app-accent-action-contrast: #ffffff;
  --app-accent-strong: #0b5f59;
  --app-accent-contrast: #ffffff;
  --app-accent-soft: #e8f5f3;
  --app-success: #15803d;
  --app-danger: #b42318;
  --app-warning: #b45309;
  --app-display-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --app-radius: 12px;
  --app-radius-sm: 8px;
  --app-focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.48);
  --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --app-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --app-shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.14);
  --product-mark-image: url("/assets/customer-help-icon.svg");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--app-bg) 42%, #edf2f8 100%);
  color: var(--app-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-surface="tenant-public"] {
  font-size: 16px;
}

/* Unknown tenant shells stay hidden until routing resolves them. Product pages
   render immediately, except fragment-only auth routes that the server cannot
   see; those become visible as soon as the client selects the admin view. */
html.app-booting .app-shell,
body:has(.route-target-sentinel:target) .app-shell:has(#admin-view[hidden]) {
  visibility: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--app-primary);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--app-primary-strong);
}

.app-shell {
  width: calc(100% - 32px);
  max-width: 1180px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 2rem 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.header-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--app-text);
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--app-primary);
  color: var(--app-primary-contrast);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--app-primary) 26%, transparent);
  font-family: var(--app-display-font);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark.has-image {
  border: 1px solid color-mix(in srgb, var(--app-primary) 16%, transparent);
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
}

.brand-mark.product-mark {
  border: 1px solid rgba(22, 119, 248, 0.14);
  background-color: #fff;
  background-image: var(--product-mark-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 82%;
  color: transparent;
  box-shadow: 0 12px 24px rgba(22, 119, 248, 0.18);
}

.brand-kicker,
.eyebrow {
  display: block;
  margin: 0 0 0.25rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title,
h1,
h2,
h3 {
  margin: 0;
  color: var(--app-text);
  font-family: var(--app-display-font);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brand-title,
h1 {
  display: block;
  font-size: clamp(1.7rem, 2vw + 0.8rem, 2.45rem);
  line-height: 1.05;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 1.3vw + 1rem, 2.05rem);
  line-height: 1.1;
  font-weight: 800;
}

h3 {
  font-size: 1rem;
  font-weight: 800;
}

.view-switcher,
.tool-tabs,
.segmented-control {
  display: inline-grid;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--app-shadow-sm);
}

.view-switcher {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(420px, 100%);
  padding: 0.25rem;
}

.view-button,
.segment-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--app-muted);
  padding: 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.view-button.is-selected,
.segment-button.is-selected {
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--app-shadow-sm);
}

.profile-menu {
  position: relative;
  flex: 0 0 auto;
}

.profile-menu-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface);
  color: var(--app-text);
  padding: 0;
  box-shadow: var(--app-shadow-sm);
}

.profile-menu-button:focus-visible,
.profile-menu-item:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: color-mix(in srgb, var(--app-primary) 13%, #fff);
  color: var(--app-primary-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-notification-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--app-surface);
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  padding: 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgb(190 18 60 / 26%);
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 2rem));
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-lg);
  padding: 0.45rem;
}

.profile-menu-summary {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--app-border);
  margin-bottom: 0.35rem;
}

.profile-menu-summary strong,
.profile-menu-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-summary span {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-menu-language {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem 0.75rem;
  border-bottom: 1px solid var(--app-border);
  margin-bottom: 0.35rem;
}

.profile-menu-language.is-saving {
  opacity: 0.72;
}

.profile-menu-language label {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.profile-menu-language select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 0.45rem 1.9rem 0.45rem 0.65rem;
  background: var(--app-surface-2);
  color: var(--app-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-menu-language select:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.profile-menu-item {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--app-text);
  padding: 0 0.7rem;
  text-align: left;
  font-weight: 800;
}

.profile-menu-item:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.profile-chat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
}

.profile-menu-item-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.profile-menu-item-copy small {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-browser-notifications {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 62px;
  margin: 0.25rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-2);
}

.profile-browser-notifications.is-enabled {
  border-color: color-mix(in srgb, #16a34a 30%, var(--app-border));
  background: color-mix(in srgb, #16a34a 7%, var(--app-surface));
}

.profile-browser-notification-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.profile-browser-notification-action {
  min-height: 34px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: var(--app-surface);
  color: var(--app-text);
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.profile-browser-notification-actions {
  display: grid;
  gap: 0.28rem;
  justify-items: stretch;
}

.profile-browser-notification-action.is-quiet {
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  color: var(--app-muted);
}

.profile-browser-notification-action:hover {
  border-color: var(--app-primary);
  color: var(--app-primary-strong);
}

.profile-browser-notification-action:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.chat-notification-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--app-primary);
  color: #fff;
  padding: 0 0.32rem;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--app-primary) 24%, transparent);
}

.profile-notification-badge[hidden],
.chat-notification-badge[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .profile-menu-panel {
    right: 0;
    left: auto;
  }
}

.view-panel {
  animation: panel-in 0.18s ease;
}

body[data-surface="marketing"] #public-view {
  animation: none;
}

.application-load-error {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 720px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  border: 1px solid #fecaca;
  border-radius: var(--app-radius);
  background: #fff7f7;
  padding: 0.85rem 1rem;
  color: #7f1d1d;
  box-shadow: var(--app-shadow-lg);
}

.application-load-error p {
  margin: 0;
  line-height: 1.45;
}

.tenant-hero,
.support-card,
.admin-card,
.metric-card,
.system-table-wrap {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--app-shadow);
  backdrop-filter: none;
}

.tenant-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  margin-bottom: 1rem;
}

.tenant-summary {
  max-width: 68ch;
  margin: 0.65rem 0 0;
  color: var(--app-muted);
  line-height: 1.6;
}

.tenant-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.location-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: end;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem;
  margin: -0.15rem 0 1rem;
  box-shadow: var(--app-shadow-sm);
}

.location-strip-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.location-strip-copy strong {
  color: var(--app-text);
  font-family: var(--app-display-font);
  font-size: 1rem;
}

.location-strip-copy span {
  min-width: 0;
  color: var(--app-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.location-strip-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.location-input-group {
  gap: 0.28rem;
}

.location-strip-actions {
  display: flex;
  gap: 0.55rem;
  align-items: end;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 30px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface-2);
  color: var(--app-muted);
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.tool-tabs {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 0;
  border-width: 0 0 1px;
  background: transparent;
  box-shadow: none;
  margin: 0 0 1rem;
}

.tool-tab {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-muted);
  padding: 0 0.45rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.tool-tab::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -1px;
  left: 12%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--app-primary);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tool-tab:hover,
.tool-tab.is-selected {
  color: var(--app-text);
}

.tool-tab.is-selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.tool-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.support-card {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.tenant-hero.marketing-hero,
.support-card.is-marketing {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.tenant-hero.marketing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-inline: 0;
  margin-bottom: 1.25rem;
}

.tenant-hero.marketing-hero .tenant-actions {
  justify-self: end;
  justify-items: end;
}

.tenant-hero.marketing-hero #tenant-title {
  max-width: 19ch;
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.tenant-hero.marketing-hero .tenant-summary {
  max-width: 72ch;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.16rem);
  text-wrap: pretty;
}

.support-card.is-marketing {
  padding: 0;
}

.marketing-showcase {
  display: grid;
  gap: 1.25rem;
}

@media (max-width: 620px) {
  .marketing-showcase > .listings-product-section,
  .marketing-showcase > .chat-product-section,
  .marketing-showcase > .ai-product-section,
  .marketing-showcase > .knowledge-product-section,
  .marketing-showcase > .marketing-bento-grid,
  .marketing-showcase > .marketing-process,
  .marketing-showcase > .marketing-trust-grid,
  .marketing-showcase > .marketing-faq,
  .marketing-showcase > .marketing-final-cta {
    content-visibility: auto;
    contain-intrinsic-block-size: auto var(--marketing-mobile-intrinsic-block-size);
  }

  .listings-product-section {
    --marketing-mobile-intrinsic-block-size: 960px;
  }

  .chat-product-section {
    --marketing-mobile-intrinsic-block-size: 1110px;
  }

  .ai-product-section {
    --marketing-mobile-intrinsic-block-size: 1020px;
  }

  .knowledge-product-section {
    --marketing-mobile-intrinsic-block-size: 670px;
  }

  .marketing-bento-grid {
    --marketing-mobile-intrinsic-block-size: 870px;
  }

  .marketing-process {
    --marketing-mobile-intrinsic-block-size: 440px;
  }

  .marketing-trust-grid {
    --marketing-mobile-intrinsic-block-size: 280px;
  }

  .marketing-faq {
    --marketing-mobile-intrinsic-block-size: 540px;
  }

  .marketing-final-cta {
    --marketing-mobile-intrinsic-block-size: 370px;
  }
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(5, minmax(120px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--app-border);
  padding: 2rem 0 2.5rem;
}

#public-view > .site-footer {
  width: 100%;
}

.site-footer-intro {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.site-footer-intro p {
  max-width: 32ch;
  margin: 0;
  color: var(--app-muted);
  line-height: 1.55;
}

.site-footer .marketing-feature-brand {
  width: fit-content;
}

.site-footer .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.site-footer-links {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.site-footer-links strong {
  margin-bottom: 0.15rem;
  color: var(--app-text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-links a {
  color: var(--app-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.site-footer-links a:hover {
  color: var(--app-primary-strong);
}

.trust-page-body {
  min-height: 100dvh;
}

.trust-page-main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0 1rem;
}

.trust-page-hero {
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid var(--app-border);
  padding: clamp(1.4rem, 4vw, 3rem) 0;
}

.trust-page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.trust-page-hero > p:not(.eyebrow) {
  max-width: 70ch;
  margin: 0;
  color: var(--app-muted);
  font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
  line-height: 1.65;
}

.trust-page-review {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  color: var(--app-muted);
  font-size: 0.85rem;
}

.trust-page-content {
  max-width: 74ch;
  display: grid;
  gap: 0.9rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.trust-page-content h2,
.trust-page-content h3 {
  margin-top: 1rem;
}

.trust-page-content p,
.trust-page-content li {
  color: var(--app-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.trust-page-content p,
.trust-page-content ul {
  margin: 0;
}

.trust-page-content ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.4rem;
}

.site-content-editor {
  display: grid;
  gap: 1rem;
}

.site-content-warning {
  border: 1px solid #f5c46b;
  border-radius: var(--app-radius-sm);
  background: #fff9ed;
  padding: 0.85rem 1rem;
  color: #744210;
  line-height: 1.5;
}

.site-content-page-picker {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  align-items: end;
  gap: 1rem;
}

.site-content-locales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-content-locale-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: var(--app-surface);
  padding: 1rem;
}

.site-content-locale-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--app-text);
  font-size: 0.84rem;
  font-weight: 750;
}

.site-content-locale-card textarea {
  min-height: 7rem;
  resize: vertical;
}

.site-content-locale-card textarea[data-site-content-field="bodyMarkdown"] {
  min-height: 24rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer,
  .site-content-locales,
  .site-content-page-picker {
    grid-template-columns: 1fr;
  }

  .site-footer-intro {
    grid-column: auto;
  }
}

@media (min-width: 721px) {
  .marketing-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-capability-rail,
  .marketing-command-center,
  .chat-product-section,
  .listings-product-section,
  .ai-product-section,
  .knowledge-product-section,
  .marketing-bento-grid,
  .marketing-process,
  .marketing-trust-grid,
  .marketing-faq,
  .marketing-final-cta {
    grid-column: 1 / -1;
  }
}

.product-capability-rail {
  position: relative;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.product-capability-chip {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 0.75rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: var(--app-shadow-sm);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.product-capability-chip:hover,
.product-capability-chip:focus {
  border-color: #b8c3d1;
  background: #fff;
  color: var(--app-text);
  transform: translateY(-1px);
}

.product-capability-chip:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.48);
  outline-offset: 2px;
}

.product-capability-tooltip {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: min(270px, calc(100vw - 2rem));
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: var(--app-text);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.product-capability-chip:hover .product-capability-tooltip,
.product-capability-chip:focus .product-capability-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.marketing-command-center,
.chat-product-section,
.listings-product-section,
.ai-product-section,
.knowledge-product-section,
.marketing-process,
.marketing-faq,
.marketing-final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  border: 1px solid var(--app-border);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.09);
}

.marketing-command-center {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.13), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 52%, #f2fbf9 100%);
  padding: clamp(1.5rem, 4vw, 3.2rem);
}

.marketing-command-center::before,
.listings-product-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, #000, transparent 65%);
}

.marketing-command-copy,
.chat-product-copy,
.listings-product-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.marketing-code-example,
.marketing-customer-example {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(30, 64, 175, 0.14);
}

.marketing-code-example-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--app-border);
  background: #f8fafc;
  padding: 0.65rem 0.8rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.marketing-code-example-bar span,
.marketing-code-example-bar a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.marketing-code-example-bar i {
  display: grid;
  color: var(--app-primary);
  font-style: normal;
}

.marketing-code-example-bar strong {
  color: var(--app-text);
  font-size: 0.76rem;
}

.marketing-code-example-bar a {
  color: var(--app-primary-strong);
}

.marketing-code-example-scroll {
  max-height: 465px;
  overflow: auto;
  scrollbar-gutter: stable;
  background: var(--app-bg);
  padding: 0.8rem;
}

.marketing-code-example.is-listings .marketing-code-example-scroll {
  max-height: 520px;
}

.marketing-code-example .setup-panel {
  gap: 0.75rem;
}

.marketing-code-example .admin-card {
  border-radius: 14px;
  box-shadow: var(--app-shadow-sm);
}

.marketing-code-example .dashboard-stat-grid,
.marketing-code-example .config-metric-row,
.marketing-code-example .listing-provider-grid,
.marketing-code-example .listing-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-code-example .dashboard-core-grid,
.marketing-code-example .listing-insights-grid {
  grid-template-columns: 1fr;
}

.marketing-code-example .listing-office-row {
  grid-template-columns: minmax(0, 1fr);
}

.marketing-customer-example {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  box-shadow: var(--app-shadow-sm);
}

.marketing-customer-example-body {
  background: var(--app-bg);
  padding: 0.8rem;
}

.marketing-customer-example .tenant-hero {
  grid-template-columns: 1fr;
  padding: 0.9rem;
  margin-bottom: 0.65rem;
}

.marketing-customer-example .tenant-hero h3 {
  font-size: 1.15rem;
}

.marketing-customer-example .tool-tabs {
  margin-bottom: 0.65rem;
}

.marketing-customer-example .public-grid-single {
  max-width: none;
}

.marketing-customer-example .office-card {
  padding: 0.9rem;
}

.product-kicker {
  width: fit-content;
  display: inline-flex;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  padding: 0.38rem 0.65rem;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-command-copy h3,
.marketing-command-copy h2,
.chat-product-copy h3,
.chat-product-copy h2,
.listings-product-copy h3,
.listings-product-copy h2,
.ai-product-copy h2,
.knowledge-product-heading h2,
.marketing-process-heading h2,
.marketing-faq-heading h2,
.marketing-final-cta h2,
.marketing-final-cta h2,
.marketing-final-cta h3 {
  max-width: 16ch;
  margin-top: 0.85rem;
  font-size: clamp(1.7rem, 2.3vw + 0.7rem, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.marketing-command-copy > p,
.chat-product-copy > p:not(.eyebrow),
.listings-product-copy > p:not(.eyebrow),
.ai-product-copy > p:not(.eyebrow),
.knowledge-product-heading > p:not(.eyebrow),
.marketing-final-cta p:last-child {
  max-width: 60ch;
  margin: 0.9rem 0 0;
  color: var(--app-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.chat-product-section {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background:
    radial-gradient(circle at 7% 16%, color-mix(in srgb, var(--app-primary) 12%, transparent), transparent 34%),
    radial-gradient(circle at 92% 85%, color-mix(in srgb, var(--app-accent) 12%, transparent), transparent 32%),
    linear-gradient(145deg, #ffffff, #f7faff 56%, #f3fbf9);
}

.chat-product-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(37 99 235 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(37 99 235 / 3%) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 62%);
  pointer-events: none;
}

.chat-product-copy {
  position: relative;
  z-index: 2;
}

.feature-icon-chat {
  margin-bottom: 1.15rem;
  color: var(--app-primary-strong);
  background: linear-gradient(145deg, #eff6ff, #ecfdf5);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 10%), 0 12px 25px rgb(37 99 235 / 10%);
}

.chat-product-section .chat-product-check-list li {
  color: var(--app-muted);
}

.chat-product-section .chat-product-check-list li > svg {
  background: color-mix(in srgb, var(--app-success) 12%, #fff);
  color: var(--app-success);
}

.chat-product-section .chat-product-check-list strong {
  color: var(--app-text);
}

.site-chat-preview {
  position: relative;
  z-index: 2;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 34%);
  border-radius: 20px;
  background: #eef4fb;
  box-shadow: 0 30px 70px rgb(30 64 175 / 16%);
}

.site-chat-preview-page {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #fff 0 52%, #eef4fb 52%),
    #fff;
}

.site-chat-preview-browser {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-muted);
  background: rgb(255 255 255 / 88%);
  font-size: 0.7rem;
  font-weight: 750;
}

.site-chat-preview-browser i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.site-chat-preview-browser span {
  margin-left: 0.35rem;
}

.site-chat-preview-content {
  width: min(52%, 270px);
  display: grid;
  gap: 0.55rem;
  margin: 4.25rem 0 0 2rem;
}

.site-chat-preview-content > span {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--app-accent);
}

.site-chat-preview-content strong {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.site-chat-preview-content small {
  color: var(--app-muted);
  line-height: 1.5;
}

.site-chat-preview-panel {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  width: min(330px, calc(100% - 2.3rem));
  overflow: hidden;
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(15 23 42 / 20%);
}

.site-chat-preview-panel header {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-top: 3px solid var(--app-primary);
  border-bottom: 1px solid var(--app-border);
}

.site-chat-preview-panel header > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--app-primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-chat-preview-panel header div,
.site-chat-preview-panel header small {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-chat-preview-panel header div {
  align-items: flex-start;
  flex-direction: column;
}

.site-chat-preview-panel header strong {
  font-size: 0.8rem;
}

.site-chat-preview-panel header small {
  color: var(--app-muted);
  font-size: 0.64rem;
}

.site-chat-preview-panel header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-success);
}

.site-chat-preview-messages {
  min-height: 210px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1rem;
  background: #f8fafc;
}

.site-chat-preview-messages p {
  max-width: 82%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--app-border);
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  font-size: 0.7rem;
  line-height: 1.4;
}

.site-chat-preview-messages p.is-visitor {
  align-self: flex-end;
  border-color: var(--app-primary);
  border-radius: 12px 12px 4px 12px;
  color: #fff;
  background: var(--app-primary);
}

.site-chat-preview-messages > span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-muted);
  background: #fff;
  font-size: 0.58rem;
}

.site-chat-preview-messages > span i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.site-chat-preview-panel footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid var(--app-border);
}

.site-chat-preview-panel footer > span {
  min-height: 36px;
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0 0.7rem;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.65rem;
}

.site-chat-preview-panel footer b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--app-primary);
}

.site-chat-preview-panel footer b {
  width: 36px;
  height: 36px;
}

@media (max-width: 800px) {
  .inbox-search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .inbox-search-field {
    grid-column: 1 / -1;
  }
  .chat-product-section {
    grid-template-columns: 1fr;
  }

  .site-chat-preview {
    min-height: 390px;
  }
}

@media (max-width: 520px) {
  .inbox-search-bar {
    grid-template-columns: 1fr;
  }

  .inbox-search-field {
    grid-column: auto;
  }
  .site-chat-preview {
    min-height: 380px;
  }

  .site-chat-preview-content {
    width: 62%;
    margin: 2.5rem 0 0 1.15rem;
  }

  .site-chat-preview-panel {
    right: 0.7rem;
    bottom: 0.7rem;
    width: calc(100% - 1.4rem);
  }
}

.product-console {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 60px rgba(30, 64, 175, 0.14);
  transform: perspective(1200px) rotateY(-1.5deg) rotateX(0.5deg);
}

.product-console-topbar,
.listings-preview-header,
.listings-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.product-console-topbar {
  border-bottom: 1px solid var(--app-border);
  background: #f8fafc;
  padding: 0.7rem 0.85rem;
}

.product-console-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--app-text);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-console-brand i,
.product-console-action > i,
.product-console-cards i {
  display: grid;
  place-items: center;
  color: var(--app-primary);
  font-style: normal;
}

.product-console-body {
  min-height: 330px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.product-console-nav {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  border-right: 1px solid var(--app-border);
  background: #fbfdff;
  padding: 0.75rem;
}

.product-console-nav span {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9px;
  padding: 0 0.55rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-console-nav .is-active {
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.product-console-main {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
}

.product-console-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-console-heading div,
.product-console-action span,
.listings-preview-header div,
.listings-preview-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.product-console-heading small,
.product-console-action small,
.product-console-cards small,
.listings-preview-header small,
.listings-preview-summary small,
.listings-preview-row small {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
}

.product-console-heading > span {
  color: var(--app-primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.product-console-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.product-console-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-primary), var(--app-accent));
}

.product-console-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-console-cards > span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: #fff;
  padding: 0.7rem;
}

.product-console-cards strong {
  font-size: 0.92rem;
}

.product-console-action {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(90deg, #eff6ff, #f0fdfa);
  padding: 0.8rem;
}

.product-console-action > svg {
  color: var(--app-muted);
}

.listings-product-section {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background:
    radial-gradient(circle at 85% 18%, rgba(37, 99, 235, 0.15), transparent 34%),
    linear-gradient(140deg, #0b1220 0%, #111c30 58%, #0f2d38 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.listings-product-section::before {
  opacity: 0.15;
  mask-image: linear-gradient(to right, #000, transparent 80%);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.12);
}

.feature-icon-listing {
  margin-bottom: 1.2rem;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.2);
}

.feature-icon-teal {
  background: #e6fffb;
  color: var(--app-accent);
}

.feature-icon-amber {
  background: #fff7ed;
  color: var(--app-warning);
}

.listings-product-copy .eyebrow,
.listings-product-copy h3,
.listings-product-copy h2 {
  color: #fff;
}

.listings-product-copy > p:not(.eyebrow) {
  color: #aebbcf;
}

.product-check-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.product-check-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  color: #aebbcf;
  font-size: 0.78rem;
  line-height: 1.45;
}

.product-check-list li > svg {
  margin-top: 0.1rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.18);
  color: #86efac;
  padding: 0.1rem;
}

.product-check-list span,
.product-check-list strong {
  display: block;
}

.product-check-list li > span:only-child {
  grid-column: 1 / -1;
}

.product-check-list strong {
  margin-bottom: 0.12rem;
  color: #fff;
  font-size: 0.83rem;
}

.listings-product-preview {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.25);
}

.listings-preview-header,
.listings-preview-footer {
  padding: 0.9rem 1rem;
}

.listings-preview-header {
  border-bottom: 1px solid var(--app-border);
  background: #f8fafc;
}

.listings-preview-header strong {
  font-size: 0.95rem;
}

.listings-preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.85rem 1rem;
}

.listings-preview-summary span {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-2);
  padding: 0.65rem;
}

.listings-preview-summary strong {
  font-size: 1.05rem;
}

.listings-preview-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.85rem;
}

.listings-preview-fields span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: #f0fdf4;
  padding: 0.32rem 0.5rem;
  color: #166534;
  font-size: 0.66rem;
  font-weight: 850;
}

.listings-preview-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border-top: 1px solid var(--app-border);
  padding: 0.75rem 1rem;
}

.listings-row-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.listings-preview-row strong {
  font-size: 0.82rem;
}

.listings-preview-footer {
  border-top: 1px solid var(--app-border);
  background: #f8fafc;
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.preview-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9px;
  background: var(--app-primary);
  padding: 0 0.65rem;
  color: #fff;
  font-weight: 850;
}

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

.marketing-bento-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.15rem;
  box-shadow: var(--app-shadow-sm);
}

.marketing-bento-card.is-wide {
  grid-column: auto;
  grid-template-columns: 1fr;
}

.marketing-bento-card.is-wide .mini-customer-page {
  grid-column: 1 / -1;
}

.marketing-bento-card .eyebrow {
  margin-top: 0.45rem;
}

.marketing-bento-card h3 {
  font-size: 1.08rem;
}

.marketing-bento-card p:not(.eyebrow) {
  margin: 0.1rem 0 0;
  color: var(--app-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.marketing-bento-card code {
  border-radius: 5px;
  background: var(--app-primary-soft);
  padding: 0.05rem 0.25rem;
  color: var(--app-primary-strong);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 850;
}

.mini-customer-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  background: linear-gradient(135deg, #f8fbff, #f0fdfa);
  padding: 0.65rem;
}

.mini-customer-page span {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  background: #fff;
  color: var(--app-text);
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: var(--app-shadow-sm);
}

.mini-customer-page i {
  display: grid;
  color: var(--app-primary);
  font-style: normal;
}

.marketing-final-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  background:
    radial-gradient(circle at 88% 20%, rgba(96, 165, 250, 0.2), transparent 28%),
    linear-gradient(135deg, #eff6ff, #ffffff 58%, #ecfdf5);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.marketing-final-cta h3 {
  max-width: 26ch;
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 1.3vw + 1rem, 2.15rem);
  line-height: 1.08;
}

.marketing-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

#product-overview,
#product-listings,
#product-chat,
#product-ai,
#product-ai-training,
#product-presence {
  scroll-margin-top: 1.5rem;
}

.product-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.product-outcome-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--app-primary) 14%, var(--app-border));
  border-radius: 15px;
  background: rgb(255 255 255 / 74%);
  padding: 1rem;
}

.product-outcome-grid article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.product-outcome-grid strong {
  font-size: 0.94rem;
}

.product-outcome-grid p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.ai-product-section {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background:
    radial-gradient(circle at 9% 15%, rgb(59 130 246 / 23%), transparent 33%),
    radial-gradient(circle at 92% 82%, rgb(20 184 166 / 18%), transparent 31%),
    linear-gradient(145deg, #0b1220, #101b32 58%, #102a32);
  padding: clamp(1.5rem, 4vw, 3.2rem);
}

.ai-product-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}

.ai-product-copy,
.ai-solution-preview {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.feature-icon-ai {
  margin-bottom: 1.15rem;
  border: 1px solid rgb(147 197 253 / 20%);
  background: rgb(59 130 246 / 17%);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.ai-product-copy .eyebrow,
.ai-product-copy h2 {
  color: #fff;
}

.ai-product-copy > p:not(.eyebrow) {
  color: #b9c6d9;
}

.ai-product-check-list li {
  color: #b9c6d9;
}

.ai-product-check-list strong {
  color: #fff;
}

.ai-solution-preview {
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 30%);
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: 0 32px 75px rgb(0 0 0 / 30%);
}

.ai-preview-header,
.ai-preview-header > span,
.ai-preview-thread > div {
  display: flex;
  align-items: center;
}

.ai-preview-header {
  min-height: 58px;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--app-border);
  background: #fff;
  padding: 0.75rem 0.9rem;
}

.ai-preview-header > span {
  gap: 0.55rem;
}

.ai-preview-header b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--app-primary), var(--app-accent));
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.ai-preview-header small {
  color: var(--app-muted);
  font-weight: 750;
}

.ai-mode-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  border-bottom: 1px solid var(--app-border);
  background: #fff;
  padding: 0.65rem;
}

.ai-mode-preview span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  color: var(--app-muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.ai-mode-preview span.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.ai-preview-thread {
  min-height: 240px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem;
}

.ai-preview-thread p {
  max-width: 82%;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  border: 1px solid var(--app-border);
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

.ai-preview-thread p small {
  color: var(--app-primary-strong);
  font-weight: 850;
}

.ai-preview-thread p.is-visitor {
  align-self: flex-end;
  border-color: var(--app-primary);
  border-radius: 12px 12px 4px 12px;
  background: var(--app-primary);
  color: #fff;
}

.ai-preview-thread > div {
  width: 100%;
  gap: 0.55rem;
  border: 1px solid #bbf7d0;
  border-radius: 11px;
  background: #f0fdf4;
  padding: 0.65rem 0.75rem;
  color: #166534;
}

.ai-preview-thread > div > span {
  display: grid;
  gap: 0.1rem;
}

.ai-preview-thread > div strong,
.ai-preview-thread > div small {
  font-size: 0.68rem;
}

.ai-preview-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid var(--app-border);
  background: #fff;
  padding: 0.75rem 0.9rem;
}

.ai-preview-sources span {
  border-radius: 999px;
  background: var(--app-primary-soft);
  padding: 0.3rem 0.5rem;
  color: var(--app-primary-strong);
  font-size: 0.62rem;
  font-weight: 850;
}

.knowledge-product-section {
  grid-column: 1 / -1;
  gap: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 90% 10%, rgb(20 184 166 / 10%), transparent 30%),
    linear-gradient(145deg, #fff, #f8fbff 60%, #f2fbf9);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.knowledge-product-heading {
  max-width: 760px;
}

.knowledge-product-heading h2,
.marketing-process-heading h2,
.marketing-faq-heading h2 {
  max-width: 21ch;
}

.knowledge-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.knowledge-source-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 15px;
  background: rgb(255 255 255 / 82%);
  padding: 1.05rem;
  box-shadow: var(--app-shadow-sm);
}

.knowledge-source-grid article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-accent-soft);
  color: var(--app-accent-strong);
}

.knowledge-source-grid h3,
.knowledge-source-grid p {
  margin: 0;
}

.knowledge-source-grid h3 {
  font-size: 0.96rem;
}

.knowledge-source-grid p {
  color: var(--app-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.marketing-process {
  grid-column: 1 / -1;
  gap: 1.5rem;
  background: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.marketing-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-process-grid li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border-top: 1px solid var(--app-border);
  padding-top: 1rem;
}

.marketing-process-grid li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.marketing-process-grid li > div {
  display: grid;
  gap: 0.35rem;
}

.marketing-process-grid p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.marketing-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.marketing-trust-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: rgb(255 255 255 / 80%);
  padding: 0.9rem;
  box-shadow: var(--app-shadow-sm);
}

.marketing-trust-grid article > svg {
  color: var(--app-primary-strong);
}

.marketing-trust-grid article > span {
  display: grid;
  gap: 0.2rem;
}

.marketing-trust-grid strong {
  font-size: 0.78rem;
}

.marketing-trust-grid small {
  color: var(--app-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.marketing-faq {
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  background: linear-gradient(145deg, #fff, #f8fafc);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.marketing-faq-list {
  display: grid;
  gap: 0.55rem;
}

.marketing-faq details {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
}

.marketing-faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.marketing-faq summary::-webkit-details-marker {
  display: none;
}

.marketing-faq summary::after {
  content: "+";
  color: var(--app-primary-strong);
  font-size: 1.1rem;
}

.marketing-faq details[open] summary::after {
  content: "−";
}

.marketing-faq details p {
  margin: 0;
  border-top: 1px solid var(--app-border);
  padding: 0.85rem 0.9rem 1rem;
  color: var(--app-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.marketing-showcase h2[tabindex="-1"]:focus {
  outline: 3px solid color-mix(in srgb, var(--app-primary) 32%, transparent);
  outline-offset: 5px;
}

.marketing-feature-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgb(37 99 235 / 10%), transparent 26rem),
    radial-gradient(circle at 92% 28%, rgb(13 148 136 / 9%), transparent 24rem),
    var(--app-background);
  color: var(--app-text);
}

.marketing-feature-site-header,
.marketing-feature-main,
.marketing-feature-footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.marketing-feature-site-header {
  margin-bottom: 0;
  border-bottom: 1px solid rgb(148 163 184 / 24%);
  padding-block: 2rem 1rem;
}

.trust-page-body .marketing-feature-site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0;
}

.marketing-feature-site-header .brand-lockup {
  text-decoration: none;
}

.marketing-feature-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.marketing-feature-brand > span:last-child {
  display: grid;
  gap: 0.08rem;
}

.marketing-feature-brand strong {
  font-size: 0.88rem;
}

.marketing-feature-brand small {
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.trust-page-body .marketing-feature-site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trust-page-body .marketing-feature-site-nav > a {
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.trust-page-body .marketing-feature-site-nav > a:hover,
.trust-page-body .marketing-feature-site-nav > a:focus-visible {
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.marketing-feature-language {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  padding: 0.25rem;
  box-shadow: var(--app-shadow-sm);
}

.marketing-feature-language a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.marketing-feature-language a:hover,
.marketing-feature-language a:focus-visible,
.marketing-feature-language a[aria-current="page"] {
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--app-shadow-sm);
}

.marketing-feature-language {
  flex: 0 0 auto;
}

.marketing-feature-site-nav > .view-button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-muted);
  text-decoration: none;
  white-space: nowrap;
}

.marketing-feature-site-nav > .view-button:hover,
.marketing-feature-site-nav > .view-button:focus-visible {
  background: var(--app-surface-2);
  color: var(--app-text);
}

.marketing-feature-site-nav > .view-button.is-selected,
.marketing-feature-site-nav > .view-button.is-selected:hover,
.marketing-feature-site-nav > .view-button.is-selected:focus-visible {
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--app-shadow-sm);
}

.marketing-feature-main {
  display: grid;
  gap: 1rem;
  padding-block: 1.25rem 2rem;
}

.marketing-feature-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.marketing-feature-breadcrumb a {
  color: var(--app-primary-strong);
  text-decoration: none;
}

.marketing-feature-hero,
.marketing-feature-section,
.marketing-feature-final-cta {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: clamp(18px, 3vw, 28px);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--app-shadow-sm);
}

.marketing-feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  background:
    linear-gradient(135deg, rgb(239 246 255 / 94%), rgb(255 255 255 / 96%) 55%, rgb(240 253 250 / 92%));
  padding: clamp(2rem, 6vw, 5rem);
}

.marketing-feature-hero h1 {
  max-width: 17ch;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.15rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.marketing-feature-intro {
  max-width: 72ch;
  margin: 0;
  color: var(--app-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.marketing-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.marketing-feature-intent {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: 18px;
  background: rgb(255 255 255 / 84%);
  padding: 1.2rem;
  box-shadow: 0 18px 40px rgb(30 64 175 / 10%);
}

.marketing-feature-intent strong {
  color: var(--app-primary-strong);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-feature-intent p {
  margin: 0;
  color: var(--app-text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.65;
}

.marketing-feature-section {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.marketing-feature-section-heading {
  max-width: 780px;
}

.marketing-feature-section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.marketing-feature-card-grid,
.marketing-feature-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.marketing-feature-card-grid article,
.marketing-feature-related-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: #fff;
  padding: 1.1rem;
}

.marketing-feature-card-grid h3,
.marketing-feature-card-grid p {
  margin: 0;
}

.marketing-feature-card-grid h3 {
  color: var(--app-primary-strong);
  font-size: 0.94rem;
}

.marketing-feature-card-grid p,
.marketing-feature-related-card span {
  color: var(--app-muted);
  font-size: 0.81rem;
  line-height: 1.65;
}

.marketing-feature-section.is-workflow {
  background:
    radial-gradient(circle at 100% 0%, rgb(59 130 246 / 12%), transparent 35%),
    #0f172a;
  color: #fff;
}

.marketing-feature-section.is-workflow .eyebrow,
.marketing-feature-section.is-workflow .marketing-feature-section-heading h2 {
  color: #fff;
}

.marketing-feature-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-feature-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border-top: 1px solid rgb(148 163 184 / 30%);
  padding-top: 1rem;
}

.marketing-feature-steps li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app-primary);
  font-size: 0.75rem;
  font-weight: 900;
}

.marketing-feature-steps h3,
.marketing-feature-steps p {
  margin: 0;
}

.marketing-feature-steps h3 {
  font-size: 0.9rem;
}

.marketing-feature-steps p {
  margin-top: 0.35rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.62;
}

.marketing-feature-section.is-questions {
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
}

.marketing-feature-faq {
  display: grid;
  gap: 0.55rem;
}

.marketing-feature-faq details {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  background: #fff;
}

.marketing-feature-faq summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.marketing-feature-faq summary::-webkit-details-marker {
  display: none;
}

.marketing-feature-faq summary::after {
  content: "+";
  color: var(--app-primary-strong);
  font-size: 1.15rem;
}

.marketing-feature-faq details[open] summary::after {
  content: "−";
}

.marketing-feature-faq details p {
  margin: 0;
  border-top: 1px solid var(--app-border);
  padding: 0.9rem 0.95rem 1rem;
  color: var(--app-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.marketing-feature-section.is-related {
  background: linear-gradient(145deg, #f8fafc, #fff);
}

.marketing-feature-related-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.marketing-feature-related-card:hover,
.marketing-feature-related-card:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 14px 30px rgb(37 99 235 / 11%);
  transform: translateY(-2px);
}

.marketing-feature-related-card strong {
  color: var(--app-primary-strong);
  font-size: 0.88rem;
  line-height: 1.4;
}

.marketing-feature-help-links {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--app-border);
  padding-top: 1rem;
}

.marketing-feature-help-links > strong {
  font-size: 0.8rem;
}

.marketing-feature-help-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.marketing-feature-help-links a {
  border-radius: 999px;
  background: var(--app-primary-soft);
  padding: 0.5rem 0.68rem;
  color: var(--app-primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.marketing-feature-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 90% 0%, rgb(45 212 191 / 16%), transparent 35%),
    #172554;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.marketing-feature-final-cta > div {
  max-width: 760px;
}

.marketing-feature-final-cta .eyebrow,
.marketing-feature-final-cta h2 {
  color: #fff;
}

.marketing-feature-final-cta h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.13;
}

.marketing-feature-final-cta p:not(.eyebrow) {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.marketing-feature-final-cta .primary-button {
  flex: 0 0 auto;
  background: #fff;
  color: #1d4ed8;
}

.marketing-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(148 163 184 / 24%);
  padding-block: 1.5rem 2rem;
  color: var(--app-muted);
  font-size: 0.75rem;
}

.marketing-feature-footer a {
  color: var(--app-primary-strong);
  font-weight: 850;
  text-decoration: none;
}

.marketing-feature-footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 820px) {
  .marketing-feature-final-cta,
  .marketing-feature-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-feature-hero,
  .marketing-feature-section.is-questions {
    grid-template-columns: 1fr;
  }

  .marketing-feature-card-grid,
  .marketing-feature-related-grid,
  .marketing-feature-steps {
    grid-template-columns: 1fr;
  }

  .marketing-feature-footer p {
    text-align: left;
  }

  .trust-page-body .marketing-feature-site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .trust-page-body .marketing-feature-site-nav {
    width: 100%;
  }
}

@media (max-width: 1040px) {
  .marketing-feature-body .marketing-feature-site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .marketing-feature-body .marketing-feature-header-actions {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .marketing-feature-body .marketing-feature-site-header {
    width: min(100% - 20px, 1180px);
    padding-block: 1rem;
  }
}

@media (max-width: 520px) {
  .marketing-feature-main,
  .marketing-feature-footer {
    width: min(100% - 20px, 1180px);
  }

  .trust-page-body .marketing-feature-site-nav > a {
    padding-inline: 0.5rem;
  }

  .marketing-feature-hero,
  .marketing-feature-section,
  .marketing-feature-final-cta {
    border-radius: 17px;
  }

  .marketing-feature-actions {
    display: grid;
  }

  .marketing-feature-actions a,
  .marketing-feature-final-cta .primary-button {
    width: 100%;
    justify-content: center;
  }
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.public-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.field-grid {
  display: grid;
  gap: 0.8rem;
}

.field-grid.with-top-gap {
  margin-top: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field-group {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.field-group.has-address-autocomplete {
  position: relative;
}

.field-group label,
.field-label {
  color: var(--app-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.address-autocomplete-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 0.2rem);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
  padding: 0.25rem;
}

.address-autocomplete-options {
  max-height: 220px;
  overflow: auto;
}

.address-autocomplete-menu[hidden] {
  display: none;
}

.address-autocomplete-option {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 0.15rem;
  border: 0;
  border-radius: calc(var(--app-radius-sm) - 4px);
  background: transparent;
  color: var(--app-text);
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
}

.address-autocomplete-option:hover,
.address-autocomplete-option.is-active {
  background: var(--app-primary-soft);
}

.address-autocomplete-option span {
  font-weight: 800;
}

.address-autocomplete-option small {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.address-autocomplete-attribution {
  margin: 0.2rem 0.65rem 0.15rem;
  border-top: 1px solid var(--app-border);
  color: #5e5e5e;
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  padding-top: 0.4rem;
  text-align: right;
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  color: var(--app-text);
  padding: 0.72rem 0.82rem;
  outline: none;
  box-shadow: var(--app-shadow-sm);
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input[type="color"] {
  min-height: 46px;
  padding: 0.22rem;
}

input[type="checkbox"] {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--app-primary) 55%, white);
  box-shadow: var(--app-focus-ring);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: color-mix(in srgb, var(--app-border) 35%, var(--app-surface));
  color: var(--app-muted);
  cursor: not-allowed;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--app-radius-sm);
  padding: 0.68rem 0.95rem;
  font-weight: 800;
  text-align: center;
}

.primary-button {
  border: 1px solid var(--app-primary);
  background: var(--app-primary);
  color: var(--app-primary-contrast);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--app-primary) 24%, transparent);
}

.primary-button:hover {
  background: var(--app-primary-strong);
  color: var(--app-primary-contrast);
}

.view-button:focus-visible,
.tool-tab:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.danger-button:focus-visible,
.link-button:focus-visible,
.segment-button:focus-visible,
.social-link:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--app-shadow-sm);
}

.ghost-button {
  background: transparent;
  box-shadow: none;
}

.danger-button {
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.08);
  color: var(--app-danger);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.link-button:disabled,
button[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.primary-button:disabled:hover {
  background: var(--app-primary);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--app-primary);
  padding-inline: 0.2rem;
}

.office-list {
  display: grid;
  gap: 0.75rem;
}

.office-card {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 254, 0.96)),
    #fff;
  padding: clamp(1rem, 2vw, 1.2rem);
  box-shadow: var(--app-shadow-sm);
}

.office-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.office-card p {
  margin: 0.2rem 0;
  color: var(--app-muted);
  line-height: 1.5;
}

.office-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--app-muted);
  line-height: 1.45;
}

.office-details > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.office-details a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.office-empty-copy {
  margin: 0;
}

.office-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.office-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.status-note {
  border: 1px solid color-mix(in srgb, var(--app-primary) 18%, var(--app-border));
  border-radius: var(--app-radius-sm);
  background: var(--app-primary-soft);
  color: var(--app-text);
  padding: 0.8rem 0.9rem;
  line-height: 1.55;
}

.state-message {
  margin: 0.8rem 0 0;
}

.state-message-info {
  border-color: color-mix(in srgb, var(--app-primary) 18%, var(--app-border));
  background: var(--app-primary-soft);
}

.state-message-success {
  border-color: color-mix(in srgb, var(--app-success) 30%, var(--app-border));
  background: color-mix(in srgb, var(--app-success) 12%, white);
}

.state-message-warning {
  border-color: color-mix(in srgb, var(--app-warning) 35%, var(--app-border));
  background: color-mix(in srgb, var(--app-warning) 12%, white);
}

.state-message-error {
  border-color: color-mix(in srgb, var(--app-danger) 28%, var(--app-border));
  background: color-mix(in srgb, var(--app-danger) 10%, white);
}

.status-note strong {
  font-weight: 800;
}

.app-status {
  margin: 0.8rem 0 0;
}

.status-success {
  border-color: color-mix(in srgb, var(--app-success) 30%, var(--app-border));
  background: color-mix(in srgb, var(--app-success) 12%, white);
}

.status-warning {
  border-color: color-mix(in srgb, var(--app-warning) 35%, var(--app-border));
  background: color-mix(in srgb, var(--app-warning) 12%, white);
}

.status-error {
  border-color: color-mix(in srgb, var(--app-danger) 28%, var(--app-border));
  background: color-mix(in srgb, var(--app-danger) 10%, white);
}

.toast-region {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.65rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  box-shadow: var(--shadow-soft);
  color: var(--app-text);
  line-height: 1.45;
  padding: 0.82rem 0.95rem;
  pointer-events: auto;
  animation: toast-in 180ms ease-out;
}

.toast-message.has-action {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.toast-message.is-hiding {
  animation: toast-out 180ms ease-in forwards;
}

.toast-marker {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.28rem;
  border-radius: 999px;
  background: var(--app-primary);
}

.toast-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.toast-action {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--app-primary) 24%, var(--app-border));
  border-radius: 9px;
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.toast-action:hover {
  border-color: color-mix(in srgb, var(--app-primary) 48%, var(--app-border));
  background: color-mix(in srgb, var(--app-primary) 16%, #fff);
}

.toast-action:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.toast-message-success {
  border-color: color-mix(in srgb, var(--app-success) 35%, var(--app-border));
}

.toast-message-success .toast-marker {
  background: var(--app-success);
}

.toast-message-warning {
  border-color: color-mix(in srgb, var(--app-warning) 40%, var(--app-border));
}

.toast-message-warning .toast-marker {
  background: var(--app-warning);
}

.toast-message-error {
  border-color: color-mix(in srgb, var(--app-danger) 35%, var(--app-border));
}

.toast-message-error .toast-marker {
  background: var(--app-danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
}

.compact-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.65rem;
  padding: 0.72rem 0.82rem;
}

.compact-note span {
  min-width: 0;
  color: var(--app-muted);
  overflow-wrap: anywhere;
}

.follow-panel {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.follow-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.social-link {
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  padding: 0.82rem;
  box-shadow: var(--app-shadow-sm);
}

.social-link:hover {
  border-color: color-mix(in srgb, var(--app-primary) 30%, var(--app-border));
}

.social-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 12%, #fff);
}

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-icon-facebook {
  color: #1877f2;
}

.social-icon-instagram {
  color: #c13584;
}

.social-icon-linkedin {
  color: #0a66c2;
}

.social-icon-x {
  color: #111827;
}

.social-icon-youtube {
  color: #ff0000;
}

.social-icon-tiktok {
  color: #111827;
}

.social-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.social-copy strong {
  color: var(--app-text);
  font-size: 0.92rem;
}

.social-copy span {
  display: block;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.admin-view.is-login-view {
  min-height: calc(100dvh - 150px);
  display: grid;
  align-items: center;
}

.admin-view.is-login-view > .split-heading {
  display: none;
}

.admin-view.is-setup-view > .split-heading {
  display: none;
}

.admin-view.is-setup-view .admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 1rem;
}

.admin-view.is-login-view .admin-grid {
  width: 100%;
  min-height: min(560px, calc(100dvh - 190px));
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.admin-card {
  min-width: 0;
  padding: 1.1rem;
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-card h3 {
  margin-bottom: 0.85rem;
}

.auth-card {
  padding: 0;
}

.auth-card-inner {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.auth-card-login {
  justify-self: center;
  width: min(100%, 430px);
  grid-column: 1 / -1;
  border-radius: 24px;
  background: var(--app-surface);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.auth-card-login .auth-card-inner {
  padding: 1.5rem;
}

.auth-card-compact {
  align-self: start;
  border-radius: var(--app-radius);
}

.registration-auth-card {
  align-self: stretch;
}

.auth-card-compact .auth-card-inner {
  padding: 1rem;
}

.profile-settings-card {
  display: grid;
  gap: 1rem;
  width: min(100%, 680px);
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--app-primary) 95%, #fff), color-mix(in srgb, var(--app-primary) 70%, #60a5fa));
  color: #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--app-primary) 30%, transparent);
  font-family: var(--app-display-font);
  font-weight: 800;
  text-transform: uppercase;
}

.auth-subtitle {
  margin: 0.2rem 0 0;
  color: var(--app-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-help {
  margin: -0.25rem 0 0.85rem;
  color: var(--app-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-form-grid {
  gap: 0.75rem;
}

.auth-submit {
  width: 100%;
}

.auth-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-action-row .primary-button,
.auth-action-row .secondary-button {
  flex: 1 1 160px;
  justify-content: center;
}

.system-auth-card {
  width: min(100%, 620px);
  margin: 0 auto;
}

.admin-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-auth-actions-single {
  grid-template-columns: minmax(0, 1fr);
}

.app-status:empty,
.auth-status:empty,
#save-status:empty,
#billing-status:empty {
  display: none;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--app-text);
  font-weight: 800;
}

.brand-editor,
.office-editor {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 1rem;
}

.brand-editor + .brand-editor,
.office-editor + .office-editor {
  margin-top: 0.85rem;
}

.brand-social-group {
  border-top: 1px solid var(--app-border);
  margin-top: 0.35rem;
  padding-top: 0.9rem;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.config-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.config-metric-row span {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 0.75rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.config-metric-row strong {
  display: block;
  color: var(--app-text);
  font-size: 1.05rem;
}

.brand-config-list,
.office-config-list {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
}

.brand-config-row,
.office-config-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.85fr) auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  padding: 0.95rem;
}

.brand-config-row:last-child,
.office-config-row:last-child {
  border-bottom: 0;
}

.brand-config-main,
.office-config-main {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.brand-config-main,
.office-config-main {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.brand-row-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-row-color, var(--app-primary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--brand-row-color, var(--app-primary)) 24%, transparent);
}

.office-row-mark {
  background: color-mix(in srgb, var(--brand-row-color, var(--app-primary)) 90%, #111827);
}

.brand-config-main h3,
.office-config-main h3 {
  margin-bottom: 0;
}

.office-config-details,
.office-config-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.office-config-details span {
  min-width: 0;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.office-config-details span + span::before {
  content: "\00b7";
  margin-right: 0.45rem;
  color: color-mix(in srgb, var(--app-muted) 55%, transparent);
}

.office-config-actions {
  display: flex;
  justify-content: flex-end;
}

.office-bulk-panel {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.9fr) auto auto;
  margin-bottom: 0.85rem;
}

.office-bulk-choice {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-2);
}

.office-bulk-choice input {
  width: 18px;
  height: 18px;
}

.office-config-list.is-bulk-mode .office-config-row {
  grid-template-columns: auto minmax(0, 1.3fr) minmax(220px, 0.85fr) auto;
}

.bulk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--app-primary) 18%, var(--app-border));
  border-radius: var(--app-radius-sm);
  background: var(--app-primary-soft);
  padding: 0.85rem;
  margin-bottom: 0.9rem;
}

.bulk-panel-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.bulk-panel-copy strong {
  font-weight: 900;
}

.bulk-panel-copy span {
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.listing-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.listing-provider-workspace {
  display: grid;
  gap: 1rem;
}

.listing-provider-workspace > .split-heading,
.listing-provider-workspace > .listing-metrics-row,
.listing-provider-workspace > .additional-providers-panel,
.listing-provider-workspace > .state-message {
  margin-bottom: 0;
}

.listing-provider-stack {
  display: grid;
  gap: 0.85rem;
}

.listing-provider-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-primary) 24%, var(--app-border));
  border-radius: var(--app-radius-sm);
  background: #fff;
}

.listing-provider-panel.is-planned {
  border-color: var(--app-border);
  background: var(--app-surface-2);
}

.listing-provider-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.listing-provider-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.listing-provider-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.listing-provider-panel.is-planned .listing-provider-mark {
  background: #fff;
  color: var(--app-muted);
}

.listing-provider-identity h3,
.listing-provider-identity p {
  margin: 0;
}

.listing-provider-identity h3 {
  margin-top: 0.18rem;
  font-size: 1rem;
}

.listing-provider-identity p:last-child {
  margin-top: 0.35rem;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.45;
}

.listing-provider-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

.listing-provider-accounts {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface-2);
  padding: 0.9rem 1rem 1rem;
}

.listing-provider-account-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.listing-provider-account-heading h4,
.listing-provider-account-heading span {
  margin: 0;
}

.listing-provider-account-heading h4 {
  font-size: 0.82rem;
}

.listing-provider-account-heading span {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.listing-connect-options,
.listing-provider-tools {
  margin: 0;
  border-top: 1px solid var(--app-border);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}

.listing-connect-options {
  padding: 0.8rem 1rem;
}

.listing-connect-options > summary,
.listing-provider-tools > summary {
  font-size: 0.78rem;
}

.listing-provider-tools .config-actions {
  justify-content: flex-start;
}

.listing-account-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.listing-account-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.listing-account-row > div {
  min-width: 0;
}

.listing-account-copy {
  display: grid;
  gap: 0.18rem;
}

.listing-account-row strong,
.listing-account-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing-account-row span:not(.listing-status-pill):not(.status-pill) {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.listing-account-actions {
  display: grid;
  justify-items: end;
  align-items: center;
  gap: 0.45rem;
}

.listing-account-actions .muted {
  display: inline;
  white-space: nowrap;
}

.listing-account-error {
  color: var(--app-danger) !important;
}

.listing-automatic-consent {
  align-items: flex-start;
  margin: 0.65rem 0 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 0.75rem 0.85rem;
}

.listing-account-sync-toggle {
  flex-wrap: wrap;
  width: min(100%, 28rem);
  margin: 0;
  text-align: left;
}

.listing-account-sync-toggle span {
  display: inline;
  white-space: normal;
}

.listing-account-empty {
  background: #fff;
}

.listing-secondary-section {
  display: block;
}

.listing-secondary-section > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.listing-secondary-section > summary::-webkit-details-marker {
  display: none;
}

.listing-secondary-section > summary::after {
  content: "+";
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 1.1rem;
  font-weight: 800;
}

.listing-secondary-section[open] > summary::after {
  content: "−";
}

.listing-secondary-section > summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.listing-secondary-section > summary strong {
  font-size: 1rem;
}

.listing-secondary-body {
  margin-top: 1rem;
  border-top: 1px solid var(--app-border);
  padding-top: 1rem;
}

.listing-secondary-actions {
  margin-bottom: 0.85rem;
}

.listing-status-pill,
.status-pill {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface-2);
  padding: 0.28rem 0.55rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-status-pill.is-good,
.status-pill.is-good {
  border-color: color-mix(in srgb, var(--app-success) 32%, var(--app-border));
  background: color-mix(in srgb, var(--app-success) 10%, #fff);
  color: var(--app-success);
}

.listing-status-pill.is-warning,
.status-pill.is-warning {
  border-color: color-mix(in srgb, var(--app-warning) 38%, var(--app-border));
  background: color-mix(in srgb, var(--app-warning) 12%, #fff);
  color: var(--app-warning);
}

.listing-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.listing-bulk-panel {
  background: color-mix(in srgb, var(--app-primary) 8%, #fff);
}

.listing-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
  align-items: stretch;
}

.listing-fieldset,
.listing-compose-panel {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 0.85rem;
}

.listing-fieldset legend {
  padding: 0 0.3rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.listing-office-choice-list {
  display: grid;
  gap: 0.45rem;
  max-height: 210px;
  overflow: auto;
  padding-right: 0.2rem;
}

.listing-office-list,
.listing-job-list {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
}

.listing-office-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(220px, 0.8fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  padding: 0.95rem;
}

.listing-office-row:last-child,
.listing-job-row:last-child {
  border-bottom: 0;
}

.listing-office-main,
.listing-office-warnings,
.listing-office-status {
  min-width: 0;
}

.listing-office-main h3 {
  margin: 0 0 0.4rem;
}

.listing-office-status,
.listing-office-warnings {
  display: grid;
  gap: 0.4rem;
}

.listing-office-warnings span {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.listing-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.listing-review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.listing-review-metrics span {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 0.65rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.listing-review-metrics strong {
  display: block;
  color: var(--app-text);
  font-size: 1rem;
}

.listing-metric-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.2rem 0 0.8rem;
}

.listing-metric-breakdown span {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: #fff;
  padding: 0.38rem 0.55rem;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.listing-metric-breakdown strong {
  margin-right: 0.3rem;
  color: var(--app-text);
}

.listing-performance-panel {
  margin-top: 1rem;
  border-top: 1px solid var(--app-border);
  padding-top: 1rem;
}

.listing-performance-list {
  display: grid;
  gap: 0.5rem;
  max-height: 24rem;
  overflow: auto;
}

.listing-performance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  padding: 0.55rem 0.65rem;
}

.listing-performance-row > div:last-child {
  text-align: right;
}

.listing-performance-row strong,
.listing-performance-row span {
  display: block;
}

.listing-performance-row span {
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.listing-review-list {
  display: grid;
  gap: 0.7rem;
}

.listing-review-row {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  padding: 0.85rem;
}

.listing-review-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.listing-review-heading > span:not(.listing-status-pill):not(.status-pill) {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.listing-review-copy p {
  margin: 0.45rem 0 0;
  color: var(--app-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.listing-review-reply {
  margin-top: 0.8rem;
}

.listing-job-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  padding: 0.85rem;
}

.listing-job-row div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.listing-job-row span:not(.listing-status-pill):not(.status-pill) {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.schedule-config-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.75fr);
  align-items: start;
}

.modal-shell,
.config-dialog {
  width: min(780px, calc(100vw - 24px));
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  border: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.modal-shell::backdrop,
.config-dialog::backdrop {
  background: rgba(7, 15, 29, 0.58);
  backdrop-filter: blur(9px) saturate(0.8);
}

.modal-card,
.config-dialog-panel {
  width: 100%;
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-border) 88%, #fff);
  border-radius: 24px;
  background: var(--app-surface);
  box-shadow: 0 34px 90px rgba(11, 18, 32, 0.28), 0 12px 30px rgba(11, 18, 32, 0.12);
  color: var(--app-text);
}

.modal-card:has(> .modal-tab-strip),
.config-dialog-panel:has(> .modal-tab-strip) {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--app-border);
  background:
    radial-gradient(circle at 88% -140%, color-mix(in srgb, var(--app-primary) 14%, transparent), transparent 56%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--app-surface-2) 42%, #fff));
  padding: 1.2rem 1.35rem 1.1rem;
}

.modal-header > div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.modal-header h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}

.modal-header p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0.15rem 0 0;
  color: var(--app-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.icon-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-header .icon-button {
  flex: 0 0 auto;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  color: var(--app-muted);
  box-shadow: var(--app-shadow-sm);
}

.modal-header .icon-button:hover {
  border-color: color-mix(in srgb, var(--app-primary) 35%, var(--app-border));
  background: color-mix(in srgb, var(--app-primary) 5%, #fff);
  color: var(--app-text);
}

.modal-tab-strip {
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface-2) 46%, #fff);
  padding: 0.65rem 1.35rem;
  scrollbar-width: none;
}

.modal-tab-strip::-webkit-scrollbar {
  display: none;
}

.modal-tabs {
  width: max-content;
  min-width: 100%;
  display: flex;
  gap: 0.35rem;
}

.modal-tab {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0.5rem 0.72rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.modal-tab:hover {
  background: #fff;
  color: var(--app-text);
}

.modal-tab.is-active {
  border-color: color-mix(in srgb, var(--app-primary) 22%, var(--app-border));
  background: #fff;
  color: var(--app-primary-hover);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.09);
}

.modal-tab.is-active::after {
  position: absolute;
  right: 0.6rem;
  bottom: -0.68rem;
  left: 0.6rem;
  height: 2px;
  border-radius: 999px;
  background: var(--app-primary);
  content: "";
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 1.35rem;
  overscroll-behavior: contain;
}

.modal-tab-panel {
  min-width: 0;
  display: grid;
  gap: 1.15rem;
  animation: modal-panel-in 180ms ease both;
}

.modal-tab-panel[hidden] {
  display: none;
}

@keyframes modal-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-section-intro {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--app-border) 78%, transparent);
  padding-bottom: 0.95rem;
}

.modal-section-intro h4 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.modal-section-intro p:not(.eyebrow) {
  max-width: 64ch;
  margin: 0.15rem 0 0;
  color: var(--app-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.modal-setting-card,
.modal-readonly-field {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface-2);
  padding: 0.9rem;
}

.modal-setting-card {
  display: grid;
  gap: 0.8rem;
}

.modal-setting-card p {
  margin: 0;
}

.modal-readonly-field {
  display: grid;
  gap: 0.2rem;
}

.modal-readonly-field span {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-span-full {
  grid-column: 1 / -1;
}

.brand-editor-modal,
.office-editor-modal,
.hours-modal .office-hours-editor {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.brand-editor-modal,
.office-editor-modal {
  min-height: 0;
  overflow: hidden;
}

.brand-editor-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.office-editor-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  padding: 0.9rem 1.35rem;
  box-shadow: 0 -10px 25px rgba(11, 18, 32, 0.035);
}

.modal-actions-split {
  justify-content: space-between;
}

.modal-actions-split > div {
  display: flex;
  gap: 0.6rem;
}

.modal-shell-compact {
  width: min(660px, calc(100vw - 24px));
}

.setup-phase-card {
  padding: 0.5rem;
}

.conversation-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--app-primary) 10%, #fff), #fff 58%),
    #fff;
}

.conversation-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.conversation-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--app-primary);
  color: #fff;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--app-primary) 24%, transparent);
  font-family: var(--app-display-font);
  font-weight: 800;
  text-transform: uppercase;
}

.auth-badge.product-mark,
.conversation-avatar.product-mark {
  border: 1px solid rgba(22, 119, 248, 0.14);
  background: #fff var(--product-mark-image) center / 82% no-repeat;
  color: transparent;
  box-shadow: 0 10px 20px rgba(22, 119, 248, 0.18);
}

.conversation-main {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.conversation-main .muted,
.conversation-layout .muted {
  max-width: 76ch;
  margin: 0;
  line-height: 1.6;
}

.registration-layout {
  grid-template-columns: auto minmax(0, 1fr) minmax(250px, 0.45fr);
}

.registration-intro-card {
  padding: 1rem 1.1rem;
}

.registration-intro-card .conversation-main .muted {
  max-width: 84ch;
}

.conversation-progress {
  width: min(360px, 100%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-primary) 12%, #e5e7eb);
}

.conversation-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-primary), var(--app-accent));
}

.conversation-facts,
.portal-summary-grid {
  display: grid;
  gap: 0.5rem;
}

.conversation-facts {
  grid-template-columns: repeat(3, minmax(88px, 1fr));
}

.registration-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.conversation-facts span,
.portal-summary-grid span {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.65rem 0.75rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.conversation-facts strong,
.portal-summary-grid strong {
  display: block;
  color: var(--app-text);
  font-family: var(--app-display-font);
  font-size: 1rem;
}

.registration-company-card,
.registration-brand-card,
.registration-auth-card {
  min-height: 100%;
}

.portal-summary {
  padding: 0.75rem;
}

.portal-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-checklist {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.portal-checklist-item {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  color: var(--app-text);
  padding: 0.8rem;
  text-align: left;
  box-shadow: var(--app-shadow-sm);
}

.portal-checklist-item:hover {
  border-color: color-mix(in srgb, var(--app-primary) 34%, var(--app-border));
}

.portal-checklist-item strong,
.portal-checklist-item small {
  display: block;
  min-width: 0;
}

.portal-checklist-item small {
  margin-top: 0.2rem;
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.advanced-panel {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  margin-top: 0.9rem;
  padding: 0.75rem;
}

.advanced-panel > summary,
.listing-compose-panel > summary {
  cursor: pointer;
  color: var(--app-text);
  font-weight: 900;
}

.advanced-panel > summary + *,
.listing-compose-panel > summary + * {
  margin-top: 0.75rem;
}

.setup-phase-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.35rem;
}

.setup-panel {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 0.95rem;
}

.dashboard-overview-card {
  display: grid;
  gap: 0.95rem;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.dashboard-stat-tile {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.72rem 0.78rem;
}

.dashboard-stat-tile strong,
.dashboard-stat-tile span,
.dashboard-stat-tile small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-stat-tile strong {
  color: var(--app-text);
  font-family: var(--app-display-font);
  font-size: 1.2rem;
  line-height: 1.1;
}

.dashboard-stat-tile span {
  margin-top: 0.18rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-stat-tile small {
  margin-top: 0.32rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-health-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 0.75rem;
}

.dashboard-health-panel strong,
.dashboard-health-panel span {
  display: block;
}

.dashboard-health-panel span {
  margin-top: 0.18rem;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-primary) 12%, #e5e7eb);
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-primary), var(--app-accent));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 0.95rem;
  align-items: start;
}

.dashboard-core-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-main-card {
  min-width: 0;
}

.dashboard-checklist {
  margin-top: 0;
}

.dashboard-link-list {
  display: grid;
  gap: 0.6rem;
}

.dashboard-link-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: #fff;
  padding: 0.75rem;
  box-shadow: var(--app-shadow-sm);
}

.dashboard-link-row strong,
.dashboard-link-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-link-row span {
  margin-top: 0.18rem;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.setup-action-card {
  padding: 0.85rem 1rem;
}

.daily-hours-grid,
.office-hours-list,
.holiday-list {
  display: grid;
  gap: 0.65rem;
}

.daily-hours-grid {
  grid-template-columns: minmax(84px, 0.7fr) minmax(160px, 1.15fr) repeat(2, minmax(0, 1fr));
  column-gap: 0.55rem;
  row-gap: 0.65rem;
}

.daily-hours-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  gap: 0.55rem;
  align-items: center;
}

.daily-hours-day {
  color: var(--app-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.office-checklist {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  margin: 0;
  padding: 0.85rem;
}

.office-checklist legend {
  padding: 0 0.35rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.office-checklist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  margin-top: 0.65rem;
}

.holiday-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-2);
  padding: 0.85rem;
}

.holiday-row h3 {
  margin-bottom: 0.25rem;
}

.split-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0;
}

.split-heading.flush {
  margin-top: 0;
}

.tenant-picker-wrap {
  display: grid;
  min-width: min(360px, 100%);
  gap: 0.3rem;
}

.tenant-picker-wrap label {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-summary {
  display: grid;
  gap: 0.75rem;
}

.billing-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--app-border);
  padding-bottom: 0.65rem;
}

.billing-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.billing-line span {
  color: var(--app-muted);
  font-weight: 700;
}

.billing-line strong {
  text-align: right;
}

.domain-add-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.domain-config-list {
  margin-top: 0.85rem;
}

.domain-config-row .brand-row-mark {
  font-size: 0.68rem;
}

.domain-config-row {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.9fr);
  align-items: start;
}

.domain-config-row .office-config-main > div,
.domain-config-row h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.domain-config-row .office-config-actions {
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1rem;
}

.metric-card span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--app-display-font);
  font-size: 1.6rem;
  line-height: 1;
}

.system-table-wrap {
  overflow-x: auto;
}

.system-table-wrap:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.system-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.system-table th,
.system-table td {
  border-bottom: 1px solid var(--app-border);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

.system-table th {
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-table td {
  color: var(--app-text);
}

.system-table tbody th {
  color: var(--app-text);
  font-size: 1rem;
  text-transform: none;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.muted {
  color: var(--app-muted);
}

.empty-state {
  border: 1px dashed var(--app-border);
  border-radius: var(--app-radius-sm);
  padding: 1rem;
  color: var(--app-muted);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .schedule-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .brand-row,
  .tenant-hero,
  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .language-menu {
    margin-left: auto;
  }

  .view-switcher {
    width: 100%;
    flex: 1 1 420px;
  }

  .tenant-hero,
  .location-strip,
  .location-strip-controls,
  .public-grid,
  .admin-grid,
  .conversation-layout,
  .dashboard-grid,
  .dashboard-health-panel,
  .domain-add-panel {
    grid-template-columns: 1fr;
  }

  .tenant-hero.marketing-hero {
    grid-template-columns: 1fr;
  }

  .admin-view.is-setup-view .admin-grid {
    grid-template-columns: 1fr;
  }

  .tenant-actions {
    justify-items: start;
  }

  .social-grid,
  .metric-grid,
  .conversation-facts,
  .portal-summary-grid,
  .dashboard-stat-grid,
  .setup-phase-tabs,
  .office-checklist-grid,
  .config-metric-row,
  .listing-provider-grid,
  .listing-dashboard-grid,
  .listing-insights-grid,
  .listing-review-metrics,
  .schedule-config-grid,
  .bulk-panel,
  .domain-add-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-config-grid,
  .office-checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-config-row,
  .office-config-row,
  .listing-account-row,
  .listing-office-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-config-list.is-bulk-mode .office-config-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .office-config-list.is-bulk-mode .office-config-meta,
  .office-config-list.is-bulk-mode .office-config-actions {
    grid-column: 2;
  }

  .listing-account-actions,
  .office-config-actions {
    justify-content: flex-start;
  }

  .listing-account-actions {
    justify-items: start;
  }

  .listing-account-actions .muted {
    white-space: normal;
  }

  .system-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .system-table,
  .system-table tbody,
  .system-table tr,
  .system-table th,
  .system-table td {
    display: block;
    width: 100%;
  }

  .system-table {
    min-width: 0;
  }

  .system-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .system-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .system-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
  }

  .system-table tbody th,
  .system-table tbody td {
    border: 0;
    border-bottom: 1px solid var(--app-border);
    padding: 0.75rem 0.9rem;
  }

  .system-table tbody td:last-child {
    border-bottom: 0;
  }

  .system-table [data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .system-table .table-actions,
  .system-table .table-actions button {
    width: 100%;
  }

  .marketing-command-center,
  .listings-product-section,
  .ai-product-section,
  .marketing-faq,
  .marketing-final-cta {
    grid-template-columns: 1fr;
  }

  .marketing-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-console {
    transform: none;
  }

  .marketing-final-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 620px) {
  .app-shell {
    width: calc(100% - 20px);
    padding: 1rem 0;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .language-menu {
    width: max-content;
    max-width: 100%;
    justify-self: end;
  }

  .profile-menu {
    width: max-content;
    max-width: 100%;
    justify-self: end;
  }

  .language-selector select {
    width: auto;
    max-width: min(11.5rem, 100%);
  }

  .view-switcher {
    grid-column: 1;
    min-width: 0;
  }

  .view-switcher .view-button {
    padding-inline: 0.55rem;
  }

  .view-switcher .contextual-help-action {
    gap: 0.25rem;
  }

  .view-switcher .contextual-help-action-icon {
    width: 20px;
    height: 20px;
  }

  .tool-tab {
    min-height: 54px;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
  }

  .tenant-hero.marketing-hero {
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .tenant-hero.marketing-hero #tenant-title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .tenant-hero.marketing-hero .tenant-actions {
    width: fit-content;
    max-width: 100%;
  }

  .marketing-final-actions {
    width: 100%;
  }

  .marketing-final-actions > * {
    width: 100%;
  }

  .product-capability-rail {
    justify-content: flex-start;
  }

  .product-capability-chip:hover,
  .product-capability-chip:focus {
    transform: none;
  }

  .product-capability-tooltip {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin-top: 0.15rem;
    padding: 0.55rem 0.1rem 0.15rem;
    border: 0;
    border-top: 1px solid var(--app-border);
    border-radius: 0;
    background: transparent;
    color: var(--app-muted);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .product-capability-chip:hover .product-capability-tooltip,
  .product-capability-chip:focus .product-capability-tooltip {
    display: block;
    transform: none;
  }

  .marketing-command-center,
  .listings-product-section,
  .ai-product-section,
  .knowledge-product-section,
  .marketing-process,
  .marketing-faq {
    border-radius: 18px;
    padding: 1.15rem;
  }

  .marketing-command-copy h3,
  .marketing-command-copy h2,
  .listings-product-copy h3,
  .listings-product-copy h2,
  .chat-product-copy h2,
  .ai-product-copy h2,
  .knowledge-product-heading h2,
  .marketing-process-heading h2,
  .marketing-faq-heading h2 {
    font-size: 1.85rem;
  }

  .product-outcome-grid,
  .knowledge-source-grid,
  .marketing-process-grid,
  .marketing-trust-grid,
  .marketing-bento-grid,
  .marketing-bento-card.is-wide {
    grid-template-columns: 1fr;
  }

  .ai-mode-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-code-example .dashboard-stat-grid,
  .marketing-code-example .config-metric-row,
  .marketing-code-example .listing-provider-grid,
  .marketing-code-example .listing-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .marketing-code-example-scroll,
  .marketing-code-example.is-listings .marketing-code-example-scroll {
    max-height: 500px;
    padding: 0.65rem;
  }

  .marketing-code-example-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .marketing-bento-card.is-wide {
    grid-column: span 1;
  }

  .product-console-body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .product-console-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .product-console-cards,
  .listings-preview-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listings-preview-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-button {
    min-height: 44px;
    justify-content: center;
  }

  .marketing-final-cta {
    border-radius: 18px;
    padding: 1.15rem;
  }

  .field-row,
  .daily-hours-row,
  .admin-auth-actions,
  .social-grid,
  .metric-grid,
  .conversation-facts,
  .portal-summary-grid,
  .dashboard-stat-grid,
  .dashboard-link-row,
  .setup-phase-tabs,
  .office-checklist-grid,
  .config-metric-row,
  .listing-provider-grid,
  .listing-dashboard-grid,
  .listing-insights-grid,
  .listing-review-metrics,
  .schedule-config-grid,
  .bulk-panel {
    grid-template-columns: 1fr;
  }

  .config-actions {
    justify-content: stretch;
  }

  .location-strip-actions,
  .follow-review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .config-actions > *,
  .listing-provider-panel-actions > .primary-button,
  .listing-account-actions > button,
  .location-strip-actions > *,
  .follow-review-actions > *,
  .dashboard-link-row > .secondary-button,
  .bulk-panel > .secondary-button,
  .domain-add-panel > .primary-button,
  .office-config-actions > * {
    width: 100%;
  }

  .listing-provider-panel-header,
  .listing-secondary-section > summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-provider-panel-actions {
    justify-content: stretch;
  }

  .listing-provider-panel-actions > .status-pill {
    order: -1;
  }

  .listing-secondary-section > summary::after {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .conversation-facts {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-right: 0.35rem;
  }

  .portal-checklist-item {
    grid-template-columns: 1fr;
  }

  .office-config-details {
    display: grid;
  }

  .office-bulk-panel {
    grid-template-columns: 1fr;
  }

  .office-details {
    display: grid;
    gap: 0.28rem;
  }

  .tenant-hero > *,
  .office-card > *,
  .compact-note {
    min-width: 0;
  }

  .tenant-summary,
  .office-details > *,
  .compact-note span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .brand-config-main,
  .office-config-main {
    align-items: start;
  }

  .office-config-details span + span::before {
    content: "";
    margin-right: 0;
  }

  .office-card header {
    display: grid;
  }

  .preview-header,
  .preview-office-card,
  .holiday-row {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-note {
    grid-template-columns: 1fr;
  }
}

/* Next-generation product shell */
.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.15em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.config-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.config-toolbar-split {
  justify-content: space-between;
}

.config-search {
  min-width: min(100%, 320px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface);
  padding: 0 0.75rem;
  color: var(--app-muted);
}

.config-search:focus-within {
  border-color: var(--app-primary);
  box-shadow: var(--app-focus-ring);
}

.config-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.config-search input:focus-visible {
  box-shadow: none;
}

.config-filter {
  min-width: 180px;
  display: grid;
  gap: 0.3rem;
}

.config-filter > span {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem 0;
}

.editor-section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface-2);
  padding: 0.45rem 0.65rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
}

.brand-live-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--preview-primary) 22%, var(--app-border));
  border-radius: var(--preview-radius);
  background: var(--preview-background);
  margin: 0.8rem 1rem 0;
  padding: 0.85rem;
}

.brand-live-preview > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: calc(var(--preview-radius) * 0.72);
  background: var(--preview-primary);
  color: var(--preview-contrast, #fff);
  font-weight: 900;
  text-transform: uppercase;
}

.brand-live-preview > div {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.brand-live-preview small {
  color: var(--app-muted);
  font-weight: 800;
  text-transform: uppercase;
}

.brand-live-preview p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.45;
}

.editor-section-heading {
  border-top: 1px solid var(--app-border);
  padding-top: 0.85rem;
  scroll-margin-top: 5rem;
}

.editor-advanced-field {
  grid-column: 1 / -1;
}

.editor-section-heading:first-child {
  border-top: 0;
  padding-top: 0;
}

.domain-progress {
  min-width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.domain-progress > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.domain-progress > span::before {
  content: "";
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: #e2e8f0;
}

.domain-progress > span.is-complete {
  color: var(--app-success);
}

.domain-progress > span.is-complete::before {
  background: var(--app-success);
}

.domain-progress small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.system-navigation {
  display: inline-flex;
  gap: 0.35rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
  padding: 0.35rem;
  margin-bottom: 1rem;
}

.system-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--app-muted);
  padding: 0.65rem 0.8rem;
  font-weight: 800;
}

.system-nav-button.is-selected {
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.system-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.system-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.system-details-grid section {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-2);
  padding: 0.85rem;
}

.system-details-grid span,
.system-detail-list > span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.system-detail-list {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--app-border);
  padding: 1rem;
}

.system-detail-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.readiness-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.readiness-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface-2);
  padding: 0.8rem;
}

.readiness-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.readiness-item > div {
  min-width: 0;
}

.readiness-item p {
  margin: 0.2rem 0 0;
  color: var(--app-muted);
  line-height: 1.45;
}

body[data-surface="system"] .modal-shell {
  width: min(680px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
}

body[data-surface="system"] .modal-card {
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 20px 0 0 20px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 0.6rem;
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
}

button,
.primary-button,
.secondary-button,
.danger-button,
.link-button,
input,
select,
textarea {
  min-height: 44px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

body[data-surface="portal"] .app-shell,
body[data-surface="system"] .app-shell {
  max-width: 1380px;
}

body[data-surface="portal"] .brand-row,
body[data-surface="system"] .brand-row {
  border-bottom: 1px solid color-mix(in srgb, var(--app-border) 76%, transparent);
  padding-bottom: 1rem;
}

.portal-workspace {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.portal-navigation {
  position: sticky;
  top: 1rem;
  min-width: 0;
}

.portal-rail {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  box-shadow: var(--app-shadow-sm);
  padding: 0.7rem;
}

.portal-nav-group {
  display: grid;
  gap: 0.25rem;
}

.portal-nav-label {
  padding: 0.25rem 0.65rem;
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-nav-item {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--app-muted);
  padding: 0.65rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.portal-nav-item:hover {
  background: var(--app-surface-2);
  color: var(--app-text);
}

.portal-nav-item.is-selected {
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.portal-nav-trailing {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.portal-nav-item.is-selected .chat-notification-badge {
  background: var(--app-primary-strong);
}

.portal-nav-chevron {
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.portal-nav-item.is-selected .portal-nav-chevron,
.portal-nav-item:hover .portal-nav-chevron {
  opacity: 1;
}

.portal-nav-item:hover .portal-nav-chevron {
  transform: translateX(2px);
}

.portal-mobile-nav {
  display: none;
}

.portal-stage {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.portal-stage > .conversation-card,
.portal-stage > .setup-panel {
  min-width: 0;
}

.portal-stage .setup-panel {
  display: grid;
  gap: 1rem;
}

.support-mode-banner {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  padding: 0.8rem;
  color: #1e3a8a;
}

.support-mode-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dbeafe;
}

.support-mode-banner > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.support-mode-banner small {
  color: #365b92;
  line-height: 1.4;
}

body[data-surface="portal"] .conversation-card {
  border-color: #dbe7f5;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2f7ff 0%, #ffffff 62%, #f0fdfa 100%);
  box-shadow: var(--app-shadow-sm);
}

body[data-surface="portal"] .conversation-avatar {
  width: 46px;
  height: 46px;
}

body[data-surface="portal"] .admin-card,
body[data-surface="system"] .admin-card,
body[data-surface="system"] .metric-card,
body[data-surface="system"] .system-table-wrap {
  border-radius: 16px;
  box-shadow: var(--app-shadow-sm);
}

.dashboard-overview-card {
  overflow: hidden;
}

.dashboard-stat-tile {
  border-color: var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-2);
}

.dashboard-health-panel {
  border-radius: 12px;
  background: linear-gradient(90deg, #eff6ff, #f0fdfa);
}

.empty-state.is-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.6rem;
  align-items: center;
  border-style: solid;
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  text-align: left;
}

.empty-state.is-success span {
  grid-column: 2;
  color: #3f6650;
  font-size: 0.85rem;
}

.status-pill.tone-neutral,
.tone-neutral {
  border-color: var(--app-border);
  background: #f1f5f9;
  color: #526071;
}

.status-pill.tone-info,
.tone-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.status-pill.tone-success,
.tone-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.status-pill.tone-warning,
.tone-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

.status-pill.tone-danger,
.tone-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b42318;
}

body[data-surface="portal"] .modal-shell {
  width: min(720px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
}

body[data-surface="portal"] .modal-card {
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 20px 0 0 20px;
}

/* Public brand pages stay intentionally quiet: one useful surface, clear type,
   and brand color reserved for actions and small state cues. */
body[data-surface="tenant-public"] {
  background: color-mix(in srgb, var(--app-bg) 22%, #fff);
}

body[data-surface="tenant-public"] .app-shell {
  max-width: 1040px;
  padding: clamp(1.25rem, 3vw, 2rem) 0 4rem;
}

body[data-surface="tenant-public"] .brand-row {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

body[data-surface="tenant-public"] .brand-lockup {
  gap: 0.65rem;
}

body[data-surface="tenant-public"] .brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--app-text) 9%, #fff);
  border-radius: 11px;
  box-shadow: none;
}

body[data-surface="tenant-public"] .brand-mark:not(.has-image) {
  border-color: transparent;
  background: var(--app-primary-action);
  color: var(--app-primary-action-contrast);
  box-shadow: none;
}

body[data-surface="tenant-public"] .brand-kicker {
  margin-bottom: 0.1rem;
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

body[data-surface="tenant-public"] .brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body[data-surface="tenant-public"] .tenant-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  box-shadow: none;
}

body[data-surface="tenant-public"] .tenant-hero-copy {
  max-width: 780px;
}

body[data-surface="tenant-public"] .tenant-hero .eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-muted);
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body[data-surface="tenant-public"] .tenant-hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--app-accent-action);
  box-shadow: none;
}

body[data-surface="tenant-public"] .tenant-hero #tenant-title {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2.6rem, 5.7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

body[data-surface="tenant-public"] .tenant-summary {
  max-width: 56ch;
  margin-top: 1.15rem;
  color: var(--app-muted);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}

body[data-surface="tenant-public"] .tenant-actions {
  align-self: start;
  justify-items: end;
}

body[data-surface="tenant-public"] .location-strip {
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(1rem, 3vw, 2rem);
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--app-text) 10%, #fff);
  border-radius: 16px;
  background: color-mix(in srgb, var(--app-accent) 3%, #fff);
  padding: 1.2rem 1.3rem;
  margin: 0 0 2.25rem;
  box-shadow: none;
}

body[data-surface="tenant-public"] .public-view.is-location-gated {
  min-height: calc(100dvh - 8rem);
  display: grid;
  align-content: center;
  padding-bottom: clamp(3rem, 8vh, 7rem);
}

body[data-surface="tenant-public"] .public-view.is-location-gated .tenant-hero {
  display: block;
  padding: 0 0 clamp(2rem, 5vh, 3.5rem);
}

body[data-surface="tenant-public"] .public-view.is-location-gated .tenant-hero-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .tenant-hero .eyebrow {
  margin-inline: auto;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .tenant-hero #tenant-title,
body[data-surface="tenant-public"] .public-view.is-location-gated .tenant-summary {
  margin-inline: auto;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .tenant-actions {
  display: none;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-strip {
  position: relative;
  grid-template-columns: 1fr;
  max-width: 820px;
  gap: 1.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

body[data-surface="tenant-public"] .location-landing-skip {
  position: absolute;
  top: -0.35rem;
  right: 0;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-surface="tenant-public"] .location-landing-skip:hover {
  color: var(--app-primary-action);
}

body[data-surface="tenant-public"] .location-strip.is-location-change-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--app-text) 10%, transparent);
  border-radius: 0;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

body[data-surface="tenant-public"] .location-strip.is-location-search-bar {
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1.64fr);
  align-items: center;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--app-text) 10%, transparent);
  border-radius: 0;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

body[data-surface="tenant-public"] .location-change-summary,
body[data-surface="tenant-public"] .location-change-actions,
body[data-surface="tenant-public"] .location-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body[data-surface="tenant-public"] .location-change-summary > span:last-child {
  display: grid;
  gap: 0.1rem;
}

body[data-surface="tenant-public"] .location-change-summary small {
  color: var(--app-muted);
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-strip-copy {
  justify-items: center;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-strip-controls {
  width: 100%;
  margin-inline: auto;
  text-align: left;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-strip-copy strong {
  font-size: clamp(1.15rem, 1vw + 1rem, 1.45rem);
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-strip-copy span {
  font-size: 0.9rem;
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-color: color-mix(in srgb, var(--app-primary-action) 32%, transparent);
  background: transparent;
  color: var(--app-primary-action);
}

body[data-surface="tenant-public"] .public-view.is-location-gated .location-button:hover {
  border-color: var(--app-primary-action);
  background: var(--app-primary-soft);
  color: var(--app-primary-action-strong);
}

body[data-surface="tenant-public"] .location-strip-copy {
  align-content: center;
  gap: 0.22rem;
}

body[data-surface="tenant-public"] .location-strip-copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

body[data-surface="tenant-public"] .location-strip-copy span {
  font-size: 0.8rem;
}

body[data-surface="tenant-public"] .location-strip-controls {
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 0.75rem;
}

body[data-surface="tenant-public"] .location-input-group label {
  color: var(--app-muted);
  font-weight: 650;
}

body[data-surface="tenant-public"] .location-input-group input {
  min-height: 50px;
  border-width: 0 0 1px;
  border-color: color-mix(in srgb, var(--app-text) 28%, transparent);
  border-radius: 0;
  background: transparent;
  padding: 0.8rem 0;
  box-shadow: none;
}

body[data-surface="tenant-public"] .location-strip-actions {
  gap: 0.45rem;
}

body[data-surface="tenant-public"] .primary-button,
body[data-surface="tenant-public"] .secondary-button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  box-shadow: none;
}

body[data-surface="tenant-public"] .primary-button {
  border-color: var(--app-primary-action);
  background: var(--app-primary-action);
  color: var(--app-primary-action-contrast);
}

body[data-surface="tenant-public"] .primary-button:hover {
  border-color: var(--app-primary-action-strong);
  background: var(--app-primary-action-strong);
  color: var(--app-primary-action-contrast);
}

body[data-surface="tenant-public"] .secondary-button {
  border-color: color-mix(in srgb, var(--app-text) 13%, #fff);
  background: transparent;
  color: var(--app-text);
}

body[data-surface="tenant-public"] .secondary-button:hover {
  border-color: color-mix(in srgb, var(--app-accent) 22%, var(--app-border));
  background: var(--app-accent-soft);
  color: var(--app-text);
}

body[data-surface="tenant-public"] .location-strip .secondary-button {
  border-color: transparent;
  background: transparent;
}

body[data-surface="tenant-public"] .location-strip .secondary-button:hover {
  border-color: transparent;
  background: var(--app-accent-soft);
}

body[data-surface="tenant-public"] .tool-tabs {
  width: fit-content;
  display: flex;
  gap: 1.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0 0 2rem;
}

body[data-surface="tenant-public"] .tool-tab {
  min-height: 42px;
  flex-direction: row;
  border-radius: 0;
  padding: 0;
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

body[data-surface="tenant-public"] .tool-tab::after {
  right: auto;
  bottom: -1px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--app-accent-action);
  transform: translateX(-50%);
}

body[data-surface="tenant-public"] .tool-tab:hover,
body[data-surface="tenant-public"] .tool-tab.is-selected {
  background: transparent;
  color: var(--app-text);
  box-shadow: none;
}

body[data-surface="tenant-public"] .tool-tab.is-selected .tool-icon {
  color: var(--app-accent-action);
}

body[data-surface="tenant-public"] .public-grid-single {
  max-width: none;
}

body[data-surface="tenant-public"] .office-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body[data-surface="tenant-public"] .office-card {
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 0.8rem;
  overflow: visible;
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  padding: clamp(2rem, 5vw, 4rem) 0;
  box-shadow: none;
  transition: none;
}

body[data-surface="tenant-public"] .office-card + .office-card {
  border-top: 1px solid color-mix(in srgb, var(--app-text) 10%, transparent);
}

body[data-surface="tenant-public"] .office-card-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(0.25rem, 1vw, 1rem) clamp(1rem, 4vw, 3.5rem) clamp(0.25rem, 1vw, 1rem) 0;
}

body[data-surface="tenant-public"] .office-card:hover {
  border-color: color-mix(in srgb, var(--app-text) 13%, #fff);
  box-shadow: none;
  transform: none;
}

body[data-surface="tenant-public"] .office-card:only-child {
  width: 100%;
  justify-self: start;
}

body[data-surface="tenant-public"] .office-map {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: color-mix(in srgb, var(--app-accent) 5%, #fff);
}

body[data-surface="tenant-public"] .office-map iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
}

body[data-surface="tenant-public"] .office-card header {
  align-items: flex-start;
}

body[data-surface="tenant-public"] .office-card header .eyebrow {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

body[data-surface="tenant-public"] .office-card h3 {
  font-size: clamp(1.2rem, 0.4vw + 1.1rem, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

body[data-surface="tenant-public"] .office-details {
  display: grid;
  gap: 0.45rem;
  color: var(--app-muted);
  line-height: 1.5;
}

body[data-surface="tenant-public"] .office-details a {
  width: fit-content;
  min-height: 0;
  color: var(--app-text);
  font-weight: 650;
}

body[data-surface="tenant-public"] .office-details a:hover {
  color: var(--app-primary-action);
}

body[data-surface="tenant-public"] .office-details .office-address-link {
  color: var(--app-muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
}

body[data-surface="tenant-public"] .office-details .office-address-link:hover {
  color: var(--app-primary-action);
  text-decoration-color: currentColor;
}

body[data-surface="tenant-public"] .office-meta {
  gap: 0 0.75rem;
  margin-top: 0.25rem;
}

body[data-surface="tenant-public"] .office-meta .pill {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-muted);
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
}

body[data-surface="tenant-public"] .office-meta .pill + .pill::before {
  content: "•";
  margin-right: 0.75rem;
  color: color-mix(in srgb, var(--app-text) 24%, #fff);
}

body[data-surface="tenant-public"] .office-hours {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

body[data-surface="tenant-public"] .office-hours-status {
  color: var(--app-text);
  font-size: 0.82rem;
  font-weight: 700;
}

body[data-surface="tenant-public"] .office-weekly-hours {
  width: min(100%, 320px);
  display: grid;
  gap: 0.38rem;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.78rem;
}

body[data-surface="tenant-public"] .office-hours-row,
body[data-surface="tenant-public"] .office-hours-row.is-weekend {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}

body[data-surface="tenant-public"] .office-hours-row dt,
body[data-surface="tenant-public"] .office-hours-row dd {
  margin: 0;
  padding: 0;
}

body[data-surface="tenant-public"] .office-hours-row dt {
  color: var(--app-text);
  font-weight: 600;
}

body[data-surface="tenant-public"] .office-card header > .pill {
  min-height: 26px;
  border: 0;
  background: var(--app-primary-soft);
  color: var(--app-text);
  padding: 0.2rem 0.55rem;
}

body[data-surface="tenant-public"] .office-actions {
  align-items: center;
  gap: 0.45rem;
  border: 0;
  padding-top: 0.75rem;
  margin-top: auto;
}

body[data-surface="tenant-public"] .follow-panel {
  max-width: none;
  gap: 1.5rem;
}

body[data-surface="tenant-public"] .follow-review-actions {
  justify-content: flex-start;
}

body[data-surface="tenant-public"] .social-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
}

body[data-surface="tenant-public"] .social-link {
  min-height: 72px;
  border-width: 0 0 1px;
  border-color: color-mix(in srgb, var(--app-text) 13%, transparent);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

body[data-surface="tenant-public"] .social-link:hover {
  border-color: var(--app-accent-action);
  background: transparent;
  color: var(--app-text);
  box-shadow: none;
  transform: none;
}

body[data-surface="tenant-public"] .social-icon {
  border-radius: 10px;
}

body[data-surface="tenant-public"] a:focus-visible,
body[data-surface="tenant-public"] .location-input-group input:focus-visible,
body[data-surface="tenant-public"] .tool-tab:focus-visible,
body[data-surface="tenant-public"] .primary-button:focus-visible,
body[data-surface="tenant-public"] .secondary-button:focus-visible,
body[data-surface="tenant-public"] .social-link:focus-visible {
  outline: 2px solid var(--app-accent-action);
  outline-offset: 3px;
  box-shadow: none;
}

@media (max-width: 900px) {
  body[data-surface="tenant-public"] .tenant-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
    padding: clamp(2.5rem, 5vw, 4rem) 0 3rem;
  }

  body[data-surface="tenant-public"] .tenant-actions {
    justify-items: start;
  }

  .portal-workspace {
    grid-template-columns: 1fr;
  }

  .portal-navigation {
    position: sticky;
    top: 0;
    z-index: 8;
  }

  .portal-mobile-nav {
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--app-surface) 96%, transparent);
    box-shadow: var(--app-shadow-sm);
    padding: 0.7rem;
  }

  .portal-mobile-nav label {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .portal-rail {
    display: none;
  }

  .support-mode-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .support-mode-banner .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 800px) {
  body[data-surface="tenant-public"] .location-strip,
  body[data-surface="tenant-public"] .location-strip.is-location-search-bar,
  body[data-surface="tenant-public"] .location-strip-controls {
    grid-template-columns: 1fr;
  }

  body[data-surface="tenant-public"] .location-strip-actions {
    justify-content: flex-start;
  }

  body[data-surface="tenant-public"] .office-list {
    grid-template-columns: 1fr;
  }

  body[data-surface="tenant-public"] .office-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body[data-surface="tenant-public"] .office-card-content {
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  body[data-surface="tenant-public"] .app-shell {
    width: calc(100% - 40px);
    padding: 1.25rem 0 3rem;
  }

  body[data-surface="tenant-public"] .brand-row {
    margin-bottom: 2.5rem;
  }

  body[data-surface="tenant-public"] .brand-mark {
    width: 40px;
    height: 40px;
  }

  body[data-surface="tenant-public"] .tenant-hero {
    gap: 1rem;
    padding: 2.5rem 0 2.25rem;
  }

  body[data-surface="tenant-public"] .tenant-hero #tenant-title {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  body[data-surface="tenant-public"] .location-strip {
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  body[data-surface="tenant-public"] .public-view.is-location-gated .location-landing-skip {
    position: static;
    justify-self: end;
    margin-bottom: -0.75rem;
    padding: 0;
  }

  body[data-surface="tenant-public"] .location-strip-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-surface="tenant-public"] .location-strip-actions > * {
    width: 100%;
  }

  body[data-surface="portal"] .brand-row,
  body[data-surface="system"] .brand-row {
    gap: 0.8rem;
  }

  body[data-surface="portal"] .split-heading,
  body[data-surface="system"] .split-heading {
    gap: 0.75rem;
  }

  body[data-surface="portal"] .modal-shell {
    width: 100vw;
  }

  body[data-surface="portal"] .modal-card {
    border-radius: 0;
  }

  body[data-surface="tenant-public"] .tool-tabs {
    margin-bottom: 1.5rem;
  }

  body[data-surface="tenant-public"] .tool-tab {
    min-height: 48px;
    flex-direction: row;
    gap: 0.35rem;
    border-radius: 0;
    padding: 0 0.55rem;
    font-size: 0.78rem;
  }

  body[data-surface="tenant-public"] .office-card {
    border-radius: 0;
    padding: 1.25rem 0 0;
  }

  body[data-surface="tenant-public"] .office-actions {
    display: flex;
    flex-wrap: wrap;
  }

  body[data-surface="tenant-public"] .office-actions > * {
    width: auto;
  }

  body[data-surface="tenant-public"] .social-grid {
    grid-template-columns: 1fr;
  }

  .config-toolbar,
  .config-toolbar-split {
    display: grid;
    grid-template-columns: 1fr;
  }

  .config-search,
  .config-filter {
    width: 100%;
    min-width: 0;
  }

  .system-navigation,
  .system-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .system-details-grid,
  .readiness-item {
    grid-template-columns: 1fr;
  }

  body[data-surface="system"] .modal-shell {
    width: 100vw;
  }

  body[data-surface="system"] .modal-card {
    border-radius: 0;
  }
}

.inbox-toolbar-card .split-heading,
.chat-widget-row,
.team-member-list .office-config-row {
  align-items: center;
}

.inbox-toolbar-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--primary, #2563eb) 15%, #dbe2ea);
  background:
    radial-gradient(circle at 92% -40%, color-mix(in srgb, var(--primary, #2563eb) 12%, transparent), transparent 45%),
    #fff;
}

.inbox-toolbar-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--primary, #2563eb), color-mix(in srgb, var(--accent, #0f766e) 72%, #fff), transparent 86%);
  opacity: 0.72;
}

.inbox-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inbox-search-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.inbox-search-bar select,
.inbox-search-bar input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.inbox-search-bar > label {
  min-width: 0;
}

.inbox-filter-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
}

.inbox-location-filter,
.inbox-date-filter {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
}

.inbox-location-filter {
  flex: 0 1 250px;
}

.inbox-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.inbox-search-field svg {
  position: absolute;
  left: 0.8rem;
  z-index: 1;
  color: #64748b;
  pointer-events: none;
}

.inbox-search-field input {
  width: 100%;
  padding-left: 2.45rem;
}

.inbox-date-filter {
  flex: 0 1 165px;
}

.inbox-clear-search {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .inbox-location-filter {
    flex-basis: 100%;
  }

  .inbox-date-filter {
    flex: 1 1 calc(50% - 0.325rem);
  }

  .inbox-clear-search {
    margin-left: auto;
  }
}

.inbox-switch { display: inline-flex; align-items: center; gap: .45rem; color: #64748b; font-size: .75rem; font-weight: 700; cursor: pointer; }
.inbox-switch input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.inbox-switch-track { width: 38px; height: 22px; position: relative; flex: 0 0 auto; border-radius: 999px; background: #cbd5e1; transition: background 160ms ease; }
.inbox-switch-track i { width: 16px; height: 16px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(15 23 42 / 25%); transition: transform 160ms ease; }
.inbox-switch input:checked + .inbox-switch-track { background: var(--primary, #2563eb); }
.inbox-switch input:checked + .inbox-switch-track i { transform: translateX(16px); }
.inbox-switch input:focus-visible + .inbox-switch-track { outline: 2px solid var(--primary, #2563eb); outline-offset: 2px; }

.inbox-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  color: #475569;
  background: rgb(255 255 255 / 82%);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.inbox-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgb(148 163 184 / 14%);
}

.inbox-connection-status.is-live {
  color: #047857;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.inbox-connection-status.is-live .inbox-live-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgb(16 185 129 / 15%);
  animation: inbox-live-pulse 2.2s ease-out infinite;
}

.inbox-connection-status.is-connecting {
  color: #9a6700;
  border-color: #fde68a;
  background: #fffbeb;
}

.inbox-connection-status.is-connecting .inbox-live-dot {
  background: #f59e0b;
}

@keyframes inbox-live-pulse {
  50% { box-shadow: 0 0 0 6px rgb(16 185 129 / 4%); }
}

.inbox-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.34fr) minmax(0, 1fr);
  min-height: clamp(580px, 68vh, 760px);
  padding: 0;
  overflow: hidden;
  border-color: #dce4ee;
  background: #fff;
  box-shadow: 0 22px 54px rgb(15 23 42 / 8%);
}

.inbox-list {
  overflow: auto;
  border-right: 1px solid var(--border, #e2e8f0);
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

.inbox-list-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: rgb(248 250 252 / 92%);
  backdrop-filter: blur(12px);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inbox-list-header small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.inbox-conversation-row {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.inbox-conversation-row:hover {
  background: #fff;
}

.inbox-conversation-row.is-unread {
  background: color-mix(in srgb, var(--primary, #2563eb) 5%, #fff);
}

.inbox-conversation-row.is-unread .inbox-conversation-identity strong {
  color: #0f172a;
  font-weight: 900;
}

.inbox-conversation-row.is-selected {
  z-index: 1;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--primary, #2563eb), 0 8px 22px rgb(15 23 42 / 6%);
}

.inbox-conversation-row > span,
.inbox-conversation-identity > span:last-child {
  display: grid;
  gap: 0.25rem;
}

.inbox-conversation-identity {
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem !important;
}

.inbox-conversation-identity strong,
.inbox-conversation-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-conversation-avatar,
.inbox-thread-avatar {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb, var(--primary, #2563eb) 15%, #dbe2ea);
  border-radius: 12px;
  color: color-mix(in srgb, var(--primary, #2563eb) 82%, #0f172a);
  background: color-mix(in srgb, var(--primary, #2563eb) 8%, #fff);
  font-size: 0.78rem;
  font-weight: 850;
}

.inbox-conversation-meta {
  justify-items: end;
  white-space: nowrap;
}

.inbox-unread-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  background: var(--primary, #2563eb);
  font-size: 0.62rem;
}

.inbox-owner-label {
  width: max-content;
  max-width: 100%;
  color: #0f766e !important;
  font-weight: 750;
}

.inbox-elapsed {
  color: #475569 !important;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.inbox-elapsed.is-compact {
  font-size: 0.69rem;
}

.inbox-conversation-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  color: #475569 !important;
  background: #e9eef5;
  font-size: 0.66rem !important;
  font-weight: 750;
}

.inbox-conversation-status.is-queued {
  color: #9a6700 !important;
  background: #fef3c7;
}

.inbox-conversation-status.is-active {
  color: #047857 !important;
  background: #d1fae5;
}

.inbox-conversation-status.is-waiting {
  color: #1d4ed8 !important;
  background: #dbeafe;
}

.inbox-conversation-row small,
.inbox-conversation-row time,
.inbox-message time,
.inbox-message-meta {
  color: var(--muted, #64748b);
  font-size: 0.75rem;
}

.inbox-thread {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.inbox-thread-header,
.inbox-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
}

.inbox-thread-header {
  min-height: 78px;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.inbox-thread-customer {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inbox-thread-customer h3,
.inbox-thread-customer p {
  margin: 0;
}

.inbox-thread-customer small {
  color: #64748b;
}

.inbox-thread-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: center;
  margin-top: 0.18rem;
}

.inbox-thread-state .inbox-owner-label {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ecfdf5;
}

.inbox-thread-avatar {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary, #2563eb) 12%, transparent);
}

.inbox-message-list {
  min-height: 360px;
  max-height: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 1.35rem clamp(1rem, 3vw, 2rem);
  list-style: none;
  background:
    radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--primary, #2563eb) 5%, transparent), transparent 30%),
    linear-gradient(180deg, #fff, #fbfcfe);
  scroll-behavior: smooth;
}

.inbox-thread-body {
  min-height: 0;
  position: relative;
  display: grid;
  overflow: hidden;
}

.inbox-agent-activity {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 750;
}

.inbox-agent-activity > span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgb(56 189 248 / 14%);
}

.inbox-agent-activity.is-replying {
  color: #6d28d9;
  background: #faf5ff;
}

.inbox-agent-activity.is-replying > span {
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgb(139 92 246 / 14%);
}

.inbox-claim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--primary, #2563eb) 16%, #e2e8f0);
  background: color-mix(in srgb, var(--primary, #2563eb) 5%, #fff);
}

.inbox-claim-bar > div,
.inbox-claim-bar span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.inbox-claim-bar span {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.12rem;
}

.inbox-claim-bar svg {
  flex: 0 0 auto;
  color: var(--primary, #2563eb);
}

.inbox-claim-bar small {
  color: var(--muted, #64748b);
}

.inbox-claim-bar .primary-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inbox-transfer-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted, #64748b);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.inbox-transfer-control select {
  min-width: 140px;
  min-height: 38px;
}

.inbox-message {
  align-self: flex-start;
  max-width: min(75%, 620px);
  display: grid;
  gap: 0.3rem;
}

.inbox-message span {
  padding: 0.72rem 0.92rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 5px;
  background: #f1f5f9;
  box-shadow: 0 5px 14px rgb(15 23 42 / 4%);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inbox-message.is-agent {
  align-self: flex-end;
  justify-items: end;
}

.inbox-message.is-agent span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary, #2563eb), color-mix(in srgb, var(--primary, #2563eb) 76%, #0f172a));
  border-radius: 16px 16px 5px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary, #2563eb) 18%, transparent);
}

.inbox-attachment-link { border: 0; background: transparent; color: inherit; padding: 0; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.inbox-attachment-link:disabled { opacity: .65; text-decoration: none; cursor: default; }
.inbox-file-button { flex: 0 0 auto; cursor: pointer; }
.inbox-message progress { width: 100%; height: 6px; accent-color: var(--primary, #2563eb); }
.inbox-end-control { display: inline-flex; align-items: center; gap: .4rem; }
.inbox-end-control select { min-height: 38px; }
.inbox-thread-actions { align-items: center; gap: .65rem; }
.inbox-end-group { display: inline-flex; align-items: center; gap: .7rem; }
.inbox-close-countdown { min-width: 92px; color: #9a6700; font-size: .78rem; font-weight: 750; text-align: right; white-space: nowrap; }
.inbox-sidebar-countdown { color: #9a6700 !important; font-size: .67rem !important; font-weight: 750 !important; }

.inbox-message.is-ai span {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.inbox-message.is-ai-stream > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.inbox-ai-dot {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: #7c3aed;
  animation: inbox-typing-bounce 1s ease-in-out infinite;
}

.inbox-ai-dot:nth-of-type(2) { animation-delay: 120ms; }
.inbox-ai-dot:nth-of-type(3) { animation-delay: 240ms; }

.inbox-message.is-live-draft {
  opacity: 0.9;
}

.inbox-message.is-live-draft > span {
  min-width: 5rem;
  border-style: dashed;
  background: #f8fafc;
}

.inbox-message.is-live-draft > small {
  color: #64748b;
  font-weight: 700;
}

.inbox-message.is-sending {
  opacity: 0.72;
}

.inbox-message.is-failed span {
  border-color: #fecaca;
  background: #fff7f7;
}

.inbox-message-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.inbox-message.is-agent .inbox-message-meta {
  justify-content: flex-end;
}

.inbox-delivery-status {
  color: #64748b;
  font-weight: 700;
}

.inbox-message.is-failed .inbox-delivery-status {
  color: #b42318;
}

.inbox-message-retry {
  padding: 0;
  border: 0;
  color: var(--primary, #2563eb);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.inbox-typing-indicator {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 5px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.78rem;
}

.inbox-typing-indicator[hidden] {
  display: none;
}

.typing-dots {
  display: inline-flex;
  gap: 0.2rem;
}

.typing-dots i {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #64748b;
  animation: inbox-typing-bounce 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 120ms; }
.typing-dots i:nth-child(3) { animation-delay: 240ms; }

@keyframes inbox-typing-bounce {
  50% { transform: translateY(-3px); opacity: 0.5; }
}

.inbox-composer {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
  align-items: flex-end;
  background: #fff;
  box-shadow: 0 -10px 30px rgb(15 23 42 / 3%);
}

.inbox-composer-field {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.inbox-composer textarea {
  width: 100%;
  min-height: 52px;
  max-height: 160px;
  resize: none;
  border-color: #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.inbox-composer textarea:focus {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 65%, #cbd5e1);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 10%, transparent);
}

.inbox-composer-field small {
  padding-left: 0.2rem;
  color: #94a3b8;
  font-size: 0.7rem;
}

.inbox-composer .primary-button {
  min-width: 88px;
  min-height: 46px;
  border-radius: 13px;
}

.inbox-assignment-bar,
.inbox-waiting-actions,
.inbox-readonly-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.inbox-assignment-bar label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.inbox-assignment-bar select {
  flex: 1;
}

.inbox-waiting-actions,
.inbox-readonly-note {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
  margin: 0;
}

.inbox-empty-thread,
.inbox-thread-loading {
  align-self: center;
  justify-self: center;
}

.inbox-empty-thread {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 28rem;
  margin: auto;
}

.inbox-empty-thread .ui-icon {
  color: var(--primary, #2563eb);
}

.support-conversation-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.support-conversation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.support-conversation-row > span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.support-conversation-row small {
  color: var(--muted, #64748b);
  overflow-wrap: anywhere;
}

.support-transcript-card {
  width: min(760px, calc(100vw - 2rem));
}

.entitlement-location-list,
.access-fieldset {
  display: grid;
  gap: 0.65rem;
}

.chat-location-actions,
.ai-location-actions {
  justify-content: flex-end;
  padding-top: 0.2rem;
}

.chat-widget-actions {
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chat-widget-actions > button {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  box-shadow: none;
  white-space: nowrap;
}

.chat-widget-config-dialog {
  width: min(1060px, calc(100vw - 24px));
}

.chat-experience-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}

.chat-experience-editor > .field-grid {
  min-width: 0;
}

.chat-experience-preview {
  --preview-primary: #2563eb;
  --preview-accent: #dbeafe;
  --preview-surface: #ffffff;
  --preview-radius: 18px;
  position: sticky;
  top: 0;
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 0.7rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-border) 88%, #fff);
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--preview-primary) 13%, transparent), transparent 36%),
    linear-gradient(145deg, #f8fafc, color-mix(in srgb, var(--preview-accent) 12%, #fff));
  box-shadow: inset 0 1px 0 #fff;
}

.chat-preview-window {
  width: min(100%, 330px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--preview-primary) 16%, #d7dee9);
  border-radius: var(--preview-radius);
  color: #172033;
  background: var(--preview-surface);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.17);
  transition: border-radius 180ms ease, background-color 180ms ease;
}

.chat-preview-window header {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-top: 3px solid var(--preview-primary);
  border-bottom: 1px solid color-mix(in srgb, var(--preview-primary) 12%, #e5e7eb);
  background: color-mix(in srgb, var(--preview-surface) 96%, #fff);
  transition: background 180ms ease, color 180ms ease;
}

.chat-experience-preview[data-header-style="solid"] .chat-preview-window header {
  border-top-color: transparent;
  color: #fff;
  background: var(--preview-primary);
}

.chat-experience-preview[data-header-style="gradient"] .chat-preview-window header {
  border-top-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--preview-primary), color-mix(in srgb, var(--preview-primary) 64%, var(--preview-accent)));
}

.chat-preview-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--preview-primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-experience-preview[data-header-style="solid"] .chat-preview-avatar,
.chat-experience-preview[data-header-style="gradient"] .chat-preview-avatar {
  color: var(--preview-primary);
  background: #fff;
}

.chat-preview-window header div {
  min-width: 0;
  display: grid;
}

.chat-preview-window header strong,
.chat-preview-window header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview-window header strong {
  font-size: 0.78rem;
}

.chat-preview-window header small {
  margin-top: 0.12rem;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 0.62rem;
}

.chat-preview-window header i {
  font-size: 1.1rem;
  font-style: normal;
  opacity: 0.65;
}

.chat-preview-window main {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.chat-preview-window main .eyebrow {
  margin: 0;
  font-size: 0.56rem;
}

.chat-preview-window main h4,
.chat-preview-window main > p:not(.eyebrow) {
  margin: 0;
}

.chat-preview-window main h4 {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.chat-preview-window main > p:not(.eyebrow) {
  color: #667085;
  font-size: 0.72rem;
  line-height: 1.45;
}

.chat-preview-prompts {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.15rem 0;
}

.chat-preview-prompts span {
  max-width: 100%;
  overflow: hidden;
  padding: 0.35rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--preview-primary) 22%, #d8dee8);
  border-radius: 999px;
  color: var(--preview-primary);
  background: color-mix(in srgb, var(--preview-accent) 15%, #fff);
  font-size: 0.58rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview-name {
  display: grid;
  gap: 0.28rem;
}

.chat-preview-name small,
.chat-preview-privacy {
  color: #667085;
  font-size: 0.56rem;
}

.chat-preview-name span {
  height: 34px;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  background: #fff;
}

.chat-preview-window main button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--preview-primary);
  font-size: 0.7rem;
  font-weight: 800;
  pointer-events: none;
}

.chat-preview-window footer {
  padding: 0.55rem;
  border-top: 1px solid #e5e7eb;
  color: #667085;
  font-size: 0.54rem;
  text-align: center;
}

.chat-preview-launcher {
  min-width: 52px;
  height: 52px;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: #fff;
  background: var(--preview-primary);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--preview-primary) 28%, transparent);
  transition: width 180ms ease, background-color 180ms ease;
}

.chat-preview-launcher span {
  letter-spacing: 0.06em;
}

.chat-preview-launcher strong {
  font-size: 0.67rem;
  white-space: nowrap;
}

.chat-experience-preview[data-launcher-style="icon"] .chat-preview-launcher {
  width: 52px;
  padding: 0;
}

.chat-experience-preview[data-launcher-style="icon"] .chat-preview-launcher strong {
  display: none;
}

.chat-preview-caption {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-widget-save-note {
  margin-right: auto;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

@media (max-width: 820px) {
  .chat-experience-editor {
    grid-template-columns: 1fr;
  }

  .chat-experience-preview {
    position: relative;
    order: -1;
  }
}

@media (max-width: 560px) {
  .chat-widget-save-note {
    width: 100%;
  }
}

.team-access-fields {
  display: grid;
  gap: 0.65rem;
}

[data-team-location-fields] {
  transition: opacity 150ms ease;
}

[data-team-location-fields].is-disabled {
  opacity: 0.58;
}

.entitlement-location-row,
.access-fieldset > label,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.entitlement-location-row > span:nth-child(2),
.access-fieldset > label {
  flex: 1;
}

.entitlement-location-row span:nth-child(2) {
  display: grid;
}

.access-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.access-fieldset legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.access-fieldset small {
  display: block;
  color: var(--muted, #64748b);
}

.origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0.35rem 0 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.82rem;
}

.origin-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.entitlement-location-row.is-disabled {
  opacity: 0.62;
}

.chat-coverage-schedule {
  margin-top: 1rem;
}

.chat-coverage-days {
  display: grid;
  gap: 0.45rem;
}

.chat-coverage-day {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(105px, auto) auto minmax(105px, auto);
  align-items: center;
  gap: 0.55rem;
}

.chat-coverage-day > label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.knowledge-mode-row {
  grid-template-columns: minmax(220px, 1.1fr) minmax(320px, 1fr) auto;
  align-items: center;
}

.knowledge-source-row,
.knowledge-directory-row {
  grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 0.55fr) auto;
}

.knowledge-mode-control,
.knowledge-source-status {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--muted, #64748b);
  font-size: 0.78rem;
  font-weight: 700;
}

.knowledge-mode-settings {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.75rem;
}

.knowledge-mode-control select {
  width: 100%;
  min-width: 0;
}

.knowledge-mode-control small {
  max-width: none;
  color: var(--muted, #64748b);
  font-weight: 500;
  line-height: 1.35;
}

.knowledge-mode-row .office-config-actions {
  align-self: center;
  padding-left: 0.25rem;
}

.knowledge-library-heading {
  width: 100%;
}

.knowledge-library-actions {
  align-items: flex-end;
  align-self: flex-start;
  flex-direction: column;
  margin-left: auto;
}

.knowledge-source-status {
  justify-items: start;
}

.knowledge-source-status small {
  color: var(--muted, #64748b);
  font-weight: 500;
}

.knowledge-source-row .office-config-details,
.knowledge-directory-row .office-config-details,
.knowledge-mode-row .office-config-details {
  min-width: 0;
}

.knowledge-source-row .office-config-details span,
.knowledge-directory-row .office-config-details span,
.knowledge-mode-row .office-config-details span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.knowledge-error {
  color: var(--danger, #b42318);
}

.knowledge-assignment-fieldset,
.knowledge-location-fieldset {
  max-height: 240px;
  overflow: auto;
  padding-right: 0.2rem;
}

.knowledge-location-fieldset [hidden] {
  display: none;
}

.knowledge-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 800px) {
  .inbox-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .inbox-connection-status {
    margin-left: auto;
  }

  .inbox-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .inbox-list {
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .inbox-thread {
    min-height: 560px;
  }

  .inbox-thread-header {
    align-items: flex-start;
  }

  .inbox-thread-header .office-actions {
    justify-content: flex-end;
  }

  .inbox-message-list {
    max-height: 420px;
    min-height: 320px;
  }

  .inbox-message {
    max-width: 88%;
  }

  .inbox-composer {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .inbox-composer-field small {
    display: none;
  }

  .inbox-waiting-actions,
  .inbox-assignment-bar {
    flex-wrap: wrap;
  }

  .knowledge-mode-row,
  .knowledge-source-row,
  .knowledge-directory-row,
  .knowledge-toggle-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-mode-control select {
    width: 100%;
  }

  .knowledge-mode-settings {
    grid-template-columns: 1fr;
  }

  .chat-coverage-day {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .toast-message.has-action {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .toast-message.has-action .toast-action {
    grid-column: 2;
    width: max-content;
  }

  .inbox-toolbar-actions .inbox-switch {
    width: 100%;
    justify-content: flex-end;
  }

  .inbox-connection-status {
    margin-left: 0;
  }

  .inbox-thread-header {
    display: grid;
  }

  .inbox-thread-header .office-actions {
    justify-content: flex-start;
  }

  .inbox-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.8rem;
  }
}

/* Shared portal and system dialog finish */
body[data-surface="portal"] .modal-shell {
  width: min(780px, 100vw);
}

body[data-surface="portal"] .modal-shell.modal-shell-compact {
  width: min(660px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100dvh - 24px);
  margin: auto;
}

body[data-surface="portal"] .modal-shell.modal-shell-compact .modal-card {
  height: auto;
  max-height: calc(100dvh - 24px);
  border-radius: 20px;
}

.modal-shell-compact .modal-body {
  background: var(--app-surface);
}

body[data-surface="system"] .modal-shell {
  width: min(780px, 100vw);
}

.modal-body .field-grid,
.modal-body .team-access-fields,
.modal-body .entitlement-location-list {
  gap: 0.85rem;
}

.modal-body .field-group > label,
.modal-body .field-group > .field-label-with-help > label,
.modal-body label.field-group {
  color: var(--app-text);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.modal-body input:not([type="checkbox"]):not([type="color"]),
.modal-body select,
.modal-body textarea {
  border-color: color-mix(in srgb, var(--app-border) 92%, #fff);
  border-radius: 12px;
  background: color-mix(in srgb, var(--app-surface-2) 32%, #fff);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.025);
}

.modal-body input[type="checkbox"] {
  flex: 0 0 1rem;
  min-height: 1rem;
  padding: 0;
}

.modal-body input:not([type="checkbox"]):not([type="color"]):hover,
.modal-body select:hover,
.modal-body textarea:hover {
  border-color: color-mix(in srgb, var(--app-primary) 22%, var(--app-border));
}

.modal-body .toggle-row,
.modal-body .access-fieldset > label {
  align-items: flex-start;
  border-color: color-mix(in srgb, var(--app-border) 90%, #fff);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.025);
}

.modal-body .toggle-row > input,
.modal-body .access-fieldset > label > input {
  margin-top: 0.12rem;
}

.modal-body .toggle-row > span,
.modal-body .access-fieldset > label > span {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.modal-body .toggle-row strong {
  font-size: 0.84rem;
}

.modal-body .toggle-row small,
.modal-body .access-fieldset small {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.modal-body .access-fieldset legend {
  color: var(--app-text);
  font-size: 0.78rem;
  font-weight: 850;
}

.color-field input[type="color"] {
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
}

.origin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.origin-chip-list .origin-chip {
  margin: 0;
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
  padding: 0.5rem 0.65rem;
}

.origin-chip-list .origin-chip button {
  width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--app-muted);
  padding: 0;
}

.chat-coverage-schedule {
  margin-top: 0;
}

.modal-body .chat-coverage-days {
  gap: 0.55rem;
}

.modal-body .chat-coverage-day {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface-2);
  padding: 0.65rem;
}

.modal-body .chat-coverage-day > label,
.modal-body .chat-coverage-day > .field-control-with-help-inline > label {
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-modal-body {
  padding-top: 1rem;
}

.system-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.system-detail-list {
  border-top: 0;
  padding: 0;
}

.system-detail-list > a,
.system-detail-list > span {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-2);
  padding: 0.8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  body[data-surface="portal"] .modal-shell,
  body[data-surface="portal"] .modal-shell.modal-shell-compact,
  body[data-surface="system"] .modal-shell {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }

  body[data-surface="portal"] .modal-card,
  body[data-surface="system"] .modal-card {
    border: 0;
    border-radius: 0;
  }

  body[data-surface="portal"] .modal-shell.modal-shell-compact,
  body[data-surface="portal"] .modal-shell.modal-shell-compact .modal-card {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header p:not(.eyebrow) {
    font-size: 0.8rem;
  }

  .modal-tab-strip {
    padding: 0.55rem 1rem;
  }

  .modal-tab {
    min-height: 44px;
    padding: 0.58rem 0.72rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .brand-live-preview {
    margin: 0.75rem 1rem 0;
  }

  .field-row,
  .system-details-grid,
  .knowledge-toggle-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    padding: 0.8rem 1rem max(0.8rem, env(safe-area-inset-bottom));
  }

  .modal-actions-split {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-actions-split > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-actions-split > .danger-button {
    justify-self: start;
  }

  .modal-body .chat-coverage-day {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .modal-body .chat-coverage-day > label,
  .modal-body .chat-coverage-day > .field-control-with-help-inline {
    grid-column: 1 / -1;
  }

  .modal-body .chat-coverage-day > span {
    display: none;
  }

  .domain-add-panel {
    grid-template-columns: 1fr;
  }
}

/* Agent Inbox — first-class conversation workspace */
.inbox-toolbar-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.inbox-toolbar-card .split-heading {
  align-items: flex-start;
}

.inbox-toolbar-card .split-heading h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.inbox-view-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #eef2f7;
}

.inbox-view-switch button {
  min-height: 34px;
  padding: 0.35rem 0.72rem;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.inbox-view-switch button.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / 10%);
}

.inbox-overview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.inbox-overview > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.72rem 0.82rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgb(255 255 255 / 76%);
}

.inbox-overview span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-overview strong {
  grid-column: 2;
  grid-row: 1;
  color: #0f172a;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.inbox-overview .is-priority {
  border-color: #fde68a;
  background: #fffbeb;
}

.inbox-overview .has-attention {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 24%, #dbe2ea);
  background: color-mix(in srgb, var(--primary, #2563eb) 5%, #fff);
}

.inbox-workspace.is-conversation-open {
  grid-template-columns: minmax(270px, 0.32fr) minmax(0, 1fr) minmax(230px, 0.27fr);
}

.inbox-context-panel {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fbfdff, #f8fafc);
}

.inbox-context-heading {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.inbox-context-heading h3,
.inbox-context-heading p {
  margin: 0;
}

.inbox-context-heading h3 {
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.inbox-context-heading p:last-child {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.inbox-context-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.inbox-context-list > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid #e8edf3;
}

.inbox-context-list dt {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inbox-context-list dt svg {
  color: var(--primary, #2563eb);
}

.inbox-context-list dd {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
  margin: 0;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.inbox-context-list dd small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
}

.inbox-context-note {
  display: grid;
  gap: 0.25rem;
  margin: 1rem;
  padding: 0.8rem;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 0.72rem;
  line-height: 1.45;
}

.inbox-mobile-back {
  display: none;
}

.inbox-message-sender {
  padding: 0 0.25rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.inbox-message.is-agent .inbox-message-sender {
  justify-self: end;
}

.inbox-message[hidden],
.inbox-agent-activity[hidden] {
  display: none;
}

.inbox-composer {
  padding: 0.85rem 1rem;
}

.inbox-file-button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 46px;
}

.inbox-composer-hints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.inbox-composer-hints [data-message-character-count] {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inbox-waiting-actions {
  justify-content: flex-end;
}

.inbox-waiting-actions > span {
  margin-right: auto;
  font-size: 0.74rem;
  font-weight: 750;
}

.inbox-thread-header {
  box-shadow: 0 8px 24px rgb(15 23 42 / 3%);
}

.inbox-message-list {
  scrollbar-gutter: stable;
}

@media (max-width: 1279px) {
  .inbox-workspace.is-conversation-open {
    grid-template-columns: minmax(270px, 0.34fr) minmax(0, 1fr);
  }

  .inbox-context-panel {
    display: none;
  }
}

@media (max-width: 920px) {
  .inbox-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-workspace,
  .inbox-workspace.is-conversation-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .inbox-workspace.is-conversation-open .inbox-list {
    display: none;
  }

  .inbox-list {
    max-height: min(52vh, 460px);
    border-right: 0;
  }

  .inbox-mobile-back {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--primary, #2563eb);
    background: #f8fafc;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
  }

  .inbox-mobile-back svg {
    transform: rotate(180deg);
  }

  .inbox-thread {
    min-height: min(720px, 75vh);
  }
}

@media (max-width: 620px) {
  .inbox-toolbar-card .split-heading {
    gap: 0.85rem;
  }

  .inbox-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .inbox-view-switch {
    width: max-content;
  }

  .inbox-toolbar-actions .inbox-switch {
    width: auto;
  }

  .inbox-connection-status {
    margin-left: 0;
  }

  .inbox-overview {
    gap: 0.45rem;
  }

  .inbox-overview > div {
    padding: 0.62rem 0.68rem;
  }

  .inbox-thread-header {
    padding: 0.85rem;
  }

  .inbox-thread-actions {
    width: 100%;
    justify-content: flex-start !important;
  }

  .inbox-claim-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .inbox-claim-bar .primary-button {
    width: 100%;
  }

  .inbox-composer {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .inbox-file-button span,
  .inbox-composer-hints #agent-message-hint {
    display: none;
  }

  .inbox-waiting-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inbox-waiting-actions > span {
    grid-column: 1 / -1;
  }
}

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

/* Localization and regional settings */
.language-menu {
  flex: 0 0 auto;
}

.language-selector {
  display: inline-flex;
  align-items: center;
}

.language-selector select {
  min-height: 38px;
  max-width: 10.5rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  padding: 0.45rem 1.9rem;
  background-color: color-mix(in srgb, var(--app-surface) 94%, transparent);
  color: var(--app-text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  box-shadow: var(--app-shadow-sm);
}

.translation-editor {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}

.translation-tabs {
  min-width: 0;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.18rem;
  scrollbar-width: thin;
}

.translation-tab {
  min-width: max-content;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 0.52rem 0.65rem;
  background: var(--app-surface-2);
  color: var(--app-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.translation-tab:hover,
.translation-tab.is-active {
  border-color: color-mix(in srgb, var(--app-primary) 38%, var(--app-border));
  background: #fff;
  color: var(--app-text);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--app-primary) 9%, transparent);
}

.translation-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.translation-status-complete {
  color: #166534;
  background: #dcfce7;
}

.translation-status-fallback {
  color: #92400e;
  background: #fef3c7;
}

.translation-status-missing {
  color: #991b1b;
  background: #fee2e2;
}

[data-translation-panel][hidden] {
  display: none !important;
}

.translation-field-grid {
  min-width: 0;
}

[data-translation-fallback="true"] {
  border-style: dashed !important;
  background: #fffbeb !important;
}

.regional-setup-fields,
.business-language-list {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--app-surface-2);
}

.regional-setup-fields legend,
.business-language-list legend {
  padding: 0 0.35rem;
  color: var(--app-text);
  font-weight: 850;
}

.regional-setup-notice,
.language-fallback-note,
.office-time-zone-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--app-primary) 20%, var(--app-border));
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--app-primary) 5%, #fff);
}

.regional-setup-notice div,
.language-fallback-note span,
.office-time-zone-panel > div {
  display: grid;
  gap: 0.22rem;
}

.regional-setup-notice span,
.language-fallback-note small,
.office-time-zone-panel small {
  color: var(--app-muted);
}

.business-language-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--app-border);
  padding: 0.8rem 0;
}

.business-language-row > label,
.business-language-row > .field-control-with-help-inline > label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.business-language-row > label > span,
.business-language-row > .field-control-with-help-inline > label > span {
  display: grid;
  gap: 0.2rem;
}

.business-language-row small {
  color: var(--app-muted);
}

.language-order-actions {
  display: inline-flex;
  gap: 0.25rem;
}

.language-order-actions .icon-button {
  min-width: 2rem;
  min-height: 2rem;
}

.language-primary-label {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.office-time-zone-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.inbox-composer-localized > .translation-editor {
  flex: 1 1 auto;
  align-self: stretch;
}

.inbox-composer-localized .translation-tabs {
  padding: 0;
}

.inbox-composer-localized .translation-tab {
  padding: 0.35rem 0.5rem;
}

.chat-coverage-location-list {
  display: grid;
  gap: 0.7rem;
}

.chat-coverage-location {
  overflow: clip;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface);
}

.chat-coverage-location > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style-position: inside;
}

.chat-coverage-location[open] > summary {
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface-2);
}

.chat-coverage-summary-copy,
.chat-coverage-summary-state {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-coverage-summary-copy {
  min-width: 0;
  flex-wrap: wrap;
}

.chat-coverage-summary-copy small,
.chat-coverage-zone,
.chat-coverage-actions .status-note {
  color: var(--app-muted);
}

.chat-coverage-editor {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.chat-coverage-zone {
  margin: 0;
}

.chat-coverage-zone.is-warning {
  color: #92400e;
}

.chat-coverage-week {
  display: grid;
  gap: 0.45rem;
}

.coverage-day-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1.45fr) auto;
  align-items: start;
  gap: 0.55rem;
}

.coverage-day-row > label,
.coverage-day-row > .field-control-with-help-inline > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
}

.coverage-day-row input[type="time"],
.chat-coverage-copy select {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--app-text);
  font: inherit;
}

.coverage-window-list {
  display: grid;
  gap: 0.4rem;
}

.coverage-window-row {
  display: grid;
  grid-template-columns: minmax(6.8rem, 1fr) auto minmax(6.8rem, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.coverage-window-add {
  white-space: nowrap;
}

.chat-coverage-actions,
.chat-coverage-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chat-coverage-actions .status-note {
  flex: 1 1 14rem;
}

@media (max-width: 620px) {
  .brand-row {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .language-selector select {
    max-width: min(11.5rem, 100%);
  }

  .translation-tab {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .office-time-zone-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-language-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .business-language-row .language-order-actions,
  .business-language-row .language-primary-label {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .inbox-composer-localized {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .inbox-composer-localized > .translation-editor {
    grid-column: 2;
  }

  .chat-coverage-location > summary,
  .coverage-day-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-coverage-summary-state {
    flex-wrap: wrap;
  }

  .coverage-day-row > span {
    display: none;
  }

  .coverage-window-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }

  .coverage-window-add {
    width: 100%;
  }

  .chat-coverage-actions,
  .chat-coverage-copy,
  .chat-coverage-copy select,
  .chat-coverage-actions button {
    width: 100%;
  }

  .chat-coverage-actions > .field-control-with-help-inline {
    width: 100%;
  }

  .chat-coverage-actions .field-help-button {
    width: 30px;
  }
}

/* Native contextual help stays in the product shell so opening it never
   rerenders, navigates, or resets an in-progress portal form. */
.contextual-help-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.contextual-help-action-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.contextual-help-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--app-text);
}

.contextual-help-dialog::backdrop {
  background: rgba(7, 15, 29, 0.5);
  backdrop-filter: blur(5px) saturate(0.85);
}

.contextual-help-drawer {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-border) 88%, #fff);
  border-radius: 20px 0 0 20px;
  background: var(--app-surface);
  box-shadow: -24px 0 70px rgba(11, 18, 32, 0.24);
}

.contextual-help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--app-border);
  background:
    radial-gradient(circle at 88% -140%, color-mix(in srgb, var(--app-primary) 15%, transparent), transparent 56%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--app-surface-2) 42%, #fff));
  padding: 1.25rem 1.35rem 1.1rem;
}

.contextual-help-header > div {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.contextual-help-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: -0.025em;
}

.contextual-help-header .icon-button {
  flex: 0 0 auto;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  color: var(--app-muted);
}

.contextual-help-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1.25rem 1.25rem 1.5rem;
}

.contextual-help-search-section {
  margin-bottom: 1rem;
}

.contextual-help-search {
  display: grid;
  gap: 0.5rem;
}

.contextual-help-search > label {
  color: var(--app-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.contextual-help-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.contextual-help-search-row input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  color: var(--app-text);
}

.contextual-help-search-row button {
  min-height: 44px;
}

.contextual-help-search-status,
.contextual-help-empty {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.contextual-help-search-status:empty {
  display: none;
}

.contextual-help-search-results {
  margin-top: 0.15rem;
}

.contextual-help-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--app-primary) 20%, var(--app-border));
  border-radius: 16px;
  background: linear-gradient(145deg, var(--app-primary-soft), #fff 70%);
  padding: 1rem;
  align-items: start;
}

.contextual-help-current-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--app-primary-action);
  color: var(--app-primary-action-contrast);
  font-size: 1rem;
  font-weight: 900;
}

.contextual-help-current > div {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.contextual-help-current h3,
.contextual-help-suggestions h3 {
  margin: 0;
  color: var(--app-text);
  letter-spacing: -0.015em;
}

.contextual-help-current h3 {
  font-size: 1.05rem;
}

.contextual-help-current p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.contextual-help-primary-link {
  width: fit-content;
  min-height: 46px;
  display: inline-grid;
  grid-template-columns: auto;
  justify-items: start;
  gap: 0.05rem;
  padding: 0.55rem 0.85rem;
}

.contextual-help-primary-link small {
  color: inherit;
  font-size: 0.67rem;
  font-weight: 650;
  opacity: 0.82;
}

.contextual-help-suggestions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.contextual-help-suggestions h3 {
  font-size: 0.9rem;
}

.contextual-help-link-list {
  display: grid;
  gap: 0.55rem;
}

.contextual-help-link-list a,
.contextual-help-browse,
.contextual-help-support {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  background: #fff;
  padding: 0.85rem;
  color: var(--app-text);
  box-shadow: var(--app-shadow-sm);
}

.contextual-help-link-list a:hover,
.contextual-help-browse:hover,
.contextual-help-support:hover {
  border-color: color-mix(in srgb, var(--app-primary) 32%, var(--app-border));
  background: color-mix(in srgb, var(--app-primary) 3%, #fff);
  color: var(--app-primary-strong);
}

.contextual-help-link-list a > span,
.contextual-help-browse > span,
.contextual-help-support > span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.contextual-help-link-list strong,
.contextual-help-browse strong,
.contextual-help-support strong {
  font-size: 0.84rem;
}

.contextual-help-link-list small,
.contextual-help-browse small,
.contextual-help-support small {
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.42;
}

.contextual-help-footer {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface-2) 58%, #fff);
  padding: 0.8rem 1.25rem max(0.8rem, env(safe-area-inset-bottom));
}

.contextual-help-browse,
.contextual-help-support {
  width: 100%;
}

.contextual-help-support {
  box-shadow: none;
}

.field-label-with-help {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.field-label-with-help > label {
  min-width: 0;
  flex: 0 1 auto;
}

.field-control-with-help {
  position: relative;
  min-width: 0;
}

.field-control-with-help > label {
  width: 100%;
  height: 100%;
  padding-right: 2.35rem;
}

.access-fieldset > .field-control-with-help > label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 2.35rem 0.8rem 0.8rem;
}

.chat-coverage-day > .field-control-with-help > label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.field-control-with-help > .field-help-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.field-control-with-help-stacked > .field-label-with-help {
  width: fit-content;
  max-width: 100%;
}

.field-control-with-help-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.field-control-with-help-row > label.entitlement-location-row,
.field-control-with-help-row > label.toggle-row,
.access-fieldset > .field-control-with-help-row > label {
  min-width: 0;
  border: 0;
  border-radius: inherit;
  padding-right: 0.35rem;
}

.field-control-with-help-row > .field-help-button {
  position: static;
  margin-right: 0.65rem;
  transform: none;
}

.field-control-with-help-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
}

.field-control-with-help-inline > label {
  min-width: 0;
  width: 100%;
  height: auto;
  padding-right: 0;
}

.field-control-with-help-inline > .field-help-button {
  position: static;
  transform: none;
}

.field-control-with-help-unlabeled {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
}

.field-control-with-help-unlabeled > .field-help-button {
  position: static;
  transform: none;
}

.field-help-button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: var(--app-muted);
}

.field-help-button:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
}

.field-help-button > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 620px) {
  .contextual-help-dialog {
    width: 100vw;
  }

  .contextual-help-drawer {
    border-radius: 0;
  }

  .contextual-help-header,
  .contextual-help-body,
  .contextual-help-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .modal-body .chat-coverage-day > .field-control-with-help {
    grid-column: 1 / -1;
  }
}
