:root {
  color-scheme: light;
  --bg: #eeeeee;
  --surface: #ffffff;
  --panel: #f5f5f5;
  --ink: #202124;
  --muted: #6f6f6f;
  --line: #d3d3d3;
  --blue: #416fb9;
  --blue-hover: #0041a3;
  --teal: #416fb9;
  --green: #16803c;
  --amber: #a15c00;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 52px 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.app-ribbon {
  background: var(--blue);
  color: #ffffff;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  z-index: 5;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.workspace {
  padding: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 650;
  color: #ffffff;
}

h2 {
  font-size: 20px;
}

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

[hidden] {
  display: none !important;
}

.primary-action,
.secondary-action {
  border: 0;
  border-radius: 4px;
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-action {
  background: var(--blue);
  color: white;
}

.primary-action:hover {
  background: var(--blue-hover);
}

.switcher-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-auto-rows: 4px;
  gap: 4px;
  align-content: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.switcher-button:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.switcher-button span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.secondary-action {
  background: #eef2f7;
  color: #273647;
  border: 1px solid var(--line);
}

.secondary-action.loading {
  opacity: 0.72;
  cursor: wait;
}

.secondary-action[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  opacity: 0.72;
}

.coming-soon-note {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.open-link {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  gap: 6px;
}

.open-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.external-indicator {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.login-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.login-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

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

.avatar.has-image {
  background: transparent;
}

.avatar.has-image span {
  display: none;
}

.profile-menu-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.profile-menu-button:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.profile-menu-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}

.switcher-menu,
.profile-menu {
  position: absolute;
  top: 40px;
  width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.switcher-menu[hidden],
.profile-menu[hidden] {
  display: none;
}

.switcher-menu {
  right: 82px;
}

.profile-menu {
  right: 0;
}

.switcher-menu button,
.switcher-menu a,
.profile-menu button,
.profile-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}

.switcher-menu .external-indicator {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: #667085;
}

.switcher-label {
  flex: 1 1 auto;
}

.switcher-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  object-fit: contain;
  flex: 0 0 auto;
}

.switcher-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-home {
  color: var(--blue);
}

.icon-pathfinder {
  color: var(--blue);
}

.icon-pathbuilder {
  color: #0f766e;
}

.icon-integration {
  color: #92400e;
}

.icon-nodebuilder {
  color: #a81d20;
}

.menu-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.switcher-menu button:hover,
.switcher-menu a:hover,
.profile-menu button:hover,
.profile-menu a:hover {
  background: #eef4fb;
}

.menu-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.version-line {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  padding: 18px;
}

.auth-status {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.auth-status.signed-in {
  color: #155e2d;
  border-color: #bdddc8;
  background: #f4fbf6;
}

.summary-grid,
.app-grid,
.product-layout {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.summary-panel,
.section-band,
.app-card,
.product-main,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(29, 45, 68, 0.06);
}

.summary-panel {
  padding: 14px;
}

.panel-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.graph-panel {
  min-height: 116px;
}

.mini-graph {
  height: 62px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 8px;
}

.mini-graph span {
  flex: 1;
  min-width: 12px;
  border-radius: 4px 4px 0 0;
  background: rgba(65, 111, 185, 0.72);
}

.mini-graph-labels {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.mini-graph-labels span {
  flex: 1;
  min-width: 12px;
  text-align: center;
}

.summary-panel p,
.section-heading p,
.app-card p,
.lead {
  color: var(--muted);
  line-height: 1.55;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.plan-option {
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: left;
}

.plan-option:hover {
  border-color: var(--blue);
  background: #f7faff;
}

.plan-option.selected {
  border-color: var(--blue);
  background: #eef4fb;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.plan-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-option strong {
  font-size: 14px;
  font-weight: 800;
}

.pricing-unavailable {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section-band {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 520px;
}

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

.app-card {
  padding: 16px;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.app-logo {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.app-logo svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pathfinder {
  color: var(--blue);
}

.nodebuilder {
  color: #a81d20;
}

.future {
  color: #92400e;
}

.pathbuilder {
  color: #0f766e;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.active {
  background: #dcfce7;
  color: var(--green);
}

.status-pill.inactive {
  background: #fff7ed;
  color: var(--amber);
}

.product-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.product-main,
.side-panel {
  padding: 18px;
}

.flow-preview {
  margin-top: 26px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.node {
  width: 112px;
  height: 64px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.source {
  background: #0f766e;
}

.decision {
  background: #2563eb;
}

.output {
  background: #7c3aed;
}

.connector {
  width: 72px;
  height: 2px;
  background: #9fb0c2;
}

.side-panel dl {
  display: grid;
  gap: 8px;
}

.side-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-panel dd {
  margin: 0 0 10px;
}

.setup-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.setup-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.setup-steps span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.link-row {
  display: block;
  padding: 11px 0;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }

  .app-ribbon {
    position: sticky;
    top: 0;
    align-items: center;
    z-index: 5;
  }

  .summary-grid,
  .app-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
