.ai-build--audit { --ai-build-cycle: 14s; }
.ai-build--audit .ai-build__title { font-size: 26px; }
.ai-build--audit .ai-build__stages { min-height: 330px; }
.ai-build--audit .ai-build__stage-label { margin-bottom: 12px; letter-spacing: .7px; }
.ai-build--audit .ai-build__reviewer { margin-top: 12px; }
.audit-scanning { display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0; color: #ffa76b; }
.audit-scanning i, .audit-scan__pulse { width: 5px; height: 5px; border-radius: 50%; background: #ffa76b; box-shadow: 0 0 10px rgb(255 167 107 / 35%); }
.audit-scan { position: relative; margin-top: 14px; overflow: hidden; }
.audit-scan__file { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / 9%); }
.audit-scan__file-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid rgb(255 255 255 / 13%); border-radius: 7px; color: #d0c5f4; font: 12px/1 ui-monospace, monospace; }
.audit-scan__file-icon svg { width: 20px; height: 20px; }
.audit-scan__file > div { min-width: 0; }
.audit-scan__file strong { display: block; font-size: 13px; font-weight: 500; }
.audit-scan__file code { display: block; margin-top: 3px; color: rgb(255 255 255 / 40%); font: 10px/1.4 ui-monospace, monospace; }
.audit-scan__pulse { margin-left: auto; animation: audit-scan-pulse var(--ai-build-cycle) ease infinite; }
.audit-scan__file:nth-of-type(3) .audit-scan__pulse { animation-delay: .5s; }
.audit-scan__file:nth-of-type(4) .audit-scan__pulse { animation-delay: 1s; }
.audit-scan__beam { position: absolute; z-index: 1; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #ffc18e, transparent); box-shadow: 0 0 14px 3px rgb(255 151 76 / 16%); animation: audit-scan-beam var(--ai-build-cycle) ease-in-out infinite; }
.audit-note { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: rgb(255 255 255 / 60%); font-family: 'Futura PT Book', sans-serif; font-size: 13px; line-height: 1.35; }
.audit-note > span { font-size: 21px; color: #ffa76b; }
.audit-risk-count { color: #ffa76b; font: 16px/1 ui-monospace, monospace; }
.audit-findings { display: grid; gap: 9px; margin-top: 18px; }
.audit-finding { display: flex; align-items: flex-start; gap: 8px; padding: 12px 10px; border: 1px solid rgb(255 163 109 / 24%); border-radius: 7px; background: rgb(255 144 74 / 7%); animation: audit-finding-reveal var(--ai-build-cycle) ease-in-out infinite; }
.audit-finding:nth-child(2) { animation-delay: .2s; }
.audit-finding:nth-child(3) { animation-delay: .4s; }
.audit-finding__icon { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 5px; background: rgb(255 171 116 / 12%); color: #ffb078; font-size: 13px; }
.audit-finding > div { min-width: 0; }
.audit-finding strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.3; }
.audit-finding small { display: block; margin-top: 4px; font-family: 'Futura PT Book', sans-serif; font-size: 11px; color: rgb(255 255 255 / 55%); }
.audit-finding__severity { margin-left: auto; padding: 3px 4px; flex-shrink: 0; border-radius: 3px; background: rgb(255 163 109 / 10%); color: #ffb078; font-size: 8px; }
.audit-finding--medium { border-color: rgb(227 199 130 / 20%); background: rgb(227 199 130 / 5%); }
.audit-finding--medium .audit-finding__severity { color: #e3c782; background: rgb(227 199 130 / 10%); }
.audit-patch { margin-top: 14px; overflow: hidden; border: 1px solid rgb(255 255 255 / 12%); border-radius: 7px; background: rgb(18 11 48 / 35%); }
.audit-patch__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid rgb(255 255 255 / 10%); color: rgb(255 255 255 / 55%); font: 10px/1.4 ui-monospace, monospace; }
.audit-patch__bar small { color: #b9ecd8; font: inherit; }
.audit-patch > code { display: block; padding: 6px 10px; font: 10px/1.4 ui-monospace, monospace; }
.audit-patch__before { margin-top: 8px; color: #e1a58f; text-decoration: line-through; background: rgb(225 165 143 / 7%); }
.audit-patch__after { color: #b9ecd8; background: rgb(155 222 199 / 7%); animation: audit-patch-reveal var(--ai-build-cycle) ease-out infinite; }
.audit-patch__after:nth-of-type(3) { animation-delay: .2s; }
.audit-patch__after:nth-of-type(4) { animation-delay: .4s; }
.audit-patch__after:last-child { margin-bottom: 8px; }
.audit-fix-list { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 12px; color: #b9ecd8; font-size: 12px; }
.audit-result { display: flex; flex-direction: column; align-items: center; text-align: center; }
.audit-result__seal { width: 80px; height: 80px; margin: 0 0 10px; }
.audit-result__seal svg { display: block; width: 100%; height: 100%; }
.audit-result__ring-track, .audit-result__ring { stroke-width: 1.5; }
.audit-result__ring-track { stroke: rgb(185 236 216 / 12%); }
.audit-result__ring { stroke: #b9ecd8; stroke-dasharray: 258; transform: rotate(-90deg); transform-origin: center; animation: audit-result-ring var(--ai-build-cycle) ease-out infinite; }
.audit-result__shield, .audit-result__check { stroke: #b9ecd8; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.audit-result__check { stroke-width: 2.5; stroke-dasharray: 30; animation: audit-result-check var(--ai-build-cycle) ease-out infinite; }
.audit-result .ai-build__stage-title { font-size: 20px; }
.audit-result .ai-build__muted { font-size: 13px; }
.audit-result__summary { display: flex; align-items: center; gap: 13px; padding: 12px; margin-top: 19px; border: 1px solid rgb(185 236 216 / 25%); border-radius: 7px; background: rgb(185 236 216 / 6%); }
.audit-result__summary > strong { font-size: 27px; line-height: 1; color: #b9ecd8; white-space: nowrap; }
.audit-result__summary > strong > span { margin-left: 3px; font-size: 13px; color: rgb(185 236 216 / 55%); }
.audit-result__summary > span:not(.audit-result__status) { max-width: 170px; font-size: 12px; line-height: 1.3; }
.audit-result__status { margin-left: auto; color: #b9ecd8; font-size: 20px; }
.audit-result__checks { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 11px; color: #b9ecd8; }
.audit-note--success { justify-content: center; text-align: center; color: #b9ecd8; }

@keyframes audit-scan-beam { 0% { opacity: 0; transform: translateY(0); } 2% { opacity: 1; } 21% { opacity: 1; transform: translateY(180px); } 24%, 100% { opacity: 0; transform: translateY(180px); } }
@keyframes audit-scan-pulse { 0%, 3%, 24%, 100% { opacity: .25; } 9%, 17% { opacity: 1; } }
@keyframes audit-finding-reveal { 0%, 23% { opacity: 0; transform: translateY(5px); } 29%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes audit-patch-reveal { 0%, 48% { opacity: 0; transform: translateX(-5px); } 56%, 98% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes audit-result-ring { 0%, 73% { stroke-dashoffset: 258; } 84%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 258; } }
@keyframes audit-result-check { 0%, 79% { stroke-dashoffset: 30; } 87%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }

@media (max-width: 359px) {
    .ai-build--audit .ai-build__title { font-size: 24px; }
    .ai-build--audit .ai-build__stage-label { font-size: 9px; letter-spacing: .4px; }
    .audit-finding { padding: 10px 8px; gap: 6px; }
    .audit-finding__severity { font-size: 7px; }
    .audit-patch > code { font-size: 9px; padding-inline: 8px; }
    .audit-result__summary { gap: 8px; }
}
