/* Scoped component styles. No reset, remote fonts, or global page styling. */
:where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress) {
  --kc-blue: #2177a6;
  --kc-yellow: #fcce19;
  --kc-paper: #fff;
  --kc-ink: #233944;
  --kc-muted: #667d89;
  --kc-line: #e0e9ee;
  --kc-placeholder: #e5ecf0;
  --kc-sheen: #ffffff70;
  --kc-row-height: 56px;
  --kc-form-height: 72px;
  font-family: inherit;
  color: var(--kc-ink);
  box-sizing: border-box;
}
@media(prefers-color-scheme:dark) {
  :where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress):not([theme="light"]) {
    --kc-paper:#16232d;--kc-ink:#e9f1f5;--kc-muted:#a1b6c3;
    --kc-line:#314651;--kc-placeholder:#314754;--kc-sheen:#c1d7e512;
  }
}
:where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress)[theme="dark"] {
  --kc-paper:#16232d;--kc-ink:#e9f1f5;--kc-muted:#a1b6c3;
  --kc-line:#314651;--kc-placeholder:#314754;--kc-sheen:#c1d7e512;
}
:where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress)[hidden],
:where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress):not(:defined) { display:none!important; }
:where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress) * { box-sizing:border-box; }
:where(kryyvo-splash,kryyvo-busy) .kc-logo { display:block;flex-shrink:0; }
:where(kryyvo-splash,kryyvo-busy) svg { display:block;width:100%;height:100%;overflow:visible; }
:where(kryyvo-splash,kryyvo-busy) .kc-guide { fill:none;stroke:var(--kc-yellow);stroke-opacity:.18;stroke-width:1;vector-effect:non-scaling-stroke; }
:where(kryyvo-splash,kryyvo-busy) .kc-trace { fill:none;stroke:var(--kc-yellow);stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0; }
:where(kryyvo-splash,kryyvo-busy) .kc-fill { fill:var(--kc-yellow); }
.kc-sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }

/* 1. Launch: remain visible until the app reports readiness. */
kryyvo-splash { display:grid;place-items:center;position:fixed;inset:0;z-index:var(--kc-splash-z,10000);background:var(--kc-paper); }
kryyvo-splash[inline] { position:relative;inset:auto;z-index:auto;min-height:278px; }
kryyvo-splash .kc-splash-panel { padding:28px 20px;text-align:center; }
kryyvo-splash .kc-kicker { font-size:11px;letter-spacing:1.2px;color:var(--kc-muted);margin-bottom:24px; }
kryyvo-splash .kc-brand { display:flex;justify-content:center;align-items:center;gap:17px; }
kryyvo-splash .kc-logo { width:86px;height:86px; }
kryyvo-splash .kc-wordmark { font-size:30px;font-weight:500;line-height:1.1;letter-spacing:-1px;text-align:left; }
kryyvo-splash .kc-subtitle { display:block;font-size:11px;font-weight:400;line-height:1.4;letter-spacing:0;color:var(--kc-muted);margin-top:8px; }
kryyvo-splash .kc-splash-label { margin-top:28px;min-height:16px;font-size:11px;color:var(--kc-muted); }
kryyvo-splash .kc-launch-line { width:32px;height:2px;overflow:hidden;background:var(--kc-line);margin:12px auto 0; }
kryyvo-splash .kc-launch-line i { display:block;height:100%;background:var(--kc-blue);transform-origin:left; }
kryyvo-splash[data-state="entering"] .kc-trace { animation:kc-contour-draw 1.6s cubic-bezier(.4,0,.2,1) both; }
kryyvo-splash[data-state="entering"] .kc-fill { animation:kc-contour-fill 1.6s ease both; }
kryyvo-splash[data-state="entering"] .kc-wordmark { animation:kc-contour-word 1.6s cubic-bezier(.22,1,.36,1) both; }
kryyvo-splash[data-state="entering"] .kc-launch-line i { animation:kc-contour-line 1.6s cubic-bezier(.4,0,.2,1) both; }
kryyvo-splash[data-state="leaving"] { animation:kc-contour-exit .18s ease both;pointer-events:none; }

/* 2. Busy: 24px default. The full faint outline remains recognizable. */
kryyvo-busy { display:inline-flex;align-items:center;gap:8px;min-height:24px;font-size:12px;color:var(--kc-muted); }
kryyvo-busy .kc-logo { width:var(--kc-busy-size,24px);height:var(--kc-busy-size,24px); }
kryyvo-busy .kc-guide { stroke-opacity:.32;stroke-width:.8; }
kryyvo-busy .kc-fill { opacity:0; }
kryyvo-busy .kc-trace { stroke-width:1.1;stroke-dasharray:.3 .7;animation:kc-contour-busy 1.6s linear infinite; }
kryyvo-busy[icon-only] .kc-busy-label { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }

/* 3. Skeleton: reserve the same dimensions as the eventual content. */
kryyvo-skeleton { display:block;width:100%; }
kryyvo-skeleton .kc-skeleton-row { min-height:var(--kc-row-height);display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--kc-line);position:relative;overflow:hidden; }
kryyvo-skeleton .kc-skeleton-row:last-child { border-bottom:0; }
kryyvo-skeleton .kc-skeleton-row:after { content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent,var(--kc-sheen),transparent);transform:translateX(-100%);animation:kc-contour-shimmer 2.1s ease-in-out infinite; }
kryyvo-skeleton .kc-skeleton-icon { display:block;width:30px;height:34px;border-radius:6px;background:var(--kc-placeholder);flex-shrink:0; }
kryyvo-skeleton .kc-skeleton-copy { flex:1;display:grid;gap:7px; }
kryyvo-skeleton .kc-skeleton-copy i { display:block;height:7px;width:58%;background:var(--kc-placeholder);border-radius:3px; }
kryyvo-skeleton .kc-skeleton-copy i:last-child { width:82%;height:6px; }
kryyvo-skeleton .kc-skeleton-row:nth-child(3n+2) .kc-skeleton-copy i:last-child { width:66%; }
kryyvo-skeleton .kc-skeleton-row:nth-child(3n+3) .kc-skeleton-copy i:last-child { width:74%; }
kryyvo-skeleton .kc-skeleton-amount { display:block;width:49px;height:8px;background:var(--kc-placeholder);border-radius:3px; }
kryyvo-skeleton[data-variant="form"] .kc-skeleton-row { min-height:var(--kc-form-height);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;border:0; }
kryyvo-skeleton .kc-skeleton-caption { display:block;height:7px;width:28%;background:var(--kc-placeholder);border-radius:3px; }
kryyvo-skeleton .kc-skeleton-input { display:block;height:34px;width:100%;background:var(--kc-placeholder);border-radius:6px; }

/* 4. Navigation: indeterminate by default; value is for real percentages only. */
kryyvo-progress { display:block;position:fixed;inset:0 0 auto;z-index:var(--kc-progress-z,9999);height:2px;pointer-events:none; }
kryyvo-progress[inline] { position:absolute;z-index:2; }
kryyvo-progress .kc-progress-track { height:2px;overflow:hidden;position:relative;background:var(--kc-line); }
kryyvo-progress .kc-progress-travel { position:absolute;inset:0 auto 0 0;width:40%;background:linear-gradient(90deg,transparent,var(--kc-blue) 25%,var(--kc-blue) 91%,var(--kc-yellow) 91%);animation:kc-contour-travel 1.6s cubic-bezier(.4,0,.2,1) infinite; }
kryyvo-progress .kc-progress-value { display:none;position:absolute;inset:0;background:var(--kc-blue);transform:scaleX(var(--kc-progress,0));transform-origin:left;transition:transform .16s ease-out; }
kryyvo-progress .kc-progress-value:after { content:"";position:absolute;inset:0 0 0 auto;width:6px;background:var(--kc-yellow); }
kryyvo-progress[data-determinate] .kc-progress-travel { display:none; }
kryyvo-progress[data-determinate] .kc-progress-value { display:block; }
kryyvo-progress .kc-progress-finish { display:none;height:2px;background:var(--kc-blue);transform-origin:left; }
kryyvo-progress[data-state="complete"] .kc-progress-travel,
kryyvo-progress[data-state="complete"] .kc-progress-value { display:none; }
kryyvo-progress[data-state="complete"] .kc-progress-finish { display:block;animation:kc-contour-complete .48s ease-out both; }

@keyframes kc-contour-draw { 0%,8%{stroke-dashoffset:1;opacity:1}68%,83%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0} }
@keyframes kc-contour-fill { 0%,65%{opacity:0}92%,100%{opacity:1} }
@keyframes kc-contour-word { 0%,35%{opacity:0;transform:translateY(3px)}78%,100%{opacity:1;transform:translateY(0)} }
@keyframes kc-contour-line { from{transform:scaleX(0)}to{transform:scaleX(1)} }
@keyframes kc-contour-exit { to{opacity:0} }
@keyframes kc-contour-busy { to{stroke-dashoffset:-1} }
@keyframes kc-contour-shimmer { 0%,12%{transform:translateX(-100%)}88%,100%{transform:translateX(100%)} }
@keyframes kc-contour-travel { from{transform:translateX(-110%)}to{transform:translateX(355%)} }
@keyframes kc-contour-complete { 0%{transform:scaleX(var(--kc-progress,.7));opacity:1}55%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0} }
@media(prefers-reduced-motion:reduce) {
  :where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress),
  :where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress) *,
  :where(kryyvo-splash,kryyvo-busy,kryyvo-skeleton,kryyvo-progress) *:after { animation:none!important;transition:none!important; }
  kryyvo-splash .kc-trace { opacity:0; }
  kryyvo-splash .kc-fill { opacity:1; }
  kryyvo-busy .kc-trace { stroke-dasharray:none; }
  kryyvo-progress .kc-progress-travel { width:100%;background:var(--kc-blue);opacity:.45; }
}
