/* V14 local preview: motion stays selective; approved AI answer timing is untouched. */
html.lenis { scroll-behavior:auto!important; }
/* Never make the first screen disappear while observers are starting up. */
body[data-page="home"] .hero .reveal-item { opacity:1!important; transform:none!important; }

/* Tighten gaps BETWEEN major desktop sections, not gaps inside project/skill groups. */
@media (min-width: 1121px) {
  body.preview-compact[data-page="home"] .hero { min-height: min(820px, calc(100vh - 76px)); padding-block: 72px; }
  body.preview-compact[data-page="home"] .hero-stage { min-height: 560px; }
  body.preview-compact[data-page="home"] .section { padding-block: 130px; }
  body.preview-compact[data-page="home"] #projects { padding-top: 104px; padding-bottom: 68px; }
  body.preview-compact[data-page="home"] #capabilities { padding-top: 75px; padding-bottom: 70px; }
  body.preview-compact[data-page="home"] .section-heading { margin-bottom: 54px; }
  body.preview-compact[data-page="home"] .project-grid { gap: 30px; }
  body.preview-compact[data-page="home"] .project-card,
  body.preview-compact[data-page="home"] .project-visual { min-height: 560px; }
  body.preview-compact[data-page="home"] .project-copy { padding: 42px 46px; }
  body.preview-compact[data-page="home"] .cap-card { min-height: 292px; padding: 31px; }
  body.preview-compact[data-page="home"] .cap-card h3 { margin: 36px 0 13px; }
  body.preview-compact[data-page="home"] .cap-card > div { margin-top: 26px; }
  body.preview-compact[data-page="home"] .home-cta { margin-block: 62px 86px; padding: 70px; }
}
@media (min-width: 721px) and (max-width: 1120px) {
  body.preview-compact[data-page="home"] .section { padding-block: 104px; }
  body.preview-compact[data-page="home"] #projects { padding-bottom: 62px; }
  body.preview-compact[data-page="home"] #capabilities { padding-top: 68px; padding-bottom: 64px; }
  body.preview-compact[data-page="home"] .section-heading { margin-bottom: 48px; }
  body.preview-compact[data-page="home"] .home-cta { margin-block: 60px 80px; }
}

/* One restrained color family, not a whole-page recolor. */
body.preview-accent { --vela-accent:#555da8; --vela-accent-dark:#39437f; --vela-accent-light:#eef0fb; }
body.preview-accent .nav-links a.active::after,
body.preview-accent .stage-dots button.active { background:var(--vela-accent); }
body.preview-accent .stage-top i { background:var(--vela-accent); box-shadow:0 0 12px rgba(85,93,168,.32); }
body.preview-accent .hero-stage { border-color:#edeefa; }
body.preview-accent .stage-glow { background:radial-gradient(circle at var(--mx,70%) var(--my,24%),rgba(228,231,252,.9),transparent 31%),radial-gradient(circle at 18% 92%,rgba(85,93,168,.11),transparent 34%); }
body.preview-accent .hero-stage { box-shadow:0 24px 65px rgba(52,61,115,.15),inset 0 0 0 1px rgba(85,93,168,.09); }
body.preview-accent .project-number,
body.preview-accent .cap-card > span,
body.preview-accent .resume-section-title > span { color:var(--vela-accent); }
body.preview-accent .project-state { background:var(--vela-accent-dark); }
body.preview-accent .project-state.mint { background:var(--vela-accent-dark); }
body.preview-accent .agent-orbit b { background:#202646; border-color:var(--vela-accent); }
body.preview-accent .kb-console i:first-child,
body.preview-accent .kb-console strong { color:var(--vela-accent-dark); background:transparent; }
body.preview-accent .kb-console i:first-child { background:var(--vela-accent); }
body.preview-accent .tech-chip.active,
body.preview-accent .tech-chip[aria-pressed="true"] { border-color:var(--vela-accent); }
body.preview-accent .resume-project header > span { background:var(--vela-accent-light); color:var(--vela-accent-dark); }

/* Project drawings respond to the viewport, rather than replacing them with screenshots. */
.agent-orbit::after { content:""; position:absolute; left:50%; top:50%; width:10px; height:10px; margin:-5px; border-radius:50%; background:var(--vela-accent,#555da8); box-shadow:0 0 0 5px rgba(85,93,168,.12),0 0 20px rgba(85,93,168,.4); opacity:0; transform:rotate(0deg) translateX(110px); }
.project-card.is-scene-active .agent-orbit::after { opacity:1; animation:vela-orbit-signal 5.6s linear infinite; }
@keyframes vela-orbit-signal { to { transform:rotate(360deg) translateX(110px); } }
.visual-kb::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:0; background:linear-gradient(105deg,transparent 30%,rgba(85,93,168,.09) 48%,transparent 66%); transform:translateX(-100%); }
.project-card.is-scene-active .visual-kb::after { opacity:1; animation:vela-search-sweep 3.9s ease-in-out infinite; }
@keyframes vela-search-sweep { 0%,12% { transform:translateX(-100%); } 55%,100% { transform:translateX(100%); } }

/* A small viewport-triggered line makes scrolling feel responsive without moving the content around. */
body.v13-motion-ready #projects .section-heading,
body.v13-motion-ready #capabilities .section-heading { position:relative; }
body.v13-motion-ready #projects .section-heading::after,
body.v13-motion-ready #capabilities .section-heading::after { content:""; display:block; width:0; height:2px; margin-top:13px; border-radius:2px; background:var(--vela-accent,#555da8); opacity:.72; transition:width .9s cubic-bezier(.2,.8,.2,1); }
body.v13-motion-ready #projects .section-heading.v14-heading-active::after,
body.v13-motion-ready #capabilities .section-heading.v14-heading-active::after { width:min(108px,24vw); }
body.v13-motion-ready .stage-top i { animation:vela-status-breathe 2.8s ease-in-out infinite; }
@keyframes vela-status-breathe { 50% { box-shadow:0 0 0 6px rgba(85,93,168,.11),0 0 20px rgba(85,93,168,.35); } }

/* Actual screens are large, scrollable, and restricted to the detail dialog. */
.project-dialog:has(.project-gallery) { width:min(1240px,calc(100vw - 28px)); max-height:min(91dvh,1100px); }
.project-gallery { margin:38px 0 30px; }
.gallery-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:15px; }
.gallery-heading h3 { margin:7px 0 0; font-size:clamp(24px,3vw,36px); letter-spacing:-.04em; }
.gallery-heading > span { color:#777; font-size:12px; }
.gallery-main { margin:0; overflow:hidden; border:1px solid #dedee5; border-radius:17px; background:#f3f4f9; }
.gallery-open { display:block; width:100%; max-height:620px; padding:0; overflow:auto; overscroll-behavior:contain; border:0; background:#eef0f7; text-align:left; cursor:zoom-in; }
.gallery-open img { display:block; width:100%; height:auto; }
.gallery-open.is-wide { overflow-x:hidden; }
.gallery-open.is-wide img { width:155%; max-width:none; margin-left:-27.5%; }
.gallery-main figcaption { padding:13px 17px; border-top:1px solid #dedee5; color:#444; font-size:12px; }
.gallery-thumbs { display:flex; gap:8px; overflow-x:auto; padding:12px 1px 3px; }
.gallery-thumbs button { flex:none; min-height:42px; padding:9px 13px; border:1px solid #d8d9e3; border-radius:10px; background:#fafafa; color:#555; font-size:12px; font-weight:700; font-family:inherit; cursor:pointer; transition:background .22s ease,border-color .22s ease,color .22s ease; }
.gallery-thumbs button.active { border-color:var(--vela-accent,#555da8); background:var(--vela-accent-light,#eef0fb); color:var(--vela-accent-dark,#39437f); }
.gallery-thumbs button:focus-visible { outline:2px solid var(--vela-accent,#555da8); outline-offset:2px; }
.gallery-note { margin:12px 0 0; color:#777; font-size:11px; line-height:1.65; }

/* Same-page lightbox; close button / Esc / backdrop return to the project detail. */
.vela-lightbox { width:min(96vw,1500px); max-width:none; max-height:96dvh; padding:12px 14px; overflow:auto; border:1px solid #dedee5; border-radius:18px; background:#fff; box-shadow:0 30px 90px #0005; color:#222; }
.vela-lightbox::backdrop { background:rgba(15,17,28,.78); backdrop-filter:blur(7px); }
.vela-lightbox-actions { position:sticky; top:0; z-index:2; display:flex; justify-content:flex-end; align-items:center; gap:8px; padding-bottom:7px; }
.vela-lightbox-fit { min-height:36px; padding:7px 11px; border:1px solid #dedee5; border-radius:999px; background:#fff; color:#333; font-size:12px; font-weight:600; font-family:inherit; cursor:pointer; box-shadow:0 2px 10px #0001; }
.vela-lightbox-fit { display:inline-flex; align-items:center; }
.vela-lightbox-close { display:grid; place-items:center; width:37px; height:37px; border:1px solid #dedee5; border-radius:50%; background:#fff; color:#222; font-size:26px; line-height:1; cursor:pointer; box-shadow:0 2px 10px #0002; }
.vela-lightbox-content { overflow:hidden; }
.vela-lightbox-content img { display:block; width:100%; height:auto; margin:auto; }
.vela-lightbox.is-wide:not(.is-fit) .vela-lightbox-content img { width:155%; max-width:none; margin-left:-27.5%; }
.vela-lightbox.is-fit .vela-lightbox-content img { width:auto; max-width:100%; max-height:calc(100dvh - 160px); margin-inline:auto; object-fit:contain; }
.vela-lightbox-content p { margin:9px 3px 1px; font-size:12px; color:#555; }
.vela-lightbox-close:focus-visible,.vela-lightbox-fit:focus-visible,.gallery-open:focus-visible { outline:2px solid var(--vela-accent,#555da8); outline-offset:3px; }

/* The same restrained reveal language on home AND resume, including mobile re-entry. */
@media (min-width:721px) {
  body.v13-motion-ready.preview-polish .reveal-item { transition:opacity .7s ease,transform .72s cubic-bezier(.17,1.08,.28,1); }
  body.v13-motion-ready.preview-polish .reveal-item:not(.is-visible) { transform:translateY(15px); }
}
@media (max-width:720px) {
  body.v13-motion-ready .v13-scroll-item,
  body.v13-motion-ready.mobile-motion-ready #projects .project-card,
  body.v13-motion-ready.mobile-motion-ready #capabilities .cap-card { opacity:.77; transform:translateY(16px); transition:opacity .65s ease,transform .73s cubic-bezier(.17,1.08,.28,1),border-color .2s ease,box-shadow .2s ease; }
  body.v13-motion-ready .v13-scroll-item.is-inview,
  body.v13-motion-ready.mobile-motion-ready #projects .project-card.is-inview,
  body.v13-motion-ready.mobile-motion-ready #capabilities .cap-card.is-inview { opacity:1; transform:translateY(0); }
  .gallery-heading { align-items:start; flex-direction:column; }
  .gallery-open { max-height:440px; }
  .project-dialog:has(.project-gallery) .dialog-shell { padding:45px 16px 25px; }
  .vela-lightbox { width:calc(100vw - 12px); padding:7px; border-radius:13px; }
}
@media (prefers-reduced-motion:reduce) {
  .project-card.is-scene-active .agent-orbit::after,
  .project-card.is-scene-active .visual-kb::after { animation:none; opacity:0; }
  body.v13-motion-ready .stage-top i { animation:none; }
  body.v13-motion-ready #projects .section-heading::after,
  body.v13-motion-ready #capabilities .section-heading::after { transition:none; }
  body.v13-motion-ready .v13-scroll-item { opacity:1!important; transform:none!important; transition:none!important; }
}

/* V15: make the existing project-detail action easier to discover, not louder than the project itself. */
body.v15-enhanced .project-open {
  min-height:54px;
  margin-top:16px;
  padding:10px 14px 10px 18px;
  border:1px solid #d8dced;
  border-radius:14px;
  background:linear-gradient(105deg,#f5f6fc 0%,#fff 75%);
  box-shadow:0 8px 22px rgba(55,65,125,.08);
  color:#222742;
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease,background .28s ease;
}
body.v15-enhanced .project-open span {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:10px;
  background:#e9ecfa;
  color:#39437f;
  font-size:18px;
  transition:transform .28s ease,background .28s ease;
}
body.v15-enhanced .project-open:hover,
body.v15-enhanced .project-open:focus-visible {
  transform:translateY(-2px);
  border-color:#939bd1;
  box-shadow:0 14px 28px rgba(55,65,125,.14);
}
body.v15-enhanced .project-open:hover span,
body.v15-enhanced .project-open:focus-visible span { transform:translate(2px,-2px); background:#dce1f8; }
body.v15-enhanced .project-open:focus-visible { outline:2px solid #555da8; outline-offset:3px; }

/* Resume: slightly stagger the evidence cards and grow an accent rule on section entry. */
body.v15-enhanced[data-page="resume"] .resume-section-title { position:relative; }
body.v15-enhanced[data-page="resume"] .resume-section-title::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-13px;
  width:0;
  height:2px;
  border-radius:2px;
  background:#656db0;
  transition:width .85s cubic-bezier(.2,.8,.2,1);
}
body.v15-enhanced[data-page="resume"] .resume-section.is-visible .resume-section-title::after,
body.v15-enhanced[data-page="resume"] .resume-section.is-inview .resume-section-title::after { width:96px; }
body.v15-enhanced[data-page="resume"] .v15-detail-item {
  opacity:.68;
  transform:translateY(12px);
  transition:opacity .68s ease,transform .74s cubic-bezier(.2,.8,.2,1),box-shadow .5s ease;
}
body.v15-enhanced[data-page="resume"] .v15-detail-item.is-v15-visible {
  opacity:1;
  transform:translateY(0);
  transition-delay:calc(var(--v15-order,0) * 55ms);
}

/* AI: a small accent around the RAG marker, not a fake "connecting" indicator. */
body.v15-enhanced[data-page="chat"] .rag-badge { display:inline-flex; align-items:center; gap:7px; }
body.v15-enhanced[data-page="chat"] .rag-badge::before {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#555da8;
  box-shadow:0 0 0 0 rgba(85,93,168,.22);
  animation:vela-v15-rag-soft-pulse 3.6s ease-in-out infinite;
}
@keyframes vela-v15-rag-soft-pulse { 50% { box-shadow:0 0 0 5px rgba(85,93,168,.07); opacity:.7; } }
body.v15-enhanced[data-page="chat"] .chat-header { position:relative; }
body.v15-enhanced[data-page="chat"] .chat-header::after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:24px;
  width:min(110px,25%);
  height:2px;
  background:#aeb4dd;
  transform:scaleX(0);
  transform-origin:left;
  animation:vela-v15-ai-line 1.3s .25s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes vela-v15-ai-line { to { transform:scaleX(1); } }

@media (max-width:720px) {
  body.v15-enhanced .project-open { min-height:48px; margin-top:12px; padding:7px 10px 7px 13px; font-size:11px; }
  body.v15-enhanced .project-open span { width:28px; height:28px; font-size:16px; }
  /* Stronger light-to-solid arrival only on the resume, where uniform cards hid the motion. */
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-hero.v13-scroll-item,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-aside section.v13-scroll-item,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-main .resume-section.v13-scroll-item,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-cta.v13-scroll-item {
    opacity:.57;
    transform:translateY(27px) scale(.99);
    transition:opacity .82s ease,transform .86s cubic-bezier(.18,.84,.24,1),box-shadow .8s ease;
  }
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-hero.v13-scroll-item.is-inview,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-aside section.v13-scroll-item.is-inview,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-main .resume-section.v13-scroll-item.is-inview,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .resume-cta.v13-scroll-item.is-inview {
    opacity:1;
    transform:translateY(0) scale(1);
    box-shadow:0 14px 30px rgba(56,62,91,.065);
  }
  body.v15-enhanced[data-page="resume"] .resume-main .resume-section:nth-child(even),
  body.v15-enhanced[data-page="resume"] .resume-aside section:nth-child(even) {
    background:linear-gradient(145deg,#f8f9fc,#fff 70%);
    border-color:#dde0ea;
  }
  body.v15-enhanced[data-page="resume"] .v15-detail-item { opacity:.77; transform:translateY(10px); }
}
@media (prefers-reduced-motion:reduce), print {
  body.v15-enhanced .project-open,
  body.v15-enhanced .project-open span,
  body.v15-enhanced[data-page="resume"] .v15-detail-item,
  body.v15-enhanced.v13-motion-ready[data-page="resume"] .v13-scroll-item {
    opacity:1!important;
    transform:none!important;
    transition:none!important;
    animation:none!important;
  }
  body.v15-enhanced[data-page="chat"] .rag-badge::before,
  body.v15-enhanced[data-page="chat"] .chat-header::after { animation:none!important; }
}

/* v16: discoverable desktop examples without duplicating the mobile hint. */
.desktop-example-hint { margin:3px 0 16px; color:#666; font-size:12px; line-height:1.6; }
body[data-page="chat"] .question-panel .more-questions > summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:44px; margin-top:15px; padding:10px 13px;
  border:1px solid #d7daea; border-radius:11px; background:#f7f8fc;
  color:#343c70; font-weight:700; cursor:pointer;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body[data-page="chat"] .question-panel .more-questions > summary:hover,
body[data-page="chat"] .question-panel .more-questions > summary:focus-visible { background:#eef0fb; border-color:#858bc0; box-shadow:0 3px 12px #555da817; }
body[data-page="chat"] .question-panel .more-questions > summary span { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:#e8eaf6; font-size:17px; line-height:1; transition:transform .2s ease; }
body[data-page="chat"] .question-panel .more-questions[open] > summary span { transform:rotate(45deg); }
@media (max-width:720px) { .desktop-example-hint { display:none; } }

/* Sequential screenshot controls also work inside the same-page lightbox. */
.gallery-controls,.vela-lightbox-navigation { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:11px; }
.gallery-controls button,.vela-lightbox-navigation button { min-width:105px; min-height:40px; padding:8px 13px; border:1px solid #d6d8e7; border-radius:11px; background:#f8f9fd; color:#354078; font-family:inherit; font-size:12px; font-weight:700; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.gallery-controls button:hover,.vela-lightbox-navigation button:hover { background:#eef0fb; border-color:#858bc0; transform:translateY(-1px); }
.gallery-controls button:focus-visible,.vela-lightbox-navigation button:focus-visible { outline:2px solid #555da8; outline-offset:2px; }
.gallery-counter { color:#5d6270; font-size:12px; font-weight:700; white-space:nowrap; }
.vela-lightbox-navigation { position:sticky; bottom:0; z-index:2; padding:10px 2px 3px; background:linear-gradient(transparent,#fff 25%); }
@media (max-width:720px) { .gallery-controls,.vela-lightbox-navigation { gap:6px; } .gallery-controls button,.vela-lightbox-navigation button { min-width:0; flex:1; padding:9px 6px; } }

/* More legible breathing for the existing Profile AI status dot; no new motion element. */
body[data-page="chat"] .knowledge-status .live-dot {
  flex:none; background:#555da8;
  animation:vela-v16-status-breathe 2.7s ease-in-out infinite;
}
body[data-page="chat"] .knowledge-status .live-dot { animation-name:vela-v17-status-breathe; }
@keyframes vela-v17-status-breathe {
  0%,100% { box-shadow:0 0 0 3px rgba(85,93,168,.14),0 0 0 0 rgba(85,93,168,.12); }
  50% { box-shadow:0 0 0 7px rgba(85,93,168,.13),0 0 0 13px rgba(85,93,168,0); }
}
@media (prefers-reduced-motion:reduce), print { body[data-page="chat"] .knowledge-status .live-dot { animation:none!important; } }

/* v17: a steady-height mobile gallery avoids page jumps between tall and wide screenshots. */
@media (max-width:720px) {
  .project-gallery .gallery-open { height:clamp(280px,42dvh,360px); max-height:none; overflow-y:auto; }
  .project-gallery .gallery-open.is-wide { display:flex; align-items:center; }
  .project-gallery .gallery-open.is-wide img { flex:none; }
}

/* Keep the same project-two sweep, but make its passing light easier to notice. */
.visual-kb::after { background:linear-gradient(105deg,transparent 27%,rgba(72,82,164,.21) 48%,transparent 69%); }
.project-card.is-scene-active .visual-kb::after { animation-duration:3s; }
@keyframes vela-search-sweep { 0% { transform:translateX(-100%); } 66%,100% { transform:translateX(100%); } }

/* Existing Profile AI status ripple: a little clearer, never a hard flash. */
@keyframes vela-v16-status-breathe {
  0%,100% { box-shadow:0 0 0 3px rgba(85,93,168,.2),0 0 0 0 rgba(85,93,168,.14); }
  50% { box-shadow:0 0 0 8px rgba(85,93,168,.19),0 0 0 15px rgba(85,93,168,0); }
}

/* The phone resume's blue rule is the main extra reveal cue; desktop stays as in v16. */
@media (max-width:720px) {
  body.v15-enhanced[data-page="resume"] .resume-section-title::after {
    height:3px; background:#4d58ae; box-shadow:0 0 12px rgba(77,88,174,.19);
    transition:width 1.05s cubic-bezier(.2,.8,.2,1);
  }
  body.v15-enhanced[data-page="resume"] .resume-section.is-inview .resume-section-title::after { width:min(148px,44vw); }
}

/* v18: restore a subtler project-two sweep and make its desktop drawing fill the card. */
.visual-kb::after { background:linear-gradient(105deg,transparent 27%,rgba(72,82,164,.14) 48%,transparent 69%); }
@media (min-width:721px) {
  .visual-kb .kb-console { width:min(82%,390px); }
  body[data-page="chat"] .knowledge-status .live-dot {
    width:11px; height:11px; background:#46519e;
    animation:vela-v18-status-breathe 2.5s ease-in-out infinite;
  }
}
@keyframes vela-v18-status-breathe {
  0%,100% { box-shadow:0 0 0 4px rgba(70,81,158,.22),0 0 0 0 rgba(70,81,158,.12); }
  50% { box-shadow:0 0 0 9px rgba(70,81,158,.2),0 0 0 17px rgba(70,81,158,0); }
}

/* Screenshot two is 689px wide: never upscale it merely to fill the desktop dialog. */
.vela-lightbox:not(.is-wide):not(.is-fit) .vela-lightbox-content img { width:min(100%,689px); max-width:100%; }
.vela-lightbox-content img {
  cursor:zoom-in; touch-action:manipulation;
  transform-origin:var(--zoom-origin-x,50%) var(--zoom-origin-y,50%);
  transform:translate3d(var(--zoom-pan-x,0px),var(--zoom-pan-y,0px),0) scale(var(--zoom-scale,1));
  transition:transform .23s cubic-bezier(.2,.8,.2,1);
}
.vela-lightbox.is-zoomed .vela-lightbox-content img { cursor:grab; touch-action:none; }
.vela-lightbox.is-dragging .vela-lightbox-content img { cursor:grabbing; transition:none; }
@media (prefers-reduced-motion:reduce) {
  .vela-lightbox-content img { transition:none!important; }
  body[data-page="chat"] .knowledge-status .live-dot { animation:none!important; }
}

/* v19 phone-only: avoid repainting a blurred sticky header during every swipe. */
.mobile-picked-question { display:none; }
@media (max-width:720px) {
  .site-header { background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .mobile-picked-question:not([hidden]) {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    margin:0; padding:9px 12px; border-bottom:1px solid #dfe1ef;
    background:#f2f3fa; color:#384179; font-size:10px;
  }
  .mobile-picked-question span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-picked-question button {
    flex:none; min-height:34px; padding:7px 11px; border:0; border-radius:9px;
    background:#303967; color:#fff; font-family:inherit; font-size:10px; font-weight:700; line-height:1.3; cursor:pointer;
  }
  /* One page scroll, not a second 320px scroll area inside the AI conversation. */
  body[data-page="chat"] .chat-log {
    max-height:none;
    overflow-y:visible;
    overscroll-behavior:auto;
  }
}
