/* =====================================================================================================
   EVIE · v8 design system (2026-11-22)
   Dark, minimal, Apple-like surfaces with real depth: layered shadows (ambient + key light), a specular
   top highlight, pointer-following light (set by evie-v8.js as --lx/--ly) and a 3D-lit background scene.
   Loaded LAST. Scoped to the dark theme so the light theme keeps its own look.
   ===================================================================================================== */
:root{
  --v8-bg:#04060c;--v8-bg-2:#070b16;
  --v8-surface:rgba(18,22,34,.72);--v8-surface-2:rgba(26,31,46,.78);--v8-surface-3:rgba(34,40,58,.82);
  --v8-stroke:rgba(255,255,255,.08);--v8-stroke-hi:rgba(255,255,255,.16);--v8-stroke-top:rgba(255,255,255,.22);
  --v8-text:#f5f7ff;--v8-muted:#9aa4bd;--v8-faint:#6b7591;
  --v8-accent:#5aa9ff;--v8-accent-2:#8b7bff;--v8-cyan:#62f0ff;--v8-good:#3ddc97;--v8-warn:#ffb547;--v8-bad:#ff5c7a;
  --v8-grad:linear-gradient(135deg,#6fb6ff 0%,#8b7bff 55%,#b07bff 100%);
  --v8-r-xl:28px;--v8-r-lg:22px;--v8-r-md:16px;--v8-r-sm:12px;
  --v8-shadow-1:0 1px 0 rgba(255,255,255,.06) inset,0 1px 2px rgba(0,0,0,.4),0 8px 24px -8px rgba(0,0,0,.55);
  --v8-shadow-2:0 1px 0 rgba(255,255,255,.08) inset,0 2px 6px rgba(0,0,0,.35),0 24px 60px -20px rgba(0,0,0,.7);
  --v8-shadow-3:0 1px 0 rgba(255,255,255,.1) inset,0 4px 10px rgba(0,0,0,.35),0 40px 90px -30px rgba(0,0,0,.85);
  --v8-glow:0 0 0 1px rgba(90,169,255,.35),0 10px 40px -10px rgba(90,169,255,.55);
  --v8-ease:cubic-bezier(.2,.8,.2,1);--v8-spring:cubic-bezier(.34,1.56,.64,1);
  --v8-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI Variable Display","Segoe UI",Inter,Roboto,system-ui,sans-serif;
  --v8-mono:ui-monospace,"SF Mono","Cascadia Mono","Segoe UI Mono",Menlo,Consolas,monospace;
  --lx:50%;--ly:0%;
}

/* ---------- 3D-lit background scene (markup injected by evie-v8.js) ---------- */
html.evie-ui:not([data-theme="light"]) body{background:var(--v8-bg)!important;font-family:var(--v8-font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.v8-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:
  radial-gradient(120% 80% at 50% -10%,#0d1630 0%,rgba(4,6,12,0) 60%),
  radial-gradient(90% 70% at 100% 100%,rgba(48,26,92,.45) 0%,rgba(4,6,12,0) 60%),
  linear-gradient(180deg,#05070e 0%,#04060c 100%)}
html[data-theme="light"] .v8-scene{display:none}
.v8-light{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;mix-blend-mode:screen;will-change:transform}
.v8-light.l1{width:46vmax;height:46vmax;left:-12vmax;top:-18vmax;background:radial-gradient(circle,rgba(70,140,255,.55),rgba(70,140,255,0) 65%)}
.v8-light.l2{width:40vmax;height:40vmax;right:-14vmax;top:20vh;background:radial-gradient(circle,rgba(139,123,255,.45),rgba(139,123,255,0) 65%)}
.v8-light.l3{width:34vmax;height:34vmax;left:30vw;bottom:-20vmax;background:radial-gradient(circle,rgba(98,240,255,.22),rgba(98,240,255,0) 65%)}
/* Perspective floor grid: the "lab" horizon. */
.v8-grid{position:absolute;left:-50%;right:-50%;bottom:-6vh;height:62vh;transform-origin:50% 100%;transform:perspective(520px) rotateX(64deg);
  background-image:linear-gradient(rgba(120,170,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(120,170,255,.16) 1px,transparent 1px);background-size:64px 64px;
  -webkit-mask-image:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,0) 78%);mask-image:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,0) 78%);opacity:.35;animation:v8-grid 18s linear infinite}
@keyframes v8-grid{to{background-position:0 64px,0 0}}
.v8-horizon{position:absolute;left:0;right:0;bottom:56vh;height:1px;background:linear-gradient(90deg,transparent,rgba(120,180,255,.45),transparent);box-shadow:0 0 24px 2px rgba(90,169,255,.35);opacity:.35}
.v8-noise{position:absolute;inset:-50%;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.v8-vignette{position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 40%,transparent 55%,rgba(0,0,0,.55) 100%)}
@media (max-width:767px){.v8-grid{height:40vh;opacity:.25}.v8-light{filter:blur(50px)}}
@media (prefers-reduced-motion:reduce){.v8-grid{animation:none}}

/* ---------- Surfaces: every card/panel gets depth + a light that follows the pointer ---------- */
html.evie-ui:not([data-theme="light"]) :is(.panel,.stat-card,.detail-card,.evm-card,.hud-card,.fc-panel,.v8-card,.empty-state){
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.012) 38%,rgba(255,255,255,0)),var(--v8-surface)!important;
  border:1px solid var(--v8-stroke)!important;border-radius:var(--v8-r-lg)!important;box-shadow:var(--v8-shadow-2)!important;
  -webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);position:relative;
  transition:box-shadow .35s var(--v8-ease),border-color .35s var(--v8-ease),transform .45s var(--v8-ease)}
html.evie-ui:not([data-theme="light"]) :is(.panel,.stat-card,.detail-card,.evm-card,.hud-card,.fc-panel,.v8-card)::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:radial-gradient(520px circle at var(--lx,50%) var(--ly,0%),rgba(140,180,255,.10),transparent 42%);opacity:0;transition:opacity .4s var(--v8-ease)}
html.evie-ui:not([data-theme="light"]) :is(.panel,.stat-card,.detail-card,.evm-card,.hud-card,.fc-panel,.v8-card)::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;padding:1px;
  background:linear-gradient(180deg,var(--v8-stroke-top),rgba(255,255,255,.02) 30%,rgba(255,255,255,0) 70%,rgba(255,255,255,.05));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
html.evie-ui:not([data-theme="light"]) :is(.panel,.stat-card,.detail-card,.evm-card,.hud-card,.fc-panel,.v8-card):hover::before{opacity:1}
html.evie-ui:not([data-theme="light"]) :is(.stat-card,.evm-card,.hud-card,.v8-card):hover{border-color:var(--v8-stroke-hi)!important;box-shadow:var(--v8-shadow-3)!important}
html.evie-ui:not([data-theme="light"]) :is(.panel,.stat-card,.detail-card,.evm-card,.hud-card,.fc-panel,.v8-card)>*{position:relative;z-index:1}
html.evie-ui:not([data-theme="light"]) .panel-header h2,html.evie-ui:not([data-theme="light"]) .panel h2{letter-spacing:-.015em;font-weight:650}
html.evie-ui:not([data-theme="light"]) .eyebrow{font-family:var(--v8-mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--v8-accent)!important;opacity:.9}
html.evie-ui:not([data-theme="light"]) #main-content :is(h1,.page-title){letter-spacing:-.03em;font-weight:760;background:linear-gradient(180deg,#fff 30%,#b9c6e6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* ---------- Buttons ---------- */
html.evie-ui:not([data-theme="light"]) .button{border-radius:999px!important;border:1px solid var(--v8-stroke-hi)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03))!important;color:var(--v8-text)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 1px 2px rgba(0,0,0,.45),0 8px 20px -10px rgba(0,0,0,.7)!important;
  font-weight:600;letter-spacing:-.005em;transition:transform .25s var(--v8-spring),box-shadow .3s var(--v8-ease),background .3s var(--v8-ease),border-color .3s var(--v8-ease)!important}
html.evie-ui:not([data-theme="light"]) .button:hover{border-color:rgba(255,255,255,.26)!important;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.05))!important;transform:translateY(-1px)}
html.evie-ui:not([data-theme="light"]) .button:active{transform:translateY(0) scale(.97)}
html.evie-ui:not([data-theme="light"]) .button.primary{background:var(--v8-grad)!important;color:#06091a!important;border-color:transparent!important;
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 -2px 6px rgba(40,20,120,.25) inset,0 10px 30px -8px rgba(110,140,255,.65),0 2px 6px rgba(0,0,0,.35)!important}
html.evie-ui:not([data-theme="light"]) .button.primary:hover{filter:brightness(1.07) saturate(1.05);box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 14px 36px -8px rgba(110,140,255,.8),0 2px 6px rgba(0,0,0,.35)!important}
html.evie-ui:not([data-theme="light"]) :is(.button.danger,.button.destructive){background:linear-gradient(180deg,rgba(255,92,122,.22),rgba(255,92,122,.1))!important;border-color:rgba(255,92,122,.4)!important;color:#ffd3dc!important}
html.evie-ui:not([data-theme="light"]) .icon-button{border-radius:14px!important;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02))!important;border:1px solid var(--v8-stroke)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 6px 16px -8px rgba(0,0,0,.7)!important;transition:transform .25s var(--v8-spring),border-color .3s,background .3s!important}
html.evie-ui:not([data-theme="light"]) .icon-button:hover{border-color:var(--v8-stroke-hi)!important;transform:translateY(-1px)}
html.evie-ui:not([data-theme="light"]) :is(.button,.icon-button,.nav-item,.v8-press):focus-visible{outline:none!important;box-shadow:0 0 0 2px var(--v8-bg),0 0 0 4px rgba(90,169,255,.75)!important}

/* ---------- Chips, tags, tabs (segmented control) ---------- */
html.evie-ui:not([data-theme="light"]) :is(.tag,.evie-chip,.chip){border-radius:999px!important;border:1px solid var(--v8-stroke)!important;background:rgba(255,255,255,.05)!important;color:var(--v8-muted)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset;font-weight:550;letter-spacing:.01em}
html.evie-ui:not([data-theme="light"]) :is(.tabs,.v5-tabs,.kisha-tabs){display:inline-flex;gap:4px;padding:4px!important;border-radius:999px!important;background:rgba(0,0,0,.35)!important;
  border:1px solid var(--v8-stroke)!important;box-shadow:0 1px 0 rgba(255,255,255,.04),inset 0 2px 8px rgba(0,0,0,.45)!important;flex-wrap:wrap;max-width:100%}
html.evie-ui:not([data-theme="light"]) :is(.tabs,.v5-tabs,.kisha-tabs) :is(button,a,[role=tab]){border-radius:999px!important;border:0!important;background:transparent!important;color:var(--v8-muted)!important;
  box-shadow:none!important;min-height:36px;padding:0 14px;font-weight:600;transition:color .25s,background .35s var(--v8-ease),box-shadow .35s var(--v8-ease)!important}
html.evie-ui:not([data-theme="light"]) :is(.tabs,.v5-tabs,.kisha-tabs) :is(button,a,[role=tab]):is(.active,[aria-selected="true"],[aria-current="page"]){
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.07))!important;color:var(--v8-text)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 6px 16px -6px rgba(0,0,0,.7)!important}

/* ---------- Fields ---------- */
html.evie-ui:not([data-theme="light"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){
  border-radius:14px!important;border:1px solid var(--v8-stroke)!important;background:rgba(3,5,10,.55)!important;color:var(--v8-text)!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.45),0 1px 0 rgba(255,255,255,.04)!important;transition:border-color .25s,box-shadow .25s!important;font-family:inherit}
html.evie-ui:not([data-theme="light"]) :is(input,select,textarea):focus{outline:none!important;border-color:rgba(90,169,255,.65)!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.45),0 0 0 4px rgba(90,169,255,.16)!important}
html.evie-ui:not([data-theme="light"]) ::placeholder{color:var(--v8-faint)!important}
html.evie-ui:not([data-theme="light"]) input[type=checkbox],html.evie-ui:not([data-theme="light"]) input[type=radio]{accent-color:var(--v8-accent)}

/* ---------- Sidebar: glass slab, icon tiles, luminous active pill ---------- */
@media (min-width:1024px){
html.evie-ui:not([data-theme="light"]) .sidebar{background:linear-gradient(180deg,rgba(14,18,30,.78),rgba(8,11,20,.86))!important;-webkit-backdrop-filter:blur(30px) saturate(150%);backdrop-filter:blur(30px) saturate(150%);
  border-right:1px solid var(--v8-stroke)!important;box-shadow:1px 0 0 rgba(255,255,255,.03),24px 0 60px -30px rgba(0,0,0,.8)!important}
}
html.evie-ui:not([data-theme="light"]) .sidebar .brand{gap:12px}
html.evie-ui:not([data-theme="light"]) .sidebar .brand-logo{border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 8px 24px -6px rgba(90,169,255,.6)}
html.evie-ui:not([data-theme="light"]) .sidebar .brand-word{letter-spacing:-.02em;font-weight:760}
html.evie-ui:not([data-theme="light"]) .sidebar .brand-version{border-radius:999px;border:1px solid rgba(90,169,255,.35);color:var(--v8-accent);background:rgba(90,169,255,.08);font-family:var(--v8-mono);letter-spacing:.12em}
html.evie-ui:not([data-theme="light"]) .nav-group-label{font-family:var(--v8-mono);font-size:10.5px!important;letter-spacing:.24em!important;color:var(--v8-faint)!important;margin:18px 14px 8px!important;text-transform:uppercase}
html.evie-ui:not([data-theme="light"]) .nav-item{position:relative;gap:12px!important;min-height:44px;padding:6px 10px!important;border-radius:14px!important;color:var(--v8-muted)!important;border:1px solid transparent!important;
  transition:color .25s var(--v8-ease),background .35s var(--v8-ease),border-color .35s var(--v8-ease),transform .35s var(--v8-spring)!important}
html.evie-ui:not([data-theme="light"]) .nav-item>svg,html.evie-ui:not([data-theme="light"]) .nav-item>i{flex:none;box-sizing:content-box!important;width:17px!important;height:17px!important;padding:7.5px!important;border-radius:10px;stroke-width:1.9;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));box-shadow:0 1px 0 rgba(255,255,255,.1) inset,0 4px 10px -4px rgba(0,0,0,.7);color:#c9d3ec;transition:background .35s,color .35s,box-shadow .35s}
html.evie-ui:not([data-theme="light"]) .nav-item:hover{color:var(--v8-text)!important;background:rgba(255,255,255,.045)!important;transform:translateX(2px)}
html.evie-ui:not([data-theme="light"]) :is(.nav-item.active,.nav-item[aria-current="page"]){color:#fff!important;background:linear-gradient(90deg,rgba(90,169,255,.16),rgba(139,123,255,.08) 60%,rgba(139,123,255,0))!important;
  border-color:rgba(120,170,255,.22)!important;box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 10px 30px -14px rgba(90,169,255,.55)!important}
html.evie-ui:not([data-theme="light"]) :is(.nav-item.active,.nav-item[aria-current="page"])::before{content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--v8-grad);box-shadow:0 0 12px 2px rgba(110,150,255,.7)}
html.evie-ui:not([data-theme="light"]) :is(.nav-item.active,.nav-item[aria-current="page"])>:is(svg,i){background:var(--v8-grad);color:#06091a;box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 6px 18px -4px rgba(110,140,255,.8)}
html.evie-ui:not([data-theme="light"]) .sidebar-profile{border-radius:18px!important;border:1px solid var(--v8-stroke)!important;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015))!important;box-shadow:var(--v8-shadow-1)!important}
html.evie-ui:not([data-theme="light"]) .avatar{background:var(--v8-grad)!important;color:#06091a!important;box-shadow:0 0 0 2px rgba(255,255,255,.12),0 6px 18px -6px rgba(110,140,255,.8)}

/* ---------- Topbar ---------- */
html.evie-ui:not([data-theme="light"]) .topbar{background:linear-gradient(180deg,rgba(6,9,18,.82),rgba(6,9,18,.6))!important;-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);
  border-bottom:1px solid var(--v8-stroke)!important}

/* ---------- Dialogs & toasts ---------- */
html.evie-ui:not([data-theme="light"]) dialog#app-dialog{background:linear-gradient(180deg,rgba(28,34,52,.96),rgba(14,18,30,.97))!important;border:1px solid var(--v8-stroke-hi)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.1) inset,0 50px 120px -30px rgba(0,0,0,.9),0 0 0 1px rgba(0,0,0,.4)!important;color:var(--v8-text)}
html.evie-ui:not([data-theme="light"]) dialog#app-dialog::backdrop{background:rgba(2,4,10,.55);-webkit-backdrop-filter:blur(10px) saturate(120%);backdrop-filter:blur(10px) saturate(120%)}
html.evie-ui:not([data-theme="light"]) .toast{border-radius:18px!important;border:1px solid var(--v8-stroke-hi)!important;background:rgba(20,25,40,.92)!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--v8-shadow-3)!important}

/* ---------- Mobile dock: floating glass bar, raised center action ---------- */
@media (max-width:1023px){
html.evie-ui:not([data-theme="light"]) .mobile-nav{border-radius:28px!important;background:linear-gradient(180deg,rgba(26,31,48,.86),rgba(12,15,26,.92))!important;border:1px solid var(--v8-stroke-hi)!important;
  -webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 24px 50px -16px rgba(0,0,0,.9),0 0 0 1px rgba(0,0,0,.35)!important}
html.evie-ui:not([data-theme="light"]) .mobile-nav :is(a,button):not(.evie-orb-button){border-radius:18px!important;color:var(--v8-muted)!important;transition:color .25s,transform .35s var(--v8-spring)!important}
html.evie-ui:not([data-theme="light"]) .mobile-nav :is(a,button):is(.active,[aria-current="page"]){color:#fff!important}
html.evie-ui:not([data-theme="light"]) .mobile-nav :is(a,button):is(.active,[aria-current="page"]) svg{filter:drop-shadow(0 0 8px rgba(110,160,255,.9))}
html.evie-ui:not([data-theme="light"]) .mobile-nav :is(a,button):active{transform:scale(.92)}
html.evie-ui:not([data-theme="light"]) :is(.panel,.stat-card,.detail-card,.evm-card,.hud-card,.fc-panel,.v8-card){border-radius:20px!important}
}

/* ---------- Scrollbars & selection ---------- */
html.evie-ui:not([data-theme="light"]) ::selection{background:rgba(90,169,255,.35)}
html.evie-ui:not([data-theme="light"]) *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
html.evie-ui:not([data-theme="light"]) ::-webkit-scrollbar{width:10px;height:10px}
html.evie-ui:not([data-theme="light"]) ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:10px;border:3px solid transparent;background-clip:padding-box}

/* ---------- 3D tilt helper (cards marked .v8-tilt by evie-v8.js) ---------- */
.v8-tilt{transform-style:preserve-3d;will-change:transform}
@media (prefers-reduced-motion:reduce){html.evie-ui :is(.panel,.stat-card,.evm-card,.hud-card,.button,.nav-item){transition:none!important}}

/* =====================================================================================================
   Intro · "EVIE — Created by Alejandro Dali" (HUD boot sequence, animated by EvieFX.splash with GSAP)
   ===================================================================================================== */
#evie-splash.v8{position:fixed;inset:0;z-index:300;display:grid;place-items:center;overflow:hidden;background:#020308;color:#fff;cursor:pointer;font-family:var(--v8-font);contain:strict}
#evie-splash.v8 .sp-bg{position:absolute;inset:-10%;background:radial-gradient(60% 50% at 50% 50%,rgba(50,90,200,.35),rgba(2,3,8,0) 70%),radial-gradient(40% 40% at 70% 70%,rgba(120,80,255,.18),transparent 70%)}
#evie-splash.v8 .sp-grid{position:absolute;left:-50%;right:-50%;bottom:-10vh;height:55vh;transform-origin:50% 100%;transform:perspective(500px) rotateX(66deg);
  background-image:linear-gradient(rgba(110,170,255,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(110,170,255,.22) 1px,transparent 1px);background-size:56px 56px;
  -webkit-mask-image:linear-gradient(to top,#000,transparent 80%);mask-image:linear-gradient(to top,#000,transparent 80%);opacity:.5}
#evie-splash.v8 .sp-rings{position:absolute;left:50%;top:50%;width:min(76vmin,560px);height:min(76vmin,560px);transform:translate(-50%,-50%);overflow:visible}
#evie-splash.v8 .sp-r{stroke:rgba(140,190,255,.75);stroke-width:1.2;filter:drop-shadow(0 0 6px rgba(90,169,255,.8))}
#evie-splash.v8 .sp-r.r3,#evie-splash.v8 .sp-r.r4{stroke:#9fd2ff;stroke-width:2.4;stroke-linecap:round}
#evie-splash.v8 .sp-r.r5{stroke:rgba(160,140,255,.6)}
#evie-splash.v8 .sp-ticks line{stroke:rgba(150,195,255,.5);stroke-width:1.2}
#evie-splash.v8 .sp-scan{position:absolute;left:0;right:0;top:50%;height:2px;background:linear-gradient(90deg,transparent,#bfe3ff 30%,#fff 50%,#bfe3ff 70%,transparent);box-shadow:0 0 30px 6px rgba(110,180,255,.7);transform:scaleX(0)}
#evie-splash.v8 .sp-core{position:absolute;left:50%;top:50%;width:clamp(70px,14vmin,120px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%) scale(0);
  background:radial-gradient(circle at 38% 32%,#fff,#cfe6ff 22%,#6aa8ff 48%,#5b3fd6 78%,rgba(40,20,120,0) 100%);box-shadow:0 0 60px 10px rgba(100,160,255,.55),0 0 140px 40px rgba(120,90,255,.25)}
#evie-splash.v8 .sp-flash{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.95),rgba(180,210,255,.35) 30%,transparent 65%);opacity:0;pointer-events:none}
#evie-splash.v8 .sp-text{position:relative;display:grid;justify-items:center;gap:10px;margin-top:0;text-align:center}
#evie-splash.v8 .sp-boot{position:fixed;top:calc(50% - min(38vmin,280px) - 52px);left:50%;transform:translateX(-50%);display:grid;gap:4px;margin:0;font-family:var(--v8-mono);font-size:10.5px;letter-spacing:.28em;color:rgba(160,205,255,.8);white-space:nowrap}
#evie-splash.v8 .sp-word{margin:0;display:flex;gap:.06em;font-size:clamp(54px,13vmin,112px);font-weight:780;letter-spacing:.18em;line-height:1;padding-left:.18em;
  background:linear-gradient(180deg,#fff 20%,#a9c8ff 75%,#7f8cff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 22px rgba(110,160,255,.55))}
#evie-splash.v8 .sp-word span{display:inline-block;-webkit-text-fill-color:transparent}
#evie-splash.v8 .sp-sub{margin:0;display:flex;align-items:center;gap:12px;font-family:var(--v8-mono);font-size:12px;letter-spacing:.5em;color:#9fc5ff;padding-left:.5em}
#evie-splash.v8 .sp-sub i{width:36px;height:1px;background:linear-gradient(90deg,transparent,#9fc5ff,transparent)}
#evie-splash.v8 .sp-credit{margin:18px 0 0;display:flex;align-items:baseline;gap:10px;font-size:clamp(12px,3.2vw,15px);letter-spacing:.28em;text-transform:uppercase;color:#c9d7f5}
#evie-splash.v8 .sp-by{opacity:.7}
#evie-splash.v8 .sp-name{font-weight:700;color:#fff;letter-spacing:.24em;text-shadow:0 0 18px rgba(140,180,255,.6)}
#evie-splash.v8 .sp-name span{display:inline-block;white-space:pre}
#evie-splash.v8 .sp-caret{display:inline-block;width:2px;height:1.1em;background:#bfe3ff;box-shadow:0 0 10px #8ecbff;transform:translateY(2px);animation:sp-caret 1s steps(1) infinite}
@keyframes sp-caret{50%{opacity:0}}
@media (max-width:600px){#evie-splash.v8 .sp-credit{flex-direction:column;align-items:center;gap:6px}#evie-splash.v8 .sp-boot{font-size:9px}}

/* =====================================================================================================
   Finance · physical cards (account cards + the summary «EVIE CRM V2» card)
   ===================================================================================================== */
html.evie-ui .evm-acc.pc{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;gap:10px;overflow:visible}
html.evie-ui .evm-acc.pc::before,html.evie-ui .evm-acc.pc::after{display:none!important}
html.evie-ui .evm-acc.pc:hover{transform:none!important}
html.evie-ui .evm-acc.pc>small{color:var(--v8-muted);padding:0 4px}
html.evie-ui .evm-acc.pc>.toolbar{padding:0 2px}
.pc-wrap{border-radius:18px;transform-style:preserve-3d}
.pc-face{--pc-a:#1d3f8f;--pc-b:#0b1840;--pc-c:#5aa9ff;position:relative;aspect-ratio:1.586/1;border-radius:18px;padding:clamp(14px,4.2%,20px) clamp(16px,5%,22px);overflow:hidden;isolation:isolate;color:#fff;
  display:grid;grid-template-rows:auto 1fr auto auto;gap:4px;
  background:radial-gradient(140% 120% at 0% 0%,color-mix(in srgb,var(--pc-c) 55%,transparent) 0%,transparent 42%),linear-gradient(135deg,var(--pc-a) 0%,var(--pc-b) 78%);
  box-shadow:0 1px 0 rgba(255,255,255,.38) inset,0 -1px 0 rgba(0,0,0,.45) inset,0 0 0 1px rgba(255,255,255,.08) inset,0 2px 4px rgba(0,0,0,.45),0 18px 36px -12px rgba(0,0,0,.8),0 40px 80px -36px color-mix(in srgb,var(--pc-c) 70%,transparent)}
/* Brushed metal + grain */
.pc-face::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.55;mix-blend-mode:overlay;
  background:repeating-linear-gradient(100deg,rgba(255,255,255,.07) 0 1px,rgba(0,0,0,.05) 1px 3px),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}
/* Holographic edge */
.pc-face::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;z-index:2;pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.55),rgba(255,255,255,.05) 30%,rgba(140,220,255,.35) 55%,rgba(255,180,255,.25) 70%,rgba(255,255,255,.4));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
/* Glossy sheen that follows --gx/--gy (set by the tilt in evie-v8.js) */
.pc-sheen{position:absolute;inset:-40%;z-index:1;pointer-events:none;mix-blend-mode:soft-light;opacity:.9;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.55) 48%,rgba(255,255,255,.12) 54%,transparent 62%);
  transform:translate(calc((var(--gx,30%) - 50%) * .6),calc((var(--gy,20%) - 50%) * .4));transition:transform .6s var(--v8-ease)}
.pc-face>*:not(.pc-sheen){position:relative;z-index:3}
.pc-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pc-bank{display:flex;align-items:center;gap:8px;min-width:0;font-weight:700;letter-spacing:.01em;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.pc-bank b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-bank svg{width:18px;height:18px;opacity:.9}
html.evie-ui .pc-face .pc-edit{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.pc-mid{display:flex;align-items:center;gap:10px;align-self:center}
.pc-chip{width:clamp(34px,15%,46px);height:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.45))}
.pc-nfc{width:22px;height:22px;opacity:.8;transform:rotate(0deg)}
.pc-amount{display:grid;gap:0}
.pc-amount small{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;opacity:.72}
html.evie-ui .pc-face .evm-big{margin:0!important;font-size:clamp(22px,7vw,30px)!important;font-weight:760;letter-spacing:-.02em;color:#fff!important;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.pc-number{margin:0;font-family:var(--v8-mono);font-size:clamp(12px,3.4vw,14.5px);letter-spacing:.18em;white-space:nowrap;color:rgba(255,255,255,.92);
  text-shadow:0 1px 0 rgba(0,0,0,.45),0 -1px 0 rgba(255,255,255,.28)}
.pc-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase}
.pc-holder{font-weight:650;opacity:.92;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 0 rgba(0,0,0,.4)}
.pc-kind{opacity:.7;white-space:nowrap}
/* Materials by tone */
.evm-acc.pc[data-tone=ocean] .pc-face{--pc-a:#1576c9;--pc-b:#06213f;--pc-c:#56d6ff}
.evm-acc.pc[data-tone=indigo] .pc-face{--pc-a:#3c43d6;--pc-b:#12154d;--pc-c:#8a9bff}
.evm-acc.pc[data-tone=violet] .pc-face{--pc-a:#6a3df0;--pc-b:#22104f;--pc-c:#c39bff}
.evm-acc.pc[data-tone=teal] .pc-face{--pc-a:#0fa58c;--pc-b:#03302f;--pc-c:#5cf2cf}
.evm-acc.pc[data-tone=graphite] .pc-face{--pc-a:#4a4f5c;--pc-b:#0d0f14;--pc-c:#c9d3e6}
.evm-acc.pc[data-tone=rose] .pc-face{--pc-a:#e0487a;--pc-b:#3d0c22;--pc-c:#ffa3c4}
.evm-acc.pc .evm-bar{margin:0 2px}
.evm-acc.pc .evm-dl{margin:0 2px}
@media (hover:hover){.pc-wrap:hover .pc-face{box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 -1px 0 rgba(0,0,0,.45) inset,0 0 0 1px rgba(255,255,255,.1) inset,0 4px 8px rgba(0,0,0,.45),0 30px 60px -16px rgba(0,0,0,.85),0 50px 100px -36px color-mix(in srgb,var(--pc-c) 85%,transparent)}}

/* Summary card → black titanium */
html.evie-ui:not([data-theme="light"]) .bank-card{position:relative;overflow:hidden;isolation:isolate;border-radius:22px!important;border:0!important;color:#f4f6ff;
  background:radial-gradient(120% 90% at 100% 0%,rgba(140,170,255,.22),transparent 50%),radial-gradient(80% 80% at 0% 100%,rgba(120,90,255,.18),transparent 60%),linear-gradient(140deg,#2a2f3b 0%,#11141b 45%,#07080c 100%)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 -1px 0 rgba(0,0,0,.5) inset,0 0 0 1px rgba(255,255,255,.07) inset,0 3px 6px rgba(0,0,0,.45),0 30px 60px -20px rgba(0,0,0,.85),0 40px 90px -40px rgba(110,140,255,.55)!important}
html.evie-ui:not([data-theme="light"]) .bank-card::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.5;mix-blend-mode:overlay;
  background:repeating-linear-gradient(100deg,rgba(255,255,255,.06) 0 1px,rgba(0,0,0,.06) 1px 3px)!important}
html.evie-ui:not([data-theme="light"]) .bank-card>*:not(.pc-sheen){position:relative;z-index:3}
html.evie-ui:not([data-theme="light"]) .bank-card .chip{width:40px;height:30px;border-radius:6px;background:linear-gradient(135deg,#f7e3a3,#d4a94e 45%,#b98a2f 55%,#f2d68a)!important;
  box-shadow:inset 0 0 0 1px rgba(90,60,10,.5),0 1px 1px rgba(0,0,0,.4)}
html.evie-ui:not([data-theme="light"]) .bank-card .bank-amount{font-size:clamp(28px,4vw,40px)!important;font-weight:780;letter-spacing:-.025em;text-shadow:0 2px 14px rgba(0,0,0,.4)}
html.evie-ui:not([data-theme="light"]) .bank-card .bank-bottom{font-family:var(--v8-mono);letter-spacing:.18em;text-shadow:0 1px 0 rgba(0,0,0,.45),0 -1px 0 rgba(255,255,255,.2)}
html.evie-ui:not([data-theme="light"]) .bank-card .bank-cta{border-radius:999px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.22)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
@media (prefers-reduced-motion:reduce){.pc-sheen{transition:none}}
/* Card typography scales with the card itself (container query units), so phones never clip the footer. */
.pc-wrap{container-type:inline-size}
@supports (width:1cqw){
 .pc-face{padding:5.2cqw 6cqw;gap:1.2cqw}
 .pc-chip{width:clamp(28px,11.5cqw,46px)}
 .pc-nfc{width:clamp(16px,6cqw,22px);height:clamp(16px,6cqw,22px)}
 html.evie-ui .pc-face .evm-big{font-size:clamp(19px,8.4cqw,30px)!important}
 .pc-amount small{font-size:clamp(8.5px,2.8cqw,10.5px)}
 .pc-number{font-size:clamp(10px,3.9cqw,14.5px)}
 .pc-foot{font-size:clamp(8.5px,2.8cqw,10.5px)}
 .pc-bank{font-size:clamp(12px,4.2cqw,15px)}
 html.evie-ui .pc-face .pc-edit{width:clamp(28px,9.5cqw,34px)!important;height:clamp(28px,9.5cqw,34px)!important;min-width:0!important}
}

/* =====================================================================================================
   Kisha · Border Collie stage
   ===================================================================================================== */
.kisha-char:has(.kisha-v8){aspect-ratio:835/1014;width:min(360px,72vw);max-height:56vh;filter:drop-shadow(0 30px 40px rgba(0,0,0,.45))}
.kisha-stage.active .kisha-char:has(.kisha-v8){width:min(280px,54vw);max-height:40vh}
@media (max-width:640px){.kisha-char:has(.kisha-v8){width:min(270px,68vw);max-height:46vh}.kisha-stage.active .kisha-char:has(.kisha-v8){width:min(200px,48vw);max-height:30vh}}
.kisha-v8 image{image-rendering:auto}
.kisha-stage[data-phase=listening] .kisha-char:has(.kisha-v8){filter:drop-shadow(0 0 26px rgba(120,190,255,.45)) drop-shadow(0 30px 40px rgba(0,0,0,.45))}
.kisha-stage[data-phase=speaking] .kisha-char:has(.kisha-v8){filter:drop-shadow(0 0 30px rgba(150,140,255,.45)) drop-shadow(0 30px 40px rgba(0,0,0,.45))}

/* Small layout fixes surfaced by the new surfaces */
html.evie-ui .panel.evm-add-builtin{padding:clamp(16px,3vw,24px)!important;display:grid;gap:8px}
html.evie-ui .panel.evm-add-builtin h3{margin:0;letter-spacing:-.01em}
html.evie-ui .panel.evm-add-builtin p{margin:0;color:var(--v8-muted)}
html.evie-ui .panel.evm-add-builtin .toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start!important;margin-top:6px}

/* Mobile dock orb: a living light core, raised above the dock with a spinning HUD ring */
html.evie-ui:not([data-theme="light"]) .mobile-nav .evie-orb-button{position:relative;border-radius:50%!important;border:0!important;overflow:visible;
  background:radial-gradient(circle at 36% 30%,#fff 0%,#d8ecff 12%,#7cb8ff 38%,#5b4fe0 72%,#2a1670 100%)!important;
  box-shadow:0 0 0 4px rgba(8,11,20,.92),0 0 0 5px rgba(140,180,255,.35),0 14px 32px -6px rgba(110,140,255,.85),inset 0 1px 0 rgba(255,255,255,.7),inset 0 -6px 14px rgba(40,20,120,.45)!important}
html.evie-ui:not([data-theme="light"]) .mobile-nav .evie-orb-button::after{content:"";position:absolute;inset:-9px;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,transparent 0 62%,rgba(160,210,255,.9) 70%,transparent 78% 100%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));animation:v8-orb-ring 3.2s linear infinite}
@keyframes v8-orb-ring{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){html.evie-ui .mobile-nav .evie-orb-button::after{animation:none}}

/* Charts with depth: gradient bars, glow and a grow-in animation */
html.evie-ui:not([data-theme="light"]) .fc-svg .fc-in{fill:url(#fcg-in)!important;filter:drop-shadow(0 0 6px rgba(61,220,151,.45))}
html.evie-ui:not([data-theme="light"]) .fc-svg .fc-out{fill:url(#fcg-out)!important;filter:drop-shadow(0 0 6px rgba(255,92,122,.4))}
html.evie-ui .fc-svg :is(.fc-in,.fc-out){transform-box:fill-box;transform-origin:50% 100%;animation:v8-grow .9s var(--v8-ease) both}
html.evie-ui .fc-svg .fc-grid line{stroke:rgba(255,255,255,.07)!important;stroke-dasharray:2 6}
@keyframes v8-grow{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}
@media (prefers-reduced-motion:reduce){html.evie-ui .fc-svg :is(.fc-in,.fc-out){animation:none}}
