/* Install guidance — VK-style visualization: big bleeding phone, hand-drawn marks, live scenes */
.stam-ui .ig-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;color:hsl(var(--foreground));font-family:inherit}
.stam-ui dialog.ig-overlay{margin:0;padding:0;border:0;width:100%;height:100%;max-width:none;max-height:none;background:transparent}
.stam-ui dialog::backdrop{background:rgba(0,0,0,.55);animation:ig-fade .3s ease}
.stam-ui .ig-sheet{position:relative;box-sizing:border-box;width:min(100%,480px);max-height:92svh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:10px 20px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:hsl(var(--background));color:hsl(var(--foreground));display:flex;flex-direction:column;gap:12px;animation:ig-enter .48s cubic-bezier(.22,1.28,.32,1)}
.stam-ui .ig-sheet h2{font-size:22px;line-height:1.25;margin:2px 0 0;text-align:center}
.stam-ui .ig-grip{width:40px;height:5px;min-height:5px;background:currentColor;opacity:.2;border-radius:4px;margin:0 auto;touch-action:none;padding:8px 0;background-clip:content-box;box-sizing:content-box;cursor:grab}
.stam-ui .ig-close{position:absolute;right:14px;top:14px;z-index:2;opacity:.6}
.stam-ui .ig-hint{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;margin:0;font-size:14px;line-height:1.5;text-align:center;opacity:.78}
.stam-ui .ig-hint .ig-mini{width:18px;height:18px;vertical-align:-4px}
.stam-ui .ig-sheet>.sg-button{flex-shrink:0}

/* illustration: phone bleeds past the container, like the VK reference */
.stam-ui .ig-ill-card{display:block;background:transparent;border-radius:0;padding:0;overflow:hidden}
.stam-ui .ig-ill{display:block;width:150%;max-width:none;height:auto;margin-left:-25%}
.stam-ui .ig-sheet .ig-ill-card{margin:0 -20px}
.stam-ui .ig-sheet .ig-ill{width:122%;margin-left:-11%}

/* phone + screen primitives (theme aware) */
.stam-ui .ig-ill .ig-f2{fill:none;stroke:hsl(var(--foreground));stroke-width:9}
.stam-ui .ig-ill .ig-s2{fill:hsl(var(--background))}
.stam-ui .ig-ill .ig-di{fill:hsl(var(--foreground))}
.stam-ui .ig-ill .ig-sk{fill:hsl(var(--foreground)/.1)}
.stam-ui .ig-ill .ig-sk-c{fill:hsl(var(--foreground)/.12)}
.stam-ui .ig-ill .ig-safbar{fill:hsl(var(--foreground)/.05)}
.stam-ui .ig-ill .ig-pill{fill:hsl(var(--foreground)/.09)}
.stam-ui .ig-ill .ig-cmp{fill:none;stroke:hsl(var(--foreground)/.55);stroke-width:2}
.stam-ui .ig-ill .ig-cmp-f{fill:hsl(var(--foreground)/.55)}
.stam-ui .ig-ill .ig-t2{font:600 13px inherit;fill:hsl(var(--foreground)/.55)}
.stam-ui .ig-ill .ig-t3{font:600 14px inherit;fill:hsl(var(--foreground))}
.stam-ui .ig-ill .ig-t4{font:600 12.5px inherit;fill:hsl(var(--foreground))}
.stam-ui .ig-ill .ig-tool{fill:none;stroke:hsl(var(--foreground)/.6);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.stam-ui .ig-ill .ig-tool-dim{opacity:.35}
.stam-ui .ig-ill .ig-tool-hot{fill:none;stroke:hsl(var(--foreground));stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.stam-ui .ig-ill .ig-dim{fill:#000;opacity:.22}
.stam-ui .ig-ill .ig-sheet2{fill:hsl(var(--muted)/.6);stroke:hsl(var(--foreground)/.05)}
.stam-ui .ig-ill .ig-grip2{fill:hsl(var(--foreground)/.25)}
.stam-ui .ig-ill .ig-rowhot{fill:hsl(var(--background));stroke:hsl(var(--foreground)/.08)}
.stam-ui .ig-ill .ig-chev{fill:none;stroke:#2D7FF9;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;animation:ig-chev 1.8s ease-in-out infinite}
.stam-ui .ig-ill .ig-plus2{fill:none;stroke:hsl(var(--foreground)/.65);stroke-width:2.2;stroke-linecap:round}
.stam-ui .ig-ill .ig-wall{fill:hsl(var(--foreground)/.03)}
.stam-ui .ig-ill .ig-grid{fill:hsl(var(--foreground)/.08)}
.stam-ui .ig-ill .ig-iconbg{fill:hsl(var(--background));stroke:hsl(var(--foreground)/.08)}
.stam-ui .ig-ill .ig-menu{fill:hsl(var(--card));stroke:hsl(var(--foreground)/.06)}
.stam-ui .ig-ill .ig-cta2{fill:#2D7FF9}
.stam-ui .ig-ill .ig-ct2{font:600 14px inherit;fill:#fff}
.stam-ui .ig-ill .ig-dots circle{fill:hsl(var(--foreground)/.7)}
.stam-ui .ig-ill .ig-done{fill:none;stroke:#2D7FF9;stroke-width:8}
.stam-ui .ig-ill .ig-done-p{fill:none;stroke:#2D7FF9;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:120;stroke-dashoffset:120;animation:ig-draw .7s .35s ease forwards}

/* hand-drawn blue marks */
.stam-ui .ig-ill .ig-arrow{fill:none;stroke:#2D7FF9;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:480;stroke-dashoffset:480;animation:ig-draw 1.5s .35s ease forwards}
.stam-ui .ig-ill .ig-arrow-g{animation:ig-float 3.2s 2s ease-in-out infinite}
.stam-ui .ig-ill .ig-spark path{fill:none;stroke:#2D7FF9;stroke-width:7;stroke-linecap:round;stroke-dasharray:40;stroke-dashoffset:40;animation:ig-draw .45s .9s ease forwards}
.stam-ui .ig-ill .ig-spark{animation:ig-sparkpulse 2.4s 1.6s ease-in-out infinite}

/* live bits */
.stam-ui .ig-ill .ig-pulse{fill:#2D7FF9;opacity:.18;transform-box:fill-box;transform-origin:center;animation:ig-pulse 1.8s ease-in-out infinite}
.stam-ui .ig-ill .ig-drift{animation:ig-drift 4.5s ease-in-out infinite}
.stam-ui .ig-ill .ig-sun{transform-box:fill-box;transform-origin:center;animation:ig-sun 36s linear infinite}
.stam-ui .ig-ill .ig-sun line{stroke:#BBD6FF;stroke-width:7;stroke-linecap:round}
.stam-ui .ig-ill .ig-pop{transform-box:fill-box;transform-origin:center;animation:ig-pop .7s cubic-bezier(.2,1.4,.3,1) both}

/* popup 3-scene loop */
.stam-ui .ig-ill .ig-sc{opacity:0;animation:ig-cyc 9s linear infinite}
.stam-ui .ig-ill .ig-sc1{animation-delay:0s}
.stam-ui .ig-ill .ig-sc2{animation-delay:3s}
.stam-ui .ig-ill .ig-sc3{animation-delay:6s}

@keyframes ig-fade{from{opacity:0}}
@keyframes ig-enter{from{transform:translateY(100%);opacity:.6}to{transform:translateY(0);opacity:1}}
@keyframes ig-draw{to{stroke-dashoffset:0}}
@keyframes ig-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes ig-sparkpulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.18);opacity:.75}}
@keyframes ig-pulse{0%,100%{transform:scale(1);opacity:.2}50%{transform:scale(1.35);opacity:.06}}
@keyframes ig-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes ig-chev{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}
@keyframes ig-sun{to{transform:rotate(360deg)}}
@keyframes ig-pop{0%{transform:scale(.4);opacity:0}55%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
@keyframes ig-cyc{0%{opacity:0}2.5%{opacity:1}31%{opacity:1}33.5%{opacity:0}100%{opacity:0}}

.stam-ui [data-paused=true] *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.stam-ui .ig-overlay *,.stam-ui .ig-guide *{animation:none!important}.stam-ui .ig-ill .ig-arrow,.stam-ui .ig-ill .ig-done-p,.stam-ui .ig-ill .ig-spark path{stroke-dashoffset:0}.stam-ui .ig-ill .ig-sc{opacity:0}.stam-ui .ig-ill .ig-sc1{opacity:1}}

/* ---------- full guide page ---------- */
.stam-ui .ig-guide-overlay{position:fixed;inset:0;z-index:2147483001;overflow:auto;overscroll-behavior:contain;background:hsl(var(--background));color:hsl(var(--foreground))}
.stam-ui dialog.ig-guide-overlay{margin:0;padding:0;border:0;width:100%;height:100%;max-width:none;max-height:none}
.stam-ui .ig-guide{max-width:640px;margin:auto;padding:28px 20px calc(48px + env(safe-area-inset-bottom));line-height:1.55;min-width:0;overflow-wrap:anywhere;color:hsl(var(--foreground));font-family:inherit}
.stam-ui .ig-hero .ig-app-icon img{width:84px;height:84px;border-radius:20px;display:block;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.stam-ui .ig-guide h1{font-size:30px;line-height:1.15;margin:18px 0 8px}
.stam-ui .ig-hero .ig-muted,.stam-ui .ig-muted{opacity:.72;margin:0;font-size:15px}
.stam-ui .ig-platform{display:flex;gap:8px;margin:24px 0 0}
.stam-ui .ig-platform>.sg-button{flex:1;max-width:100%;min-width:0;height:auto;white-space:normal}
.stam-ui .ig-summary{background:hsl(var(--primary)/.09);border-radius:20px;padding:18px;margin:16px 0 8px}
.stam-ui .ig-overview{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.stam-ui .ig-overview li{display:flex;align-items:center;gap:12px;font-size:15px}
.stam-ui .ig-num{flex:0 0 26px;height:26px;border-radius:50%;background:hsl(var(--background));display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.stam-ui .ig-ov-text{flex:1;min-width:0}
.stam-ui .ig-mini{width:24px;height:24px;flex:0 0 auto}
.stam-ui .ig-mini .ig-mi-o{fill:none;stroke:hsl(var(--foreground)/.55);stroke-width:1.6}
.stam-ui .ig-mini .ig-mi-p{fill:none;stroke:hsl(var(--foreground)/.55);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.stam-ui .ig-mini .ig-mi-f{fill:hsl(var(--foreground)/.55)}
.stam-ui .ig-cta-btn{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;margin-top:16px;padding:13px 18px;border:0;border-radius:14px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));font:inherit;font-size:16px;font-weight:600;text-decoration:none;cursor:pointer;min-height:48px}
.stam-ui .ig-steps{margin-top:34px}
.stam-ui .ig-guide-step{margin:44px 0 0}
.stam-ui .ig-guide-step .ig-ill-card{margin:0 -20px 18px}
.stam-ui .ig-guide-step h2{font-size:26px;line-height:1.2;margin:0 0 8px}
.stam-ui .ig-step-copy{margin:0;font-size:15px;opacity:.85}
.stam-ui .ig-other{display:flex;align-items:center;justify-content:space-between;margin:36px 0 0;padding:16px 18px;background:hsl(var(--muted)/.55);border-radius:16px;font-size:16px;font-weight:600;color:inherit;cursor:pointer}
.stam-ui .ig-other::after{content:'›';font-size:20px;opacity:.5}
.stam-ui .ig-faq-title{font-size:22px;margin:36px 0 8px}
.stam-ui .ig-faq-item{background:hsl(var(--muted)/.55);border-radius:16px;margin:10px 0;padding:0}
.stam-ui .ig-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:16px 18px;font-size:16px;font-weight:600;list-style:none}
.stam-ui .ig-faq-item summary::-webkit-details-marker{display:none}
.stam-ui .ig-faq-plus{flex:0 0 auto;font-size:22px;font-weight:400;opacity:.55;transition:transform .2s}
.stam-ui .ig-faq-item[open] .ig-faq-plus{transform:rotate(45deg)}
.stam-ui .ig-faq-item p{margin:0;padding:0 18px 16px;font-size:15px;opacity:.8}
.stam-ui .ig-help{margin:28px 0 0;text-align:center;font-size:15px}
.stam-ui .ig-support{color:hsl(var(--primary));font-weight:600;text-decoration:none}
.stam-ui .ig-back{width:100%;margin-top:20px}
.stam-ui .ig-guide>.sg-button{max-width:100%;min-width:0;height:auto;white-space:normal;overflow-wrap:anywhere}
