.automations-lp .commerce-hero-copy h1 {
  max-width: 11ch;
}

.automation-hero-proof {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.automation-hero-canvas {
  min-height: 340px;
  display: grid;
  align-content: center;
  padding: 24px;
}

.automation-node {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 22px -20px rgba(11, 31, 49, .65);
}

.automation-node > i,
.automation-builder-flow article > i,
.automation-builder-branches article > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--home-lime);
  color: var(--home-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-style: normal;
}

.automation-node p,
.automation-node span,
.automation-node strong,
.automation-node small {
  min-width: 0;
  display: block;
  margin: 0;
}

.automation-node span {
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.automation-node strong {
  overflow: hidden;
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-node small {
  color: var(--home-copy);
  font-size: 9px;
}

.automation-node > em {
  padding: 4px 7px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color: var(--home-copy);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-style: normal;
}

.automation-node-trigger {
  border-color: #bfdc22;
}

.automation-node-condition > i {
  background: var(--home-mint);
}

.automation-hero-canvas > b {
  width: 1px;
  height: 22px;
  justify-self: center;
  border-left: 1px dashed #93a5b4;
}

.automation-branch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 26px;
}

.automation-branch::before {
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 18px;
  border-right: 1px dashed #93a5b4;
  border-bottom: 1px dashed #93a5b4;
  border-left: 1px dashed #93a5b4;
  content: "";
}

.automation-branch > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 11px;
  border: 1px solid var(--home-line);
  border-radius: 7px;
  background: white;
}

.automation-branch i {
  grid-row: 1 / 3;
  align-self: center;
  color: #00876a;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}

.automation-branch strong,
.automation-branch small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-branch strong {
  font-size: 10px;
  font-weight: 500;
}

.automation-branch small {
  color: var(--home-muted);
  font-size: 8px;
}

.automation-workspace-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--home-line);
}

.automation-workspace-toolbar > div:first-child strong,
.automation-workspace-toolbar > div:first-child span {
  display: block;
}

.automation-workspace-toolbar > div:first-child strong {
  font-size: 13px;
  font-weight: 500;
}

.automation-workspace-toolbar > div:first-child span {
  color: var(--home-muted);
  font-size: 10px;
}

.automation-workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.automation-workspace-actions span {
  color: #00876a;
  font-size: 9px;
}

.automation-workspace-actions b {
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--home-lime);
  font-size: 9px;
  font-weight: 500;
}

.automation-workspace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--home-line);
}

.automation-workspace-summary > div {
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid var(--home-line);
}

.automation-workspace-summary > div:last-child {
  border-right: 0;
}

.automation-workspace-summary span,
.automation-workspace-summary strong,
.automation-workspace-summary small {
  display: block;
}

.automation-workspace-summary span {
  color: var(--home-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.automation-workspace-summary strong {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 550;
}

.automation-workspace-summary small {
  overflow: hidden;
  color: var(--home-copy);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-workspace-summary .is-current {
  background: var(--home-lime);
}

.automation-workspace-body {
  min-width: 0;
  display: grid;
  grid-template-columns: 160px minmax(390px, 1fr) 220px;
}

.automation-list-rail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 10px;
  border-right: 1px solid var(--home-line);
  background: #f7f9fa;
}

.automation-list-rail span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 5px;
  color: var(--home-copy);
  font-size: 10px;
}

.automation-list-rail span.is-current {
  background: var(--home-navy);
  color: white;
}

.automation-list-rail i {
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  font-style: normal;
}

.automation-list-rail .is-current i {
  color: var(--home-lime);
}

.automation-list-rail b {
  color: var(--home-muted);
  font-size: 8px;
  font-weight: 400;
}

.automation-flow-panel {
  min-width: 0;
  padding: 16px;
}

.automation-flow-panel > header,
.automation-inspector > header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-line);
}

.automation-flow-panel > header span,
.automation-inspector > header span {
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.automation-flow-panel > header strong {
  color: #00876a;
  font-size: 9px;
  font-weight: 500;
}

.automation-builder-flow {
  display: grid;
  padding: 16px 8px 6px;
  background:
    radial-gradient(circle at 1px 1px, #e1e7eb 1px, transparent 1px),
    #f8fafb;
  background-size: 16px 16px;
}

.automation-builder-flow > article,
.automation-builder-branches article {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: white;
}

.automation-builder-flow article p,
.automation-builder-flow article span,
.automation-builder-flow article strong {
  min-width: 0;
  display: block;
  margin: 0;
}

.automation-builder-flow article span {
  color: var(--home-muted);
  font-size: 8px;
}

.automation-builder-flow article strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-builder-flow article > em {
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.automation-builder-flow .is-condition > i {
  background: var(--home-mint);
}

.automation-builder-flow > b {
  width: 1px;
  height: 11px;
  justify-self: center;
  border-left: 1px dashed #93a5b4;
}

.automation-builder-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 20px;
}

.automation-builder-branches::before {
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 13px;
  border-right: 1px dashed #93a5b4;
  border-bottom: 1px dashed #93a5b4;
  border-left: 1px dashed #93a5b4;
  content: "";
}

.automation-builder-branches article {
  grid-template-columns: 28px minmax(0, 1fr);
}

.automation-builder-branches article > i {
  width: 28px;
  height: 28px;
}

.automation-inspector {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px;
  border-left: 1px solid var(--home-line);
  background: var(--home-wash);
}

.automation-inspector > header strong {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--home-mint);
  font-size: 8px;
  font-weight: 500;
}

.automation-inspector dl {
  margin: 0;
  padding-top: 8px;
}

.automation-inspector dl div {
  padding: 9px 0;
  border-bottom: 1px solid var(--home-line);
}

.automation-inspector dt,
.automation-inspector dd {
  overflow-wrap: anywhere;
}

.automation-inspector dt {
  color: var(--home-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.automation-inspector dd {
  margin: 2px 0 0;
  color: var(--home-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.automation-inspector footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--home-line);
}

.automation-inspector footer span {
  color: var(--home-muted);
  font-size: 8px;
}

.automation-inspector footer strong {
  color: #00876a;
  font-size: 8px;
  font-weight: 500;
}

.automation-trigger-section {
  grid-template-columns: minmax(0, .72fr) minmax(560px, 1.28fr);
}

.automation-trigger-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.automation-trigger-grid article {
  min-width: 0;
  min-height: 140px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 17px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.automation-trigger-grid article > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--home-lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-style: normal;
}

.automation-trigger-grid h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
}

.automation-trigger-grid p {
  margin: 0;
  color: var(--home-copy);
  font-size: 11px;
  line-height: 1.45;
}

.automation-trigger-grid article > span {
  grid-column: 2;
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.automation-code pre {
  min-height: 520px;
  font-size: 10px;
}

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

.automation-action-grid article {
  min-height: 250px;
  border-bottom: 1px solid var(--home-line);
}

.automation-action-grid article:nth-child(4) {
  border-right: 0;
}

.automation-action-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.automation-action-grid article:last-child {
  grid-column: span 2;
  border-right: 1px solid var(--home-line);
}

.automation-execution-section {
  padding: 110px 24px;
  border-bottom: 1px solid var(--home-line);
}

.automation-execution-ledger {
  margin: 0;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 28px 46px -38px rgba(13, 33, 53, .6);
  overflow: hidden;
}

.automation-execution-ledger > figcaption {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.automation-execution-ledger > figcaption span:first-child {
  color: var(--home-ink);
}

.automation-execution-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--home-line);
}

.automation-execution-toolbar strong,
.automation-execution-toolbar span {
  display: block;
}

.automation-execution-toolbar strong {
  font-size: 13px;
  font-weight: 500;
}

.automation-execution-toolbar span {
  color: var(--home-muted);
  font-size: 9px;
}

.automation-execution-toolbar em {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--home-lime);
  font-size: 8px;
  font-style: normal;
}

.automation-execution-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.automation-history {
  min-width: 0;
  padding: 8px 18px;
  border-right: 1px solid var(--home-line);
}

.automation-history article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  border-bottom: 1px solid var(--home-line);
}

.automation-history article:last-child {
  border-bottom: 0;
}

.automation-history article > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-style: normal;
}

.automation-history .is-complete > i {
  border-color: #bfdc22;
  background: var(--home-lime);
  color: var(--home-ink);
}

.automation-history p,
.automation-history span,
.automation-history strong,
.automation-history small {
  min-width: 0;
  display: block;
  margin: 0;
}

.automation-history span {
  color: var(--home-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.automation-history strong {
  font-size: 11px;
  font-weight: 500;
}

.automation-history small {
  color: var(--home-copy);
  font-size: 8px;
}

.automation-history article > em {
  color: #00876a;
  font-size: 8px;
  font-style: normal;
}

.automation-execution-context {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--home-wash);
}

.automation-execution-context > header,
.automation-execution-context > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--home-line);
}

.automation-execution-context > header span,
.automation-execution-context > footer span {
  color: var(--home-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.automation-execution-context > header strong {
  color: #00876a;
  font-size: 8px;
  font-weight: 500;
}

.automation-execution-context dl {
  margin: 0;
  padding: 8px 16px;
}

.automation-execution-context dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--home-line);
}

.automation-execution-context dt,
.automation-execution-context dd {
  font-size: 9px;
}

.automation-execution-context dt {
  color: var(--home-muted);
}

.automation-execution-context dd {
  margin: 0;
  color: var(--home-ink);
  font-family: "JetBrains Mono", monospace;
}

.automation-execution-context dd.positive {
  color: #00876a;
}

.automation-execution-context > footer {
  border-top: 1px solid var(--home-line);
  border-bottom: 0;
}

.automation-execution-context > footer strong {
  font-size: 8px;
  font-weight: 500;
}

.automation-closing h2 {
  max-width: 15ch;
}

@media (hover: hover) and (pointer: fine) {
  .automation-trigger-grid article,
  .automation-history article {
    transition: background-color 160ms ease;
  }

  .automation-trigger-grid article:hover,
  .automation-history article:hover {
    background: #f8fafb;
  }
}

@media (max-width: 1080px) {
  .automation-workspace-body {
    grid-template-columns: 145px minmax(340px, 1fr) 200px;
  }

  .automation-trigger-section {
    grid-template-columns: minmax(0, .68fr) minmax(520px, 1.32fr);
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .automation-workspace-body {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .automation-inspector {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .automation-inspector dl {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .automation-trigger-section {
    grid-template-columns: 1fr;
  }

  .automation-trigger-section .feature-copy {
    max-width: 650px;
  }

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

  .automation-action-grid article,
  .automation-action-grid article:nth-child(4),
  .automation-action-grid article:last-child {
    border-right: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
  }

  .automation-action-grid article:nth-child(2n) {
    border-right: 0;
  }

  .automation-action-grid article:last-child {
    grid-column: span 2;
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .automation-execution-section {
    padding: 78px 20px;
  }

  .automation-workspace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-workspace-summary > div:nth-child(2) {
    border-right: 0;
  }

  .automation-workspace-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--home-line);
  }

  .automation-workspace-body {
    grid-template-columns: 1fr;
  }

  .automation-list-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .automation-list-rail span {
    flex: 0 0 120px;
  }

  .automation-inspector {
    grid-column: auto;
  }

  .automation-execution-body {
    grid-template-columns: 1fr;
  }

  .automation-history {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }
}

@media (max-width: 560px) {
  .automation-hero-canvas {
    padding: 18px 14px;
  }

  .automation-node {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .automation-node > i {
    width: 30px;
    height: 30px;
  }

  .automation-node > em {
    grid-column: 2;
    width: fit-content;
  }

  .automation-branch {
    grid-template-columns: 1fr;
  }

  .automation-branch::before {
    display: none;
  }

  .automation-workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .automation-workspace-summary {
    grid-template-columns: 1fr;
  }

  .automation-workspace-summary > div,
  .automation-workspace-summary > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .automation-workspace-summary > div:last-child {
    border-bottom: 0;
  }

  .automation-builder-branches {
    grid-template-columns: 1fr;
  }

  .automation-builder-branches::before {
    display: none;
  }

  .automation-inspector dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-trigger-grid {
    grid-template-columns: 1fr;
  }

  .automation-code pre {
    font-size: 9px;
  }

  .automation-action-grid {
    grid-template-columns: 1fr;
  }

  .automation-action-grid article,
  .automation-action-grid article:nth-child(2n),
  .automation-action-grid article:nth-child(4),
  .automation-action-grid article:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .automation-action-grid article:last-child {
    border-bottom: 0;
  }

  .automation-execution-ledger > figcaption span:last-child {
    display: none;
  }

  .automation-execution-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .automation-history article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .automation-history article > em {
    grid-column: 2;
  }
}
