/* Scoped lifecycle illustrations for /n8n. */
.n8n-page { --font-family: "Roboto", Arial, sans-serif; font-family: var(--font-family); }
.n8n-lifecycle { padding-top: 24px; }
.n8n-eyebrow { color: #287c96; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.n8n-lifecycle > .container > .n8n-eyebrow { text-align: center; margin-bottom: 12px; }
.n8n-lifecycle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; max-width: 1120px; margin: 0 auto; align-items: start; }
.n8n-lifecycle-board { border: 1px solid #dbe5eb; border-radius: 20px; background: #f6f9fb; padding: 24px; min-width: 0; }
.n8n-board-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.n8n-record-tag { background: #e5f2f5; color: #28667c; border-radius: 20px; padding: 5px 10px; font-size: 11px; white-space: nowrap; }
.n8n-state-track { display: flex; list-style: none; margin: 20px 0 12px; padding: 0; gap: 18px; }
.n8n-state-track li { position: relative; flex: 1; background: white; border: 1px solid #cddfe6; border-radius: 7px; padding: 9px 4px; text-align: center; font-size: 11px; font-weight: 600; color: #285a6e; }
.n8n-state-track li + li::before { content: '→'; position: absolute; right: calc(100% + 4px); color: #6c929f; }
.n8n-board-note { color: #64748b; font-size: 12px; line-height: 1.5; margin: 0 0 20px; }
.n8n-flow-card { margin: 14px 0 0; background: white; border: 1px solid #dde6eb; border-radius: 12px; overflow: hidden; }
.n8n-flow-card > figcaption { display: flex; gap: 10px; padding: 15px 16px 10px; align-items: flex-start; }
.n8n-flow-number { display: grid; place-items: center; flex: 0 0 24px; height: 24px; background: #eef4f7; border-radius: 50%; color: #527485; font-size: 12px; font-weight: 600; }
.n8n-flow-card h3 { font-size: 14px; line-height: 1.4; margin: 0 0 3px; font-weight: 600; color: #172b3b; }
.n8n-flow-card figcaption p { font-size: 12px; color: #64748b; margin: 0; line-height: 1.5; }
.n8n-node-flow { display: flex; list-style: none; margin: 0; padding: 17px 16px; background-image: radial-gradient(#dce4e9 .7px, transparent .7px); background-size: 12px 12px; }
.n8n-node { position: relative; flex: 1; min-width: 0; text-align: center; }
.n8n-node + .n8n-node::before { content: ''; position: absolute; width: calc(100% - 64px); height: 1px; background: #bdcbd3; top: 30px; right: calc(50% + 32px); }
.n8n-node + .n8n-node::after { content: ''; position: absolute; top: 26px; right: calc(50% + 32px); border-left: 6px solid #bdcbd3; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.n8n-node-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 60px; background: white; border: 1px solid #ccd8df; border-radius: 12px; margin: 0 auto 9px; font-size: 31px; }
.n8n-node:first-child .n8n-node-icon { border-top-left-radius: 24px; border-bottom-left-radius: 24px; }
.n8n-node strong { display: block; max-width: 160px; margin: auto; padding: 0 5px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #263d4e; }
.n8n-node small { display: block; color: #6b7b88; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.n8n-icon-stripe { color: #635bff; font-size: 17px; font-weight: 800; letter-spacing: -.8px; }
.n8n-icon-http { color: #5446dd; }
.n8n-icon-webhook { color: #eb3974; }
.n8n-icon-mail { color: #d94444; }
.n8n-inistate-logo { display: block; width: 38px; height: 38px; object-fit: contain; }
.n8n-flow-result { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 9px 16px; border-top: 1px solid #edf1f4; font-size: 10px; color: #6b7b88; }
.n8n-flow-result strong { color: #28715c; font-weight: 600; }
.n8n-mobile-panel { background: linear-gradient(145deg, #edf7fa, #f4f3ff); border: 1px solid #dceaf0; border-radius: 20px; padding: 26px 22px; text-align: center; }
.n8n-mobile-panel .n8n-eyebrow { font-size: 10px; margin: 0 0 12px; }
.n8n-mobile-panel h3 { font-size: 26px; line-height: 1.2; color: #16384b; margin: 0 0 12px; font-weight: 700; }
.n8n-mobile-panel > p:not(.n8n-eyebrow) { font-size: 13px; line-height: 1.6; color: #52697a; margin: 0; }
.n8n-phone-figure { margin: 22px auto 18px; }
.n8n-phone-figure img { display: block; width: 240px; max-width: 100%; height: auto; margin: auto; filter: drop-shadow(0 14px 16px #233c4d20); }
.n8n-phone-figure figcaption { font-size: 10px; line-height: 1.5; color: #657788; margin-top: 12px; }
.n8n-mobile-benefits { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; font-size: 12px; color: #36576b; line-height: 1.6; }
.n8n-mobile-benefits li { margin: 7px 0; }
.n8n-mobile-benefits li::before { content: '✓'; color: #278468; margin-right: 8px; }
.n8n-mobile-panel > a { font-size: 13px; font-weight: 600; color: #236c96; }
/* Approval branches remain readable text, with connectors as decoration. */
.n8n-approval > .container > .n8n-eyebrow { text-align: center; margin-bottom: 12px; }
.n8n-approval-card { max-width: 1120px; margin: 0 auto; padding: 28px; border: 1px solid #dbe5eb; border-radius: 20px; background: #f6f9fb; scroll-margin-top: 90px; }
.n8n-approval-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 15px; font-weight: 600; color: #264a60; }
.n8n-approval-flow { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 30px; align-items: center; }
.n8n-approval-step { padding: 20px; background: #fff; border: 1px solid #dce5eb; border-radius: 12px; position: relative; min-width: 0; }
.n8n-approval-actor { display: block; font-size: 11px; font-weight: 600; color: #506b7d; margin-bottom: 12px; }
.n8n-approval-step h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; font-weight: 700; color: #193e52; }
.n8n-approval-step p { margin: 0; font-size: 13px; line-height: 1.65; color: #526779; }
.n8n-approval-state { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 18px; background: #f4f8fb; border-radius: 8px; font-size: 11px; color: #617889; }
.n8n-approval-state img { flex: 0 0 28px; }
.n8n-approval-state strong { display: block; margin-top: 2px; font-size: 14px; color: #264a60; }
.n8n-approval-step .n8n-approval-end { margin-top: 16px; font-size: 12px; }
.n8n-approval-decision { background: #fffbf1; border-color: #e9d9ac; }
.n8n-approval-choices { display: flex; gap: 8px; margin-top: 18px; }
.n8n-approval-choices span { flex: 1; padding: 8px; text-align: center; border-radius: 6px; font-size: 12px; font-weight: 600; background: #e5f2ec; color: #28664f; }
.n8n-approval-choices span + span { background: #f9e9e9; color: #995151; }
.n8n-approval-outcomes { display: grid; gap: 18px; position: relative; }
.n8n-approval-approved { border-color: #c3dfd1; }
.n8n-approval-approved h3 { color: #28664f; }
.n8n-approval-rejected { border-color: #e9d0d0; }
.n8n-approval-rejected h3 { color: #995151; }
.n8n-approval-decision::before, .n8n-approval-outcomes::before { content: '\2192'; position: absolute; right: 100%; width: 30px; top: 50%; transform: translateY(-50%); text-align: center; font-size: 22px; color: #7291a2; }
.n8n-approval-trigger { margin: 24px 0 0; padding: 16px 18px; background: #eaf3f7; border-radius: 10px; color: #38596d; font-size: 13px; line-height: 1.65; }
.n8n-approval-trigger > strong:first-child { display: block; margin-bottom: 4px; }
.n8n-approval-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 22px; }
.n8n-approval-details p { margin: 0; font-size: 12px; line-height: 1.65; color: #617889; }
.n8n-approval-details strong { display: block; color: #264a60; font-size: 13px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .n8n-approval-flow { grid-template-columns: 1fr; gap: 30px; }
  .n8n-approval-decision::before, .n8n-approval-outcomes::before { content: '\2193'; top: -30px; left: 50%; right: auto; transform: translateX(-50%); height: 30px; }
  .n8n-approval-outcomes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .n8n-approval-card { padding: 18px; }
  .n8n-approval-caption .n8n-record-tag { white-space: normal; }
  .n8n-approval-outcomes, .n8n-approval-details { grid-template-columns: 1fr; }
  .n8n-approval-details { gap: 14px; }
}
@media (max-width: 1000px) {
  .n8n-lifecycle-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .n8n-lifecycle-board { padding: 16px; }
  .n8n-board-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .n8n-lifecycle-layout { grid-template-columns: 1fr; }
  .n8n-mobile-panel { max-width: 460px; width: 100%; margin: 0 auto; }
  .n8n-mobile-benefits { max-width: 260px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) {
  .n8n-lifecycle-board { padding: 12px; }
  .n8n-state-track { gap: 12px; }
  .n8n-state-track li { font-size: 10px; }
  .n8n-state-track li + li::before { right: calc(100% + 1px); }
  .n8n-node-flow { padding: 15px 6px; }
  .n8n-node strong { font-size: 11px; }
  .n8n-node small { font-size: 10px; }
}
