/* ============================================================================
   HitchAI global search — shared styles for the inline (home omni) dropdown,
   the Ctrl/Cmd-K palette, and the topbar trigger. Token-driven per the
   Universal UX Guide (§7 modal/finder reference); fallbacks cover pages that
   don't load hitch-tokens.css.
   ========================================================================== */

/* ---- topbar trigger pill ---- */
.gs-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim, #9a988f); background: none;
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 4px 12px; cursor: pointer;
  transition: all 0.2s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  white-space: nowrap; margin-left: 10px;
}
.gs-trigger:hover { color: var(--ink, #f4f1ea); border-color: var(--ink-dim, #9a988f); }
.gs-trigger .gs-glyph { color: var(--accent, #e8a13c); font-size: 0.8rem; }
.gs-trigger kbd {
  font-family: inherit; font-size: 0.54rem; color: var(--ink-faint, #8a877c);
  border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 4px; padding: 1px 5px;
}

/* ---- palette overlay + sheet ---- */
.gs-overlay {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: color-mix(in srgb, var(--bg, #050608) 78%, transparent); backdrop-filter: blur(3px);
}
.gs-overlay.open { display: block; }

/* ---- pattern G: the ⌘K palette as a native-G surface (openPalette) ---- */
.gs-gsurface {
  /* theme-aware dim: the results sit directly on this scrim, so it must follow
     --bg (dark in dark mode, cream in light) or --ink text goes unreadable */
  background:
    radial-gradient(80% 55% at 50% 0, rgba(232, 161, 60, 0.10), rgba(232, 161, 60, 0) 55%),
    color-mix(in srgb, var(--bg, #0a0b0d) 90%, transparent);
  backdrop-filter: blur(8px) saturate(1.1); overflow-y: auto;
}
.gs-gcard { width: min(820px, 94vw); margin: 12vh auto 0; padding: 0 6px 10vh; }
.gs-ghead { display: flex; align-items: center; gap: 12px; padding: 0 4px 14px; }
.gs-gorb { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 14px rgba(232, 161, 60, 0.32)); }
.gs-gmark { font-family: var(--serif, "Instrument Serif", Georgia, serif); font-size: 1.7rem; color: var(--ink, #f4f1ea); line-height: 1; }
.gs-gmark i { font-style: italic; color: var(--accent, #e8a13c); }
.gs-gkbd {
  margin-left: auto; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint, #6b675d); border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 5px; padding: 3px 7px;
}
.gs-gfield {
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05), rgba(0, 0, 0, 0)), var(--bg-soft, #101216);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1)); border-radius: 16px;
  padding: 1rem 1.1rem; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gs-gfield:focus-within { border-color: rgba(232, 161, 60, 0.45); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(232, 161, 60, 0.1); }
.gs-gfield input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ink, #f4f1ea); font-size: 1.02rem; font-weight: 300; font-family: var(--sans, "Inter", system-ui, sans-serif); }
.gs-gfield input::placeholder { color: var(--ink-faint, #6b675d); }
.gs-gsurf { margin-top: 6px; }
.gs-sheet {
  width: min(640px, 92vw); margin: 12vh auto 0;
  background: var(--bg-soft, #101216);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.7);
}
.gs-inputrow {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
}
.gs-inputrow .gs-glyph { color: var(--accent, #e8a13c); font-size: 1.05rem; }
.gs-inputrow input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink, #f4f1ea); font-size: 1rem; font-weight: 300;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}
.gs-inputrow input::placeholder { color: var(--ink-faint, #8a877c); }
.gs-kbd {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.56rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint, #8a877c);
  border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 4px; padding: 2px 6px;
}

/* ---- results panel (shared by both skins) ---- */
.gs-panel { display: none; }
.gs-panel.open { display: block; }
.gs-panel.gs-inline {
  position: absolute; top: calc(100% + 8px); left: -1px; right: -1px; z-index: 60;
  background: var(--bg-soft, #101216);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 14px; overflow: hidden auto; max-height: min(58vh, 520px);
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.7);
}
.gs-panel.gs-palette { overflow: hidden auto; max-height: 56vh; }

.gs-group {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent, #e8a13c); padding: 11px 16px 5px;
}
.gs-group .gs-gcount { color: var(--ink-faint, #8a877c); letter-spacing: 0.08em; }
.gs-row {
  display: block; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 7px 16px; transition: background 0.15s;
}
.gs-row.on { background: rgba(232, 161, 60, 0.12); }
.gs-line { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.gs-name {
  color: var(--ink, #f4f1ea);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.84rem; font-weight: 300; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-name b { color: var(--accent-soft, #f0c98a); font-weight: 500; }
.gs-meta {
  color: var(--ink-faint, #8a877c); font-size: 0.66rem; flex: 1;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.gs-go { color: var(--ink-faint, #8a877c); font-size: 0.7rem; opacity: 0; flex: none; }
.gs-row.on .gs-go { opacity: 1; color: var(--accent, #e8a13c); }

/* ---- entity-type badges (v2) — semantic hue, desaturated so the gold
       accent stays the accent; codes in docs/global-search-v2-design.md ---- */
.gs-bdg {
  flex: none; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid; border-radius: 4px; padding: 1.5px 5px;
  position: relative; top: -1px;
}
.gs-bdg-ma { color: #e0b268; border-color: rgba(232, 161, 60, 0.4); }
.gs-bdg-fs { color: #d9c08f; border-color: rgba(240, 201, 138, 0.32); }
.gs-bdg-bp { color: #7cc2b1; border-color: rgba(124, 194, 177, 0.35); }
.gs-bdg-to { color: #8fb2d9; border-color: rgba(143, 178, 217, 0.35); }
.gs-bdg-df { color: #a3c48e; border-color: rgba(163, 196, 142, 0.35); }
.gs-bdg-sa { color: #b3a0d6; border-color: rgba(179, 160, 214, 0.35); }
.gs-bdg-pe { color: #e0b268; border-color: rgba(232, 161, 60, 0.4); }
.gs-bdg-pj { color: #b9b5a8; border-color: rgba(244, 241, 234, 0.22); }
.gs-bdg-li { color: #94917f; border-color: rgba(244, 241, 234, 0.14); }
/* opportunity lifecycle stages — cool = early, gold = live, green = awarded */
.gs-bdg-ey { color: #8fb2d9; border-color: rgba(143, 178, 217, 0.3); }
.gs-bdg-op { color: #e0b268; border-color: rgba(232, 161, 60, 0.42); }
.gs-bdg-aw { color: #a3c48e; border-color: rgba(163, 196, 142, 0.38); }
.gs-bdg-rc { color: #b3a0d6; border-color: rgba(179, 160, 214, 0.35); }
.gs-bdg-fc { color: #9a9686; border-color: rgba(244, 241, 234, 0.16); }
/* live-tier rows (from the resolver) — a hairline dot marks the deeper hit */
.gs-live-dot { color: var(--accent, #e0b268); opacity: 0.6; margin-right: 2px; }

/* collapsed-pool note under a vehicle row */
.gs-note {
  display: block; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.56rem; letter-spacing: 0.06em;
  color: var(--ink-faint, #8a877c); padding-top: 3px;
}
.gs-note::before { content: "▸ "; color: var(--accent, #e8a13c); }

/* ---- scoped full-search chip bar (bottom of the panel) ---- */
.gs-scopes { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; }
.gs-scope {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--ink-dim, #9a988f); background: none; cursor: pointer;
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 4px 11px;
  transition: all 0.15s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.gs-scope:hover, .gs-scope.on {
  color: var(--accent-soft, #f0c98a);
  border-color: rgba(232, 161, 60, 0.45);
  background: rgba(232, 161, 60, 0.08);
}
.gs-scope:focus-visible { outline: 1px solid var(--accent, #e8a13c); outline-offset: 1px; }

.gs-foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint, #8a877c);
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  padding: 8px 16px; margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .gs-trigger, .gs-row, .gs-scope { transition: none; }
}

/* ============================================================================
   Ask Hitch — the answer sheet (assets/js/ask-hitch.js). Same token language
   as the palette; the loading treatment is the CIT "joyful loading" port.
   ========================================================================== */
.gs-bdg-ask {
  color: #0a0b0d; background: var(--accent, #e8a13c);
  border-color: var(--accent, #e8a13c);
}

/* pattern G — the opportunity-page Ask Hitch look: a wider, gold-tinted card */
.ask-sheet {
  width: min(880px, 94vw); margin: 9vh auto 0;
  max-height: 84vh; overflow: hidden auto;
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05), rgba(0, 0, 0, 0)),
              var(--bg-soft, #101216);
}
.ask-head {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05), rgba(0, 0, 0, 0)),
              var(--bg-soft, #101216);
}
/* the exact Ask Hitch wordmark: serif, "Ask" in ink + "Hitch" in gold italic
   (matches home.css .askhero__mark, sized down) — NOT the ✦/mono/gold-A form */
.ask-mark {
  flex: none; font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-weight: 400; font-size: 1.12rem; letter-spacing: 0.004em; line-height: 1;
  color: var(--ink, #f4f1ea);
}
.ask-mark i { font-style: italic; color: var(--accent, #e8a13c); }
/* live indicator (opportunity-card language): accent + pulsing while Hitch
   works, mint-green when the verdict lands. Driven from ask-hitch.js. */
.ask-live {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.56rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #59d38f;
}
.ask-live i { width: 6px; height: 6px; border-radius: 50%; background: #59d38f; box-shadow: 0 0 8px #59d38f; }
.ask-live.reading { color: var(--accent, #e8a13c); }
.ask-live.reading i { background: var(--accent, #e8a13c); box-shadow: 0 0 8px var(--accent, #e8a13c); animation: ask-livepulse 1s infinite; }
@keyframes ask-livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.ask-q {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.86rem; font-weight: 300; color: var(--ink, #f4f1ea);
}
.ask-x {
  flex: none; background: none; border: none; cursor: pointer; line-height: 1;
  color: var(--ink-dim, #9a988f); font-size: 1.05rem;
}
.ask-x:hover, .ask-x:focus-visible { color: var(--ink, #f4f1ea); outline: none; }
.ask-body { padding: 18px 20px 14px; }

/* pattern G — in-lane surface (global-search.js "surface" mode on the home):
   the results panel + the Ask Hitch answer render inside #omni-surface. */
.gs-panel.gs-surface {
  position: static; display: none; z-index: auto;
  background: none; border: none; border-radius: 0; box-shadow: none;
  max-height: none; overflow: visible; margin: 6px 0 0;
}
.gs-panel.gs-surface.open { display: block; }
.gs-answer:empty { display: none; }
/* the in-lane answer: full width, keeps the gold-tinted card, drops modal chrome */
.ask-sheet.ask-inline {
  width: 100%; margin: 0; max-height: none; overflow: visible; border-radius: 16px;
}
.ask-inline .ask-head { position: static; }
.ask-inline .ask-x { color: var(--ink-faint, #6b675d); }

/* loading (Fibonacci sphere + rotating status + elapsed) */
.ask-loading {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 34px 0 40px;
}
.ask-sph { width: 116px; height: 116px; display: block; }
.ask-loadmsg {
  font-family: var(--serif, Georgia, serif); font-size: 1.06rem;
  color: var(--ink, #f4f1ea); letter-spacing: 0.01em; text-align: center;
  min-height: 1.3em; transition: opacity 0.3s;
}
.ask-loadsub {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent, #e8a13c); text-align: center;
}
/* interpretation revealed under the phase, the moment UNDERSTAND resolves —
   the earliest partial the slow build can show (see ask-hitch.js setInterpLive) */
.ask-loadinterp {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.68rem;
  color: var(--ink-dim, #9a988f); text-align: center; line-height: 1.6;
  max-width: 74ch; margin: 4px auto 0; min-height: 1em; transition: opacity 0.3s;
}
.ask-loadinterp b { color: var(--accent-soft, #f0c98a); font-weight: 500; }

/* verdict */
.ask-verdict {
  font-family: var(--serif, Georgia, serif); font-weight: 400;
  font-size: 1.28rem; line-height: 1.32; color: var(--ink, #f4f1ea);
  text-wrap: balance;
}
.ask-verdict.pending { color: var(--ink-faint, #8a877c); }
/* provisional draft — a first answer straight from the fact table, shown before
   the model's cited verdict (ask-hitch.js provisionalVerdict) */
.ask-verdict.provisional { color: var(--ink, #f4f1ea); }
.ask-prov-note {
  margin-top: 7px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.6rem; letter-spacing: 0.04em; color: var(--accent-soft, #f0c98a);
}
.ask-dots i { animation: ask-blink 1.2s infinite; font-style: normal; }
.ask-dots i:nth-child(2) { animation-delay: 0.2s; }
.ask-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ask-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.ask-prose { margin-top: 8px; }
.ask-prose p {
  margin: 0 0 7px; color: var(--ink-dim, #c2bfb4);
  font-size: 0.86rem; line-height: 1.55; max-width: 64ch;
}
/* pattern G — footnote-pill citations (opportunity-card .ah-fn) */
.ask-cite {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.56em;
  color: var(--accent, #e8a13c); text-decoration: none; vertical-align: super;
  background: color-mix(in srgb, var(--accent, #e8a13c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #e8a13c) 35%, var(--line, rgba(244, 241, 234, 0.1)));
  border-radius: 5px; padding: 0 0.28em; margin-left: 0.1em; line-height: 1.3;
}
.ask-cite:hover, .ask-cite:focus-visible { background: color-mix(in srgb, var(--accent, #e8a13c) 26%, transparent); outline: none; }
.ask-caveat {
  margin-top: 9px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.6rem; letter-spacing: 0.06em; color: var(--ink-dim, #9a988f);
}
.ask-scope {
  margin-top: 14px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent, #e8a13c);
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); padding-top: 11px;
}

/* interpreted-as line (query-planner transparency) */
.ask-interp {
  margin-top: 10px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.62rem; color: var(--ink-dim, #c2bfb4); line-height: 1.9;
}
/* the interpreted term pills wrap onto their own line(s); they are joined with no
   whitespace, so a flex row (not inline) is what actually breaks them — otherwise a
   multi-agency question ("…cisa and disa and dla") runs the pills off the sheet edge. */
.ask-terms {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.ask-terms i {
  font-style: normal; color: var(--ink-faint, #8a877c);
  border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 100px; padding: 1px 8px; white-space: nowrap;
}

/* deterministic trend strip */
.ask-trend {
  display: flex; align-items: flex-end; gap: 8px;
  height: 130px; margin-top: 14px; padding: 0 2px;
}
.ask-tcol {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; height: 100%;
}
.ask-tval {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.56rem;
  font-variant-numeric: tabular-nums; color: var(--ink-dim, #c2bfb4);
  margin-bottom: 4px; white-space: nowrap;
}
.ask-tbar { width: min(46px, 82%); border-radius: 4px 4px 1px 1px; }
.ask-tbar.hist { background: rgba(224, 178, 104, 0.55); }
.ask-tbar.req  { background: var(--accent, #e8a13c); }
.ask-tbar.out  { background: rgba(232, 161, 60, 0.18); border: 1px dashed rgba(232, 161, 60, 0.45); }
.ask-tbar.con  { background: rgba(124, 194, 177, 0.6); }
.ask-tbar.conp { background: rgba(124, 194, 177, 0.16); border: 1px dashed rgba(124, 194, 177, 0.5); }
.ask-strip-label {
  margin-top: 14px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint, #8a877c);
}
.ask-strip-label + .ask-trend { margin-top: 6px; }
.ask-tx {
  margin-top: 5px; text-align: center;
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.58rem;
  color: var(--ink-dim, #c2bfb4);
}
.ask-tx small {
  display: block; font-size: 0.48rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint, #8a877c); margin-top: 1px;
}

/* fact rows */
.ask-facts { margin-top: 12px; border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); }
.ask-fact {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 2px;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  transition: background 0.3s;
}
.ask-fact.hit { background: rgba(232, 161, 60, 0.12); }
.ask-trend { transition: background 0.3s; border-radius: 8px; }
.ask-trend.hit { background: rgba(232, 161, 60, 0.07); }
.ask-fid {
  flex: none; width: 20px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.56rem; color: var(--accent, #e8a13c);
}
.ask-fmain { flex: 1; min-width: 0; font-size: 0.8rem; color: var(--ink-dim, #c2bfb4); }
.ask-fmain b { color: var(--ink, #f4f1ea); font-weight: 500; }
.ask-fsrc {
  display: block; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.55rem; letter-spacing: 0.05em; color: var(--ink-faint, #8a877c); margin-top: 2px;
}
.ask-fnums {
  flex: none; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.68rem; font-variant-numeric: tabular-nums; color: var(--ink, #f4f1ea);
  white-space: nowrap;
}
.ask-fnums i { font-style: normal; color: var(--ink-faint, #8a877c); }
.ask-fgo { flex: none; color: var(--ink-faint, #8a877c); font-size: 0.75rem; text-decoration: none; }
.ask-fgo:hover, .ask-fgo:focus-visible { color: var(--accent, #e8a13c); outline: none; }
.ask-flag {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.5rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid; border-radius: 4px; padding: 1px 5px; margin-left: 5px;
  position: relative; top: -1px;
}
.ask-flag.new  { color: var(--good, #7bbf7b); border-color: rgba(123, 191, 123, 0.4); }
.ask-flag.zero { color: var(--warn, #d98c5f); border-color: rgba(217, 140, 95, 0.4); }
.ask-flag.xfer { color: var(--accent-soft, #f0c98a); border-color: rgba(232, 161, 60, 0.45); }
.ask-flag.dom-bud { color: #e0b268; border-color: rgba(232, 161, 60, 0.35); }
.ask-flag.dom-it  { color: #8fb2d9; border-color: rgba(143, 178, 217, 0.35); }
.ask-flag.dom-con { color: #7cc2b1; border-color: rgba(124, 194, 177, 0.35); }
.ask-flag.dom-civ { color: #9ecb8f; border-color: rgba(158, 203, 143, 0.35); }
.ask-flag.dom-ppl { color: #c39bd3; border-color: rgba(195, 155, 211, 0.38); }

/* the always-available Ask chip in the scope bar */
.gs-scope-ask { color: var(--accent-soft, #f0c98a); border-color: rgba(232, 161, 60, 0.35); }

.ask-cong {
  margin-top: 10px; font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.62rem; color: var(--ink-dim, #c2bfb4);
}

/* follow-through chips + footer */
.ask-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ask-chip {
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.6rem;
  letter-spacing: 0.06em; color: var(--ink-dim, #9a988f);
  background: none; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 5px 12px;
  transition: all 0.15s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.ask-chip:hover, .ask-chip:focus-visible {
  color: var(--accent-soft, #f0c98a);
  border-color: rgba(232, 161, 60, 0.45);
  background: rgba(232, 161, 60, 0.08);
  outline: none;
}
.ask-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 14px;
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint, #8a877c);
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); padding-top: 9px;
}
.ask-err { padding: 26px 6px 30px; font-size: 0.86rem; color: var(--ink-dim, #c2bfb4); line-height: 1.6; }
.ask-err b { color: var(--ink, #f4f1ea); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ask-dots i { animation: none; }
  .ask-chip, .ask-fact { transition: none; }
}
