/* VELA v24 is a reversible local study layered over v23. */
body.v24-preview .implementation.v23-stack-flow { height:clamp(900px,165vh,1500px); margin-top:56px; }
body.v24-preview .v23-stack-frame { height:min(550px,calc(100svh - 94px)); min-height:525px; padding:25px 30px 20px; }
body.v24-preview .v23-stack-frame::after { display:none; }
body.v24-preview .v23-stack-stage { min-height:240px; margin:6px 3px 13px 0; }
body.v24-preview .v23-stack-card { inset:0 0 20px; justify-content:flex-start; padding:clamp(22px,3vw,33px); box-shadow:0 12px 28px #315e2d20; backface-visibility:hidden; }
body.v24-preview .v23-stack-card-1,body.v24-preview .v23-stack-card-3 { justify-content:center; }
body.v24-preview .v23-stack-card-1 { background:linear-gradient(135deg,#eff8e8,#fffdf3); }
body.v24-preview .v23-stack-card-2 { background:linear-gradient(135deg,#f8fcf2,#f1f8ed); }
body.v24-preview .v23-stack-card-3 { background:linear-gradient(135deg,#e6f4da,#f9fcf3); }
body.v24-preview .v23-stack-card strong { font-size:clamp(24px,2.7vw,34px); }
body.v24-preview .v23-stack-card .v22-flow-branches { gap:10px; }
body.v24-preview .v23-stack-card .v22-flow-branches > div { padding:14px 17px; }
body.v24-preview .v23-stack-card .v22-flow-branches strong { font-size:clamp(19px,1.8vw,24px); }
body.v24-preview .v23-stack-guide { margin:8px 0 3px; }
body.v24-preview .v23-stack-frame .v22-flow-foot { margin-top:8px; }
body.v24-preview .v23-static-stack { height:auto!important; }
body.v24-preview .v23-static-stack .v23-stack-frame { height:auto; }
body.v24-preview .v23-static-stack .v23-stack-card { min-height:170px; }

/* Meaningful AI motif: a small sequence of evidence tiles, never a reused curve or plant. */
body.v24-preview[data-page="chat"] .chat-intro::after,
body.v24-preview[data-page="chat"] .chat-log:has(> .message:only-child)::after { display:none!important; }
.v24-evidence-tiles { position:absolute; right:6%; bottom:10%; z-index:0; display:flex; align-items:center; gap:7px; pointer-events:none; }
.v24-evidence-tiles span { display:grid; place-items:center; min-width:74px; min-height:48px; padding:8px 11px; border:1px solid #d5e6c9; border-radius:12px; background:#f3f8e9; box-shadow:0 8px 21px #395b2420; color:#386244; font-size:10px; font-weight:800; animation:v24-tile-float 4.3s ease-in-out infinite; }
.v24-evidence-tiles span:nth-child(2) { background:#eef7f8; border-color:#d1e7eb; color:#3f7180; animation-delay:-1.2s; }
.v24-evidence-tiles span:nth-child(3) { background:#fff8e8; border-color:#eee0bb; color:#856c37; animation-delay:-2.4s; }
.chat-log:has(.message-user) .v24-evidence-tiles { display:none; }
@keyframes v24-tile-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
body.v24-preview[data-page="chat"] .knowledge-status .live-dot { width:15px; height:15px; background:#55a967; animation:v24-status-pulse 2.5s ease-in-out infinite; }
body.v24-preview[data-page="chat"] .rag-badge::before { width:9px!important; height:9px!important; background:#55a967!important; animation:v24-status-pulse 2.5s ease-in-out infinite!important; }
@keyframes v24-status-pulse { 0%,100% { box-shadow:0 0 0 4px #70bd6f55,0 0 0 10px #70bd6f25; opacity:.8; } 50% { box-shadow:0 0 0 7px #70bd6f6b,0 0 0 17px #70bd6f00; opacity:1; } }

/* Resume keeps its approved reveal and regains the original botanical mark. */
body.v24-preview[data-page="resume"] .resume-hero::after { display:block!important; }

/* The focus ring is visible without changing the pill's layout. */
body.v24-preview .nav-links a[href$="ai-chat.html"]::before { border-width:2px; border-color:#82c461; animation:v24-nav-halo 2.7s ease-in-out infinite; }
@keyframes v24-nav-halo { 0%,100% { opacity:.38; box-shadow:0 0 0 0 #8acb6445; transform:scale(1); } 50% { opacity:1; box-shadow:0 0 0 7px #8acb6400; transform:scale(1.045); } }
@media(max-width:720px) {
  body.v24-preview .implementation.v23-stack-flow { height:165svh; min-height:920px; margin-top:42px; }
  body.v24-preview .v23-stack-frame { top:101px; height:min(575px,calc(100svh - 112px)); min-height:485px; padding:17px 15px 14px; }
  body.v24-preview .v23-stack-stage { min-height:230px; margin:5px 2px 12px 0; }
  body.v24-preview .v23-stack-card { inset:0 0 17px; padding:18px 19px; }
  body.v24-preview .v23-stack-card strong { font-size:23px; }
  body.v24-preview .v23-stack-card .v22-flow-branches > div { padding:8px 10px; }
  body.v24-preview .v23-stack-card .v22-flow-branches strong { font-size:16px; }
  body.v24-preview .v23-stack-card .v22-flow-branches small { font-size:10px; line-height:1.45; }
  body.v24-preview .nav-links a[href$="ai-chat.html"],
  body.v24-preview .nav-links a[href$="ai-chat.html"]:hover { display:grid!important; place-items:center!important; align-self:center!important; justify-self:stretch!important; width:100%!important; height:34px!important; min-height:34px!important; margin:0!important; padding:0!important; line-height:1!important; box-sizing:border-box!important; }
  body.v24-preview .nav-links a[href$="ai-chat.html"]::before { inset:-3px; }
  .v24-evidence-tiles { right:11px; bottom:14%; gap:5px; }
  .v24-evidence-tiles span { min-width:0; min-height:35px; padding:5px 7px; border-radius:9px; font-size:8px; }
}
@media(prefers-reduced-motion:reduce) {
  body.v24-preview .nav-links a[href$="ai-chat.html"]::before,
  body.v24-preview[data-page="chat"] .knowledge-status .live-dot,
  body.v24-preview[data-page="chat"] .rag-badge::before,
  .v24-evidence-tiles span { animation:none!important; }
}
