/*! Copyright (c) 2026 OVAN (https://ovan.dev). All rights reserved. */
:root{
	--ovan-card:#ffffff;
	--ovan-text:#0f1226;
	--ovan-muted:#6a6f8c;
	--ovan-line:rgba(15,18,38,.12);
	--ovan-chip:rgba(79,70,229,.09);
}
@media (prefers-color-scheme:dark){
	:root{
		--ovan-card:#171a30;
		--ovan-text:#eef0ff;
		--ovan-muted:#a5a9c9;
		--ovan-line:rgba(255,255,255,.14);
		--ovan-chip:rgba(139,130,255,.16);
	}
}

html.ovan-pwa-feel{overscroll-behavior-y:contain;-webkit-tap-highlight-color:transparent}
html.ovan-pwa-feel a,html.ovan-pwa-feel img{-webkit-touch-callout:none}

#ovan-pwa-splash{display:none;position:fixed;inset:0;z-index:2147483000;flex-direction:column;align-items:center;justify-content:center;gap:16px;font:600 18px/1.4 system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;transition:opacity .35s ease}
#ovan-pwa-splash img{max-width:140px;max-height:140px;height:auto;width:auto;border-radius:26px}
#ovan-pwa-splash.is-hidden{opacity:0;pointer-events:none}
html.ovan-pwa-first #ovan-pwa-splash{display:flex;animation:ovan-failsafe 0s linear 4s forwards}
@keyframes ovan-failsafe{to{opacity:0;visibility:hidden}}

:where(.ovan-layer,.ovan-pill) button{all:unset;box-sizing:border-box;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ovan-layer button:focus-visible,.ovan-pill button:focus-visible{outline:2px solid var(--ovan-bg);outline-offset:2px}
.ovan-layer,.ovan-pill,.ovan-toast{font:14px/1.6 system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
.ovan-ic{display:inline-flex;flex:none}
.ovan-ic--sm svg{width:16px;height:16px}

.ovan-layer{position:fixed;inset:0;z-index:2147483001;pointer-events:none}
.ovan-backdrop{position:absolute;inset:0;background:rgba(8,10,25,.42);opacity:0;transition:opacity .3s;pointer-events:auto}
.ovan-layer.is-open .ovan-backdrop{opacity:1}
.ovan-sheet{position:absolute;left:0;right:0;bottom:0;margin:0 auto;max-width:440px;box-sizing:border-box;padding:20px 18px calc(18px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0;background:var(--ovan-card);color:var(--ovan-text);box-shadow:0 -10px 40px rgba(8,10,25,.28);transform:translateY(110%);transition:transform .38s cubic-bezier(.2,.9,.25,1);pointer-events:auto;text-align:start}
.ovan-layer.is-open .ovan-sheet{transform:none}
@media (min-width:640px){.ovan-sheet{bottom:24px;border-radius:24px}}
.ovan-sheet__head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.ovan-sheet__icon{width:52px;height:52px;border-radius:13px;object-fit:cover;flex:none;box-shadow:0 2px 10px rgba(0,0,0,.16)}
.ovan-sheet__icon--glyph{display:flex;align-items:center;justify-content:center;background:var(--ovan-bg);color:var(--ovan-fg)}
.ovan-sheet__meta{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
.ovan-sheet__meta strong{font-size:16px;line-height:1.5;font-weight:800}
.ovan-sheet__meta small{color:var(--ovan-muted);font-size:13px;line-height:1.6}
.ovan-sheet__steps{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:8px}
.ovan-sheet__steps[hidden]{display:none}
.ovan-sheet__steps li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--ovan-chip);margin:0}
.ovan-sheet__steps li b{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--ovan-bg);color:var(--ovan-fg);font-size:12px;flex:none}
.ovan-sheet__steps li span:not(.ovan-ic){flex:1;font-weight:600;font-size:13.5px}
.ovan-sheet__steps li .ovan-ic{color:var(--ovan-bg)}
.ovan-sheet__actions{display:flex;gap:10px}
.ovan-btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:14px;font-weight:800;font-size:15px;text-align:center}
.ovan-btn--primary{flex:1.6;background:var(--ovan-bg);color:var(--ovan-fg);box-shadow:0 6px 18px rgba(0,0,0,.2);transition:transform .15s}
.ovan-btn--primary:active{transform:scale(.98)}
.ovan-btn--ghost{flex:1;color:var(--ovan-text);background:transparent;box-shadow:inset 0 0 0 1.5px var(--ovan-line)}
.ovan-btn--ghost:hover{background:var(--ovan-chip)}

.ovan-pill{position:fixed;z-index:99990;bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;padding:4px;border-radius:999px;background:var(--ovan-bg);color:var(--ovan-fg);box-shadow:0 10px 28px rgba(0,0,0,.3);font-weight:700;animation:ovan-in .4s ease both}
.ovan-pos-bottom-right{right:16px}
.ovan-pos-bottom-left{left:16px}
.ovan-pos-bottom-center{left:50%;transform:translateX(-50%)}
.ovan-pill__btn{display:flex;align-items:center;gap:8px;padding:11px 18px 11px 16px;border-radius:999px;color:inherit}
.ovan-pill__x{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.7;font-size:18px;color:inherit}
.ovan-pill__x:hover{opacity:1}
@keyframes ovan-in{from{opacity:0;margin-bottom:-14px}to{opacity:1;margin-bottom:0}}

.ovan-toast{position:fixed;z-index:2147483002;top:calc(14px + env(safe-area-inset-top,0px));left:50%;max-width:calc(100% - 32px);padding:10px 18px;border-radius:999px;color:#fff;font-weight:700;box-shadow:0 10px 28px rgba(0,0,0,.3);transform:translate(-50%,-160%);transition:transform .35s cubic-bezier(.2,.9,.25,1);pointer-events:none}
.ovan-toast.is-on{transform:translate(-50%,0)}
.ovan-toast--off{background:#1f2937}
.ovan-toast--off::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#f59e0b;margin-inline-end:8px;animation:ovan-blink 1.4s ease-in-out infinite}
.ovan-toast--on{background:#059669}
@keyframes ovan-blink{50%{opacity:.25}}

.ovan-bar{position:fixed;z-index:2147483002;top:0;left:0;height:3px;width:0;opacity:0;background:var(--ovan-bg);box-shadow:0 0 8px var(--ovan-bg);pointer-events:none}
.ovan-bar.is-on{opacity:1;animation:ovan-bar 9s cubic-bezier(.1,.7,.2,1) forwards}
@keyframes ovan-bar{to{width:88%}}

@media (prefers-reduced-motion:reduce){
	.ovan-pill,#ovan-pwa-splash,.ovan-sheet,.ovan-backdrop,.ovan-toast,.ovan-bar{animation:none!important;transition:none!important}
}
