.ai-photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #222; }
.ai-photo canvas { display: block; width: 100%; height: auto; }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.scan.on { opacity: 1; }
.scan-line { position: absolute; left: 0; right: 0; height: 70px; top: -70px; background: linear-gradient(180deg, rgba(110, 220, 255, 0), rgba(110, 220, 255, .45)); border-bottom: 2px solid #8ff0ff; box-shadow: 0 6px 18px rgba(110, 230, 255, .8); }
.scan.on .scan-line { animation: scanY 1.4s linear infinite; }
@keyframes scanY { from { top: -70px; } to { top: 100%; } }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(140, 240, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 240, 255, .14) 1px, transparent 1px); background-size: 28px 28px; }
.ds-marks { position: absolute; inset: 0; pointer-events: none; }
.ds-mark { position: absolute; border: 2.5px solid #ff6b5b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 107, 91, .25); animation: markIn .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.ds-mark span { position: absolute; left: 100%; top: -6px; margin-left: 6px; white-space: nowrap; background: #ff6b5b; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
@keyframes markIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.up-btn { cursor: pointer; }
.ai-go { margin-top: 16px; height: 56px; font-size: 18px; position: relative; overflow: hidden; }
.ai-go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.6s ease infinite; }
@keyframes shine { 0% { left: -50%; } 60%, 100% { left: 130%; } }
.ai-steps { display: flex; flex-direction: column; gap: 7px; margin: 12px 4px 0; }
.ai-step { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); animation: pageIn .25s ease; }
.ai-step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfc6ff; border-top-color: #7b61ff; animation: spin .7s linear infinite; flex: none; position: relative; }
.ai-step.ok i { animation: none; border: 0; background: #2fae6b; }
.ai-step.ok i::after { content: "✓"; color: #fff; font-size: 12px; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; }
.ds-res { margin-top: 14px; animation: popIn .4s ease; }
.ds-level { padding: 12px 14px; border-radius: 16px; font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.ds-level.urgent { background: var(--red); color: #fff; } .ds-level.watch { background: var(--orange-l); color: #8a5408; }
.ds-card { padding: 14px 16px; margin-top: 10px; }
.ds-card h4 { font-size: 16px; margin-bottom: 8px; }
.ds-find { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-find span { background: var(--sky-l); color: #2c6aa5; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.cf { margin: 9px 0; }
.cf-t { display: flex; justify-content: space-between; font-size: 15px; } .cf-t b { font-weight: 800; color: #5443d8; }
.cf-bar { height: 10px; border-radius: 5px; background: #efecfb; overflow: hidden; margin-top: 4px; }
.cf-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #8f7cff, #43a6f3); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.ds-steps2 { padding-left: 0; list-style: none; counter-reset: s; }
.ds-steps2 li { counter-increment: s; display: flex; gap: 10px; font-size: 15px; line-height: 1.55; padding: 5px 0; }
.ds-steps2 li::before { content: counter(s); width: 24px; height: 24px; border-radius: 8px; background: var(--green-l); color: var(--green-d); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.ds-prev { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.vet-warn { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: #fff0ee; border: 2px solid #f19a90; }
.vet-warn b { display: block; color: #b3261e; font-size: 17px; }
.vet-warn p { font-size: 14px; color: #8a3a32; margin: 4px 0 10px; line-height: 1.55; }
.vet-warn .btn { background: #d0524a; color: #fff; height: 46px; }
