/* App-only visual layer. Existing admin colors and hero remain intact. */
html.vanta-standalone .dock{background:color-mix(in srgb,var(--panel) 70%,transparent)!important;backdrop-filter:blur(28px) saturate(160%)!important;-webkit-backdrop-filter:blur(28px) saturate(160%)!important;box-shadow:0 12px 36px #0002,inset 0 1px 1px #ffffff55!important;border:1px solid color-mix(in srgb,var(--line) 65%,#fff5)!important;}
html.vanta-standalone .dock button{transition:background .22s,color .22s,transform .2s!important;}
html.vanta-standalone .dock button:active{transform:scale(.94)}
html.vanta-standalone #search{backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%);box-shadow:0 8px 28px #0001,inset 0 1px 1px #ffffff50;}
/* New tab stays above the floating dock, independent of tab count. */
html.vanta-standalone #browserTabs:not([hidden]){padding-bottom:calc(160px + env(safe-area-inset-bottom,0px));}
html.vanta-standalone #b40New{position:fixed!important;left:auto!important;right:max(18px,env(safe-area-inset-right,0px))!important;bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;top:auto!important;z-index:30!important;margin:0!important;min-width:118px!important;min-height:48px!important;padding:12px 19px!important;border-radius:999px!important;background:color-mix(in srgb,var(--panel,#25252b) 85%,transparent)!important;color:var(--fg)!important;border:1px solid var(--line)!important;box-shadow:0 8px 28px #0003,inset 0 1px 1px #ffffff30;backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);font:650 15px/1.2 system-ui!important;transition:transform .18s ease;}
html.vanta-standalone #b40New:active{transform:scale(.96)}
html.vanta-standalone .b40-tabcard,html.vanta-standalone .profile-group{border-radius:22px;box-shadow:0 6px 22px #00000008;}
/* Pure-black typography-only launch screen. */
html.vanta-standalone #vantaAppSplash{background:#000!important;color:white!important;transition:opacity .3s ease,visibility .3s ease;}
html.vanta-standalone .vanta-splash-inner{width:min(340px,90vw);gap:20px;display:flex;flex-direction:column;align-items:center;}
html.vanta-standalone .vanta-splash-inner img{display:none!important;}
html.vanta-standalone .v61-launch-title{display:grid;place-items:center;min-height:100px;width:100%;margin:0;font:800 clamp(27px,7vw,40px)/1.13 system-ui,sans-serif;letter-spacing:-.045em;color:#fff;text-align:center;}
.v61-launch-title span{grid-area:1/1;opacity:0;animation:v61intro .85s both;}
.v61-launch-title span:nth-child(2){animation-delay:.85s;}
.v61-launch-title span:nth-child(3){animation:v61welcome .45s 1.7s both;}
@keyframes v61intro{0%{opacity:0;transform:translateY(12px);filter:blur(6px)}25%,70%{opacity:1;transform:translateY(0);filter:blur(0)}100%{opacity:0;transform:translateY(-9px);filter:blur(5px)}}
@keyframes v61welcome{from{opacity:0;transform:translateY(10px);filter:blur(6px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
html.vanta-standalone .vanta-splash-track{width:100px;height:2px;order:3;background:#ffffff24;}
html.vanta-standalone .vanta-splash-track span{background:#fff;}
html.vanta-standalone .vanta-splash-inner p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(prefers-reduced-motion:reduce){.v61-launch-title span{animation:none!important;opacity:0}.v61-launch-title span:nth-child(3){opacity:1}html.vanta-standalone .dock button,html.vanta-standalone #b40New,html.vanta-standalone #vantaAppSplash{transition:none!important;}html.vanta-standalone .dock button:active,html.vanta-standalone #b40New:active{transform:none;}}

/* 6.2: viewport-anchored tab action and edge-to-edge bottom navigation. */
html.vanta-standalone { --v62-bar-height: 64px; --v62-safe-bottom: env(safe-area-inset-bottom, 0px); }
html.vanta-standalone body > .dock {
 position:fixed!important; inset:auto 0 0 0!important; width:100%!important; max-width:none!important;
 height:calc(var(--v62-bar-height) + var(--v62-safe-bottom))!important; box-sizing:border-box!important;
 transform:none!important; margin:0!important; border-radius:0!important; border:0!important; border-top:1px solid var(--line)!important;
 padding:0 max(12px,env(safe-area-inset-right,0px)) var(--v62-safe-bottom) max(12px,env(safe-area-inset-left,0px))!important;
 gap:0!important; background:var(--bg,#18191c)!important; box-shadow:none!important;
 backdrop-filter:none!important; -webkit-backdrop-filter:none!important; z-index:40!important;
 align-items:center!important; justify-content:space-around!important;
}
html.vanta-standalone body > .dock button[data-page] { height:var(--v62-bar-height)!important; min-height:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; transform:none!important; padding:0!important; transition:color .18s ease!important; }
html.vanta-standalone body > .dock button.active { background:transparent!important; color:var(--accent)!important; }
html.vanta-standalone body > .dock button[data-page] > svg,html.vanta-standalone body > .dock button[data-page] > img { width:24px!important; height:24px!important; }
html.vanta-standalone body > .dock .b40-badge {width:23px!important;height:23px!important;font-size:12px!important;}
html.vanta-standalone main { padding-bottom:calc(var(--v62-bar-height) + var(--v62-safe-bottom) + 22px)!important; }
html.vanta-standalone #browserTabs:not([hidden]) { animation:none!important; transform:none!important; padding-bottom:86px!important; }
body > #b40New { display:none!important; }
html.vanta-standalone:not(.service-pending):not(.service-blocked) body:has(#browserTabs:not([hidden])) > #b40New {
 display:flex!important; position:fixed!important; top:auto!important; left:auto!important;
 right:max(18px,env(safe-area-inset-right,0px))!important; bottom:calc(var(--v62-bar-height) + var(--v62-safe-bottom) + 20px)!important;
 transform:none!important; transition:background .18s ease,color .18s ease!important; animation:none!important; margin:0!important; z-index:39!important;
}
html.vanta-standalone.service-pending body > .dock,html.vanta-standalone.service-blocked body > .dock {display:none!important;}
@media(prefers-reduced-motion:reduce){html.vanta-standalone body > .dock button[data-page],html.vanta-standalone body > #b40New{transition:none!important;}}

/* 6.4 — flat edge-to-edge navigation inspired by reference. */
html.vanta-standalone body > .dock {
 --v64-accent:var(--accent,#8750ff);
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 justify-items:stretch!important;align-items:center!important;
 padding:0 env(safe-area-inset-right,0px) var(--v62-safe-bottom) env(safe-area-inset-left,0px)!important;
 background:var(--bg,#18191c)!important;border-top:1px solid var(--line)!important;
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html.vanta-standalone body > .dock button[data-page] {
 position:relative!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;
 width:100%!important;height:var(--v62-bar-height)!important;min-width:0!important;min-height:0!important;
 max-width:none!important;max-height:none!important;flex:none!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 color:var(--fg,#e3e5e8)!important;transform:none!important;opacity:.86;
 transition:color .18s ease,opacity .18s ease!important;
}
html.vanta-standalone body > .dock button[data-page]::before {
 content:"";position:absolute;top:0;left:50%;width:70%;max-width:84px;height:3px;
 border-radius:0 0 4px 4px;background:var(--v64-accent);opacity:0;transform:translateX(-50%) scaleX(.65);
 transition:opacity .18s ease,transform .22s ease;pointer-events:none;
}
html.vanta-standalone body > .dock button[data-page].active,
html.vanta-standalone body > .dock button[data-page][aria-current="page"] {
 color:var(--v64-accent)!important;opacity:1;background:transparent!important;box-shadow:none!important;
}
html.vanta-standalone body > .dock button[data-page].active::before,
html.vanta-standalone body > .dock button[data-page][aria-current="page"]::before {
 opacity:1;transform:translateX(-50%) scaleX(1);
}
html.vanta-standalone body > .dock button[data-page] > svg,
html.vanta-standalone body > .dock button[data-page] > img,
html.vanta-standalone body > .dock button[data-page] > .b40-badge {
 box-sizing:border-box!important;width:24px!important;height:24px!important;flex:none!important;margin:0!important;
 grid-area:1/1!important;display:block!important;
}
html.vanta-standalone body > .dock button[data-page] > svg {stroke-width:1.8!important;}
html.vanta-standalone body > .dock button[data-page] > img {object-fit:cover!important;border-radius:50%!important;}
html.vanta-standalone body > .dock button[data-page] > .b40-badge {display:grid!important;place-items:center!important;border:1.8px solid currentColor!important;border-radius:6px!important;font:650 12px/1 system-ui,sans-serif!important;letter-spacing:-.04em!important;}
html.vanta-standalone body > .dock button[data-page]:focus-visible {outline:2px solid var(--v64-accent)!important;outline-offset:-5px!important;}
html.vanta-standalone body > .dock button[data-page="saved"],html.vanta-standalone body > .dock button[data-page="history"],html.vanta-standalone body > .dock button[data-page="settings"],html.vanta-standalone body > .dock small{display:none!important;}
html.vanta-standalone.service-pending body > .dock,html.vanta-standalone.service-blocked body > .dock{display:none!important;}
@media(prefers-reduced-motion:reduce){html.vanta-standalone body > .dock button[data-page],html.vanta-standalone body > .dock button[data-page]::before{transition:none!important;}}
