.ai-build--automation { --ai-build-cycle: 14s; }
.ai-build--automation .ai-build__title { font-size: 26px; }
.ai-build--automation .ai-build__stage-label { margin-bottom: 14px; letter-spacing: .7px; }
.auto-flow__badge { padding: 3px 6px; border-radius: 4px; background: rgb(255 165 100 / 12%); color: #ffb078; font-size: 10px; }
.auto-flow__message { margin-top: 19px; }
.auto-flow__message-header { display: flex; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid #ebe7f5; }
.auto-flow__mail-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px; background: #ede7fb; color: #7157b6; }
.auto-flow__mail-icon svg { width: 19px; height: 19px; }
.auto-flow__message-header strong, .auto-flow__message-header small { display: block; }
.auto-flow__message-header strong { font-size: 12px; font-weight: 500; }
.auto-flow__message-header small { margin-top: 2px; font-size: 10px; color: #958caa; }
.auto-flow__unread { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #ff8500; }
.auto-flow__subject { margin: 14px 14px 7px; font-size: 16px; font-weight: 700; }
.auto-flow__mail-body { margin: 0 14px 16px; font-family: 'Futura PT Book', sans-serif; font-size: 16px; line-height: 1.4; color: #716782; }
.auto-flow__mail-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-top: 1px solid #ebe7f5; color: #958caa; font-size: 10px; }
.auto-flow__mail-footer > span:last-child { color: #ff8500; font-size: 18px; }
.auto-flow__note { display: flex; align-items: center; gap: 7px; margin-top: 17px; font-family: 'Futura PT Book', sans-serif; color: #cec4e9; font-size: 13px; line-height: 1.35; }
.auto-flow__note > span { color: #ffb078; }
.auto-flow__spark { font-size: 22px; }
.auto-flow__fields { display: grid; gap: 8px; margin: 20px 0 0; }
.auto-flow__fields > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 6px; background: rgb(255 255 255 / 4%); animation: auto-flow-extract var(--ai-build-cycle) ease-out infinite; }
.auto-flow__fields > div:nth-child(2) { animation-delay: .15s; }
.auto-flow__fields > div:nth-child(3) { animation-delay: .3s; }
.auto-flow__fields > div:nth-child(4) { animation-delay: .45s; }
.auto-flow__fields dt { font-size: 11px; color: rgb(255 255 255 / 50%); }
.auto-flow__fields dd { min-width: 0; margin: 0; font-size: 13px; color: #f1eafa; }
.auto-flow__fields dd strong { color: #ffb078; font-weight: 500; }
.auto-flow__network { margin-top: 20px; }
.auto-flow__hub { display: flex; align-items: center; justify-content: center; gap: 6px; width: 70px; height: 38px; margin: 0 auto; border: 1px solid rgb(255 176 120 / 45%); border-radius: 9px; background: rgb(255 176 120 / 10%); color: #ffb078; font-size: 15px; }
.auto-flow__hub > span { font-size: 24px; }
.auto-flow__connections { display: block; width: 100%; height: 36px; overflow: visible; fill: none; stroke-width: 1.2; }
.auto-flow__connection-track { stroke: rgb(255 255 255 / 18%); }
.auto-flow__connection-pulse { stroke: #ffb078; stroke-dasharray: 3 13; animation: auto-flow-transfer 1.6s linear infinite; }
.auto-flow__systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.auto-flow__systems > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; min-width: 0; border: 1px solid rgb(255 255 255 / 16%); border-radius: 8px; background: rgb(255 255 255 / 5%); text-align: center; }
.auto-flow__systems svg { width: 23px; height: 23px; color: #d6c8f6; }
.auto-flow__systems strong { font-size: 13px; font-weight: 500; }
.auto-flow__systems small { max-width: 100%; font-size: 9px; color: #b9ecd8; }
.auto-flow__actions { display: grid; gap: 9px; margin-top: 20px; font-size: 12px; color: #d7cdeb; }
.auto-flow__reviewer { display: flex; align-items: center; gap: 9px; margin: 18px 0; }
.auto-flow__reviewer .ai-build__mini-avatar { width: 30px; height: 30px; }
.auto-flow__reviewer strong, .auto-flow__reviewer small { display: block; }
.auto-flow__reviewer strong { font-size: 13px; font-weight: 500; }
.auto-flow__reviewer small { font-size: 11px; margin-top: 3px; color: rgb(255 255 255 / 50%); }
.auto-flow__approved-mark { margin-left: auto; color: #b9ecd8; font-size: 23px; }
.auto-flow__draft-title { display: flex; justify-content: space-between; gap: 7px; padding: 10px 12px; border-bottom: 1px solid #ebe7f5; font-size: 11px; color: #958caa; }
.auto-flow__draft-title > span:last-child { color: #ff8500; }
.auto-flow__draft p { margin: 0; padding: 13px 12px; font-family: 'Futura PT Book', sans-serif; font-size: 15px; line-height: 1.4; }
.auto-flow__completion { display: flex; align-items: center; gap: 10px; margin-top: 19px; padding: 12px; border: 1px solid rgb(185 236 216 / 24%); border-radius: 7px; background: rgb(185 236 216 / 6%); }
.auto-flow__completion svg { width: 31px; height: 31px; flex-shrink: 0; stroke: #b9ecd8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.auto-flow__completion path { stroke-dasharray: 23; animation: auto-flow-approve var(--ai-build-cycle) ease-out infinite; }
.auto-flow__completion strong, .auto-flow__completion small { display: block; }
.auto-flow__completion strong { font-size: 14px; font-weight: 500; color: #b9ecd8; }
.auto-flow__completion small { margin-top: 3px; font-size: 10px; color: rgb(255 255 255 / 55%); }
.auto-flow__note--success { justify-content: center; text-align: center; color: #b9ecd8; }

@keyframes auto-flow-extract { 0%, 23% { opacity: 0; transform: translateY(5px); border-color: rgb(255 255 255 / 12%); } 31%, 98% { opacity: 1; transform: none; border-color: rgb(255 176 120 / 30%); } 100% { opacity: 0; } }
@keyframes auto-flow-transfer { to { stroke-dashoffset: -32; } }
@keyframes auto-flow-approve { 0%, 77% { stroke-dashoffset: 23; } 85%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 23; } }

@media (max-width: 359px) {
    .ai-build--automation .ai-build__title { font-size: 24px; }
    .ai-build--automation .ai-build__stage-label { font-size: 9px; letter-spacing: .4px; }
    .auto-flow__fields > div { padding: 10px; gap: 7px; }
    .auto-flow__systems { gap: 5px; }
    .auto-flow__systems small { font-size: 8px; }
}
