/* Sentinel v2 - askbot.css: the Askbot on every page (v2/askbot.js, SNT-158). One element: shut, the bubble - Askbot's own face, the
   white ghost of v2/fx-bot.js, always moving; open, the chat, expanded out of the icon, which stays in its top corner where a close
   button would be (the owner, 2026-10-17). Text only; moved by its header or its icon, resized from any edge or corner. The note at
   the top of the page: three lines at most. Animations always on. */
/* THE ONE ELEMENT: shut, a 46 px circle that is the icon; open, the chat - expanded out of a round plate round the icon (v2/askbot.js)
   - with the icon in its top corner, where a close button would be */
.v2ab { position: fixed; z-index: calc(var(--z-modal, 1000) - 2); border-radius: 23px; }
.v2ab[hidden] { display: none; }
.v2ab.is-open { overflow: hidden; color: var(--ink, #1a2330); font-family: var(--font-sans, inherit); font-size: 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface-raised, var(--surface-card, #fff)) 96%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 70px -26px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2, rgba(0, 0, 0, .12)); }
/* the icon: the whole bubble when shut; in the open chat's corner, 12 px in, where a close button would be */
.v2ab-icon { position: absolute; z-index: 2; left: 0; top: 0; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  cursor: grab; -webkit-tap-highlight-color: transparent; touch-action: none; }
.v2ab.is-open .v2ab-icon { top: 12px; }
.v2ab.is-open.is-right .v2ab-icon { left: auto; right: 12px; }
.v2ab.is-open.is-left .v2ab-icon { left: 12px; }
.v2ab.is-drag .v2ab-icon { cursor: grabbing; }
/* THE FACE (v2/fx-bot.js): the ghost itself, no disc and no ring round it - it moves on its own (looks round, blinks, jumps with a
   turn; hops while it answers); its canvas draws past its 46 px box so a hop is never cut. Keyboard focus: a soft glow, not a line */
.v2ab-icon:focus-visible { outline: none; }
.v2ab-icon:focus-visible .v2ab-float { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--brand, #4f5bd5) 70%, transparent)); }
.v2ab-float { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink, #1a2330);
  transition: scale .45s cubic-bezier(.37, .02, .2, 1); }
.v2ab.is-drag .v2ab-float { scale: 1.08; }
.v2ab-icon:hover .v2ab-float { scale: 1.06; }
/* the mark stands in when the face is not loaded: then on a frosted circle */
.v2ab-mark { width: 21px; height: 21px; opacity: .86; }
.v2ab-float:has(> .v2ab-mark) { background: color-mix(in srgb, var(--surface-card, #fff) 62%, transparent); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink, #1a2330) 14%, transparent); }
.v2ab.is-hello .v2ab-float { animation: v2ab-hello .7s cubic-bezier(.22, 1, .36, 1); }
@keyframes v2ab-hello { from { scale: .4; opacity: 0; } }

/* the chat's contents: in once it has expanded, out before it folds back */
.v2ab-body { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  opacity: 0; transition: opacity .16s ease; }
.v2ab-body[hidden] { display: none; }
.v2ab.is-in .v2ab-body { opacity: 1; transition-duration: .28s; }
.v2ab-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; min-height: 70px; align-content: center; padding: 14px 16px 12px; border-bottom: 1px solid var(--line, rgba(0, 0, 0, .08));
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.v2ab.is-moving, .v2ab.is-moving .v2ab-h { cursor: grabbing; }
.v2ab.is-moving, .v2ab.is-sizing { user-select: none; -webkit-user-select: none; }
/* the header leaves the icon its corner */
.v2ab.is-right .v2ab-h { padding-right: 72px; }
.v2ab.is-left .v2ab-h { padding-left: 72px; }
.v2ab-a, .v2ab-q, .v2ab-card-t, .v2ab-src span { overflow-wrap: anywhere; }
.v2ab-h b { font-weight: 600; letter-spacing: -.01em; }
.v2ab-about { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3, var(--text-muted)); font-size: 12px; }
.v2ab-log { position: relative; overflow: auto; padding: 14px 16px; display: grid; gap: 18px; align-content: start; overscroll-behavior: contain; touch-action: pan-y; }
.v2ab-log:focus-visible { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand, #4f5bd5) 40%, transparent); }
.v2ab-x { display: grid; gap: 10px; min-width: 0; }
.v2ab-hello p { margin: 0; color: var(--ink-2, var(--text-secondary)); line-height: 1.55; }
.v2ab-q { justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--bg-sunken, rgba(0, 0, 0, .05)); white-space: pre-wrap; }
.v2ab-a { line-height: 1.55; }
.v2ab-a p { margin: 0 0 8px; }
.v2ab-a ul { margin: 0 0 8px; padding-left: 18px; }
.v2ab-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; margin-left: 2px; font: 600 10px/1 var(--font-sans, inherit);
  background: var(--bg-sunken, rgba(0, 0, 0, .06)); color: var(--ink-2); vertical-align: 2px; }
.v2ab-cards { display: grid; gap: 6px; }
.v2ab-card { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid color-mix(in srgb, var(--brand, #4f5bd5) 35%, var(--line-2, rgba(0, 0, 0, .12)));
  background: color-mix(in srgb, var(--brand, #4f5bd5) 5%, var(--surface-card, #fff)); }
.v2ab-card:hover { background: color-mix(in srgb, var(--brand, #4f5bd5) 10%, var(--surface-card, #fff)); }
.v2ab-card-k { font: 600 11px/1.3 var(--font-sans, inherit); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink, var(--brand, #4f5bd5)); }
.v2ab-card-t { font-weight: 500; }
.v2ab-srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.v2ab-src { display: flex; gap: 6px; align-items: center; width: 100%; text-align: left; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 12.5px;
  color: var(--ink-2, var(--text-secondary)); cursor: pointer; }
.v2ab-src:hover:not(:disabled) { background: var(--surface-hover, rgba(0, 0, 0, .05)); color: var(--ink); }
.v2ab-src:disabled { cursor: default; }
.v2ab-work { display: flex; align-items: center; gap: 10px; color: var(--ink-2, var(--text-secondary)); }
/* the working line: the face hops in the corner; its words shine across */
.v2ab-work-t { background: linear-gradient(90deg, var(--ink-3, #8a919c) 0%, var(--ink, #1a2330) 50%, var(--ink-3, #8a919c) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: v2ab-shine 2.4s linear infinite; }
@keyframes v2ab-shine { to { background-position: -200% 0; } }
.v2ab-err { margin: 0; color: var(--sev-critical, #c0392b); }
.v2ab-f { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; border-top: 1px solid var(--line, rgba(0, 0, 0, .08)); }
.v2ab-f textarea { flex: 1 1 auto; min-height: 40px; max-height: 120px; resize: none; padding: 9px 12px; border-radius: 12px; font: inherit; color: inherit;
  border: 1px solid var(--line-2, rgba(0, 0, 0, .14)); background: var(--surface-card, #fff); }
.v2ab-f textarea:focus { outline: none; border-color: var(--brand, #4f5bd5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #4f5bd5) 16%, transparent); }
/* the send button: round, in the page's ink, no line round it (the owner, 2026-10-17: "Remove the outer lines of them", "remove the
   silver ring in outer edge from everywhere"): keyboard focus lightens it instead */
.v2ab-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--ink, #1a2330); color: var(--surface-card, #fff); box-shadow: none; transition: background-color .16s; }
.v2ab-send:hover, .v2ab-send:focus-visible { outline: none; background: color-mix(in srgb, var(--ink, #1a2330) 84%, var(--surface-card, #fff)); }
/* RESIZED FROM ANY EDGE OR CORNER: thin strips along the edges, squares at the corners, inside the chat's frame */
.v2ab-rz { position: absolute; z-index: 3; touch-action: none; }
.v2ab-rz[data-rz="n"], .v2ab-rz[data-rz="s"] { left: 16px; right: 16px; height: 6px; cursor: ns-resize; }
.v2ab-rz[data-rz="n"] { top: 0; }
.v2ab-rz[data-rz="s"] { bottom: 0; }
.v2ab-rz[data-rz="e"], .v2ab-rz[data-rz="w"] { top: 16px; bottom: 16px; width: 6px; cursor: ew-resize; }
.v2ab-rz[data-rz="e"] { right: 0; }
.v2ab-rz[data-rz="w"] { left: 0; }
.v2ab-rz[data-rz="ne"], .v2ab-rz[data-rz="nw"], .v2ab-rz[data-rz="se"], .v2ab-rz[data-rz="sw"] { width: 16px; height: 16px; }
.v2ab-rz[data-rz="ne"] { top: 0; right: 0; cursor: nesw-resize; }
.v2ab-rz[data-rz="nw"] { top: 0; left: 0; cursor: nwse-resize; }
.v2ab-rz[data-rz="se"] { bottom: 0; right: 0; cursor: nwse-resize; }
.v2ab-rz[data-rz="sw"] { bottom: 0; left: 0; cursor: nesw-resize; }
/* the grip drawn on the free bottom corner (away from the icon) */
.v2ab.is-left .v2ab-rz[data-rz="se"]::after, .v2ab.is-right .v2ab-rz[data-rz="sw"]::after { content: ""; position: absolute; inset: 4px; opacity: .5;
  border: solid var(--ink-3, rgba(0, 0, 0, .4)); border-width: 0 1.5px 1.5px 0; }
.v2ab.is-right .v2ab-rz[data-rz="sw"]::after { border-width: 0 0 1.5px 1.5px; }

/* THE NOTE AT THE TOP of the page the user was taken to: three lines at most, below the top bar */
.v2ab-note { position: fixed; z-index: calc(var(--z-toast, 1100)); left: 50%; top: 60px; width: min(560px, calc(100vw - 32px)); translate: -50% 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-raised, var(--surface-card, #fff)); color: var(--ink, #1a2330);
  box-shadow: 0 18px 48px -20px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2, rgba(0, 0, 0, .12)); }
.v2ab-note[hidden] { display: none; }
.v2ab-note.is-in { animation: v2ab-drop .45s cubic-bezier(.22, 1, .36, 1) both; }
.v2ab-note.is-out { animation: v2ab-lift .3s ease-in both; }
@keyframes v2ab-drop { from { opacity: 0; translate: -50% -14px; } }
@keyframes v2ab-lift { to { opacity: 0; translate: -50% -10px; } }
.v2ab-note-i { width: 26px; height: 26px; display: grid; place-items: center; }
.v2ab-note-i .v2ab-mark { width: 14px; height: 14px; }
.v2ab-note-t { margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2ab-note-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 2px 4px; }
/* the place the user was taken to, lit for a moment */
/* LIT, NEVER RINGED (the owner: no ring round a button, 2026-10-17; Help's "Show me in the app" lights buttons too): a pale wash over
   the thing and a breath of its size, twice - an inset fill, so a button keeps its own shape and nothing is drawn round it */
.v2ab-lit { animation: v2ab-lit 2.4s ease-out; }
@keyframes v2ab-lit {
  0%, 40% { box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--surface-mark) 70%, transparent); }
  12%, 36% { scale: 1.04; }
  24% { scale: 1; }
  100% { box-shadow: inset 0 0 0 100vmax transparent; scale: 1; }
}

@media (max-width: 640px) {
  .v2ab-note { top: 64px; }
  /* stepping aside while a page scrolls (askbot.js): most of it past the nearer edge, back when the scroll rests */
  .v2ab.is-shut { transition: translate .32s cubic-bezier(.22, 1, .36, 1); }
  .v2ab.is-shut.is-tucked { translate: var(--ab-tuck, 62%) 0; }
}

/* THE ASK PAGE (clm.js): the cards the agent offered, above the sources, and a record of Sentinel cited as a source (SNT-158) */
.dx .ask-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.dx .ask-place { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid color-mix(in srgb, var(--brand, #4f5bd5) 35%, var(--line-2, rgba(0, 0, 0, .12)));
  background: color-mix(in srgb, var(--brand, #4f5bd5) 5%, var(--surface-card, #fff)); }
.dx .ask-place:hover { background: color-mix(in srgb, var(--brand, #4f5bd5) 10%, var(--surface-card, #fff)); }
.dx .ask-place-k { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1.3 var(--font-sans, inherit); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink, var(--brand, #4f5bd5)); }
.dx .ask-place-n { color: var(--ink-2, var(--text-secondary)); font-size: 13px; line-height: 1.45; }
.dx .ask-src.is-record .ask-rec-k { font: 600 10.5px/1 var(--font-sans, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, var(--text-muted));
  padding: 3px 6px; border-radius: 5px; background: var(--bg-sunken, rgba(0, 0, 0, .05)); }
.dx .ask-rec { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2, var(--text-secondary)); }
