/*
 * Authenticated flowsmatica workspace
 * Loaded after styles.css and premium.css. This layer is intentionally scoped
 * to the signed-in product so the public acquisition journey remains untouched.
 */

.flowsmatica-v3.app-mode,
.flowsmatica-v3 .app-shell {  min-height: 100dvh;
  color: var(--dash-ink);
  background: var(--dash-bg);
}

.flowsmatica-v3.app-mode {
  background: var(--dash-bg, #f3f7fb);
}

.flowsmatica-v3 .app-shell *,
.flowsmatica-v3 .app-shell *::before,
.flowsmatica-v3 .app-shell *::after {
  box-sizing: border-box;
}

.flowsmatica-v3 .app-shell :where(p, li, dt, dd, em, small) {
  font-size: 13px !important;
  line-height: 1.55;
}

.flowsmatica-v3 .app-shell :where(button, input, select, textarea, summary) {
  font: inherit;
}

.flowsmatica-v3 .app-shell :where(button, a[href], summary, input, select, textarea):focus-visible,
.flowsmatica-v3.app-mode :where(.toast button, .modal button, .modal a[href]):focus-visible {
  outline: 3px solid rgba(0, 120, 212, 0.38) !important;
  outline-offset: 3px;
}

.flowsmatica-v3 .app-shell :where(button, a[href], summary) {
  -webkit-tap-highlight-color: transparent;
}

.flowsmatica-v3 .app-shell :where(.button, .text-button, summary) {
  min-height: 44px;
}

.flowsmatica-v3 .app-shell .button {
  padding-inline: 18px;
  border-radius: 11px;
  font-size: 14px !important;
  font-weight: 720;
}

.flowsmatica-v3 .app-shell .text-button {
  padding: 8px 2px;
  color: var(--dash-forest-2);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.flowsmatica-v3 .app-shell .text-button:hover {
  color: var(--dash-gold);
}

/* Shell ---------------------------------------------------------------- */

.flowsmatica-v3 .app-sidebar {
  width: 274px;
  padding: 0 14px 14px;
  color: #dbe8f1;
  border-right-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 28% 2%, rgba(3, 178, 203, 0.16), transparent 25%),
    var(--dash-forest);
  box-shadow: 10px 0 34px rgba(8, 42, 68, 0.1);
}

.flowsmatica-v3 .app-main {
  min-width: 0;
  min-height: 100dvh;
  margin-left: 274px;
  background: var(--dash-bg);
}

.flowsmatica-v3 .sidebar-top {
  min-height: 76px;
  padding-inline: 6px 0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.flowsmatica-v3 .sidebar-top .brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #f8fcff;
}

.flowsmatica-v3 .sidebar-top .brand-mark {
  width: 24px;
  height: 24px;
  color: #03b2cb;
}

.flowsmatica-v3 .sidebar-top .brand > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.flowsmatica-v3 .sidebar-top .brand strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
}

.flowsmatica-v3 .sidebar-top .brand small {
  color: #9fd9e4;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 720;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: none;
}

.flowsmatica-v3 .sidebar-collapse,
.flowsmatica-v3 .mobile-menu {
  min-width: 44px;
  min-height: 44px;
  border-radius: 11px;
}

.flowsmatica-v3 .business-switcher {
  width: 100%;
  min-height: 82px;
  margin: 18px 0 12px;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  background: rgba(255, 255, 255, 0.055);
}

.flowsmatica-v3 .business-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #ffffff;
  background: #0078d4;
}

.flowsmatica-v3 .business-switcher > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.flowsmatica-v3 .business-switcher strong,
.flowsmatica-v3 .business-switcher em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowsmatica-v3 .business-switcher strong {
  color: #f8fcff;
  font-size: 13px;
}

.flowsmatica-v3 .business-switcher em {
  color: #a8bdcc;
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .app-nav {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 0 16px;
}

.flowsmatica-v3 .app-nav .nav-label {
  margin: 15px 9px 7px;
  color: #83a2b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.flowsmatica-v3 .app-nav a {
  min-height: 46px;
  margin-block: 2px;
  padding: 0 12px;
  border-left: 3px solid transparent;
  border-radius: 10px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  color: #b8cad8;
  font-size: 13px;
  font-weight: 680;
}

.flowsmatica-v3 .app-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.flowsmatica-v3 .app-nav a.active,
.flowsmatica-v3 .app-nav a[aria-current="page"] {
  color: #f8fcff;
  border-left-color: #03b2cb;
  background: rgba(255, 255, 255, 0.09);
}

.flowsmatica-v3 .app-nav a > em {
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--dash-forest);
  background: #03b2cb;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 800;
}

.flowsmatica-v3 .sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flowsmatica-v3 .sidebar-trust-card {
  margin-bottom: 12px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #c8d9e6;
  background: rgba(255, 255, 255, 0.04);
}

.flowsmatica-v3 .sidebar-trust-card > .icon {
  width: 18px;
  height: 18px;
  color: #03b2cb;
}

.flowsmatica-v3 .sidebar-trust-card p {
  min-width: 0;
  margin: 0;
}

.flowsmatica-v3 .sidebar-trust-card strong,
.flowsmatica-v3 .sidebar-trust-card em {
  display: block;
}

.flowsmatica-v3 .sidebar-trust-card strong {
  color: #f3f8fc;
  font-size: 12px;
}

.flowsmatica-v3 .sidebar-trust-card em {
  margin-top: 2px;
  color: #a8bdcc;
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .user-chip {
  min-height: 56px;
  padding: 8px;
  border-radius: 11px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
}

.flowsmatica-v3 .user-chip > span {
  width: 34px;
  height: 34px;
}

.flowsmatica-v3 .user-chip p {
  min-width: 0;
}

.flowsmatica-v3 .user-chip strong,
.flowsmatica-v3 .user-chip em {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowsmatica-v3 .user-chip strong {
  color: #f8fcff;
  font-size: 12px;
}

.flowsmatica-v3 .user-chip em {
  color: #9db4c5;
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .user-chip button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: #c8d9e6;
  background: transparent;
  font-size: 12px;
}

.flowsmatica-v3 .app-topbar {
  position: sticky;
  z-index: 520;
  top: 0;
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--dash-line);
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 1px 0 rgba(8, 42, 68, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.flowsmatica-v3 .app-breadcrumb {
  min-width: 0;
  color: var(--dash-muted);
  font-size: 13px;
}

.flowsmatica-v3 .app-breadcrumb > span:first-child,
.flowsmatica-v3 .app-breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowsmatica-v3 .app-breadcrumb strong {
  color: var(--dash-ink);
}

.flowsmatica-v3 .topbar-actions {
  min-width: 0;
  gap: 10px;
}

.flowsmatica-v3 .analysis-mode-chip,
.flowsmatica-v3 .monitoring-status {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dash-muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.flowsmatica-v3 .analysis-mode-chip > .icon {
  width: 16px;
  height: 16px;
  color: var(--dash-forest-2);
}

.flowsmatica-v3 .monitoring-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dash-green);
}

.flowsmatica-v3 .monitoring-status.is-running i {
  background: #b76f0a;
  box-shadow: 0 0 0 4px rgba(183, 111, 10, 0.12);
}

.flowsmatica-v3 .monitoring-status.has-error i {
  background: var(--dash-red);
}

.flowsmatica-v3 .topbar-audit-button {
  min-height: 46px;
  white-space: nowrap;
}

/* Shared authenticated page primitives ------------------------------- */

.flowsmatica-v3 .app-content,
.flowsmatica-v3 .app-workspace-page {
  width: min(calc(100% - 64px), 1180px);
  margin-inline: auto;
  padding-block: 42px 72px;
}

.flowsmatica-v3 .compact-content {
  width: min(calc(100% - 64px), 1080px);
}

.flowsmatica-v3 .workspace-page-header {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.flowsmatica-v3 .workspace-page-header > div:first-child {
  min-width: 0;
  max-width: 820px;
}

.flowsmatica-v3 .workspace-eyebrow,
.flowsmatica-v3 .section-index,
.flowsmatica-v3 .app-shell .kicker,
.flowsmatica-v3 .app-shell .tiny-label {
  display: block;
  color: var(--dash-gold);
  font-size: 12px !important;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.flowsmatica-v3 .workspace-page-header h1,
.flowsmatica-v3 .app-page-heading h1 {
  margin: 8px 0 10px;
  color: var(--dash-ink);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.flowsmatica-v3 .workspace-page-header p,
.flowsmatica-v3 .app-page-heading p {
  max-width: 72ch;
  margin: 0;
  color: var(--dash-muted);
  font-size: 15px !important;
  line-height: 1.65;
}

.flowsmatica-v3 .page-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flowsmatica-v3 .section-heading-row {
  margin-bottom: 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.flowsmatica-v3 .section-heading-row > div:first-child {
  min-width: 0;
}

.flowsmatica-v3 .section-heading-row h2 {
  margin: 5px 0 4px;
  color: var(--dash-ink);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.flowsmatica-v3 .section-heading-row p {
  max-width: 70ch;
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .app-shell .panel,
.flowsmatica-v3 .app-shell .connection-card,
.flowsmatica-v3 .app-shell .workspace-empty-state,
.flowsmatica-v3 .app-shell .setup-progress-card,
.flowsmatica-v3 .app-shell .locked-audit-cta {
  border: 1px solid rgba(18, 32, 27, 0.1);
  border-radius: var(--dash-radius);
  color: var(--dash-ink);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 .app-shell .panel-heading {
  min-height: 66px;
  padding: 15px 18px;
  border-color: var(--dash-line);
}

.flowsmatica-v3 .app-shell .panel-heading h2,
.flowsmatica-v3 .app-shell .panel-heading h3 {
  color: var(--dash-ink);
}

.flowsmatica-v3 .app-shell :where(.state-pill, .severity, .confidence, .campaign-intelligence-badge, .campaign-tags > span, .campaign-tags > strong) {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px !important;
  line-height: 1.2;
}

.flowsmatica-v3 .app-shell .state-pill.active {
  color: var(--dash-green);
  background: var(--dash-green-soft);
}

.flowsmatica-v3 .app-shell .state-pill.progress {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

.flowsmatica-v3 .app-shell .state-pill.reviewed {
  color: #526c80;
  background: #eef3f7;
}

.flowsmatica-v3 .app-shell .severity.warning {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

.flowsmatica-v3 .app-shell .severity.critical {
  color: var(--dash-red);
  background: var(--dash-red-soft);
}

.flowsmatica-v3 .app-shell .severity.opportunity {
  color: var(--dash-blue);
  background: var(--dash-blue-soft);
}

.flowsmatica-v3 .app-shell .finding-id,
.flowsmatica-v3 .app-shell .coverage-count,
.flowsmatica-v3 .app-shell .setup-count {
  font-size: 12px !important;
}

.flowsmatica-v3 .measurement-boundary,
.flowsmatica-v3 .issues-analysis-boundary,
.flowsmatica-v3 .empty-state-boundary {
  border: 1px solid #e5d7b7;
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #654915;
  background: #fff8e9;
}

.flowsmatica-v3 .measurement-boundary > .icon,
.flowsmatica-v3 .issues-analysis-boundary > .icon,
.flowsmatica-v3 .empty-state-boundary > .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.flowsmatica-v3 .measurement-boundary p,
.flowsmatica-v3 .measurement-boundary span,
.flowsmatica-v3 .issues-analysis-boundary span,
.flowsmatica-v3 .empty-state-boundary span {
  margin: 0;
  font-size: 13px !important;
}

.flowsmatica-v3 .measurement-boundary strong,
.flowsmatica-v3 .measurement-boundary span,
.flowsmatica-v3 .issues-analysis-boundary strong,
.flowsmatica-v3 .issues-analysis-boundary em,
.flowsmatica-v3 .empty-state-boundary strong,
.flowsmatica-v3 .empty-state-boundary em {
  display: block;
}

/* Empty, loading and switching states --------------------------------- */

.flowsmatica-v3 .workspace-empty-state {
  min-height: 440px;
  padding: 56px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.flowsmatica-v3 .empty-state-orbit {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 1px solid #d8c69d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dash-gold);
  background: var(--dash-gold-soft);
  box-shadow: 0 0 0 12px rgba(245, 234, 211, 0.46);
}

.flowsmatica-v3 .empty-state-orbit .icon {
  width: 28px;
  height: 28px;
}

.flowsmatica-v3 .workspace-empty-state h2 {
  margin: 18px 0 8px;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.flowsmatica-v3 .workspace-empty-state > p {
  max-width: 58ch;
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px !important;
}

.flowsmatica-v3 .empty-state-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.flowsmatica-v3 .empty-state-boundary {
  width: min(100%, 620px);
  margin-top: 32px;
  padding: 14px;
  text-align: left;
}

.flowsmatica-v3 .workspace-transition {
  position: fixed;
  z-index: 1600;
  inset: 0;
  padding: 24px;
  display: grid;
  place-content: center;
  grid-template-columns: 54px minmax(0, 300px);
  gap: 16px;
  color: #f4f9fd;
  background: rgba(5, 17, 12, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.flowsmatica-v3 .workspace-transition[hidden] {
  display: none;
}

.flowsmatica-v3 .workspace-transition-mark {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #46c8da;
  background: rgba(255, 255, 255, 0.09);
  animation: dashboard-pulse 1.4s ease-in-out infinite;
}

.flowsmatica-v3 .workspace-transition > div {
  display: grid;
  align-content: center;
  gap: 3px;
}

.flowsmatica-v3 .workspace-transition strong {
  font-size: 16px;
}

.flowsmatica-v3 .workspace-transition span {
  color: #b6cad8;
  font-size: 13px;
}

@keyframes dashboard-pulse {
  50% { transform: scale(0.94); opacity: 0.78; }
}

/* Briefing ------------------------------------------------------------- */

.flowsmatica-v3 .briefing-header {
  align-items: center;
}

.flowsmatica-v3 .briefing-header-note {
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  display: none;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--dash-forest-2);
  background: rgba(255, 255, 255, 0.82);
}

.flowsmatica-v3 .briefing-header-note > .icon {
  width: 20px;
  height: 20px;
}

.flowsmatica-v3 .briefing-header-note strong,
.flowsmatica-v3 .briefing-header-note em {
  display: block;
}

.flowsmatica-v3 .briefing-header-note strong {
  font-size: 13px;
}

.flowsmatica-v3 .briefing-header-note em {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .briefing-focus-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 25px;
  border: 1px solid #dccca9;
  border-radius: var(--dash-radius-lg);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(circle at 8% 20%, rgba(214, 174, 93, 0.17), transparent 29%),
    var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
}

.flowsmatica-v3 .briefing-focus-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #b77917;
  content: "";
}

.flowsmatica-v3 .briefing-focus-card.audit-error::before,
.flowsmatica-v3 .briefing-focus-card.has-issues::before {
  background: var(--dash-red);
}

.flowsmatica-v3 .briefing-focus-card.audit-clear::before {
  background: var(--dash-green);
}

.flowsmatica-v3 .briefing-focus-label {
  align-self: stretch;
  padding-right: 24px;
  border-right: 1px solid var(--dash-line);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.flowsmatica-v3 .briefing-focus-label > span {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

.flowsmatica-v3 .briefing-focus-label > span .icon {
  width: 24px;
  height: 24px;
}

.flowsmatica-v3 .briefing-focus-label strong {
  color: var(--dash-ink-soft);
  font-size: 13px;
}

.flowsmatica-v3 .briefing-focus-copy {
  min-width: 0;
}

.flowsmatica-v3 .briefing-focus-copy h2 {
  max-width: 760px;
  margin: 7px 0 8px;
  color: var(--dash-ink);
  font-size: clamp(24px, 2.7vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.flowsmatica-v3 .briefing-focus-copy p {
  max-width: 70ch;
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px !important;
}

.flowsmatica-v3 .briefing-focus-action {
  align-self: end;
}

.flowsmatica-v3 .briefing-signal-grid {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 .briefing-signal-grid > article {
  min-width: 0;
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.flowsmatica-v3 .briefing-signal-grid > article:last-child {
  border-right: 0;
}

.flowsmatica-v3 .signal-icon,
.flowsmatica-v3 .metric-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dce6ed;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--dash-forest-2);
  background: #f5f9fc;
}

.flowsmatica-v3 .signal-icon .icon,
.flowsmatica-v3 .metric-icon .icon {
  width: 19px;
  height: 19px;
}

.flowsmatica-v3 .briefing-signal-grid article > div {
  min-width: 0;
}

.flowsmatica-v3 .briefing-signal-grid article > div > span,
.flowsmatica-v3 .briefing-signal-grid article > div > strong,
.flowsmatica-v3 .briefing-signal-grid article > div > em {
  overflow-wrap: anywhere;
  display: block;
}

.flowsmatica-v3 .briefing-signal-grid article > div > span {
  color: var(--dash-muted);
  font-size: 12px;
}

.flowsmatica-v3 .briefing-signal-grid article > div > strong {
  margin-top: 3px;
  color: var(--dash-ink);
  font-size: 16px;
  line-height: 1.28;
}

.flowsmatica-v3 .briefing-signal-grid article > div > em {
  margin-top: 3px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .setup-progress-card,
.flowsmatica-v3 .priority-briefing-section,
.flowsmatica-v3 .hotel-performance-summary,
.flowsmatica-v3 .operations-section,
.flowsmatica-v3 .analysis-overview-section,
.flowsmatica-v3 .website-page-section,
.flowsmatica-v3 .planned-sources-section {
  margin-top: 34px;
}

.flowsmatica-v3 .setup-progress-card {
  padding: 22px;
}

.flowsmatica-v3 .setup-count,
.flowsmatica-v3 .coverage-count {
  padding: 7px 10px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  color: var(--dash-muted);
  background: var(--dash-surface-muted);
  font-weight: 720;
  white-space: nowrap;
}

.flowsmatica-v3 .setup-step-list {
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flowsmatica-v3 .setup-step-row {
  min-width: 0;
  min-height: 92px;
  padding: 15px;
  border-right: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: #fff;
}

.flowsmatica-v3 .setup-step-row:last-child {
  border-right: 0;
}

.flowsmatica-v3 .setup-step-row > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dash-muted);
  background: #eef3f7;
}

.flowsmatica-v3 .setup-step-row.complete > span {
  color: #fff;
  background: var(--dash-green);
}

.flowsmatica-v3 .setup-step-row.current > span {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

.flowsmatica-v3 .setup-step-row strong,
.flowsmatica-v3 .setup-step-row em {
  display: block;
}

.flowsmatica-v3 .setup-step-row strong {
  font-size: 13px;
}

.flowsmatica-v3 .setup-step-row em {
  margin-top: 3px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .dashboard-top-issue {
  overflow: hidden;
  border-color: #dfd3bd;
  border-radius: var(--dash-radius-lg);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
}

.flowsmatica-v3 .dashboard-top-issue-head {
  min-height: 56px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--dash-line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--dash-muted);
  background: #f8fbfd;
  font-size: 12px;
}

.flowsmatica-v3 .issue-source-label {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dash-muted);
  font-size: 12px;
}

.flowsmatica-v3 .dashboard-top-issue-body {
  padding: 26px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
}

.flowsmatica-v3 .top-issue-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--dash-red);
  background: var(--dash-red-soft);
}

.flowsmatica-v3 .top-issue-core {
  min-width: 0;
}

.flowsmatica-v3 .top-issue-core h2 {
  max-width: 900px;
  margin: 6px 0 8px;
  color: var(--dash-ink);
  font-size: clamp(23px, 2.6vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.flowsmatica-v3 .top-issue-core > p {
  max-width: 78ch;
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px !important;
}

.flowsmatica-v3 .top-issue-explainer-grid {
  margin-top: 20px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--dash-surface-muted);
}

.flowsmatica-v3 .top-issue-explainer-grid > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--dash-line);
}

.flowsmatica-v3 .top-issue-explainer-grid > div:nth-child(2) {
  border-right: 0;
}

.flowsmatica-v3 .top-issue-explainer-grid > .wide {
  grid-column: 1 / -1;
  border-top: 1px solid var(--dash-line);
  border-right: 0;
}

.flowsmatica-v3 .top-issue-explainer-grid strong,
.flowsmatica-v3 .top-issue-explainer-grid span {
  display: block;
}

.flowsmatica-v3 .top-issue-explainer-grid strong {
  color: var(--dash-ink);
  font-size: 13px;
}

.flowsmatica-v3 .top-issue-explainer-grid span {
  margin-top: 5px;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.55;
}

.flowsmatica-v3 .dashboard-top-issue > footer {
  min-height: 66px;
  padding: 11px 20px;
  border-top: 1px solid var(--dash-line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--dash-muted);
  background: #f8fbfd;
  font-size: 12px;
}

.flowsmatica-v3 .dashboard-top-issue > footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.flowsmatica-v3 .dashboard-top-issue > footer .button {
  margin-left: auto;
}

.flowsmatica-v3 .hotel-metric-grid {
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--dash-surface);
}

.flowsmatica-v3 .hotel-metric-grid > article {
  min-height: 116px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  box-shadow: none;
}

.flowsmatica-v3 .hotel-metric-grid > article:last-child {
  border-right: 0;
}

.flowsmatica-v3 .hotel-metric-grid article > div > span,
.flowsmatica-v3 .hotel-metric-grid article > div > strong,
.flowsmatica-v3 .hotel-metric-grid article > div > em {
  display: block;
}

.flowsmatica-v3 .hotel-metric-grid article > div > span,
.flowsmatica-v3 .hotel-metric-grid article > div > em {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .hotel-metric-grid article > div > strong {
  margin-block: 3px;
  color: var(--dash-ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.flowsmatica-v3 .operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flowsmatica-v3 .operations-grid > .panel {
  min-width: 0;
  overflow: hidden;
}

.flowsmatica-v3 .connection-health-row {
  min-height: 68px;
  padding: 10px 16px;
  border-top: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.flowsmatica-v3 .connection-health-row p {
  min-width: 0;
  margin: 0;
}

.flowsmatica-v3 .connection-health-row strong,
.flowsmatica-v3 .connection-health-row em {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowsmatica-v3 .connection-health-row strong {
  font-size: 13px;
}

.flowsmatica-v3 .connection-health-row em {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .hotel-context-card dl {
  margin: 0;
}

.flowsmatica-v3 .hotel-context-card dl > div,
.flowsmatica-v3 .source-detail-list > div {
  min-height: 50px;
  padding: 9px 16px;
  border-top: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
}

.flowsmatica-v3 .hotel-context-card dt,
.flowsmatica-v3 .source-detail-list dt {
  color: var(--dash-muted);
  font-size: 12px !important;
}

.flowsmatica-v3 .hotel-context-card dd,
.flowsmatica-v3 .source-detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--dash-ink-soft);
  font-size: 13px !important;
  font-weight: 680;
  overflow-wrap: anywhere;
  text-align: right;
}

.flowsmatica-v3 .monitoring-context-card {
  padding-bottom: 16px;
}

.flowsmatica-v3 .monitoring-context-icon {
  width: 42px;
  height: 42px;
  margin: 16px 16px 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--dash-gold);
  background: var(--dash-gold-soft);
}

.flowsmatica-v3 .monitoring-context-card > strong,
.flowsmatica-v3 .monitoring-context-card > p,
.flowsmatica-v3 .monitoring-context-card > .text-button {
  margin-inline: 16px;
}

.flowsmatica-v3 .monitoring-context-card > strong {
  display: block;
  font-size: 16px;
}

.flowsmatica-v3 .monitoring-context-card > p {
  margin-block: 7px 4px;
  color: var(--dash-muted);
  font-size: 13px !important;
}

/* Issues --------------------------------------------------------------- */

.flowsmatica-v3 .issues-summary-strip {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 .free-issues-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flowsmatica-v3 .issues-summary-strip > span {
  min-width: 0;
  min-height: 82px;
  padding: 15px 18px;
  border-right: 1px solid var(--dash-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flowsmatica-v3 .issues-summary-strip > span:last-child {
  border-right: 0;
}

.flowsmatica-v3 .issues-summary-strip strong,
.flowsmatica-v3 .issues-summary-strip em {
  overflow-wrap: anywhere;
  display: block;
}

.flowsmatica-v3 .issues-summary-strip strong {
  color: var(--dash-ink);
  font-size: 22px;
  line-height: 1.1;
}

.flowsmatica-v3 .issues-summary-strip em {
  margin-top: 5px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .issues-toolbar {
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flowsmatica-v3 .issues-toolbar > div strong,
.flowsmatica-v3 .issues-toolbar > div span {
  display: block;
}

.flowsmatica-v3 .issues-toolbar > div strong {
  font-size: 15px;
}

.flowsmatica-v3 .issues-toolbar > div span {
  margin-top: 2px;
  color: var(--dash-muted);
  font-size: 12px;
}

.flowsmatica-v3 .issue-search-field {
  width: min(100%, 320px);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--dash-line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: var(--dash-surface);
}

.flowsmatica-v3 .issue-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--dash-ink);
  background: transparent;
  font-size: 14px;
}

.flowsmatica-v3 .issue-disclosure-list {
  display: grid;
  gap: 12px;
}

.flowsmatica-v3 .issue-disclosure {
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 .issue-disclosure > summary {
  min-height: 78px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--dash-ink);
  cursor: pointer;
  list-style: none;
}

.flowsmatica-v3 .issue-disclosure > summary::-webkit-details-marker {
  display: none;
}

.flowsmatica-v3 .issue-disclosure[open] > summary {
  border-bottom: 1px solid var(--dash-line);
  background: #f8fbfd;
}

.flowsmatica-v3 .issue-disclosure-number {
  color: var(--dash-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.flowsmatica-v3 .issue-disclosure-copy {
  min-width: 0;
}

.flowsmatica-v3 .issue-disclosure-copy strong,
.flowsmatica-v3 .issue-disclosure-copy em {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowsmatica-v3 .issue-disclosure-copy strong {
  font-size: 14px;
}

.flowsmatica-v3 .issue-disclosure-copy em {
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .issue-disclosure-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dash-forest-2);
  font-size: 12px;
  font-weight: 740;
}

.flowsmatica-v3 .issue-disclosure-body {
  padding: 0;
  background: var(--dash-surface);
}

.flowsmatica-v3 .findings-workspace .finding-card,
.flowsmatica-v3 .issue-disclosure-body .finding-card {
  overflow: hidden;
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow-sm);
}

.flowsmatica-v3 .issue-disclosure-body .finding-card {
  border: 0;
  border-radius: 0 0 var(--dash-radius) var(--dash-radius);
  box-shadow: none;
}

.flowsmatica-v3 .finding-card .finding-header {
  min-height: 62px;
  padding: 13px 20px;
  border-color: var(--dash-line);
  background: #f8fbfd;
}

.flowsmatica-v3 .finding-card .finding-id {
  color: var(--dash-muted);
  font-size: 12px !important;
}

.flowsmatica-v3 .finding-card .finding-main,
.flowsmatica-v3 .finding-card .finding-section,
.flowsmatica-v3 .finding-card .recommendation {
  padding: 26px;
}

.flowsmatica-v3 .finding-card .finding-question,
.flowsmatica-v3 .finding-card .finding-category,
.flowsmatica-v3 .finding-card .finding-section-heading p,
.flowsmatica-v3 .finding-card .finding-method summary,
.flowsmatica-v3 .finding-card .finding-footer,
.flowsmatica-v3 .finding-card :where(dt, dd) {
  font-size: 12px !important;
}

.flowsmatica-v3 .finding-card .finding-copy p,
.flowsmatica-v3 .finding-card .finding-why p,
.flowsmatica-v3 .finding-card .impact-summary p,
.flowsmatica-v3 .finding-card .recommendation p {
  font-size: 14px !important;
  line-height: 1.65;
}

.flowsmatica-v3 .finding-card .finding-why h3,
.flowsmatica-v3 .finding-card .impact-summary h3,
.flowsmatica-v3 .finding-card .recommendation h3,
.flowsmatica-v3 .finding-card .finding-section-heading h3 {
  font-size: 14px;
}

.flowsmatica-v3 .finding-card .recommendation {
  color: #f8fcff;
  border-color: rgba(255, 255, 255, 0.11);
  background: #071f36;
}

.flowsmatica-v3 .finding-card .recommendation h3,
.flowsmatica-v3 .finding-card .recommendation .recommendation-action {
  color: #f8fcff !important;
}

.flowsmatica-v3 .finding-card .recommendation p:last-child {
  color: #bdd0de;
  font-size: 13px !important;
}

.flowsmatica-v3 .finding-technical-evidence > summary,
.flowsmatica-v3 .finding-method > summary,
.flowsmatica-v3 .campaign-intelligence-details summary {
  min-height: 48px;
  font-size: 13px !important;
}

.flowsmatica-v3 .finding-card .finding-footer {
  min-height: 56px;
  padding: 12px 20px;
  color: var(--dash-muted);
}

.flowsmatica-v3 .locked-audit-cta {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-color: #bfdaea;
  background: linear-gradient(135deg, #ffffff, #eaf5fb);
}

.flowsmatica-v3 .locked-audit-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--dash-gold);
  background: var(--dash-gold-soft);
}

.flowsmatica-v3 .locked-audit-cta > div > span,
.flowsmatica-v3 .locked-audit-cta h2,
.flowsmatica-v3 .locked-audit-cta p {
  display: block;
}

.flowsmatica-v3 .locked-audit-cta > div > span {
  color: var(--dash-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flowsmatica-v3 .locked-audit-cta h2 {
  margin: 4px 0 5px;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.flowsmatica-v3 .locked-audit-cta p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .issues-analysis-boundary {
  margin-top: 18px;
  padding: 14px;
}

/* Ads analysis --------------------------------------------------------- */

.flowsmatica-v3 .ads-analysis-page {
  max-width: 1180px;
}

.flowsmatica-v3 .ads-account-strip,
.flowsmatica-v3 .website-identity-strip {
  min-height: 86px;
  padding: 15px 18px;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  display: grid;
  grid-template-columns: 44px minmax(190px, 1fr) minmax(360px, 1.4fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 .ads-account-strip > div,
.flowsmatica-v3 .website-identity-strip > div {
  min-width: 0;
}

.flowsmatica-v3 .ads-account-strip > div > strong,
.flowsmatica-v3 .ads-account-strip > div > em,
.flowsmatica-v3 .website-identity-strip > div > strong,
.flowsmatica-v3 .website-identity-strip > div > em {
  overflow-wrap: anywhere;
  display: block;
}

.flowsmatica-v3 .ads-account-strip > div > strong,
.flowsmatica-v3 .website-identity-strip > div > strong {
  margin-top: 3px;
  font-size: 15px;
}

.flowsmatica-v3 .ads-account-strip > div > em,
.flowsmatica-v3 .website-identity-strip > div > em {
  margin-top: 2px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .ads-account-strip dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flowsmatica-v3 .ads-account-strip dl > div {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--dash-line);
}

.flowsmatica-v3 .ads-account-strip dt,
.flowsmatica-v3 .ads-account-strip dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px !important;
}

.flowsmatica-v3 .ads-account-strip dt {
  color: var(--dash-muted);
}

.flowsmatica-v3 .ads-account-strip dd {
  margin-top: 3px;
  color: var(--dash-ink);
  font-weight: 700;
}

.flowsmatica-v3 .analysis-fact-grid {
  margin-top: 0;
}

.flowsmatica-v3 .analysis-measurement-boundary {
  margin-top: 14px;
  padding: 13px 15px;
}

.flowsmatica-v3 .monitoring-comparison-panel,
.flowsmatica-v3 .campaign-intelligence-panel,
.flowsmatica-v3 .analysis-coverage-panel {
  overflow: hidden;
  margin-top: 18px;
}

.flowsmatica-v3 .monitoring-comparison-panel > p {
  margin: 0;
  padding: 17px 18px;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .monitoring-comparison-panel .metric-grid {
  margin: 0;
  border-top: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.flowsmatica-v3 .monitoring-comparison-panel .metric-grid > article {
  min-height: 92px;
  padding: 15px 18px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  box-shadow: none;
}

.flowsmatica-v3 .monitoring-comparison-panel .metric-grid > article:last-child {
  border-right: 0;
}

.flowsmatica-v3 .monitoring-comparison-panel .metric-grid span,
.flowsmatica-v3 .monitoring-comparison-panel .metric-grid em {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .monitoring-comparison-panel .metric-grid strong {
  display: block;
  margin-block: 4px;
  color: var(--dash-ink);
  font-size: 24px;
}

.flowsmatica-v3 .campaign-intelligence-panel > .panel-heading,
.flowsmatica-v3 .analysis-coverage-panel > .panel-heading {
  align-items: flex-start;
}

.flowsmatica-v3 .campaign-intelligence-panel > .panel-heading p,
.flowsmatica-v3 .analysis-coverage-panel > .panel-heading p {
  max-width: 76ch;
  margin: 5px 0 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .campaign-intelligence-badge {
  color: #5f3d94;
  background: #f2edff;
}

.flowsmatica-v3 .campaign-intelligence-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-intelligence-summary > div {
  min-height: 72px;
  padding: 13px 18px;
  border-right: 1px solid var(--dash-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flowsmatica-v3 .campaign-intelligence-summary > div:last-child {
  border-right: 0;
}

.flowsmatica-v3 .campaign-intelligence-summary span {
  color: var(--dash-muted);
  font-size: 12px !important;
}

.flowsmatica-v3 .campaign-intelligence-summary strong {
  margin-top: 3px;
  font-size: 20px;
}

.flowsmatica-v3 .campaign-data-boundary,
.flowsmatica-v3 .analysis-pack-complete,
.flowsmatica-v3 .analysis-pack-warning {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--dash-line);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #356448;
  background: #f1f8ef;
  font-size: 12px !important;
  line-height: 1.5;
}

.flowsmatica-v3 .campaign-data-boundary.warning,
.flowsmatica-v3 .analysis-pack-warning {
  color: #6c4b17;
  background: #fff8e8;
}

.flowsmatica-v3 .campaign-data-boundary > .icon,
.flowsmatica-v3 .analysis-pack-complete > .icon,
.flowsmatica-v3 .analysis-pack-warning > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.flowsmatica-v3 .analysis-pack-warning p,
.flowsmatica-v3 .analysis-pack-warning strong,
.flowsmatica-v3 .analysis-pack-warning span {
  margin: 0;
  display: block;
  font-size: 12px !important;
}

.flowsmatica-v3 .campaign-intelligence-list {
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #f3f7fb;
}

.flowsmatica-v3 .campaign-list-disclosure {
  border-top: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-list-disclosure > summary {
  min-height: 68px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  color: var(--dash-ink);
  cursor: pointer;
  list-style: none;
}

.flowsmatica-v3 .campaign-list-disclosure > summary::-webkit-details-marker {
  display: none;
}

.flowsmatica-v3 .campaign-list-disclosure > summary > span:first-child strong,
.flowsmatica-v3 .campaign-list-disclosure > summary > span:first-child em {
  display: block;
}

.flowsmatica-v3 .campaign-list-disclosure > summary > span:first-child strong {
  font-size: 14px;
}

.flowsmatica-v3 .campaign-list-disclosure > summary > span:first-child em {
  margin-top: 3px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .campaign-list-disclosure > summary > .icon {
  width: 19px;
  height: 19px;
  color: var(--dash-muted);
  transition: transform 180ms ease;
}

.flowsmatica-v3 .campaign-list-disclosure[open] > summary {
  border-bottom: 1px solid var(--dash-line);
  background: #f8fbfd;
}

.flowsmatica-v3 .campaign-list-disclosure[open] > summary > .icon {
  transform: rotate(180deg);
}

.flowsmatica-v3 .campaign-intelligence-card {
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 .campaign-intelligence-card-head {
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dash-line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.flowsmatica-v3 .campaign-intelligence-card-head > div:first-child {
  min-width: 0;
}

.flowsmatica-v3 .campaign-index {
  color: var(--dash-gold);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.flowsmatica-v3 .campaign-intelligence-card-head h3 {
  margin: 4px 0 2px;
  color: var(--dash-ink);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.flowsmatica-v3 .campaign-intelligence-card-head p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px !important;
}

.flowsmatica-v3 .campaign-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.flowsmatica-v3 .campaign-tags > span,
.flowsmatica-v3 .campaign-tags > strong {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  color: var(--dash-muted);
  background: #fafaf7;
  font-weight: 700;
}

.flowsmatica-v3 .campaign-tags > strong.inferred {
  color: #61469b;
  border-color: #ded4f5;
  background: #f3efff;
}

.flowsmatica-v3 .campaign-tags > strong.unresolved {
  color: var(--dash-amber);
  border-color: #edd8aa;
  background: var(--dash-amber-soft);
}

.flowsmatica-v3 .campaign-role-grid,
.flowsmatica-v3 .campaign-performance-grid {
  margin: 12px 14px 0;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f7fafc;
}

.flowsmatica-v3 .campaign-role-grid > div,
.flowsmatica-v3 .campaign-performance-grid > div {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border-right: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-role-grid > div:last-child,
.flowsmatica-v3 .campaign-performance-grid > div:last-child {
  border-right: 0;
}

.flowsmatica-v3 .campaign-role-grid span,
.flowsmatica-v3 .campaign-performance-grid span,
.flowsmatica-v3 .campaign-performance-grid em {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .campaign-role-grid strong,
.flowsmatica-v3 .campaign-performance-grid strong {
  overflow-wrap: anywhere;
  display: block;
  margin-top: 5px;
  color: var(--dash-ink);
  font-size: 13px !important;
  line-height: 1.4;
}

.flowsmatica-v3 .campaign-intelligence-evidence {
  padding: 14px 16px;
}

.flowsmatica-v3 .campaign-intelligence-evidence > span {
  color: var(--dash-ink-soft);
  font-size: 12px !important;
  font-weight: 750;
}

.flowsmatica-v3 .campaign-intelligence-evidence :where(p, ul) {
  margin: 6px 0 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .campaign-intelligence-evidence ul,
.flowsmatica-v3 .campaign-missing-inputs ul,
.flowsmatica-v3 .campaign-intelligence-limitations ul {
  padding-left: 19px;
}

.flowsmatica-v3 .campaign-missing-inputs {
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid #ead5a9;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: #684919;
  background: #fff8e8;
}

.flowsmatica-v3 .campaign-missing-inputs strong,
.flowsmatica-v3 .campaign-missing-inputs li {
  font-size: 12px !important;
}

.flowsmatica-v3 .campaign-intelligence-details {
  border-top: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-intelligence-details details + details {
  border-top: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-intelligence-details summary {
  padding: 0 16px;
  color: var(--dash-ink-soft);
  cursor: pointer;
}

.flowsmatica-v3 .campaign-intelligence-details summary span {
  color: var(--dash-muted);
  font-size: 12px !important;
}

.flowsmatica-v3 .campaign-intelligence-details .nested-evidence {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--dash-line);
  background: #f7fafc;
}

.flowsmatica-v3 .campaign-intelligence-limitations {
  padding: 14px 18px;
  border-top: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-intelligence-limitations strong,
.flowsmatica-v3 .campaign-intelligence-limitations li,
.flowsmatica-v3 .campaign-intelligence-method {
  font-size: 12px !important;
}

.flowsmatica-v3 .campaign-intelligence-method {
  margin: 0;
  border-top: 1px solid var(--dash-line);
  color: var(--dash-muted);
  background: #f4f8fb;
  overflow-wrap: anywhere;
}

.flowsmatica-v3 .campaign-intelligence-method > summary {
  min-height: 44px;
  padding: 10px 18px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dash-ink-soft);
  font-weight: 740;
  cursor: pointer;
}

.flowsmatica-v3 .campaign-intelligence-method > summary::-webkit-details-marker {
  display: none;
}

.flowsmatica-v3 .campaign-intelligence-method > summary .icon {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.flowsmatica-v3 .campaign-intelligence-method[open] > summary .icon {
  transform: rotate(180deg);
}

.flowsmatica-v3 .campaign-intelligence-method > div {
  padding: 0 18px 14px;
}

.flowsmatica-v3 .campaign-intelligence-method :where(p, span) {
  margin: 0;
  display: block;
  font-size: 12px !important;
  line-height: 1.55;
}

.flowsmatica-v3 .campaign-intelligence-method span {
  margin-top: 7px;
  color: var(--dash-muted);
}

.flowsmatica-v3 .analysis-surface-list {
  margin: 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.flowsmatica-v3 .analysis-surface-list li {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--dash-line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--dash-ink-soft);
  background: #f7fafc;
  font-size: 12px !important;
}

.flowsmatica-v3 .analysis-surface-list .icon {
  width: 17px;
  height: 17px;
  color: var(--dash-green);
}

.flowsmatica-v3 .analysis-next-actions {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #bfdaea;
  border-radius: var(--dash-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff, #eaf5fb);
}

.flowsmatica-v3 .analysis-next-actions h2 {
  margin: 5px 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.flowsmatica-v3 .analysis-next-actions p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

/* Website -------------------------------------------------------------- */

.flowsmatica-v3 .website-identity-strip {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.flowsmatica-v3 .website-identity-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--dash-green);
  background: var(--dash-green-soft);
}

.flowsmatica-v3 .website-signal-grid {
  margin-top: 14px;
}

.flowsmatica-v3 .website-boundary-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flowsmatica-v3 .website-boundary-grid > article {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  background: var(--dash-surface);
}

.flowsmatica-v3 .website-boundary-grid > article > .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  color: var(--dash-forest-2);
  background: #eaf3f9;
}

.flowsmatica-v3 .website-boundary-grid strong {
  font-size: 14px;
}

.flowsmatica-v3 .website-boundary-grid p {
  margin: 5px 0 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .website-page-section .landing-page-panel {
  overflow: hidden;
  padding: 0;
}

.flowsmatica-v3 .website-page-section .landing-table {
  overflow: hidden;
  border: 0;
  border-radius: inherit;
}

.flowsmatica-v3 .website-page-section .landing-table > div {
  min-height: 58px;
  grid-template-columns: minmax(240px, 1.5fr) 100px 90px minmax(220px, 1fr);
  border-color: var(--dash-line);
}

.flowsmatica-v3 .website-page-section .landing-table .landing-head {
  min-height: 44px;
  color: var(--dash-muted);
  background: #f1f6fa;
}

.flowsmatica-v3 .website-page-section .landing-table :where(span, strong, em) {
  font-size: 12px !important;
}

.flowsmatica-v3 .website-page-section .landing-table > div > span:first-child strong {
  color: var(--dash-ink);
  font-size: 13px !important;
}

.flowsmatica-v3 .website-page-section .landing-table em {
  color: var(--dash-muted);
  font-style: normal;
}

.flowsmatica-v3 .website-warning-panel {
  overflow: hidden;
  margin-top: 14px;
}

.flowsmatica-v3 .website-warning-panel ul {
  margin: 0;
  padding: 8px 18px 15px;
  list-style: none;
}

.flowsmatica-v3 .website-warning-panel li {
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .website-warning-panel li:last-child {
  border-bottom: 0;
}

.flowsmatica-v3 .website-clean-note {
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid #cfe2d8;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
}

.flowsmatica-v3 .website-clean-note strong,
.flowsmatica-v3 .website-clean-note em {
  display: block;
}

.flowsmatica-v3 .website-clean-note strong {
  font-size: 13px;
}

.flowsmatica-v3 .website-clean-note em {
  margin-top: 2px;
  color: #496d5e;
  font-size: 12px !important;
  font-style: normal;
}

/* Connections ---------------------------------------------------------- */

.flowsmatica-v3 .connections-workspace-page .connection-section {
  margin-top: 30px;
}

.flowsmatica-v3 .live-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.flowsmatica-v3 .source-card {
  min-height: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.flowsmatica-v3 .source-card .connection-top {
  margin-bottom: 16px;
}

.flowsmatica-v3 .source-card > h3 {
  overflow-wrap: anywhere;
  margin: 6px 0 7px;
  color: var(--dash-ink);
  font-size: 22px;
  letter-spacing: -0.035em;
}

.flowsmatica-v3 .source-card > p {
  min-height: 48px;
  margin: 0 0 15px;
  color: var(--dash-muted);
  font-size: 14px !important;
}

.flowsmatica-v3 .source-detail-list {
  margin: auto -22px 14px;
  border-bottom: 1px solid var(--dash-line);
}

.flowsmatica-v3 .analysis-only-mini {
  min-height: 38px;
  margin-top: auto;
  padding: 9px 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
  font-size: 12px !important;
  font-weight: 680;
}

.flowsmatica-v3 .analysis-only-mini.neutral {
  color: #526c80;
  background: #eef3f7;
}

.flowsmatica-v3 .analysis-only-mini .icon {
  width: 17px;
  height: 17px;
}

.flowsmatica-v3 .source-card-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flowsmatica-v3 .source-card > .button-full {
  margin-top: auto;
}

.flowsmatica-v3 .connection-safety-panel {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #bfdaea;
  border-radius: var(--dash-radius);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff, #eaf5fb);
}

.flowsmatica-v3 .connection-safety-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--dash-forest-2);
  background: rgba(255, 255, 255, 0.72);
}

.flowsmatica-v3 .connection-safety-panel h2 {
  margin: 4px 0 5px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.flowsmatica-v3 .connection-safety-panel p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .planned-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.flowsmatica-v3 .planned-source-grid > article {
  min-width: 0;
  min-height: 88px;
  padding: 15px;
  border: 1px dashed var(--dash-line-strong);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.flowsmatica-v3 .planned-source-grid > article > .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 9px;
  color: var(--dash-muted);
  background: #edf3f7;
}

.flowsmatica-v3 .planned-source-grid strong,
.flowsmatica-v3 .planned-source-grid em {
  overflow-wrap: anywhere;
  display: block;
}

.flowsmatica-v3 .planned-source-grid strong {
  font-size: 13px;
}

.flowsmatica-v3 .planned-source-grid em {
  margin-top: 2px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .planned-source-grid > article > span:last-child {
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 720;
}

/* Settings ------------------------------------------------------------- */

.flowsmatica-v3 .live-settings .settings-card-grid {
  gap: 14px;
}

.flowsmatica-v3 .live-settings .panel {
  overflow: hidden;
  min-height: 0;
}

.flowsmatica-v3 .live-settings .panel dl > div {
  min-height: 58px;
  padding-inline: 18px;
  border-color: var(--dash-line);
}

.flowsmatica-v3 .live-settings .panel dt,
.flowsmatica-v3 .live-settings .panel dd,
.flowsmatica-v3 .settings-account-note,
.flowsmatica-v3 .settings-legal-links {
  font-size: 13px !important;
}

.flowsmatica-v3 .settings-account-note {
  padding-inline: 18px;
  color: var(--dash-muted);
}

.flowsmatica-v3 .settings-real-actions {
  padding: 0 18px 18px;
}

.flowsmatica-v3 .settings-signout {
  min-height: 44px;
}

.flowsmatica-v3 .settings-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.flowsmatica-v3 .settings-legal-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--dash-forest-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Dashboard overlays and mobile dock ---------------------------------- */

.flowsmatica-v3 .mobile-app-dock {
  display: none;
}

.flowsmatica-v3.app-mode .toast-region {
  z-index: 1800;
}

.flowsmatica-v3.app-mode .toast {
  color: #f8fcff;
  background: rgba(7, 31, 54, 0.98);
}

.flowsmatica-v3.app-mode .toast strong {
  color: #f8fcff;
  font-size: 14px;
}

.flowsmatica-v3.app-mode .toast p span {
  color: #c4d6e3;
  font-size: 13px;
}

.flowsmatica-v3.app-mode .toast button {
  min-width: 44px;
  min-height: 44px;
}

.flowsmatica-v3.app-mode .modal {
  color: var(--dash-ink);
  background: var(--dash-surface);
}

.flowsmatica-v3.app-mode .modal :where(p, li, dt, dd) {
  font-size: 14px !important;
}

/* Intermediate width -------------------------------------------------- */

@media (max-width: 1180px) {
  .flowsmatica-v3 .briefing-focus-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .flowsmatica-v3 .briefing-focus-action {
    grid-column: 2;
    justify-self: start;
  }

  .flowsmatica-v3 .briefing-signal-grid,
  .flowsmatica-v3 .hotel-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .briefing-signal-grid > article:nth-child(2),
  .flowsmatica-v3 .hotel-metric-grid > article:nth-child(2) {
    border-right: 0;
  }

  .flowsmatica-v3 .briefing-signal-grid > article:nth-child(n + 3),
  .flowsmatica-v3 .hotel-metric-grid > article:nth-child(n + 3) {
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .monitoring-context-card {
    grid-column: 1 / -1;
  }

  .flowsmatica-v3 .ads-account-strip {
    grid-template-columns: 44px minmax(180px, 1fr) minmax(300px, 1.5fr);
  }

  .flowsmatica-v3 .ads-account-strip > .text-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .flowsmatica-v3 .planned-source-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet/drawer -------------------------------------------------------- */

@media (max-width: 920px) {
  .flowsmatica-v3 .app-sidebar {
    z-index: 920;
    width: min(318px, calc(100vw - 44px));
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 220ms;
  }

  .flowsmatica-v3.mobile-nav-open .app-sidebar {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
    box-shadow: 22px 0 64px rgba(0, 0, 0, 0.32);
  }

  .flowsmatica-v3 .app-shell::after {
    position: fixed;
    z-index: 880;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(4, 13, 9, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    content: "";
    transition: opacity 180ms ease, visibility 0s linear 180ms;
  }

  .flowsmatica-v3.mobile-nav-open .app-shell::after {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .flowsmatica-v3 .app-main {
    margin-left: 0;
  }

  .flowsmatica-v3 .app-content,
  .flowsmatica-v3 .app-workspace-page,
  .flowsmatica-v3 .compact-content {
    width: min(calc(100% - 40px), 760px);
  }

  .flowsmatica-v3 .setup-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .setup-step-row:nth-child(2) {
    border-right: 0;
  }

  .flowsmatica-v3 .setup-step-row:nth-child(n + 3) {
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .live-source-grid,
  .flowsmatica-v3 .live-settings .settings-card-grid {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .live-settings .panel {
    min-height: 0;
  }

  .flowsmatica-v3 .ads-account-strip {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .flowsmatica-v3 .ads-account-strip dl,
  .flowsmatica-v3 .ads-account-strip > .text-button {
    grid-column: 1 / -1;
  }

  .flowsmatica-v3 .ads-account-strip dl {
    padding-top: 12px;
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .campaign-role-grid,
  .flowsmatica-v3 .campaign-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .campaign-role-grid > div:nth-child(2),
  .flowsmatica-v3 .campaign-performance-grid > div:nth-child(2) {
    border-right: 0;
  }

  .flowsmatica-v3 .campaign-role-grid > div:nth-child(n + 3),
  .flowsmatica-v3 .campaign-performance-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .connection-safety-panel {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .flowsmatica-v3 .connection-safety-panel > .text-button {
    grid-column: 2;
    justify-self: start;
  }
}

/* Mobile --------------------------------------------------------------- */

@media (max-width: 720px) {
  .flowsmatica-v3 .app-topbar {
    min-height: 64px;
    padding: 0 14px;
    gap: 9px;
  }

  .flowsmatica-v3 .mobile-menu {
    flex: 0 0 44px;
  }

  .flowsmatica-v3 .app-breadcrumb {
    min-width: 0;
    flex: 1 1 auto;
  }

  .flowsmatica-v3 .app-breadcrumb > span:first-child,
  .flowsmatica-v3 .monitoring-status {
    display: none;
  }

  .flowsmatica-v3 .app-breadcrumb > .icon {
    display: none;
  }

  .flowsmatica-v3 .app-breadcrumb > .breadcrumb-separator {
    display: none;
  }

  .flowsmatica-v3 .app-breadcrumb strong {
    max-width: 100%;
    font-size: 12px;
  }

  .flowsmatica-v3 .topbar-actions {
    flex: 0 0 auto;
  }

  .flowsmatica-v3 .analysis-mode-chip {
    display: none;
  }

  .flowsmatica-v3 .topbar-audit-button {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    white-space: nowrap;
  }

  .flowsmatica-v3 .topbar-audit-button > span:last-child {
    display: none;
  }

  .flowsmatica-v3 .app-content,
  .flowsmatica-v3 .app-workspace-page,
  .flowsmatica-v3 .compact-content {
    width: calc(100% - 28px);
    padding-block: 28px calc(96px + env(safe-area-inset-bottom));
  }

  .flowsmatica-v3 .workspace-page-header {
    margin-bottom: 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .flowsmatica-v3 .workspace-page-header h1,
  .flowsmatica-v3 .app-page-heading h1 {
    margin-top: 6px;
    font-size: 33px;
    line-height: 1.05;
  }

  .flowsmatica-v3 .workspace-page-header p,
  .flowsmatica-v3 .app-page-heading p {
    font-size: 14px !important;
  }

  .flowsmatica-v3 .page-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .page-header-actions .button {
    width: 100%;
  }

  .flowsmatica-v3 .section-heading-row {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .flowsmatica-v3 .section-heading-row h2 {
    font-size: 23px;
  }

  .flowsmatica-v3 .briefing-header-note {
    width: 100%;
    display: grid;
  }

  .flowsmatica-v3 .briefing-focus-card {
    min-height: 0;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flowsmatica-v3 .briefing-focus-label {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--dash-line);
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .flowsmatica-v3 .briefing-focus-label > span {
    width: 42px;
    height: 42px;
  }

  .flowsmatica-v3 .briefing-focus-copy h2 {
    font-size: 26px;
  }

  .flowsmatica-v3 .briefing-focus-action {
    grid-column: 1;
  }

  .flowsmatica-v3 .briefing-focus-action .button {
    width: 100%;
  }

  .flowsmatica-v3 .briefing-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .briefing-signal-grid > article {
    min-height: 108px;
    padding: 14px 12px;
    border-right: 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .briefing-signal-grid > article:nth-child(odd) {
    border-right: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .briefing-signal-grid > article:nth-child(-n + 2) {
    border-top: 0;
  }

  .flowsmatica-v3 .briefing-signal-grid .signal-icon {
    width: 32px;
    height: 32px;
  }

  .flowsmatica-v3 .hotel-metric-grid {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .hotel-metric-grid > article {
    min-height: 82px;
    border-right: 0;
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .hotel-metric-grid > article:first-child {
    border-top: 0;
  }

  .flowsmatica-v3 .issue-disclosure-copy strong {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .flowsmatica-v3 .setup-progress-card {
    padding: 18px;
  }

  .flowsmatica-v3 .setup-step-list {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .setup-step-row {
    min-height: 72px;
    border-top: 1px solid var(--dash-line);
    border-right: 0;
  }

  .flowsmatica-v3 .setup-step-row:first-child {
    border-top: 0;
  }

  .flowsmatica-v3 .dashboard-top-issue-head {
    align-items: flex-start;
  }

  .flowsmatica-v3 .issue-source-label {
    width: 100%;
    margin-left: 0;
  }

  .flowsmatica-v3 .dashboard-top-issue-body {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .top-issue-icon {
    width: 46px;
    height: 46px;
  }

  .flowsmatica-v3 .top-issue-core h2 {
    font-size: 25px;
  }

  .flowsmatica-v3 .top-issue-explainer-grid {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .top-issue-explainer-grid > div {
    border-top: 1px solid var(--dash-line);
    border-right: 0;
  }

  .flowsmatica-v3 .top-issue-explainer-grid > div:first-child {
    border-top: 0;
  }

  .flowsmatica-v3 .dashboard-top-issue > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .flowsmatica-v3 .dashboard-top-issue > footer .button {
    width: 100%;
    margin-left: 0;
  }

  .flowsmatica-v3 .operations-grid,
  .flowsmatica-v3 .website-boundary-grid,
  .flowsmatica-v3 .live-source-grid,
  .flowsmatica-v3 .live-settings .settings-card-grid {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .monitoring-context-card {
    grid-column: auto;
  }

  .flowsmatica-v3 .issues-summary-strip,
  .flowsmatica-v3 .free-issues-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .issues-summary-strip > span {
    min-height: 72px;
    border-top: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .issues-summary-strip > span:nth-child(-n + 2) {
    border-top: 0;
  }

  .flowsmatica-v3 .issues-summary-strip > span:nth-child(2n) {
    border-right: 0;
  }

  .flowsmatica-v3 .issues-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .flowsmatica-v3 .issue-search-field {
    width: 100%;
  }

  .flowsmatica-v3 .issue-disclosure > summary {
    min-height: 0;
    padding: 15px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .flowsmatica-v3 .issue-disclosure > summary .severity {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .flowsmatica-v3 .issue-disclosure-copy {
    grid-column: 2 / -1;
  }

  .flowsmatica-v3 .issue-disclosure-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .flowsmatica-v3 .issue-disclosure-body {
    padding: 0;
  }

  .flowsmatica-v3 .finding-card .finding-main,
  .flowsmatica-v3 .finding-card .finding-section,
  .flowsmatica-v3 .finding-card .recommendation {
    padding: 22px 20px;
  }

  .flowsmatica-v3 .finding-card .finding-main {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .finding-card .impact-facts,
  .flowsmatica-v3 .finding-card .evidence-grid,
  .flowsmatica-v3 .finding-card .method-grid,
  .flowsmatica-v3 .finding-card .nested-evidence {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .finding-card .finding-footer {
    padding-inline: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .flowsmatica-v3 .locked-audit-cta,
  .flowsmatica-v3 .connection-safety-panel {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .flowsmatica-v3 .locked-audit-cta .button,
  .flowsmatica-v3 .connection-safety-panel > .text-button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .flowsmatica-v3 .ads-account-strip,
  .flowsmatica-v3 .website-identity-strip {
    padding: 15px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .flowsmatica-v3 .ads-account-strip dl,
  .flowsmatica-v3 .ads-account-strip > .text-button,
  .flowsmatica-v3 .website-identity-strip > .state-pill {
    grid-column: 1 / -1;
  }

  .flowsmatica-v3 .ads-account-strip dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flowsmatica-v3 .ads-account-strip dl > div {
    min-height: 46px;
    padding: 8px 0;
    border-top: 1px solid var(--dash-line);
    border-left: 0;
  }

  .flowsmatica-v3 .analysis-fact-grid {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .monitoring-comparison-panel .metric-grid,
  .flowsmatica-v3 .campaign-intelligence-summary {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .monitoring-comparison-panel .metric-grid > article,
  .flowsmatica-v3 .campaign-intelligence-summary > div {
    min-height: 70px;
    border-top: 1px solid var(--dash-line);
    border-right: 0;
  }

  .flowsmatica-v3 .monitoring-comparison-panel .metric-grid > article:first-child,
  .flowsmatica-v3 .campaign-intelligence-summary > div:first-child {
    border-top: 0;
  }

  .flowsmatica-v3 .campaign-intelligence-card-head {
    flex-direction: column;
  }

  .flowsmatica-v3 .campaign-tags {
    justify-content: flex-start;
  }

  .flowsmatica-v3 .campaign-role-grid,
  .flowsmatica-v3 .campaign-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .campaign-role-grid > div,
  .flowsmatica-v3 .campaign-performance-grid > div {
    min-height: 82px;
  }

  .flowsmatica-v3 .analysis-surface-list {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .analysis-next-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .flowsmatica-v3 .analysis-next-actions .button {
    width: 100%;
  }

  .flowsmatica-v3 .website-page-section .landing-table {
    overflow: visible;
    border: 0;
    display: grid;
    gap: 10px;
    background: transparent;
  }

  .flowsmatica-v3 .website-page-section .landing-head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .flowsmatica-v3 .website-page-section .landing-table > div:not(.landing-head) {
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--dash-line);
    border-radius: 11px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: var(--dash-surface);
  }

  .flowsmatica-v3 .website-page-section .landing-table > div:not(.landing-head) > :not(:first-child) {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }

  .flowsmatica-v3 .website-page-section .landing-table > div:not(.landing-head) > :not(:first-child)::before {
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .flowsmatica-v3 .website-page-section .landing-table > div:not(.landing-head) > span:nth-child(2)::before {
    content: "HTTP";
  }

  .flowsmatica-v3 .website-page-section .landing-table > div:not(.landing-head) > strong:nth-child(3)::before {
    content: "Calls to action";
  }

  .flowsmatica-v3 .website-page-section .landing-table > div:not(.landing-head) > span:nth-child(4)::before {
    content: "Observed signals";
  }

  .flowsmatica-v3 .source-card,
  .flowsmatica-v3 .connection-safety-panel {
    padding: 18px;
  }

  .flowsmatica-v3 .source-detail-list {
    margin-inline: -18px;
  }

  .flowsmatica-v3 .source-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .flowsmatica-v3 .source-card-actions .button,
  .flowsmatica-v3 .source-card-actions .text-button {
    width: 100%;
    justify-content: center;
  }

  .flowsmatica-v3 .live-settings .panel dl > div {
    padding-block: 11px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flowsmatica-v3 .live-settings .panel dd {
    text-align: left;
  }

  .flowsmatica-v3 .settings-real-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .flowsmatica-v3 .settings-real-actions .button,
  .flowsmatica-v3 .settings-real-actions .text-button {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .flowsmatica-v3 .mobile-app-dock {
    position: fixed;
    z-index: 760;
    inset: auto 0 0;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(18, 32, 27, 0.14);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(255, 254, 250, 0.96);
    box-shadow: 0 -12px 32px rgba(8, 42, 68, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .flowsmatica-v3 .mobile-app-dock :where(a, button) {
    position: relative;
    min-width: 0;
    min-height: 52px;
    padding: 5px 3px;
    border: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #687e8f;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .flowsmatica-v3 .mobile-app-dock :where(a, button) > .icon {
    width: 20px;
    height: 20px;
  }

  .flowsmatica-v3 .mobile-app-dock a.active,
  .flowsmatica-v3 .mobile-app-dock a[aria-current="page"],
  .flowsmatica-v3.mobile-nav-open .mobile-app-dock button {
    color: var(--dash-forest);
    background: var(--dash-gold-soft);
  }

  .flowsmatica-v3 .mobile-app-dock a > em {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    min-width: 18px;
    min-height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--dash-red);
    font-size: 12px !important;
    font-style: normal;
  }

  .flowsmatica-v3.app-mode .toast-region {
    top: auto;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
  }

  .flowsmatica-v3.app-mode .toast {
    width: 100%;
    max-width: none;
  }

  .flowsmatica-v3 .workspace-transition {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .flowsmatica-v3 .topbar-audit-button {
    max-width: 44px;
  }

  .flowsmatica-v3 .workspace-page-header h1,
  .flowsmatica-v3 .app-page-heading h1 {
    font-size: 30px;
  }

  .flowsmatica-v3 .campaign-role-grid,
  .flowsmatica-v3 .campaign-performance-grid {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .campaign-role-grid > div,
  .flowsmatica-v3 .campaign-performance-grid > div {
    min-height: 68px;
    border-top: 1px solid var(--dash-line);
    border-right: 0;
  }

  .flowsmatica-v3 .campaign-role-grid > div:first-child,
  .flowsmatica-v3 .campaign-performance-grid > div:first-child {
    border-top: 0;
  }
}

@media (hover: none) {
  .flowsmatica-v3 .app-shell :where(.panel, .connection-card, .metric-grid > article):hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flowsmatica-v3 .app-shell *,
  .flowsmatica-v3 .app-shell *::before,
  .flowsmatica-v3 .app-shell *::after,
  .flowsmatica-v3.app-mode .toast,
  .flowsmatica-v3.app-mode .modal {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Current live-renderer coverage ---------------------------------------
 * These selectors intentionally follow the generated class names in app.js.
 * Keeping them here avoids coupling the authenticated product to the public
 * acquisition-page rules in the older stylesheets.
 */

.flowsmatica-v3 .analysis-attempt-banner,
.flowsmatica-v3 .website-attempt-banner {
  min-height: 58px;
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid #d9c390;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #654511;
  background: var(--dash-amber-soft);
  box-shadow: var(--dash-shadow-xs);
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner) > .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner) span,
.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner) strong,
.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner) em {
  min-width: 0;
  display: block;
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner) strong {
  color: inherit;
  font-size: 14px;
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner) em {
  margin-top: 2px;
  color: #70592e;
  font-size: 13px !important;
  font-style: normal;
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner).is-running > .icon {
  animation: dashboard-spin 1.2s linear infinite;
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner).has-error {
  color: var(--dash-red);
  border-color: #efc7c0;
  background: var(--dash-red-soft);
}

.flowsmatica-v3 :where(.analysis-attempt-banner, .website-attempt-banner).has-error em {
  color: #7b4943;
}

@keyframes dashboard-spin {
  to { transform: rotate(360deg); }
}

.flowsmatica-v3 .analysis-boundary {
  color: var(--dash-muted);
}

.flowsmatica-v3 .analysis-boundary > .icon {
  color: var(--dash-green);
}

.flowsmatica-v3 .performance-unlock-card {
  margin-top: 18px;
}

.flowsmatica-v3 .issues-severity-summary > span:first-child strong {
  color: var(--dash-forest-2);
}

.flowsmatica-v3 .unlocked-issue-list,
.flowsmatica-v3 .complete-live-finding {
  min-width: 0;
}

.flowsmatica-v3 .evidence-record-overflow {
  min-width: 0;
  margin-top: 8px;
  border: 1px solid var(--dash-line);
  border-radius: 9px;
  background: var(--dash-surface-muted);
}

.flowsmatica-v3 .evidence-record-overflow > summary {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--dash-forest-2);
  font-size: 13px !important;
  font-weight: 750;
  cursor: pointer;
}

.flowsmatica-v3 .evidence-record-overflow > :not(summary) {
  margin: 0;
  padding: 0 12px 12px;
}

.flowsmatica-v3 .campaign-intelligence-row {
  position: relative;
  min-height: 88px;
  padding: 12px 14px;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.72fr) 24px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.flowsmatica-v3 .campaign-intelligence-row::-webkit-details-marker,
.flowsmatica-v3 .analysis-coverage-summary::-webkit-details-marker {
  display: none;
}

.flowsmatica-v3 .campaign-intelligence-row > .icon {
  width: 20px;
  height: 20px;
  color: var(--dash-muted);
  transition: transform 180ms ease;
}

.flowsmatica-v3 .campaign-intelligence-card[open] > .campaign-intelligence-row > .icon {
  transform: rotate(180deg);
}

.flowsmatica-v3 .campaign-intelligence-row .campaign-intelligence-card-head {
  min-height: 0;
  padding: 0;
  border: 0;
}

.flowsmatica-v3 .campaign-row-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.flowsmatica-v3 .campaign-row-metrics > span {
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid var(--dash-line);
}

.flowsmatica-v3 .campaign-row-metrics em,
.flowsmatica-v3 .campaign-row-metrics strong {
  overflow-wrap: anywhere;
  display: block;
}

.flowsmatica-v3 .campaign-row-metrics em {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .campaign-row-metrics strong {
  margin-top: 2px;
  color: var(--dash-ink);
  font-size: 13px;
}

.flowsmatica-v3 .campaign-intelligence-body {
  padding: 2px 0 0;
  border-top: 1px solid var(--dash-line);
  background: #fff;
}

.flowsmatica-v3 .analysis-coverage-summary {
  min-height: 88px;
  padding: 16px 18px;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.flowsmatica-v3 .analysis-coverage-summary h2,
.flowsmatica-v3 .analysis-coverage-summary p {
  margin: 0;
}

.flowsmatica-v3 .analysis-coverage-summary h2 {
  margin-top: 3px;
  color: var(--dash-ink);
  font-size: 20px;
}

.flowsmatica-v3 .analysis-coverage-summary p {
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .analysis-coverage-summary > .icon {
  width: 20px;
  height: 20px;
  color: var(--dash-muted);
  transition: transform 180ms ease;
}

.flowsmatica-v3 .analysis-coverage-panel[open] > .analysis-coverage-summary > .icon {
  transform: rotate(180deg);
}

.flowsmatica-v3 .analysis-coverage-body {
  border-top: 1px solid var(--dash-line);
  background: #fff;
}

.flowsmatica-v3 .analysis-coverage-body > p:first-child {
  margin: 0;
  padding: 14px 18px;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .analysis-execution-grid {
  margin: 0 18px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  background: var(--dash-surface-muted);
}

.flowsmatica-v3 .analysis-execution-grid > div {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--dash-line);
}

.flowsmatica-v3 .analysis-execution-grid > div:last-child {
  border-right: 0;
}

.flowsmatica-v3 .analysis-execution-grid span,
.flowsmatica-v3 .analysis-execution-grid strong {
  display: block;
}

.flowsmatica-v3 .analysis-execution-grid span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.flowsmatica-v3 .analysis-execution-grid strong {
  margin-top: 5px;
  color: var(--dash-ink);
  font-family: var(--mono);
  font-size: 24px;
}

.flowsmatica-v3 .analysis-full-pass {
  margin: 0 18px 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--dash-accent) 28%, var(--dash-line));
  border-radius: 10px;
  color: var(--dash-ink);
  background: color-mix(in srgb, var(--dash-accent) 8%, white);
  font-size: 13px;
  font-weight: 650;
}

.flowsmatica-v3 .analysis-full-pass .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.flowsmatica-v3 .audit-review-items {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  background: color-mix(in srgb, var(--dash-surface-muted) 84%, white);
}

.flowsmatica-v3 .audit-review-items > div:first-child {
  margin-bottom: 16px;
}

.flowsmatica-v3 .audit-review-items h2,
.flowsmatica-v3 .audit-review-items h3,
.flowsmatica-v3 .audit-review-items p {
  margin: 0;
}

.flowsmatica-v3 .audit-review-items h2,
.flowsmatica-v3 .audit-review-items h3 {
  margin-top: 4px;
  color: var(--dash-ink);
}

.flowsmatica-v3 .audit-review-items p {
  margin-top: 6px;
  max-width: 68ch;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.6;
}

.flowsmatica-v3 .analysis-review-ledger {
  margin: 0 18px 14px;
  padding: 18px;
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  background: var(--dash-surface-muted);
}

.flowsmatica-v3 .analysis-review-ledger > div {
  margin-bottom: 14px;
}

.flowsmatica-v3 .analysis-review-ledger h3,
.flowsmatica-v3 .analysis-review-ledger h4,
.flowsmatica-v3 .analysis-review-ledger p {
  margin: 0;
}

.flowsmatica-v3 .analysis-review-ledger h3 {
  margin-top: 4px;
  color: var(--dash-ink);
  font-size: 18px;
}

.flowsmatica-v3 .analysis-review-ledger > div > p,
.flowsmatica-v3 .analysis-review-ledger article p {
  margin-top: 5px;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.55;
}

.flowsmatica-v3 .analysis-review-ledger article {
  padding: 15px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: var(--dash-surface);
}

.flowsmatica-v3 .analysis-review-ledger article + article {
  margin-top: 10px;
}

.flowsmatica-v3 .analysis-review-ledger article > span {
  color: var(--dash-amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.flowsmatica-v3 .analysis-review-ledger article h4 {
  margin-top: 4px;
  color: var(--dash-ink);
  font-size: 15px;
}

.flowsmatica-v3 .analysis-review-ledger article strong {
  display: block;
  margin-top: 12px;
  color: var(--dash-ink-soft);
  font-size: 12px;
}

.flowsmatica-v3 .website-technical-details {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: var(--dash-surface);
}

.flowsmatica-v3 .website-technical-details > summary {
  min-height: 50px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dash-ink);
  font-size: 14px !important;
  font-weight: 750;
  cursor: pointer;
}

.flowsmatica-v3 .website-technical-details > summary span {
  color: var(--dash-muted);
  font-size: 12px !important;
  font-weight: 600;
}

.flowsmatica-v3 .website-technical-details > dl {
  margin: 0;
  border-top: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flowsmatica-v3 .website-technical-details > dl > div {
  min-width: 0;
  min-height: 58px;
  padding: 10px 15px;
  border-right: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
}

.flowsmatica-v3 .website-technical-details > dl > div:nth-child(2n) {
  border-right: 0;
}

.flowsmatica-v3 .website-technical-details dt,
.flowsmatica-v3 .website-technical-details dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 13px !important;
}

.flowsmatica-v3 .website-technical-details dt {
  color: var(--dash-muted);
}

.flowsmatica-v3 .website-technical-details dd {
  margin-top: 3px;
  color: var(--dash-ink);
  font-weight: 700;
}

.flowsmatica-v3 .settings-section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.flowsmatica-v3 .settings-section-card {
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.flowsmatica-v3 .settings-profile-card,
.flowsmatica-v3 .settings-graph-card,
.flowsmatica-v3 .settings-data-card {
  grid-column: 1 / -1;
}

.flowsmatica-v3 .settings-plan-card {
  grid-column: span 6;
}

.flowsmatica-v3 .settings-account-card {
  grid-column: span 6;
}

.flowsmatica-v3 .settings-section-intro {
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--dash-line);
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .settings-detail-list {
  margin: 0;
}

.flowsmatica-v3 .settings-detail-list > div {
  min-width: 0;
  min-height: 56px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: minmax(120px, 0.46fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.flowsmatica-v3 .settings-profile-card .settings-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flowsmatica-v3 .settings-profile-card .settings-detail-list > div:nth-child(odd) {
  border-right: 1px solid var(--dash-line);
}

.flowsmatica-v3 .settings-detail-list dt,
.flowsmatica-v3 .settings-detail-list dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 13px !important;
}

.flowsmatica-v3 .settings-detail-list dt {
  color: var(--dash-muted);
}

.flowsmatica-v3 .settings-detail-list dd {
  color: var(--dash-ink-soft);
  font-weight: 720;
  text-align: right;
}

.flowsmatica-v3 .business-competitor-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dash-line);
}

.flowsmatica-v3 .business-competitor-list > li {
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--dash-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flowsmatica-v3 .business-competitor-list > li > span:first-child {
  display: grid;
  gap: 3px;
}

.flowsmatica-v3 .business-competitor-list strong,
.flowsmatica-v3 .business-competitor-list em {
  font-size: 13px;
}

.flowsmatica-v3 .competitor-manual-form {
  padding: 16px 18px;
  border-top: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.flowsmatica-v3 .competitor-manual-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 760;
}

.flowsmatica-v3 .competitor-manual-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--dash-line-strong);
  border-radius: 8px;
  background: var(--dash-surface);
  color: var(--dash-ink);
  font: inherit;
}

.flowsmatica-v3 .competitor-manual-form .button {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .flowsmatica-v3 .competitor-manual-form {
    grid-template-columns: 1fr;
  }
}

.flowsmatica-v3 .business-competitor-list em {
  color: var(--dash-muted);
  font-style: normal;
}

.flowsmatica-v3 .settings-profile-card > .button,
.flowsmatica-v3 .settings-graph-card > .button,
.flowsmatica-v3 .settings-data-card > .button {
  width: calc(100% - 36px);
  margin: 16px 18px;
  justify-content: center;
}

.flowsmatica-v3 .settings-plan-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--dash-line);
}

.flowsmatica-v3 .settings-plan-summary > div {
  min-width: 0;
  min-height: 96px;
  padding: 15px 18px;
  border-right: 1px solid var(--dash-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.flowsmatica-v3 .settings-plan-summary > div:last-child {
  border-right: 0;
}

.flowsmatica-v3 .settings-plan-summary span,
.flowsmatica-v3 .settings-plan-summary strong,
.flowsmatica-v3 .settings-plan-summary em {
  overflow-wrap: anywhere;
  display: block;
}

.flowsmatica-v3 .settings-plan-summary span {
  color: var(--dash-muted);
  font-size: 12px !important;
}

.flowsmatica-v3 .settings-plan-summary strong {
  margin-top: 4px;
  color: var(--dash-ink);
  font-size: 16px;
}

.flowsmatica-v3 .settings-plan-summary em {
  margin-top: 2px;
  color: var(--dash-muted);
  font-size: 12px !important;
  font-style: normal;
}

.flowsmatica-v3 .settings-permission-note {
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px !important;
}

.flowsmatica-v3 .settings-trust-boundary {
  min-height: 58px;
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--dash-ink-soft);
  background: rgba(255, 254, 250, 0.62);
}

.flowsmatica-v3 .settings-trust-boundary > .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--dash-green);
}

.flowsmatica-v3 .settings-trust-boundary strong,
.flowsmatica-v3 .settings-trust-boundary em {
  display: block;
  font-size: 13px !important;
}

.flowsmatica-v3 .settings-trust-boundary em {
  margin-top: 2px;
  color: var(--dash-muted);
  font-style: normal;
}

.flowsmatica-v3 .app-shell :where(.state-pill, .source-state, .connection-status):is(.connected, .authorized, .complete, .live, .reviewed) {
  color: var(--dash-green);
  border-color: #cce7dc;
  background: var(--dash-green-soft);
}

.flowsmatica-v3 .app-shell :where(.state-pill, .source-state, .connection-status):is(.progress, .optional, .neutral) {
  color: var(--dash-muted);
  border-color: var(--dash-line);
  background: #f0f1ed;
}

@media (max-width: 920px) {
  .flowsmatica-v3 .settings-plan-card,
  .flowsmatica-v3 .settings-account-card {
    grid-column: 1 / -1;
  }

  .flowsmatica-v3 .campaign-intelligence-row {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .flowsmatica-v3 .campaign-list-disclosure > summary {
    min-height: 76px;
    padding: 13px 14px;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .flowsmatica-v3 .campaign-list-disclosure > summary .coverage-count {
    grid-column: 1;
    justify-self: start;
  }

  .flowsmatica-v3 .campaign-list-disclosure > summary > .icon {
    grid-column: 2;
    grid-row: 1;
  }

  .flowsmatica-v3 .campaign-intelligence-card:not([open]) .campaign-row-metrics {
    display: none;
  }

  .flowsmatica-v3 .campaign-intelligence-row .campaign-intelligence-card-head,
  .flowsmatica-v3 .campaign-row-metrics {
    grid-column: 1;
  }

  .flowsmatica-v3 .campaign-intelligence-row > .icon {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 4px;
  }

  .flowsmatica-v3 .campaign-row-metrics {
    padding-top: 10px;
    border-top: 1px solid var(--dash-line);
  }
}

@media (max-width: 720px) {
  .flowsmatica-v3 .analysis-attempt-banner,
  .flowsmatica-v3 .website-attempt-banner {
    margin-bottom: 12px;
  }

  .flowsmatica-v3 .campaign-intelligence-row {
    min-height: 0;
    padding: 14px;
    align-items: start;
    gap: 12px;
  }

  .flowsmatica-v3 .campaign-intelligence-row .campaign-intelligence-card-head {
    padding-right: 26px;
    flex-direction: column;
  }

  .flowsmatica-v3 .campaign-row-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .flowsmatica-v3 .campaign-row-metrics > span {
    padding-left: 7px;
  }

  .flowsmatica-v3 .analysis-coverage-summary {
    min-height: 0;
    padding: 15px;
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .flowsmatica-v3 .analysis-coverage-summary .coverage-count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .flowsmatica-v3 .analysis-coverage-summary > .icon {
    grid-column: 2;
    grid-row: 1;
  }

  .flowsmatica-v3 .website-technical-details > dl,
  .flowsmatica-v3 .settings-profile-card .settings-detail-list,
  .flowsmatica-v3 .settings-plan-summary {
    grid-template-columns: 1fr;
  }

  .flowsmatica-v3 .website-technical-details > dl > div,
  .flowsmatica-v3 .settings-profile-card .settings-detail-list > div:nth-child(odd),
  .flowsmatica-v3 .settings-plan-summary > div {
    border-right: 0;
  }

  .flowsmatica-v3 .settings-detail-list > div {
    min-height: 62px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 3px;
  }

  .flowsmatica-v3 .settings-detail-list dd {
    text-align: left;
  }

  .flowsmatica-v3 .settings-profile-card > .button,
  .flowsmatica-v3 .settings-data-card > .button {
    width: calc(100% - 28px);
    margin: 14px;
  }

  .flowsmatica-v3 .settings-plan-summary > div {
    min-height: 84px;
    border-bottom: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .settings-plan-summary > div:last-child {
    border-bottom: 0;
  }

  .flowsmatica-v3 .settings-trust-boundary {
    margin-bottom: 6px;
  }
}

@media (max-width: 420px) {
  .flowsmatica-v3 .campaign-row-metrics {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flowsmatica-v3 .campaign-row-metrics > span {
    min-height: 46px;
    padding: 7px 0;
    border-top: 1px solid var(--dash-line);
    border-left: 0;
  }

  .flowsmatica-v3 .campaign-row-metrics > span:first-child {
    border-top: 0;
  }
}

@media (max-width: 767px) {
  .flowsmatica-v3 .analysis-execution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flowsmatica-v3 .analysis-execution-grid > div:nth-child(2) {
    border-right: 0;
  }

  .flowsmatica-v3 .analysis-execution-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dash-line);
  }

  .flowsmatica-v3 .audit-review-items {
    padding: 16px;
  }
}

/* ---- merged from revenue-brief.css (load order preserved) ---- */
/*
 * flowsmatica revenue brief
 * Design read: premium B2B decision intelligence for hotel operators.
 * Dials: variance 6, motion 4, density 6. Native CSS, one blue accent.
 */


html {
  background: var(--paper);
}

body.flowsmatica-v3 {
  color: var(--ink);
  background:
    radial-gradient(circle at 86% -12%, rgba(3, 105, 161, 0.07), transparent 30rem),
    var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

body.flowsmatica-v3 h1,
body.flowsmatica-v3 h2,
body.flowsmatica-v3 h3,
body.flowsmatica-v3 .brand {
  font-family: var(--font-display);
}

body.flowsmatica-v3 ::selection {
  color: #f8fafc;
  background: #0369a1;
}

body.flowsmatica-v3 :focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 3px;
}

/* Route headings receive programmatic focus for screen-reader announcements. */
body.flowsmatica-v3 :is(.screen, .app-screen) h1:focus {
  outline: none;
}

body.flowsmatica-v3 .shell {
  width: min(1180px, calc(100% - 48px));
}

body.flowsmatica-v3 .shell-narrow {
  width: min(1040px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 72px;
  border-bottom: 1px solid rgba(203, 214, 226, 0.8);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 72px;
  gap: 32px;
}

.brand {
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  width: 29px;
  height: 29px;
  color: var(--lime);
  stroke-width: 2.1;
}

.brand-lockup {
  gap: 0;
}

.brand-lockup strong {
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
}

.landing-nav {
  gap: 24px;
  white-space: nowrap;
}

.landing-nav > a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease;
}

.landing-nav > a:hover {
  color: var(--ink);
}

.button,
.google-button {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-weight: 720;
  letter-spacing: -0.012em;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled),
.google-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled),
.google-button:active:not(:disabled) {
  transform: scale(0.98);
}

.button-accent {
  color: #f8fafc;
  border: 1px solid #0369a1;
  background: #0369a1;
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.18);
}

.button-accent:hover:not(:disabled) {
  border-color: #075985;
  background: #075985;
  box-shadow: 0 12px 24px rgba(3, 105, 161, 0.24);
}

.button-dark {
  color: #f8fafc;
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.button-dark:hover:not(:disabled) {
  border-color: #1e293b;
  background: #1e293b;
}

.button-secondary,
.button-light,
.button-ghost {
  color: var(--ink);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.button-secondary:hover:not(:disabled),
.button-light:hover:not(:disabled),
.button-ghost:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #ffffff;
}

.button-small {
  min-height: 40px;
  padding: 0 15px;
  font-size: 13px;
}

.text-button,
.back-link {
  color: #0369a1;
  font-weight: 700;
}

.text-button:hover,
.back-link:hover {
  color: #075985;
}

.prototype-ribbon {
  z-index: 120;
  border: 0;
  border-radius: 0 0 8px 0;
  color: #0f172a;
  background: #fef3c7;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-mono);
  font-size: 10px;
}

.status-dot {
  background: #9a5b13;
}

/* Landing */

.landing-screen {
  overflow: clip;
  background: transparent;
}

.landing-screen .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  min-height: calc(100dvh - 72px);
  padding: 62px 0 72px;
}

.landing-screen .hero::before {
  position: absolute;
  top: 8%;
  right: -16%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(3, 105, 161, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.landing-screen .eyebrow,
.landing-screen .kicker,
.workspace-eyebrow,
.section-index,
.tiny-label {
  color: #075985;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-screen .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 10px;
  border: 1px solid #c5dce8;
  border-radius: 999px;
  background: #edf7fb;
}

.agent-live-dot,
.agent-status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.hero-copy h1 {
  max-width: 670px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 780;
  letter-spacing: -0.058em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 590px;
  margin: 25px 0 0;
  color: #475569;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.url-form {
  max-width: 680px;
  margin: 32px 0 0;
}

.url-form > label {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.url-input-row {
  min-height: 60px;
  padding: 5px;
  border: 1px solid #bdcbd8;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.url-input-row:focus-within {
  border-color: #0369a1;
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.1), 0 16px 44px rgba(15, 23, 42, 0.1);
}

.url-input-row .input-prefix {
  margin-left: 13px;
  color: #64748b;
}

.url-input-row input {
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 16px;
}

.url-input-row input::placeholder {
  color: #7b899b;
}

.url-input-row .button {
  min-height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
}

.field-error {
  min-height: 0;
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.form-trust {
  margin: 11px 0 0;
  color: #64748b;
  font-size: 12px;
}

.sample-journey-link {
  margin-top: 12px;
}

.hero-finding {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #22334c;
  border-radius: 16px;
  color: #e7eef6;
  background:
    radial-gradient(circle at 100% 0%, rgba(3, 105, 161, 0.28), transparent 44%),
    #0f172a;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
}

.hero-finding::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.hero-finding > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.13);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-finding > header span {
  color: #9fb1c5;
}

.hero-finding > header strong {
  padding: 6px 9px;
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(154, 91, 19, 0.18);
}

.hero-finding-copy {
  padding: 30px 30px 26px;
}

.hero-finding-copy > span {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-finding-copy h2 {
  max-width: 450px;
  margin: 10px 0 12px;
  color: #f1f5f9;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-finding-copy p {
  max-width: 430px;
  margin: 0;
  color: #aebdcd;
  font-size: 14px;
  line-height: 1.6;
}

.hero-finding dl {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  margin: 0 30px;
  border: 1px solid rgba(226, 232, 240, 0.13);
  border-radius: 10px;
}

.hero-finding dl > div {
  padding: 16px;
}

.hero-finding dl > div + div {
  border-left: 1px solid rgba(226, 232, 240, 0.13);
}

.hero-finding dt {
  color: #8395a9;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.hero-finding dd {
  margin: 6px 0 0;
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
}

.hero-next-action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 20px 30px;
  border-top: 1px solid rgba(226, 232, 240, 0.13);
  background: rgba(255, 255, 255, 0.025);
}

.hero-next-action > span {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  color: #e0f2fe;
  background: #0369a1;
}

.hero-next-action p {
  margin: 0;
  color: #b6c4d3;
  font-size: 13px;
}

.hero-next-action strong {
  display: block;
  margin-bottom: 2px;
  color: #f1f5f9;
}

.agent-run-card > header span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.agent-run-card > header strong {
  border-color: rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  background: rgba(5, 150, 105, 0.13);
}

.agent-run-heading {
  padding: 26px 28px 20px;
}

.agent-run-heading > span,
.agent-run-output > div span,
.agent-pass-label {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-run-heading h2 {
  max-width: 430px;
  margin: 9px 0 8px;
  color: #f8fafc;
  font-size: clamp(24px, 2.1vw, 31px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.agent-run-heading p {
  max-width: 440px;
  margin: 0;
  color: #9fb1c5;
  font-size: 12px;
  line-height: 1.55;
}

.agent-run-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0 28px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.13);
  border-radius: 10px;
  list-style: none;
}

.agent-run-steps li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 13px;
}

.agent-run-steps li + li {
  border-top: 1px solid rgba(226, 232, 240, 0.1);
}

.agent-run-steps li > i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 7px;
  color: #7dd3fc;
  background: rgba(3, 105, 161, 0.17);
}

.agent-run-steps li > i svg {
  width: 13px;
}

.agent-run-steps li.is-ai > i {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.45);
  background: #0369a1;
}

.agent-run-steps p,
.agent-run-steps strong,
.agent-run-steps span {
  display: block;
}

.agent-run-steps p {
  min-width: 0;
  margin: 0;
}

.agent-run-steps strong {
  color: #e7eef6;
  font-size: 12px;
  font-weight: 680;
}

.agent-run-steps p span {
  overflow: hidden;
  color: #8496aa;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-run-steps em {
  color: #7f93a8;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.agent-run-steps .is-ai em {
  color: #7dd3fc;
}

.agent-run-output {
  margin: 16px 28px 0;
  padding: 17px 18px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 10px;
  background: rgba(3, 105, 161, 0.12);
}

.agent-run-output > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-run-output > div strong {
  color: #fed7aa;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.agent-run-output h3 {
  margin: 8px 0 9px;
  color: #f8fafc;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.agent-run-output p {
  display: flex;
  gap: 8px;
  margin: 0;
  color: #b8c7d6;
  font-size: 11px;
}

.agent-run-output p svg {
  flex: 0 0 auto;
  width: 14px;
  margin-top: 2px;
  color: #7dd3fc;
}

.agent-run-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.13);
  color: #93a6b9;
  font-size: 10px;
}

.agent-run-boundary svg {
  flex: 0 0 auto;
  width: 15px;
  color: #7dd3fc;
}

.agent-run-boundary strong {
  color: #e7eef6;
}

.hero > .identity-recovery {
  grid-column: 1 / -1;
  margin-top: -34px;
}

.landing-proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.landing-proof-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 102px;
}

.landing-proof-inner > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 11px;
  padding: 20px 26px;
}

.landing-proof-inner > div + div {
  border-left: 1px solid var(--line);
}

.landing-proof-inner svg {
  grid-row: 1 / 3;
  width: 19px;
  margin-top: 2px;
  color: #0369a1;
}

.landing-proof-inner strong {
  color: #1e293b;
  font-size: 13px;
}

.landing-proof-inner em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.process-section,
.security-section,
.faq-section {
  padding-top: 128px;
  padding-bottom: 128px;
}

.section-heading {
  max-width: 680px;
  margin: 0 0 52px;
  text-align: left;
}

.section-heading h2,
.monitoring-copy h2,
.security-copy h2,
.pricing-copy h2,
.faq-section h2,
.sample-copy h2 {
  margin: 10px 0 14px;
  color: #0f172a;
  font-size: clamp(35px, 4.2vw, 54px);
  font-weight: 740;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.section-heading p,
.monitoring-copy > p,
.security-copy > p,
.pricing-copy > p,
.sample-copy > p {
  max-width: 620px;
  margin: 0;
  color: #526276;
  font-size: 17px;
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 18px;
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 278px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: transform 220ms var(--ease), border-color 180ms ease, box-shadow 220ms var(--ease);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: #b5c7d7;
  box-shadow: var(--shadow-sm);
}

.process-context {
  grid-column: 1 / 6;
}

.process-evidence {
  grid-column: 6 / 13;
  grid-row: 1 / 3;
  min-height: 574px;
  color: #d9e4ee;
  border-color: #22334c;
  background: #0f172a;
}

.process-decision {
  grid-column: 1 / 6;
  color: #15314a;
  border-color: #c5dce8;
  background: #edf7fb;
}

.process-card .step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  place-items: center;
  border-radius: 10px;
  color: #0369a1;
  background: #e8f4fa;
}

.agent-pass-label {
  margin-top: 22px;
  color: #0369a1;
}

.process-evidence .agent-pass-label {
  color: #7dd3fc;
}

.process-evidence .step-icon {
  color: #e0f2fe;
  background: #0369a1;
}

.process-card h3 {
  margin: 34px 0 9px;
  color: inherit;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.process-card p {
  margin: 0;
  color: #607086;
  font-size: 14px;
  line-height: 1.65;
}

.process-evidence p {
  color: #a8b8ca;
}

.process-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 11px;
}

.process-proof strong {
  color: #167052;
}

.process-evidence dl {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.14);
}

.process-evidence dl div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.14);
}

.process-evidence dt {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.process-evidence dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 650;
}

.decision-label {
  color: #075985;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.decision-boundary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #075985;
  font-size: 12px;
  font-weight: 650;
}

.sample-section {
  padding: 112px 0;
  border-top: 1px solid #d5e2ea;
  border-bottom: 1px solid #d5e2ea;
  background: #eef5f8;
}

.sample-layout {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  align-items: center;
  gap: clamp(50px, 8vw, 108px);
}

.sample-copy .button {
  margin-top: 28px;
}

.sample-finding-live {
  overflow: hidden;
  border: 1px solid #c7d6e2;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.sample-finding-live > header {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.sample-finding-live .severity {
  color: #b42318;
  font-weight: 750;
}

.sample-finding-live h3 {
  margin: 0;
  padding: 28px 28px 24px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.sample-finding-evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  margin: 0 28px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sample-finding-evidence > span {
  min-width: 0;
  padding: 17px;
}

.sample-finding-evidence > span + span {
  border-left: 1px solid var(--line);
}

.sample-finding-evidence em,
.sample-finding-evidence strong {
  display: block;
}

.sample-finding-evidence em {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.sample-finding-evidence strong {
  margin-top: 5px;
  color: #1e293b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sample-finding-live > footer {
  display: flex;
  gap: 14px;
  padding: 21px 28px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.sample-finding-live > footer > span {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #0369a1;
}

.sample-finding-live > footer p {
  margin: 0;
  color: #526276;
  font-size: 13px;
}

.sample-finding-live > footer strong {
  display: block;
  margin-bottom: 2px;
  color: #0f172a;
}

.monitoring-story {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
  padding-top: 128px;
  padding-bottom: 128px;
}

.monitoring-media {
  overflow: hidden;
  aspect-ratio: 1.24;
  border-radius: var(--radius);
  background: #dce4ec;
  box-shadow: var(--shadow-sm);
}

.monitoring-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitoring-states {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.monitoring-states > span {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.monitoring-states strong {
  color: #0f172a;
  font-size: 13px;
}

.monitoring-states em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.security-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(50px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.security-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.security-facts article {
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.security-facts article:last-child {
  grid-column: 1 / -1;
  min-height: 160px;
}

.security-facts svg {
  width: 23px;
  color: #0369a1;
}

.security-facts h3 {
  margin: 32px 0 8px;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.security-facts p {
  margin: 0;
  color: #607086;
  font-size: 13px;
}

.pricing-callout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 78px;
  padding-bottom: 78px;
  border-top: 1px solid #bcd0de;
  border-bottom: 1px solid #bcd0de;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.pricing-note {
  display: block;
  margin-top: 20px;
  color: #64748b;
  font-size: 12px;
}

.pricing-offer {
  padding: 30px;
  border: 1px solid #bccbd8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.price {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #0f172a;
}

.price sup {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.price strong {
  font-family: var(--font-display);
  font-size: 58px;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.price > span {
  margin: 8px 0 0 9px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.pricing-offer ul {
  display: grid;
  gap: 10px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.pricing-offer li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 13px;
}

.pricing-offer li svg {
  color: #167052;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.58fr 1.42fr;
  gap: clamp(50px, 8vw, 110px);
}

.faq-list {
  border-top: 1px solid var(--line-dark);
}

.faq-list details {
  border-bottom: 1px solid var(--line-dark);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary svg {
  flex: 0 0 auto;
  transition: transform 200ms var(--ease);
}

.faq-list details[open] summary svg {
  transform: rotate(180deg);
}

.faq-list p {
  max-width: 630px;
  margin: -5px 40px 22px 0;
  color: #607086;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #526276;
  background: #f4f7fa;
}

.footer-inner {
  min-height: 124px;
}

.site-footer .brand {
  color: #0f172a;
}

.site-footer p {
  color: #64748b;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer nav a,
.footer-link {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  padding: 0;
  color: #526276;
  background: transparent;
  font-size: 12px;
}

.site-footer nav a:hover,
.footer-link:hover {
  color: #0369a1;
}

/* Journey and result surfaces */

.journey-screen,
.result-screen,
.checkout-screen,
.legal-screen {
  min-height: calc(100dvh - 72px);
  background: transparent;
}

.journey-card,
.confirm-form,
.analysis-card,
.finding-card,
.unlock-section,
.payment-form,
.order-card,
.legal-copy {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.journey-card {
  width: min(680px, calc(100% - 40px));
  margin-top: 54px;
  margin-bottom: 70px;
  padding: clamp(30px, 5vw, 52px);
}

.journey-card > .kicker,
.journey-heading > .kicker,
.analysis-heading > .kicker,
.checkout-heading > .kicker,
.result-intro > .kicker,
.success-card > .kicker {
  color: #075985;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-card h1,
.journey-heading h1,
.analysis-heading h1,
.checkout-heading h1,
.result-intro h1 {
  color: #0f172a;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.journey-card > p,
.journey-heading > p,
.analysis-heading > p,
.checkout-heading > p,
.result-intro > p {
  color: #607086;
}

.journey-progress {
  gap: 10px;
}

.journey-progress i {
  width: clamp(18px, 3vw, 48px);
  background: var(--line-dark);
}

.progress-step span {
  border-color: var(--line-dark);
  color: #64748b;
  background: #ffffff;
}

.progress-step em {
  color: #64748b;
  font-size: 10px;
}

.progress-step.active span,
.progress-step.complete span {
  border-color: #0369a1;
  color: #ffffff;
  background: #0369a1;
}

.progress-step.active em,
.progress-step.complete em {
  color: #0f172a;
}

.text-input,
.account-target-confirmation input {
  min-height: 48px;
  border-color: #bdcbd8;
  border-radius: var(--radius-sm);
  color: #0f172a;
  background: #ffffff;
}

.text-input:focus,
.account-target-confirmation input:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.1);
}

.form-section,
.analysis-mode,
.separate-permission-note,
.signin-separation,
.hosted-payment-note,
.renewal-box,
.account-snapshot,
.account-target-confirmation {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.connected-badge,
.confidence-pill,
.state-pill.active,
.state-pill.reviewed {
  color: #166047;
  border-color: #b8ddcd;
  background: #e7f5ef;
}

.google-button {
  color: #0f172a;
  border: 1px solid #bdcbd8;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.google-button:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
}

.analysis-layout,
.confirm-wrap {
  padding-top: 60px;
  padding-bottom: 80px;
}

.analysis-visual {
  color: #0369a1;
}

.radar-sweep {
  fill: rgba(3, 105, 161, 0.12);
}

.radar-point {
  fill: #0369a1;
}

.result-shell {
  padding-top: 60px;
  padding-bottom: 100px;
}

.result-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.result-celebration {
  display: none;
}

.finding-card,
.unlock-section {
  overflow: hidden;
}

.finding-header,
.finding-footer {
  border-color: var(--line);
  background: #f8fafc;
}

.finding-main,
.finding-section,
.recommendation {
  border-color: var(--line);
}

.finding-copy h2,
.unlock-heading h2 {
  color: #0f172a;
  letter-spacing: -0.038em;
}

.unlock-section {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 50px);
}

.unlock-heading {
  max-width: 760px;
}

.unlock-heading .eyebrow {
  color: #075985;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.unlock-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.unlock-value-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.unlock-value-grid > div > span {
  flex: 0 0 auto;
  color: #0369a1;
}

.unlock-value-grid p,
.unlock-value-grid strong,
.unlock-value-grid em {
  display: block;
  margin: 0;
}

.unlock-value-grid strong {
  color: #1e293b;
  font-size: 13px;
}

.unlock-value-grid em {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.locked-findings {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.single-plan {
  display: block;
  max-width: 720px;
  margin: 28px auto 0;
}

.monitor-plan-card {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid #b7cad8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.monitor-plan-card .plan-card-head {
  align-items: flex-start;
}

.monitor-plan-card .plan-card-head > div > span {
  color: #334155;
  font-size: 15px;
  font-weight: 750;
}

.monitor-plan-card .plan-card-head strong {
  color: #0f172a;
}

.monitor-plan-card .plan-fit {
  color: #075985;
  border-color: #c5dce8;
  background: #edf7fb;
}

.monitor-plan-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.monitor-plan-card li svg {
  color: #167052;
}

.plans-assurance {
  color: #526276;
  border-color: var(--line);
  background: #f8fafc;
}

.checkout-layout {
  padding-top: 58px;
  padding-bottom: 90px;
}

.checkout-plan.selected {
  border-color: #0369a1;
  background: #edf7fb;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.08);
}

.checkout-plan b,
.order-total strong,
.order-line strong,
.metric-grid strong,
.briefing-signal-grid strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.checkbox-row {
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.custom-check {
  border-color: #94a3b8;
  border-radius: 5px;
}

.checkbox-row input:checked + .custom-check {
  border-color: #0369a1;
  background: #0369a1;
}

.legal-layout {
  padding-top: 60px;
  padding-bottom: 90px;
}

.legal-nav {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.legal-nav a.active {
  color: #075985;
  background: #edf7fb;
}

/* Product workspace */

.app-shell {
  color: #0f172a;
  background: #f4f7fa;
}

.app-sidebar {
  border-right: 1px solid #203149;
  color: #dce6ef;
  background: #0f172a;
  box-shadow: none;
}

.app-sidebar .brand {
  color: #f1f5f9;
}

.app-sidebar .brand-lockup small {
  color: #91a3b6;
}

.sidebar-top,
.sidebar-footer,
.business-switcher {
  border-color: rgba(226, 232, 240, 0.13);
}

.sidebar-collapse,
.mobile-menu {
  color: #b7c4d3;
  border-color: rgba(226, 232, 240, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.business-switcher {
  border-radius: var(--radius-sm);
  color: #e7eef6;
  background: rgba(255, 255, 255, 0.04);
}

.business-switcher:hover {
  background: rgba(255, 255, 255, 0.07);
}

.business-avatar,
.user-chip > span {
  color: #e0f2fe;
  background: #075985;
}

.business-switcher em,
.user-chip em,
.sidebar-trust-card em {
  color: #91a3b6;
}

.nav-label {
  color: #708399;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.app-nav a {
  min-height: 42px;
  border-radius: 7px;
  color: #aebccc;
}

.app-nav a:hover {
  color: #eef4fa;
  background: rgba(255, 255, 255, 0.05);
}

.app-nav a.active {
  color: #f8fafc;
  background: #075985;
  box-shadow: none;
}

.sidebar-trust-card {
  border-color: rgba(125, 211, 252, 0.15);
  border-radius: var(--radius-sm);
  color: #dce9f2;
  background: rgba(3, 105, 161, 0.11);
}

.user-chip button {
  color: #c4d1de;
}

.app-main {
  background: #f4f7fa;
}

.app-topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.93);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.app-content {
  width: min(1240px, calc(100% - 52px));
  padding-top: 38px;
  padding-bottom: 70px;
}

.workspace-page-header {
  margin-bottom: 28px;
}

.workspace-page-header h1 {
  color: #0f172a;
  font-size: clamp(31px, 3.6vw, 46px);
  font-weight: 740;
  letter-spacing: -0.05em;
}

.workspace-page-header p {
  color: #64748b;
}

.briefing-header-note,
.measurement-boundary,
.analysis-attempt-banner {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.briefing-focus-card {
  overflow: hidden;
  border: 1px solid #b9cad7;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.briefing-focus-card.has-issues,
.briefing-focus-card.audit-error {
  border-left: 4px solid #b42318;
}

.briefing-focus-card.audit-clear {
  border-left: 4px solid #167052;
}

.briefing-focus-card.audit-running,
.briefing-focus-card.needs-setup {
  border-left: 4px solid #0369a1;
}

.briefing-focus-label,
.briefing-focus-action {
  background: #f8fafc;
}

.briefing-focus-copy h2 {
  color: #0f172a;
  letter-spacing: -0.035em;
}

.briefing-signal-grid,
.metric-grid {
  gap: 12px;
}

.briefing-signal-grid article,
.metric-grid article,
.panel,
.dashboard-top-issue,
.setup-progress-card,
.workspace-empty-state,
.issue-disclosure-list details,
.issue-detail-card {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.briefing-signal-grid article:hover,
.metric-grid article:hover,
.panel:hover {
  border-color: #bdcbd8;
}

.signal-icon,
.metric-icon,
.connection-logo,
.top-issue-icon {
  border-radius: 9px;
  color: #0369a1;
  background: #e8f4fa;
}

.section-heading-row {
  align-items: end;
}

.section-heading-row h2,
.panel-heading h2,
.dashboard-top-issue h2 {
  color: #0f172a;
  letter-spacing: -0.03em;
}

.dashboard-top-issue-head,
.dashboard-top-issue footer,
.panel-heading {
  border-color: var(--line);
  background: #f8fafc;
}

.top-issue-explainer-grid > div {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.state-pill,
.severity,
.confidence,
.plan-fit {
  border-radius: 999px;
}

.monitoring-status {
  color: #526276;
  border-color: var(--line);
  background: #ffffff;
}

.monitoring-status i {
  background: #0369a1;
}

.mobile-app-dock {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}

.mobile-app-dock a.active {
  color: #0369a1;
}

/* Agent run surfaces */

.flowsmatica-v3 .app-shell .agent-brief-panel {
  overflow: hidden;
  margin-top: 30px;
  color: #dbe7f1;
  border-color: #22334c;
  background:
    radial-gradient(circle at 8% 0%, rgba(3, 105, 161, 0.24), transparent 34rem),
    #0f172a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.flowsmatica-v3 .app-shell .agent-brief-panel:hover {
  border-color: #2b435f;
}

.agent-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.agent-brief-head .tiny-label,
.agent-brief-copy > span {
  color: #7dd3fc;
}

.agent-brief-head h2 {
  margin: 7px 0 7px;
  color: #f8fafc;
  font-size: clamp(23px, 2.5vw, 32px);
  letter-spacing: -0.04em;
}

.agent-brief-head p {
  max-width: 620px;
  margin: 0;
  color: #9fb1c5;
  font-size: 13px;
}

.agent-run-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #b9c8d7;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-run-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.agent-run-status.ready {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(5, 150, 105, 0.1);
}

.agent-run-status.ready i {
  background: #34d399;
}

.agent-brief-body {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 44px;
  padding: 30px;
}

.agent-brief-copy > span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-brief-copy > h3 {
  margin: 9px 0 11px;
  color: #f8fafc;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.agent-brief-copy > p {
  margin: 0;
  color: #a8b8ca;
  font-size: 13px;
  line-height: 1.62;
}

.agent-brief-copy > small {
  display: block;
  margin-top: 20px;
  color: #72859a;
  font-family: var(--font-mono);
  font-size: 9px;
}

.agent-trace-list {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.13);
  border-radius: 10px;
  list-style: none;
}

.agent-trace-list li {
  display: grid;
  grid-template-columns: 27px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 13px;
}

.agent-trace-list li + li {
  border-top: 1px solid rgba(226, 232, 240, 0.1);
}

.agent-trace-index {
  color: #60758a;
  font-family: var(--font-mono);
  font-size: 9px;
}

.agent-trace-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: #7dd3fc;
  background: rgba(3, 105, 161, 0.16);
}

.agent-trace-icon svg {
  width: 13px;
}

.agent-trace-list p,
.agent-trace-list strong,
.agent-trace-list em {
  display: block;
}

.agent-trace-list p {
  min-width: 0;
  margin: 0;
}

.agent-trace-list strong {
  color: #e7eef6;
  font-size: 11px;
}

.agent-trace-list em {
  color: #7f93a8;
  font-size: 9px;
  font-style: normal;
}

.agent-trace-list b {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-trace-list .human b {
  color: #a7f3d0;
}

.agent-review-queue {
  margin-top: 22px;
}

.agent-review-queue ol {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.agent-review-queue li {
  display: flex;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.agent-review-queue li > span {
  color: #7dd3fc;
}

.agent-review-queue li svg {
  width: 14px;
}

.agent-review-queue p,
.agent-review-queue strong,
.agent-review-queue em {
  display: block;
}

.agent-review-queue p {
  margin: 0;
}

.agent-review-queue strong {
  color: #e7eef6;
  font-size: 11px;
}

.agent-review-queue em {
  margin-top: 2px;
  color: #8397aa;
  font-size: 9px;
  font-style: normal;
}

.agent-limitations {
  margin-top: 17px;
  color: #90a4b8;
  font-size: 10px;
}

.agent-limitations summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b9c8d7;
  cursor: pointer;
}

.agent-limitations summary svg {
  width: 13px;
}

.agent-limitations ul {
  margin: 9px 0 0;
  padding-left: 18px;
}

.agent-brief-panel > footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 30px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: #91a5b8;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
}

.agent-brief-panel > footer svg {
  width: 15px;
  color: #7dd3fc;
}

.agent-brief-panel > footer strong {
  color: #dbe7f1;
}

/* Consent */

.measurement-consent {
  position: fixed;
  z-index: 180;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #bdcbd8;
  border-radius: var(--radius);
  color: #dce6ef;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.measurement-consent strong {
  display: block;
  color: #f1f5f9;
  font-size: 14px;
}

.measurement-consent p {
  max-width: 610px;
  margin: 5px 0 0;
  color: #aebdcd;
  font-size: 12px;
}

.measurement-actions {
  display: flex;
  gap: 8px;
}

.measurement-consent .button-secondary {
  color: #e2e8f0;
  border-color: #3e4e64;
  background: transparent;
}

.measurement-consent .button-secondary:hover {
  color: #f8fafc;
  border-color: #64748b;
  background: rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .app-topbar,
  .mobile-app-dock {
    background: #f8fafc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .landing-screen .hero-copy,
  .landing-screen .hero-finding {
    animation: brief-enter 620ms var(--ease) both;
  }

  .landing-screen .hero-finding {
    animation-delay: 100ms;
  }

  .hero-finding dl > div {
    animation: evidence-settle 520ms var(--ease) 360ms both;
  }

  .hero-finding dl > div + div {
    animation-delay: 450ms;
  }

  .agent-status-dot {
    animation: agent-breathe 2.4s ease-in-out infinite;
  }
}

@keyframes brief-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes evidence-settle {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes agent-breathe {
  0%, 100% { opacity: 0.72; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.02); }
}

@media (max-width: 1080px) {
  .landing-nav > a:nth-child(1),
  .landing-nav > a:nth-child(4) {
    display: none;
  }

  .landing-screen .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 5.8vw, 60px);
  }

  .security-section,
  .faq-section {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 54px;
  }
}

@media (max-width: 920px) {
  body.flowsmatica-v3 .shell,
  body.flowsmatica-v3 .shell-narrow {
    width: min(100% - 36px, 720px);
  }

  .site-header {
    height: 66px;
  }

  .header-inner {
    min-height: 66px;
  }

  .landing-nav > a {
    display: none;
  }

  .landing-screen .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding: 64px 0 76px;
  }

  .hero-copy,
  .hero-finding {
    width: 100%;
    max-width: 720px;
  }

  .landing-proof-inner {
    grid-template-columns: 1fr 1fr;
  }

  .landing-proof-inner > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .landing-proof-inner > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .process-section,
  .security-section,
  .faq-section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .process-grid,
  .sample-layout,
  .monitoring-story,
  .security-section,
  .pricing-callout,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .process-context,
  .process-evidence,
  .process-decision {
    grid-column: auto;
    grid-row: auto;
  }

  .process-evidence {
    min-height: 470px;
  }

  .sample-layout,
  .monitoring-story,
  .security-section,
  .pricing-callout,
  .faq-section {
    gap: 48px;
  }

  .sample-section {
    padding: 90px 0;
  }

  .monitoring-media {
    max-height: 540px;
  }

  .pricing-offer {
    max-width: 560px;
  }

  .app-content {
    width: min(100% - 36px, 860px);
  }

  .agent-brief-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  body.flowsmatica-v3 .shell,
  body.flowsmatica-v3 .shell-narrow {
    width: calc(100% - 32px);
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 12px;
  }

  .header-inner:has(.journey-progress:not([hidden])) {
    justify-content: center;
  }

  .header-inner:has(.journey-progress:not([hidden])) > .brand {
    display: none;
  }

  .journey-progress {
    flex: 0 1 284px;
  }

  .journey-progress > i {
    width: 17px;
    margin-inline: 4px;
  }

  .landing-nav {
    gap: 8px;
  }

  .landing-nav .button-ghost {
    display: none;
  }

  .landing-nav .nav-start-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .landing-screen .hero {
    gap: 38px;
    padding: 48px 0 58px;
  }

  .landing-screen .eyebrow {
    margin-bottom: 17px;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 12vw, 51px);
    line-height: 1.02;
  }

  .hero-lede {
    margin-top: 19px;
    font-size: 16px;
  }

  .url-form {
    margin-top: 26px;
  }

  .url-input-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0;
    padding: 5px;
  }

  .url-input-row .input-prefix {
    margin-left: 10px;
  }

  .url-input-row .button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 5px;
  }

  .hero-finding-copy {
    padding: 25px 22px 22px;
  }

  .hero-finding dl {
    grid-template-columns: 1fr;
    margin-inline: 22px;
  }

  .hero-finding dl > div + div {
    border-top: 1px solid rgba(226, 232, 240, 0.13);
    border-left: 0;
  }

  .hero-next-action {
    padding: 18px 22px;
  }

  .agent-run-heading {
    padding: 24px 22px 18px;
  }

  .agent-run-steps,
  .agent-run-output {
    margin-inline: 22px;
  }

  .agent-run-steps li {
    grid-template-columns: 26px 1fr;
  }

  .agent-run-steps em {
    display: none;
  }

  .agent-run-boundary {
    padding-inline: 22px;
  }

  .agent-brief-head {
    display: grid;
    padding: 24px 20px 20px;
  }

  .agent-brief-body {
    padding: 22px 20px;
  }

  .agent-brief-panel > footer {
    align-items: flex-start;
    padding-inline: 20px;
  }

  .agent-trace-list li {
    grid-template-columns: 23px 26px minmax(0, 1fr);
  }

  .agent-trace-list b {
    display: none;
  }

  .landing-proof-inner {
    grid-template-columns: 1fr;
  }

  .landing-proof-inner > div {
    min-height: 76px;
    padding: 14px 6px;
  }

  .landing-proof-inner > div + div,
  .landing-proof-inner > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-section,
  .security-section,
  .faq-section,
  .monitoring-story {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .monitoring-copy h2,
  .security-copy h2,
  .pricing-copy h2,
  .faq-section h2,
  .sample-copy h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .process-card {
    min-height: 250px;
    padding: 24px;
  }

  .process-evidence {
    min-height: 430px;
  }

  .sample-section {
    padding: 72px 0;
  }

  .sample-finding-evidence {
    grid-template-columns: 1fr;
  }

  .sample-finding-evidence > span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .monitoring-states > span {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .security-facts {
    grid-template-columns: 1fr;
  }

  .security-facts article:last-child {
    grid-column: auto;
  }

  .pricing-callout {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .footer-inner {
    align-items: flex-start;
    gap: 18px;
    padding: 28px 0;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .unlock-value-grid,
  .monitor-plan-card ul {
    grid-template-columns: 1fr;
  }

  .monitor-plan-card .plan-card-head {
    display: grid;
    gap: 14px;
  }

  .journey-card {
    width: calc(100% - 24px);
    margin-top: 26px;
    padding: 26px 20px;
  }

  .journey-card h1,
  .journey-heading h1,
  .analysis-heading h1,
  .checkout-heading h1,
  .result-intro h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .progress-step em {
    display: none;
  }

  .measurement-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 17px;
  }

  .measurement-actions {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
  }

  .measurement-actions .button {
    width: 100%;
  }

  .app-content {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .priority-body {
    min-width: 0;
  }

  .priority-body > div {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- merged from workspace.css (load order preserved) ---- */
.flowsmatica-v3 .hero .url-input-row .input-prefix { display: inline-flex; position: static; transform: none; flex: 0 0 auto; }

/* The diagnostic ledger keeps settings, evidence and uncertainty close together. */
.flowsmatica-v3 .depth-panel { margin: 24px 0; padding: 24px; min-width: 0; }
.flowsmatica-v3 :is(.depth-panel, .depth-inputs) p { color: #52687a; font-size: 13px; line-height: 1.65; margin: 12px 0; }
.flowsmatica-v3 .depth-inputs { grid-column: 1 / -1; min-width: 0; padding: 24px; }
.flowsmatica-v3 .depth-inputs hr { border: 0; border-top: 1px solid #dfe5eb; margin: 28px 0; }
.flowsmatica-v3 .depth-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.flowsmatica-v3 .depth-totals > span { padding: 16px; border: 1px solid #dfe5eb; border-radius: 8px; color: #52687a; font-size: 12px; }
.flowsmatica-v3 .depth-totals strong { display: block; color: #192737; font-size: 26px; margin-bottom: 6px; }
.flowsmatica-v3 .depth-record { padding: 12px 0; border-top: 1px solid #dfe5eb; }
.flowsmatica-v3 .depth-record .depth-record { margin: 10px 0 0 16px; }
.flowsmatica-v3 .depth-record summary { cursor: pointer; min-height: 44px; padding: 10px 4px; font-size: 13px; color: #192737; overflow-wrap: anywhere; }
.flowsmatica-v3 .depth-record summary::marker { color: #52687a; }
.flowsmatica-v3 .depth-status { display: inline-block; margin-left: 12px; padding: 4px 8px; background: #edf4f8; color: #42596e; font-size: 11px; border-radius: 4px; }
.flowsmatica-v3 :is(.depth-filters, .depth-form-grid) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.flowsmatica-v3 :is(.depth-filters, .depth-form-grid) label { display: grid; align-content: start; gap: 8px; color: #42596e; font-size: 12px; min-width: 0; }
.flowsmatica-v3 :is(.depth-filters, .depth-form-grid) :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bdcbd8; border-radius: 6px; padding: 10px; font: inherit; font-size: 14px; color: #192737; background: white; }
.flowsmatica-v3 .depth-form-grid textarea { resize: vertical; }
.flowsmatica-v3 .depth-table-scroll { max-width: 100%; overflow: auto; border: 1px solid #dfe5eb; border-radius: 6px; }
.flowsmatica-v3 .depth-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.flowsmatica-v3 .depth-table :is(th, td) { vertical-align: top; padding: 12px; border-bottom: 1px solid #dfe5eb; min-width: 120px; max-width: 400px; overflow-wrap: anywhere; }
.flowsmatica-v3 .depth-table th { background: #f6f8fa; color: #42596e; }
.flowsmatica-v3 .depth-table pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.flowsmatica-v3 .depth-json { max-height: 420px; overflow: auto; padding: 16px; background: #f6f8fa; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.flowsmatica-v3 :is(.depth-panel, .depth-inputs) :focus-visible { outline: 3px solid #12638c; outline-offset: 3px; }
@media (max-width: 760px) {
  .flowsmatica-v3 .depth-panel { padding: 16px; }
  .flowsmatica-v3 .depth-inputs { padding: 16px; }
  .flowsmatica-v3 .depth-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flowsmatica-v3 :is(.depth-filters, .depth-form-grid) { grid-template-columns: minmax(0, 1fr); }
  .flowsmatica-v3 .depth-panel .section-heading-row { align-items: start; flex-direction: column; }
  .flowsmatica-v3 .depth-status { margin-left: 6px; }
}
.flowsmatica-v3 .hero .eyebrow > .icon { width: 14px; height: 14px; background: none; }

/* Workspace entry contains no private account or report content. */
.workspace-entry { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 268px minmax(0, 1fr); background: #f6f8fa; color: #192737; overflow: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.workspace-entry[hidden] { display: none; }
.workspace-entry > aside { padding: 30px 24px; background: #142538; color: white; }
.workspace-entry > aside > strong { display: block; margin-bottom: 50px; font-size: 24px; letter-spacing: -.04em; }
.workspace-entry > aside > strong span { display: block; margin-top: 8px; color: #b2c2d2; font-size: 12px; letter-spacing: 0; font-weight: 400; }
.workspace-entry-main > header { height: 72px; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dfe5eb; background: white; }
.workspace-entry-main > header button { min-height: 44px; }
.workspace-entry-content { max-width: 1100px; padding: 56px 40px; }
.workspace-entry-content h1 { margin: 12px 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.workspace-entry-content p { display: flex; align-items: center; gap: 12px; color: #596b7e; line-height: 1.65; }
.entry-skeleton { height: 14px; margin: 22px 0; border-radius: 4px; background: #e3e9ee; }
.workspace-entry aside .entry-skeleton { background: #2c4053; height: 38px; }
.entry-placeholder { margin-top: 36px; padding: 30px; border: 1px solid #dfe5eb; border-radius: 12px; background: white; }
.entry-placeholder .entry-skeleton:nth-child(1) { width: 30%; }
.entry-placeholder .entry-skeleton:nth-child(2) { width: 80%; height: 28px; }
.entry-placeholder .entry-skeleton:nth-child(3) { width: 60%; }
.workspace-entry-content .entry-privacy-note { font-size: 12px; margin-top: 24px; }

/* Paid workspace: clear priorities, compact account context, useful review tools. */
.flowsmatica-v3 .app-shell {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dash-bg);
}

.flowsmatica-v3 .app-shell :is(h1, h2, h3, button, input, select, summary, strong) {
  font-family: inherit;
}

.flowsmatica-v3 .app-shell :is(h1, h2, h3) { font-weight: 650; }
.flowsmatica-v3 .app-shell strong { font-weight: 600; }
.flowsmatica-v3 .app-shell .app-main { background: var(--dash-bg); }
.flowsmatica-v3 .app-shell .app-sidebar { background: #142538; box-shadow: none; }
.flowsmatica-v3 .app-shell .app-nav a { font-weight: 500; }
.flowsmatica-v3 .app-shell .app-nav a.active { background: #263e54; box-shadow: inset 3px 0 #67c1e8; }
.flowsmatica-v3 .app-shell .business-switcher { border-radius: 8px; }
.flowsmatica-v3 .app-shell .business-switcher em { color: #b2c2d2; }
.flowsmatica-v3 .app-shell .app-topbar { background: #fff; box-shadow: none; }
.flowsmatica-v3 .app-shell .app-breadcrumb { min-width: 0; overflow: hidden; }
.flowsmatica-v3 .app-shell .mobile-menu { color: #42596e; border-color: #d8e2eb; background: #fff; }
.flowsmatica-v3 .app-shell .app-content { max-width: 1320px; padding-top: 32px; }
.flowsmatica-v3 .app-shell .workspace-page-header { align-items: center; gap: 20px; margin-bottom: 22px; }
.flowsmatica-v3 .app-shell .workspace-page-header h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.flowsmatica-v3 .app-shell .workspace-page-header p { margin-top: 10px; color: #596b7e; font-size: 14px !important; }
.flowsmatica-v3 .app-shell .workspace-eyebrow { color: #52687a; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .035em; margin-bottom: 10px; }
.flowsmatica-v3 .app-shell .button { min-height: 44px; border-radius: 7px; box-shadow: none; font-weight: 600; white-space: nowrap; }
.flowsmatica-v3 .app-shell .button-dark { color: #fff; background: #12638c; border-color: #12638c; }
.flowsmatica-v3 .app-shell .button-dark:hover { background: #0c4c6e; border-color: #0c4c6e; }
.flowsmatica-v3 .app-shell .button:hover { transform: none; }
.flowsmatica-v3 .app-shell .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; }
.flowsmatica-v3 .app-shell .text-button:hover { text-decoration: underline; }
.flowsmatica-v3 .app-shell button:disabled { opacity: .48; cursor: default; text-decoration: none; }
.flowsmatica-v3 .app-shell [hidden] { display: none !important; }

.flowsmatica-v3 .ai-team-strip { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin: 0 0 24px; border: 1px solid #cfdee9; border-radius: 10px; background: #edf4f8; }
.flowsmatica-v3 .ai-team-symbol { display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; background: #dcebf4; color: #12638c; }
.flowsmatica-v3 .ai-team-strip > div { flex: 1; }
.flowsmatica-v3 .ai-team-strip strong { font-size: 14px; }
.flowsmatica-v3 .ai-team-strip p { margin: 6px 0 0; font-size: 12px; color: #52687a; line-height: 1.6; }
.flowsmatica-v3 .ai-mode-label { padding: 6px 10px; border: 1px solid #cfdee9; border-radius: 20px; color: #52687a; font-size: 11px; white-space: nowrap; background: white; }
.flowsmatica-v3 .ai-mode-label.is-active { color: #146446; border-color: #b9dacd; }
.flowsmatica-v3 .ai-team-strip .text-button { font-size: 12px; min-height: 44px; white-space: nowrap; }
.flowsmatica-v3 .automation-card { background: #fff; border: 1px solid #cfdee9; border-radius: 12px; margin: 28px 0 32px; overflow: hidden; }
.flowsmatica-v3 .automation-heading { display: flex; align-items: flex-start; gap: 18px; padding: 28px; }
.flowsmatica-v3 .automation-heading > div { flex: 1; }
.flowsmatica-v3 .automation-heading h2 { font-size: 22px; letter-spacing: -.03em; margin: 4px 0 10px; }
.flowsmatica-v3 .automation-heading p { color: #596b7e; font-size: 14px; line-height: 1.65; margin: 0; max-width: 670px; }
.flowsmatica-v3 .automation-heading .text-button { min-height: 44px; font-size: 12px; white-space: nowrap; }
.flowsmatica-v3 .automation-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0 28px 24px; margin: 0; gap: 28px; }
.flowsmatica-v3 .automation-steps li { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid #e1e8ee; }
.flowsmatica-v3 .automation-steps li > span { color: #12638c; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.flowsmatica-v3 .automation-steps strong { font-size: 13px; }
.flowsmatica-v3 .automation-steps p { color: #596b7e; font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.flowsmatica-v3 .automation-card footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 28px; border-top: 1px solid #e1e8ee; background: #f8fafc; }
.flowsmatica-v3 .automation-card footer span { display: inline-flex; align-items: center; gap: 8px; color: #596b7e; font-size: 11px; }
.flowsmatica-v3 .agent-access-card, .flowsmatica-v3 .agent-report-loading { padding: 28px; border: 1px solid #dfe5eb; border-radius: 12px; background: white; }
.flowsmatica-v3 :is(.agent-access-card, .agent-report-loading) p { color: #596b7e; font-size: 14px; line-height: 1.7; max-width: 740px; margin: 12px 0 20px; }
.flowsmatica-v3 .report-loading-state { display: inline-flex; align-items: center; gap: 10px; color: #52687a; font-size: 12px; }
.flowsmatica-v3 .ai-team-page .specialist-section { margin-top: 24px; }
@media (max-width: 1100px) {
  .flowsmatica-v3 .ai-team-strip .ai-mode-label { display: none; }
}
@media (max-width: 760px) {
  .workspace-entry { grid-template-columns: minmax(0, 1fr); }
  .workspace-entry > aside { display: none; }
  .workspace-entry-content { padding: 36px 22px; }
  .flowsmatica-v3 .ai-team-strip { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .flowsmatica-v3 .ai-team-strip > div { flex-basis: calc(100% - 56px); }
  .flowsmatica-v3 .ai-team-strip .text-button { margin-left: 54px; }
  .flowsmatica-v3 .automation-heading { flex-wrap: wrap; padding: 20px; gap: 12px; }
  .flowsmatica-v3 .automation-heading > div { flex-basis: calc(100% - 56px); min-width: 0; }
  .flowsmatica-v3 .automation-heading h2 { font-size: 20px; }
  .flowsmatica-v3 .automation-heading > button { margin-left: 54px; }
  .flowsmatica-v3 .automation-steps { grid-template-columns: minmax(0, 1fr); padding: 0 20px 20px; gap: 16px; }
  .flowsmatica-v3 .automation-card footer { padding: 16px 20px; }
}

/* Briefing */
.flowsmatica-v3 .brief-account-line,
.flowsmatica-v3 .review-report-context {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  padding: 0 0 24px; font-size: 12px; color: #596b7e;
}
.flowsmatica-v3 :is(.brief-account-line, .review-report-context) > span { display: inline-flex; align-items: center; gap: 7px; }
.flowsmatica-v3 .brief-account-line > span:first-child { color: #293d50; font-weight: 600; }
.flowsmatica-v3 .paid-briefing .hotel-performance-summary { margin: 0 0 24px; padding: 0; }
.flowsmatica-v3 .paid-briefing .hotel-performance-summary > .section-heading-row { display: none; }
.flowsmatica-v3 .paid-briefing .hotel-performance-summary { display: flex; flex-direction: column; }
.flowsmatica-v3 .paid-briefing .hotel-performance-summary .measurement-boundary { order: 2; margin: 10px 0 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.flowsmatica-v3 .paid-briefing .measurement-boundary p { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; color: #596b7e; }
.flowsmatica-v3 .paid-briefing .measurement-boundary strong { font-size: 12px; font-weight: 400; color: #596b7e; }
.flowsmatica-v3 .paid-briefing .measurement-boundary p > span { display: none; }
.flowsmatica-v3 .paid-briefing .measurement-boundary > .icon { width: 14px; height: 14px; color: #596b7e; }
.flowsmatica-v3 .paid-briefing .hotel-metric-grid { gap: 0; border: 1px solid #dfe5eb; border-radius: 10px; background: white; overflow: hidden; }
.flowsmatica-v3 .paid-briefing .hotel-metric-grid > article { min-height: 132px; padding: 22px; border: 0; border-right: 1px solid #e5eaf0; border-radius: 0; box-shadow: none; grid-template-columns: minmax(0, 1fr); }
.flowsmatica-v3 .paid-briefing .hotel-metric-grid > article:last-child { border-right: 0; }
.flowsmatica-v3 .paid-briefing .metric-icon { display: none; }
.flowsmatica-v3 .paid-briefing .hotel-metric-grid article > div { gap: 8px; }
.flowsmatica-v3 .paid-briefing .hotel-metric-grid strong { color: #192737; font-family: inherit; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.flowsmatica-v3 .paid-briefing .hotel-metric-grid em { font-size: 11px !important; color: #596b7e; }
.flowsmatica-v3 .brief-decision-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr); gap: 20px; margin-bottom: 30px; }
.flowsmatica-v3 .brief-priority { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: white; border: 1px solid #d5e0e8; border-radius: 12px; border-top: 3px solid #12638c; }
.flowsmatica-v3 .brief-priority-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; margin-bottom: 20px; }
.flowsmatica-v3 .brief-section-label { color: #12638c; font-size: 12px; font-weight: 650; }
.flowsmatica-v3 .app-shell .brief-priority h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.3; letter-spacing: -.025em; margin: 0 0 12px; }
.flowsmatica-v3 .brief-priority > p { margin: 0 0 22px; color: #596b7e; }
.flowsmatica-v3 .brief-next-step { width: 100%; background: #f1f6f9; border-radius: 7px; padding: 16px 18px; margin: auto 0 22px; }
.flowsmatica-v3 .brief-next-step > span { font-size: 12px; font-weight: 650; color: #244b63; }
.flowsmatica-v3 .brief-next-step p { margin: 7px 0 0; color: #344e62; }
.flowsmatica-v3 .brief-priority footer { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.flowsmatica-v3 .brief-watch { border: 1px solid #dfe5eb; border-radius: 12px; background: white; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.flowsmatica-v3 .brief-section-heading { display: flex; align-items: center; gap: 10px; }
.flowsmatica-v3 .app-shell .brief-section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.flowsmatica-v3 .brief-icon { display: inline-flex; color: #12638c; font-size: 20px; }
.flowsmatica-v3 .brief-watch > p { margin: 14px 0; color: #596b7e; }
.flowsmatica-v3 .brief-change-list { width: 100%; margin: 6px 0 8px; }
.flowsmatica-v3 .brief-change-list > div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.flowsmatica-v3 .brief-change-list > div:last-child { border-bottom: 0; }
.flowsmatica-v3 .brief-change-list dt { color: #42596e; }
.flowsmatica-v3 .app-shell .brief-change-list dd { margin: 0; font-size: 25px !important; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.flowsmatica-v3 .app-shell p.brief-watch-note { font-size: 12px !important; }
.flowsmatica-v3 .brief-watch > .text-button { margin-top: auto; }
.flowsmatica-v3 .brief-watch-empty { padding: 24px 0; color: #596b7e; }
.flowsmatica-v3 .brief-watch-empty > .icon { width: 26px; height: 26px; margin-bottom: 18px; }
.flowsmatica-v3 .brief-watch-empty h3 { font-size: 17px; color: #293d50; }
.flowsmatica-v3 .brief-clear { justify-content: center; gap: 16px; min-height: 280px; }
.flowsmatica-v3 .brief-next-queue .section-heading-row { margin: 0 0 14px; }
.flowsmatica-v3 .app-shell .brief-next-queue h2 { font-size: 19px; letter-spacing: -.02em; }
.flowsmatica-v3 .brief-next-queue .section-heading-row p { margin: 6px 0 0; color: #596b7e; }
.flowsmatica-v3 .brief-queue-list { background: #fff; border: 1px solid #dfe5eb; border-radius: 10px; overflow: hidden; }
.flowsmatica-v3 .brief-queue-list > button { width: 100%; display: grid; grid-template-columns: 130px minmax(0, 1fr) 20px; align-items: center; gap: 18px; text-align: left; background: #fff; padding: 18px 22px; border-bottom: 1px solid #edf0f4; }
.flowsmatica-v3 .brief-queue-list > button:last-child { border-bottom: 0; }
.flowsmatica-v3 .brief-queue-list > button:hover { background: #f5f9fc; }
.flowsmatica-v3 .brief-queue-list .severity { justify-self: start; }
.flowsmatica-v3 .brief-queue-list strong { display: block; font-size: 14px; line-height: 1.45; }
.flowsmatica-v3 .brief-queue-list em { display: block; color: #596b7e; margin-top: 4px; font-style: normal; }
.flowsmatica-v3 .brief-queue-complete { padding: 24px; background: #fff; border: 1px solid #dfe5eb; border-radius: 8px; color: #596b7e; }
.flowsmatica-v3 .brief-bottom-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; color: #596b7e; font-size: 12px; }
.flowsmatica-v3 .brief-bottom-note > span { display: inline-flex; align-items: center; gap: 6px; }

/* Hotel decisions use only the current workspace's returned audit evidence. */
.flowsmatica-v3 .hotel-legacy-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; margin: 0 0 24px; border: 1px solid #d6e0e8; border-radius: 10px; background: #f0f5f8; }
.flowsmatica-v3 .hotel-legacy-notice p { max-width: 760px; margin: 6px 0 0; font-size: 13px; color: #52677a; }
.flowsmatica-v3 .hotel-legacy-notice .button { flex-shrink: 0; }
.flowsmatica-v3 .hotel-bucket-overview, .flowsmatica-v3 .hotel-demand-analysis, .flowsmatica-v3 .hotel-current-performance { margin-bottom: 30px; }
.flowsmatica-v3 .hotel-bucket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.flowsmatica-v3 .hotel-bucket-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 20px; min-width: 0; text-align: left; background: #fff; color: #192737; border: 1px solid #d6e0e8; border-radius: 10px; cursor: pointer; }
.flowsmatica-v3 .hotel-bucket-card:hover { border-color: #5790ad; background: #f7fbfe; }
.flowsmatica-v3 .hotel-bucket-card:focus-visible, .flowsmatica-v3 .hotel-table-scroll:focus-visible { outline: 3px solid #12638c; outline-offset: 3px; }
.flowsmatica-v3 .hotel-bucket-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; color: #52677a; font-size: 12px; }
.flowsmatica-v3 .hotel-bucket-card > strong { font-size: 17px; line-height: 1.4; letter-spacing: -.015em; overflow-wrap: anywhere; }
.flowsmatica-v3 .hotel-bucket-verdict { color: #52677a; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.flowsmatica-v3 .hotel-bucket-count { margin-top: auto; padding-top: 8px; color: #52677a; font-size: 11px; line-height: 1.5; }
.flowsmatica-v3 .hotel-bucket-status { display: inline-block; width: fit-content; padding: 3px 7px; border-radius: 4px; font-weight: 600; font-size: 11px; line-height: 1.5; background: #edf2f6; color: #465c6d; }
.flowsmatica-v3 .hotel-bucket-status.is-fix { background: #fff0ed; color: #923b2d; }
.flowsmatica-v3 .hotel-bucket-status.is-review { background: #fff7e8; color: #805b1f; }
.flowsmatica-v3 .hotel-bucket-status.is-checked_in_scope { background: #edf5f9; color: #315e77; }
.flowsmatica-v3 .hotel-current-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border: 1px solid #d6e0e8; border-radius: 10px; background: white; }
.flowsmatica-v3 .hotel-current-metrics > div { padding: 20px 16px; min-width: 0; }
.flowsmatica-v3 .hotel-current-metrics dt { font-size: 12px; color: #52677a; }
.flowsmatica-v3 .hotel-current-metrics small { display: block; color: #52677a; font-size: 11px; margin-top: 8px; }
.flowsmatica-v3 .hotel-current-metrics dd { margin: 9px 0 0; font-size: 23px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.flowsmatica-v3 .hotel-evidence-note { color: #52677a; font-size: 12px; line-height: 1.7; margin: 14px 0; }
.flowsmatica-v3 .hotel-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid #d6e0e8; border-radius: 8px; background: white; }
.flowsmatica-v3 .hotel-demand-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 12px; text-align: left; }
.flowsmatica-v3 .hotel-demand-table th, .flowsmatica-v3 .hotel-demand-table td { padding: 14px 13px; border-bottom: 1px solid #e4eaf0; vertical-align: top; }
.flowsmatica-v3 .hotel-demand-table th { font-weight: 650; color: #293d50; }
.flowsmatica-v3 .hotel-demand-table thead { background: #f3f7fa; }
.flowsmatica-v3 .hotel-demand-table tbody tr:last-child > * { border-bottom: 0; }
.flowsmatica-v3 .hotel-campaign-decisions { display: grid; gap: 10px; }
.flowsmatica-v3 .hotel-campaign-decision, .flowsmatica-v3 .hotel-scope-detail { background: #fff; border: 1px solid #d6e0e8; border-radius: 8px; margin-top: 10px; }
.flowsmatica-v3 .hotel-campaign-decision summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; list-style: none; padding: 16px 18px; cursor: pointer; min-height: 48px; }
.flowsmatica-v3 .hotel-campaign-decision summary strong, .flowsmatica-v3 .hotel-campaign-decision summary em { display: block; font-size: 14px; overflow-wrap: anywhere; }
.flowsmatica-v3 .hotel-campaign-decision summary em { color: #12638c; font-style: normal; font-size: 12px; margin-top: 5px; }
.flowsmatica-v3 .hotel-campaign-decision > div, .flowsmatica-v3 .hotel-scope-detail > div { border-top: 1px solid #e1e7ed; padding: 16px 18px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.flowsmatica-v3 .hotel-scope-detail summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-size: 12px; font-weight: 600; }
.flowsmatica-v3 .hotel-scope-detail pre { max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; color: #52677a; }
.flowsmatica-v3 .hotel-finding-bucket { padding: 24px 0; border-top: 1px solid #e2e8ee; }
.flowsmatica-v3 .hotel-finding-bucket:first-child { border-top: 0; }
.flowsmatica-v3 .hotel-finding-bucket h2 { margin: 10px 0; font-size: 19px; line-height: 1.4; letter-spacing: -.015em; }
.flowsmatica-v3 .hotel-finding-bucket header > p, .flowsmatica-v3 .hotel-bucket-empty { color: #52677a; font-size: 13px; line-height: 1.7; }
.flowsmatica-v3 .hotel-missing-block { padding: 14px 18px; margin: 16px 0; background: #f3f6f9; border-left: 3px solid #718ca0; font-size: 12px; color: #465c6d; overflow-wrap: anywhere; }
.flowsmatica-v3 .hotel-missing-block ul, .flowsmatica-v3 .hotel-missing-inputs { margin: 8px 0 0; padding-left: 20px; }
.flowsmatica-v3 .hotelier-plain-briefing { background: #ffffff; border: 1px solid #d0dce5; border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(18, 99, 140, 0.05); }
.flowsmatica-v3 .hotelier-briefing-header { margin-bottom: 20px; border-bottom: 1px solid #e5edf2; padding-bottom: 14px; }
.flowsmatica-v3 .hotelier-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0c5980; background: #e6f3fa; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; }
.flowsmatica-v3 .hotelier-briefing-header h3 { font-size: 20px; font-weight: 700; color: #12283a; margin: 4px 0 6px; }
.flowsmatica-v3 .hotelier-briefing-header p { color: #556c7e; font-size: 13px; margin: 0; }
.flowsmatica-v3 .hotelier-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .flowsmatica-v3 .hotelier-cards-grid { grid-template-columns: 1fr; } }
.flowsmatica-v3 .hotelier-brief-card { display: flex; gap: 14px; padding: 16px 18px; border-radius: 10px; background: #f8fafc; border: 1px solid #e1e9f0; }
.flowsmatica-v3 .hotelier-brief-card.is-alert { background: #fff8f8; border-color: #fbd5d5; }
.flowsmatica-v3 .hotelier-card-icon { font-size: 24px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.flowsmatica-v3 .hotelier-card-content { flex: 1; min-width: 0; }
.flowsmatica-v3 .hotelier-card-content h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #556c7e; margin: 0 0 4px; }
.flowsmatica-v3 .hotelier-brief-card.is-alert .hotelier-card-content h4 { color: #991b1b; }
.flowsmatica-v3 .hotelier-card-headline { font-size: 14px; font-weight: 700; color: #1a2e3f; margin: 0 0 6px; line-height: 1.4; }
.flowsmatica-v3 .hotelier-card-desc { font-size: 12.5px; color: #4a5e6f; line-height: 1.55; margin: 0 0 10px; }
.flowsmatica-v3 .hotelier-card-action { font-size: 12px; color: #0c5980; background: #edf6fb; padding: 8px 10px; border-radius: 6px; line-height: 1.45; border-left: 3px solid #12638c; }
.flowsmatica-v3 .hotelier-brief-card.is-alert .hotelier-card-action { color: #991b1b; background: #fee2e2; border-left-color: #dc2626; }
.flowsmatica-v3 .hotelier-campaign-callout { padding: 8px 12px; border-radius: 6px; font-size: 12.5px; line-height: 1.5; margin: 8px 0; background: #f1f7fb; color: #094d70; border-left: 3px solid #12638c; }
.flowsmatica-v3 .hotelier-campaign-callout.is-warning { background: #fffbeb; color: #92400e; border-left-color: #d97706; }
.flowsmatica-v3 .hotelier-kpi-ribbon { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (max-width: 1050px) { .flowsmatica-v3 .hotelier-kpi-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .flowsmatica-v3 .hotelier-kpi-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flowsmatica-v3 .hotelier-kpi-tile { background: #ffffff; border: 1px solid #d0dce5; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-green { background: #f0fdf4; border-color: #bbf7d0; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-blue { background: #f0f9ff; border-color: #bae6fd; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-purple { background: #faf5ff; border-color: #e9d5ff; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-danger { background: #fff5f5; border-color: #fed7d7; }
.flowsmatica-v3 .hotelier-kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 4px; }
.flowsmatica-v3 .hotelier-kpi-val { font-size: 18px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-green .hotelier-kpi-val { color: #15803d; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-blue .hotelier-kpi-val { color: #0284c7; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-purple .hotelier-kpi-val { color: #7e22ce; }
.flowsmatica-v3 .hotelier-kpi-tile.highlight-danger .hotelier-kpi-val { color: #c53030; }
.flowsmatica-v3 .hotelier-kpi-sub { font-size: 11px; color: #64748b; margin-top: 4px; }
.flowsmatica-v3 .hotelier-perf-badge { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 600; border-radius: 4px; white-space: nowrap; }
.flowsmatica-v3 .hotelier-perf-badge.is-success { background: #dcfce7; color: #166534; }
.flowsmatica-v3 .hotelier-perf-badge.is-warning { background: #fef3c7; color: #92400e; }
.flowsmatica-v3 .hotelier-perf-badge.is-danger { background: #fee2e2; color: #991b1b; }
.flowsmatica-v3 .hotelier-perf-badge.is-info { background: #e0f2fe; color: #0369a1; }
.flowsmatica-v3 .hotelier-perf-badge.is-bleeding { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; font-weight: 700; }
.flowsmatica-v3 .hotelier-perf-badge.is-profitable { background: #dcfce7; color: #166534; border: 1px solid #86efac; font-weight: 700; }
.flowsmatica-v3 .hotelier-perf-badge.is-expensive { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; font-weight: 700; }
.flowsmatica-v3 .hotelier-perf-badge.is-testing { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-weight: 600; }
.flowsmatica-v3 .hotelier-ag-category-badge { display: inline-block; padding: 2px 7px; font-size: 11px; font-weight: 600; border-radius: 4px; white-space: nowrap; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-brand_defense { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-competitor_conquest { background: #fae8ff; color: #86198f; border: 1px solid #f5d0fe; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-room_amenity { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-destination_generic { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-experience_event { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-audience_remarketing { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-partner_ota { background: #ffe4e6; color: #9f1239; border: 1px solid #fecdd3; }
.flowsmatica-v3 .hotelier-ag-category-badge.is-general_search { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.flowsmatica-v3 .hotelier-copy-btn { background: #991b1b; color: #ffffff; border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.flowsmatica-v3 .hotelier-copy-btn:hover { background: #7f1d1d; }
.flowsmatica-v3 .hotelier-copy-btn.btn-secondary { background: #475569; }
.flowsmatica-v3 .hotelier-copy-btn.btn-secondary:hover { background: #334155; }
.flowsmatica-v3 .hotelier-copy-btn.btn-competitor { background: #854d0e; color: #ffffff; }
.flowsmatica-v3 .hotelier-copy-btn.btn-competitor:hover { background: #713f12; }
.flowsmatica-v3 .hotelier-copy-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.flowsmatica-v3 .hotelier-intel-callout { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 16px; margin: 10px 0; }
.flowsmatica-v3 .hotelier-intel-callout h5 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #0f172a; }
.flowsmatica-v3 .hotelier-intel-callout p { margin: 0; font-size: 12px; color: #475569; line-height: 1.5; }
.flowsmatica-v3 .hotelier-campaign-metrics-strip { display: flex; flex-wrap: wrap; gap: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; margin: 10px 0; align-items: center; }

.flowsmatica-v3 .hcm-item { display: flex; flex-direction: column; }
.flowsmatica-v3 .hcm-item.is-verdict { margin-left: auto; }
.flowsmatica-v3 .hcm-label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #64748b; }
.flowsmatica-v3 .hcm-val { font-size: 13px; font-weight: 700; color: #1e293b; }
.flowsmatica-v3 .hcm-item.highlight-green .hcm-val { color: #15803d; }
.flowsmatica-v3 .hcm-item.highlight-blue .hcm-val { color: #0284c7; }
.flowsmatica-v3 .hotelier-ad-groups-block { margin: 14px 0 16px; border-top: 1px dashed #cbd5e1; padding-top: 10px; }
.flowsmatica-v3 .review-item .severity.evidence { background: #edf2f6; color: #465c6d; }
.flowsmatica-v3 .review-workspace .review-search-bar { grid-template-columns: minmax(180px, 1fr) auto auto; }
.flowsmatica-v3 .review-workspace .review-search { grid-column: 1 / -1; }
@media (max-width: 1050px) {
  .flowsmatica-v3 .hotel-current-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flowsmatica-v3 .hotel-legacy-notice { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .flowsmatica-v3 .hotel-bucket-grid { grid-template-columns: 1fr; }
  .flowsmatica-v3 .hotel-current-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flowsmatica-v3 .hotel-current-metrics dd { font-size: 20px; }
  .flowsmatica-v3 .hotel-bucket-card { padding: 17px; }
  .flowsmatica-v3 .review-workspace .review-search-bar { grid-template-columns: minmax(0, 1fr); }
  .flowsmatica-v3 .review-workspace .review-select { justify-content: space-between; min-width: 0; }
  .flowsmatica-v3 .review-workspace .review-select select { max-width: 66%; min-width: 0; }
}

/* Issue review */
.flowsmatica-v3 .review-queue { background: #fff; border: 1px solid #dfe5eb; border-radius: 12px; }
.flowsmatica-v3 .review-filter-bar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e5eaf0; padding: 12px 16px; }
.flowsmatica-v3 .review-filter-bar button { min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #52687a; border: 1px solid transparent; border-radius: 6px; font-size: 13px; }
.flowsmatica-v3 .review-filter-bar button > span { font-size: 11px; font-weight: 600; border-radius: 4px; background: #edf1f5; color: #52687a; padding: 1px 6px; }
.flowsmatica-v3 .review-filter-bar button[aria-pressed='true'] { color: #0c547d; background: #eaf4fa; border-color: #c9e1ef; font-weight: 600; }
.flowsmatica-v3 .review-filter-bar button[aria-pressed='true'] > span { background: #12638c; color: white; }
.flowsmatica-v3 .review-filter-bar button:hover { background: #f0f5f9; color: #0c547d; }
.flowsmatica-v3 .review-search-bar { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: 12px; padding: 18px 22px 6px; align-items: center; }
.flowsmatica-v3 .review-search { display: flex; align-items: center; gap: 10px; border: 1px solid #cdd8e2; border-radius: 7px; padding: 0 12px; color: #617589; }
.flowsmatica-v3 .review-search:focus-within { outline: 2px solid #12638c; outline-offset: 2px; }
.flowsmatica-v3 .review-search input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 0; background: transparent; border: 0; outline: 0 !important; box-shadow: none; font-size: 13px; }
.flowsmatica-v3 .review-search input::placeholder { color: #617589; }
.flowsmatica-v3 .review-select { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #596b7e; }
.flowsmatica-v3 .review-select select { max-width: 170px; min-height: 44px; border: 1px solid #cdd8e2; border-radius: 6px; background-color: white; padding: 8px 28px 8px 10px; color: #293d50; font-size: 13px; }
.flowsmatica-v3 .review-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 22px 12px; font-size: 12px; color: #596b7e; }
.flowsmatica-v3 .review-results-bar > div { display: flex; gap: 16px; }
.flowsmatica-v3 .review-results-bar .text-button { font-size: 12px; }
.flowsmatica-v3 .review-list { display: block; padding: 0 22px 20px; }
.flowsmatica-v3 .review-list .review-item { margin: 0 0 10px; border: 1px solid #dfe5eb; border-radius: 8px; overflow: hidden; box-shadow: none; }
.flowsmatica-v3 .review-list .review-item:last-child { margin-bottom: 0; }
.flowsmatica-v3 .review-item > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; align-items: center; gap: 16px; padding: 22px 20px; background: #fff; list-style: none; }
.flowsmatica-v3 .review-item > summary::-webkit-details-marker { display: none; }
.flowsmatica-v3 .review-item > summary:hover { background: #f8fafc; }
.flowsmatica-v3 .review-item[open] { border-color: #a9c8da; }
.flowsmatica-v3 .review-item[open] > summary { border-bottom: 1px solid #dfe5eb; background: #f5f9fc; }
.flowsmatica-v3 .review-rank { align-self: start; padding-top: 3px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #617589; }
.flowsmatica-v3 .review-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 9px; color: #617589; font-size: 12px; }
.flowsmatica-v3 .app-shell .review-item .issue-disclosure-copy > strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }
.flowsmatica-v3 .app-shell .review-item .issue-disclosure-copy > strong,
.flowsmatica-v3 .app-shell .review-item .issue-disclosure-copy > em { white-space: normal; overflow-wrap: anywhere; }
.flowsmatica-v3 .app-shell .review-item .issue-disclosure-copy > em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; color: #596b7e; font-style: normal; }
.flowsmatica-v3 .review-chevron { color: #617589; transition: transform 160ms ease; }
.flowsmatica-v3 .review-item[open] > summary .review-chevron { transform: rotate(180deg); }
.flowsmatica-v3 .review-item .issue-disclosure-body { padding: 0; }
.flowsmatica-v3 .review-item .complete-live-finding { border: 0; border-radius: 0; box-shadow: none; }
.flowsmatica-v3 .review-item .finding-header { display: none; }
.flowsmatica-v3 .review-item .finding-main { padding-top: 24px; }
.flowsmatica-v3 .review-item .finding-main h2 { font-size: 22px; }
.flowsmatica-v3 .review-item-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid #e5eaf0; background: #f8fafc; }
.flowsmatica-v3 .review-item-actions > span { max-width: 320px; color: #596b7e; font-size: 12px; }
.flowsmatica-v3 .review-no-results { padding: 40px 20px 48px; text-align: center; color: #596b7e; }
.flowsmatica-v3 .review-no-results > .icon { margin: 0 auto 18px; width: 28px; height: 28px; }
.flowsmatica-v3 .review-no-results h2 { font-size: 20px; color: #293d50; }
.flowsmatica-v3 .review-no-results .button { margin-top: 18px; }
.flowsmatica-v3 .review-footnote { max-width: 800px; padding: 8px 0; color: #596b7e; }
.flowsmatica-v3 .app-shell .severity { border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }

@media (max-width: 1200px) {
  .flowsmatica-v3 .review-search-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flowsmatica-v3 .review-search { grid-column: 1 / -1; }
  .flowsmatica-v3 .review-select select { max-width: none; flex: 1; min-width: 0; }
  .flowsmatica-v3 .brief-decision-grid { grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); gap: 14px; }
  .flowsmatica-v3 .brief-priority, .flowsmatica-v3 .brief-watch { padding: 20px; }
}

@media (max-width: 1100px) {
  .flowsmatica-v3 .app-shell .monitoring-status { display: none; }
}

@media (max-width: 760px) {
  .flowsmatica-v3 .app-shell .app-content { width: calc(100% - 32px); padding-top: 24px; }
  .flowsmatica-v3 .app-shell .workspace-page-header { align-items: flex-start; }
  .flowsmatica-v3 .app-shell .workspace-page-header > .button { align-self: flex-start; }
  .flowsmatica-v3 .brief-decision-grid { grid-template-columns: 1fr; }
  .flowsmatica-v3 .paid-briefing .hotel-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flowsmatica-v3 .paid-briefing .hotel-metric-grid > article { padding: 18px 14px; min-height: 124px; border-bottom: 1px solid #e5eaf0; }
  .flowsmatica-v3 .paid-briefing .hotel-metric-grid > article:nth-child(even) { border-right: 0; }
  .flowsmatica-v3 .paid-briefing .hotel-metric-grid > article:nth-child(n+3) { border-bottom: 0; }
  .flowsmatica-v3 .brief-account-line { gap: 10px; padding-bottom: 20px; }
  .flowsmatica-v3 .brief-account-line > span:first-child { flex-basis: 100%; }
  .flowsmatica-v3 .brief-queue-list > button { grid-template-columns: minmax(0, 1fr) 20px; padding: 18px; gap: 10px; }
  .flowsmatica-v3 .brief-queue-list > button > .severity { grid-column: 1 / -1; }
  .flowsmatica-v3 .review-filter-bar { padding: 10px; gap: 2px; }
  .flowsmatica-v3 .review-filter-bar button { min-height: 44px; font-size: 12px; padding: 8px 9px; }
  .flowsmatica-v3 .review-search-bar { padding: 16px 12px 4px; gap: 10px; }
  .flowsmatica-v3 .review-select { flex-direction: column; align-items: stretch; gap: 5px; }
  .flowsmatica-v3 .review-results-bar { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .flowsmatica-v3 .review-results-bar > div { justify-content: space-between; width: 100%; gap: 10px; }
  .flowsmatica-v3 .review-list { padding: 0 10px 10px; }
  .flowsmatica-v3 .review-item > summary { grid-template-columns: minmax(0, 1fr) 16px; padding: 18px 14px; gap: 12px; }
  .flowsmatica-v3 .review-item .issue-disclosure-copy { grid-column: 1; }
  .flowsmatica-v3 .review-rank { display: none; }
  .flowsmatica-v3 .review-item-actions { padding: 16px; }
  .flowsmatica-v3 .review-item-actions > .button { width: 100%; }
  .flowsmatica-v3 .app-shell .review-item .issue-disclosure-copy > strong { font-size: 15px; }
  .flowsmatica-v3 .brief-next-queue .section-heading-row { flex-wrap: wrap; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .flowsmatica-v3 .app-shell *, .flowsmatica-v3 .app-shell *::before, .flowsmatica-v3 .app-shell *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}

/* Specialist audit evidence */
.app-workspace-page .specialist-section { margin: 30px 0; padding: 28px; border: 1px solid #d9dfdb; border-radius: 16px; background: #fff; color: #24384b; }
.app-workspace-page .specialist-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.app-workspace-page .specialist-heading > div { max-width: 700px; }
.app-workspace-page .specialist-section h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; line-height: 1.16; margin: 9px 0 12px; }
.app-workspace-page .specialist-section p { color: #57665f; font-size: 14px; line-height: 1.65; }
.app-workspace-page .specialist-heading .button { flex-shrink: 0; }
.app-workspace-page .specialist-coverage { display: flex; flex-wrap: wrap; gap: 12px 28px; border-block: 1px solid #e5e9e6; margin: 24px 0; padding: 16px 0; color: #57665f; font-size: 13px; }
.app-workspace-page .specialist-coverage strong { color: #203e54; font-size: 18px; }
.app-workspace-page .specialist-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.app-workspace-page .specialist-card { min-width: 0; border: 1px solid #e1e6e2; border-radius: 10px; padding: 16px; background: #f9faf8; }
.app-workspace-page .specialist-card-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.app-workspace-page .specialist-number { color: #6e7c74; font: 12px monospace; }
.app-workspace-page .specialist-status { font-size: 11px; line-height: 1.5; padding: 3px 7px; border-radius: 5px; background: #f3e8d3; color: #735413; }
.app-workspace-page .specialist-status[data-status="SUCCESS"] { background: #e5eee5; color: #285839; }
.app-workspace-page .specialist-card h3 { font-size: 16px; line-height: 1.35; margin: 0; letter-spacing: -.02em; }
.app-workspace-page .specialist-card p { font-size: 12px; }
.app-workspace-page .specialist-read-count { display: block; font-size: 11px; color: #54645b; margin-top: 16px; }
.app-workspace-page .specialist-missing { border-top: 1px solid #e1e6e2; padding-top: 10px; margin-top: 12px; font-size: 12px; }
.app-workspace-page .specialist-section summary { cursor: pointer; }
.app-workspace-page .specialist-section summary:focus-visible, .app-workspace-page .specialist-table-scroll:focus-visible { outline: 2px solid #406d50; outline-offset: 4px; border-radius: 4px; }
.app-workspace-page .specialist-section li { margin-block: 8px; overflow-wrap: anywhere; }
.app-workspace-page .specialist-missing ul { padding-left: 16px; }
.app-workspace-page .specialist-results, .app-workspace-page .specialist-query-map { margin-top: 28px; }
.app-workspace-page .specialist-results > h3, .app-workspace-page .specialist-query-map > h3 { font-size: 18px; margin: 0 0 14px; }
.app-workspace-page .specialist-observation { border-top: 1px solid #e1e6e2; }
.app-workspace-page .specialist-observation > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.app-workspace-page .specialist-observation > summary::after { content: "+"; font-size: 22px; color: #66776b; }
.app-workspace-page .specialist-observation[open] > summary::after { content: "−"; }
.app-workspace-page .specialist-observation > summary > span:first-child { flex: 1; }
.app-workspace-page .specialist-observation strong { display: block; font-size: 16px; margin-top: 5px; }
.app-workspace-page .specialist-confidence { color: #68766c; font-size: 12px; }
.app-workspace-page .specialist-observation-body { padding: 0 0 20px; max-width: 850px; }
.app-workspace-page .specialist-next-step { border-left: 3px solid #2994ba; padding: 12px 16px; background: #f1f8fc; margin: 18px 0; }
.app-workspace-page .specialist-next-step p { margin: 6px 0 0; }
.app-workspace-page .specialist-citations { list-style: none; padding: 0; display: grid; gap: 8px; }
.app-workspace-page .specialist-citations li { border: 1px solid #e5e9e6; padding: 12px; border-radius: 6px; margin: 0; }
.app-workspace-page .specialist-citations li > span { font-size: 11px; color: #6d7a70; }
.app-workspace-page .specialist-citations blockquote { margin: 6px 0 0; font-size: 13px; color: #304e63; overflow-wrap: anywhere; }
.app-workspace-page .specialist-boundary { padding: 12px 16px; background: #f7f5ef; border-radius: 6px; }
.app-workspace-page .specialist-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid #e1e6e2; border-radius: 8px; }
.app-workspace-page .specialist-query-map table { width: 100%; border-collapse: collapse; min-width: 760px; text-align: left; font-size: 12px; }
.app-workspace-page .specialist-query-map th, .app-workspace-page .specialist-query-map td { padding: 15px; vertical-align: top; border-bottom: 1px solid #e5e9e6; }
.app-workspace-page .specialist-query-map thead { background: #f4f6f2; }
.app-workspace-page .specialist-query-map tbody th { width: 36%; font-weight: 400; }
.app-workspace-page .specialist-query-map tbody th > strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.app-workspace-page .specialist-query-map tbody th > span, .app-workspace-page .specialist-table-note { display: block; color: #6b796e; font-size: 11px; margin-top: 6px; }
.app-workspace-page .specialist-query-map details { margin-top: 10px; }
.app-workspace-page .specialist-coverage-notes { border-top: 1px solid #e1e6e2; margin-top: 24px; padding-top: 18px; font-size: 12px; color: #57665f; }
.app-workspace-page .specialist-coverage-notes ul { padding-left: 18px; max-width: 850px; line-height: 1.65; }
@media (max-width: 1250px) { .app-workspace-page .specialist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .app-workspace-page .specialist-section { padding: 20px; } .app-workspace-page .specialist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-workspace-page .specialist-heading { display: block; } .app-workspace-page .specialist-heading .button { margin-top: 10px; } }
@media (max-width: 520px) { .app-workspace-page .specialist-grid { grid-template-columns: 1fr; } .app-workspace-page .specialist-section { padding: 16px; } .app-workspace-page .specialist-observation > summary { flex-wrap: wrap; gap: 8px; } .app-workspace-page .specialist-confidence { width: 100%; order: 3; } }

/* Keep text entry readable without triggering focus zoom on mobile Safari. */
@media (max-width: 720px) {
  body.flowsmatica-v3 :is(.public-main, .app-shell, .modal) :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
    font-size: 16px;
  }
}

/* The workspace chooser lives outside .app-shell with the other dialogs. */
.flowsmatica-v3 .workspace-picker-list { display: grid; gap: 10px; margin-top: 18px; }
.flowsmatica-v3 .workspace-picker-option { width: 100%; min-height: 68px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d8e2eb; border-radius: 8px; background: #fff; color: #192737; text-align: left; }
.flowsmatica-v3 .workspace-picker-option:hover { background: #f0f6fa; border-color: #a9cddd; }
.flowsmatica-v3 .workspace-picker-option.is-current { border-color: #8fbdd2; background: #edf6fb; }
.flowsmatica-v3 .workspace-picker-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 7px; background: #dcebf4; color: #12638c; font-size: 12px; font-weight: 650; }
.flowsmatica-v3 .workspace-picker-option > span:nth-child(2) { flex: 1; min-width: 0; }
.flowsmatica-v3 .workspace-picker-option strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.flowsmatica-v3 .workspace-picker-option em { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: #52687a; overflow-wrap: anywhere; }
.flowsmatica-v3 .workspace-picker-option > small { flex-shrink: 0; color: #12638c; font-size: 11px; }
@media (max-width: 480px) {
  .flowsmatica-v3 .workspace-picker-option { grid-template-columns: 36px minmax(0, 1fr); row-gap: 6px; }
  .flowsmatica-v3 .workspace-picker-option > small { grid-column: 2; }
  .flowsmatica-v3 .modal { padding: 24px 20px; }
  .flowsmatica-v3 .modal-actions { flex-direction: column; align-items: stretch; }
}

.flowsmatica-v3 .signin-lockup { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; color: #12638c; background: #edf6fb; border-radius: 12px; }
.flowsmatica-v3 .signin-website { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 16px; margin: 22px 0 18px; border: 1px solid #d8e2eb; border-radius: 8px; background: #f7fafc; text-align: left; }
.flowsmatica-v3 .signin-website > .icon, .flowsmatica-v3 .signin-website > span { grid-row: 1 / 3; color: #12638c; }
.flowsmatica-v3 .signin-website > div { min-width: 0; }
.flowsmatica-v3 .signin-website > div > span { display: block; color: #52687a; font-size: 12px; }
.flowsmatica-v3 .signin-website strong { display: block; margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.flowsmatica-v3 .signin-website > em { grid-column: 2; color: #52687a; font-size: 12px; font-style: normal; }
.flowsmatica-v3 .signin-separation { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin: 18px 0; border-radius: 8px; background: #f7fafc; text-align: left; }
.flowsmatica-v3 .signin-separation > span { flex: 0 0 20px; color: #52687a; }
.flowsmatica-v3 .signin-separation p { margin: 0; }
.flowsmatica-v3 .signin-separation strong { display: block; font-size: 13px; }
.flowsmatica-v3 .signin-separation em { display: block; margin-top: 6px; color: #52687a; font-size: 13px; font-style: normal; line-height: 1.6; }

/* Permissions, account identifiers, and recurring-charge consent need readable copy. */
.flowsmatica-v3 .public-main :is(.analysis-mode p, .permission-list em, .connect-footnote, .account-copy em, .account-copy small, .account-snapshot span, .account-target-confirmation small, .simulation-note, .renewal-box p, .payment-disclaimer, .hosted-payment-note em, .order-includes li, .order-assurance em) { font-size: 12px; line-height: 1.6; }
.flowsmatica-v3 .public-main :is(.analysis-mode strong, .permission-list strong, .account-copy strong, .account-target-confirmation, .renewal-box > strong) { font-size: 13px; line-height: 1.5; }
.flowsmatica-v3 .public-main .checkbox-row > span:last-child { font-size: 13px; line-height: 1.6; }
.flowsmatica-v3 .public-main .account-copy { min-width: 0; overflow-wrap: anywhere; }
.flowsmatica-v3 .public-main .account-copy strong { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 480px) {
  .flowsmatica-v3 .public-main .account-snapshot { grid-template-columns: 1fr; }
  .flowsmatica-v3 .public-main .account-snapshot > div { border-right: 0; }
  .flowsmatica-v3 .public-main .account-snapshot > div + div { padding-top: 10px; border-top: 1px solid #d8e2eb; border-left: 0; }
}

.audit-coverage-notice { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin: 18px 0 24px; padding: 18px; border: 1px solid #cbdde8; border-radius: 10px; color: #314e64; background: #f0f6fa; text-align: left; }
.audit-coverage-notice.has-gaps { border-color: #e6cba3; background: #fff8ed; color: #6c4e22; }
.audit-coverage-notice > span { padding-top: 2px; }
.audit-coverage-notice > div > strong { display: block; color: #192737; font-size: 15px; }
.audit-coverage-notice p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.audit-coverage-notice .text-button { margin-top: 10px; min-height: 44px; white-space: normal; text-align: left; }
.flowsmatica-v3 .brief-clear .brief-icon { color: #12638c; background: #edf4fa; }
@media (max-width: 480px) { .audit-coverage-notice { padding: 14px; gap: 8px; } }

/* ---- coverage checklist: 5 core hotel advertising pillars (step 1) ---- */
.coverage-checklist { margin: 24px 0; padding: 24px; border: 1px solid var(--dash-line); border-radius: var(--dash-radius); background: var(--dash-surface); }
.coverage-checklist .section-heading-row { align-items: flex-start; }
.coverage-checklist-tally { padding: 6px 12px; border-radius: 100px; background: var(--dash-surface-muted); color: var(--dash-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.coverage-checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.coverage-pillar-card { padding: 16px; border: 1px solid var(--dash-line); border-radius: var(--dash-radius-sm); background: var(--dash-surface-muted); display: flex; flex-direction: column; gap: 8px; }
.coverage-pillar-card[data-status="covered"] { border-left: 4px solid var(--dash-green); }
.coverage-pillar-card[data-status="gap"] { border-left: 4px solid var(--dash-amber); }
.coverage-pillar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.coverage-pillar-head strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; }
.coverage-pillar-head strong .icon { width: 16px; height: 16px; flex-shrink: 0; }
.coverage-pillar-head em { display: block; margin-top: 2px; color: var(--dash-muted); font-size: 11.5px; font-style: normal; }
.coverage-pillar-status { padding: 4px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.coverage-pillar-status.covered { background: var(--dash-green-soft); color: var(--dash-green); }
.coverage-pillar-status.gap { background: var(--dash-amber-soft); color: var(--dash-amber); }
.coverage-pillar-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--dash-muted); overflow-wrap: anywhere; }
.coverage-checklist-teaser { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--dash-line); border-radius: var(--dash-radius); background: var(--dash-surface); }
.coverage-checklist-teaser > div { display: flex; gap: 12px; align-items: flex-start; }
.coverage-checklist-teaser strong { display: block; font-size: 15px; }
.coverage-checklist-teaser p { margin: 6px 0 0; color: var(--dash-muted); font-size: 13px; line-height: 1.55; }
@media (max-width: 760px) {
  .coverage-checklist { padding: 16px; }
  .coverage-checklist-tally { white-space: normal; }
  .coverage-pillar-card { padding: 13px; }
}

/* ---- campaign checks: per-campaign settings verdicts (step 2) ---- */
.campaign-checks { margin: 24px 0; padding: 24px; border: 1px solid var(--dash-line); border-radius: var(--dash-radius); background: var(--dash-surface); }
.campaign-checks .section-heading-row { align-items: flex-start; }
.campaign-checks-tally { padding: 6px 12px; border-radius: 100px; background: var(--dash-surface-muted); color: var(--dash-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.campaign-check-row { margin-top: 14px; padding: 16px; border: 1px solid var(--dash-line); border-radius: var(--dash-radius-sm); background: var(--dash-surface-muted); }
.campaign-check-row[data-verdict="not_correct"] { border-left: 4px solid var(--dash-red); }
.campaign-check-row[data-verdict="needs_attention"] { border-left: 4px solid var(--dash-amber); }
.campaign-check-row[data-verdict="correct"] { border-left: 4px solid var(--dash-green); }
.campaign-check-row[data-verdict="not_running"] { border-left: 4px solid var(--dash-line-strong); }
.campaign-check-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.campaign-check-head strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.campaign-check-head em { display: block; margin-top: 3px; color: var(--dash-muted); font-size: 12px; font-style: normal; }
.campaign-check-verdict { padding: 5px 11px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.campaign-check-verdict.critical { background: var(--dash-red-soft); color: var(--dash-red); }
.campaign-check-verdict.warning { background: var(--dash-amber-soft); color: var(--dash-amber); }
.campaign-check-verdict.success { background: var(--dash-green-soft); color: var(--dash-green); }
.campaign-check-verdict.muted { background: var(--dash-surface); color: var(--dash-muted); }
.campaign-check-row p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.campaign-check-row small { display: block; margin-top: 8px; color: var(--dash-muted); font-size: 12px; overflow-wrap: anywhere; }
.campaign-checks-teaser { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--dash-line); border-radius: var(--dash-radius); background: var(--dash-surface); }
.campaign-checks-teaser > div { display: flex; gap: 12px; align-items: flex-start; }
.campaign-checks-teaser strong { display: block; font-size: 15px; }
.campaign-checks-teaser p { margin: 6px 0 0; color: var(--dash-muted); font-size: 13px; line-height: 1.55; }
@media (max-width: 760px) {
  .campaign-checks { padding: 16px; }
  .campaign-checks-tally { white-space: normal; }
  .campaign-check-row { padding: 13px; }
}
