/* Technogise theme for Project Lens AI (Chainlit)
   --tg-* token layer (namespaced so it cannot clobber Chainlit's shadcn
   tokens), with light (:root) and dark (.dark) values consumed by the rules
   below. Brand blue is read from Chainlit's own --primary via hsl() so it
   adapts per theme. !important is used where Chainlit ships higher-specificity
   defaults. */

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700&display=swap');

/* ---- Tokens (light) -------------------------------------- */
:root {
  --tg-surface:       #f5f7fa;   /* zebra rows, chip bg, code/pre bg */
  --tg-surface-2:     #eef1f6;
  --tg-cream:         #fffdf0;   /* matched-section + blockquote bg */
  --tg-border:        #e6e6e6;   /* table cell borders */
  --tg-ink:           #1a1a1a;   /* h1 + blockquote text */
  --tg-muted:         #67707e;
  --tg-accent:        #fbe452;   /* yellow accents */
  --tg-table-head:    #111418;   /* table header bg */
  --tg-table-head-fg: #ffffff;
  --tg-tag-bg:        #ffffff;   /* chip-tag pill bg */
}

/* ---- Tokens (dark — Chainlit sets html.dark) ------------- */
.dark {
  --tg-surface:       #171b22;
  --tg-surface-2:     #1e242d;
  --tg-cream:         #221f12;
  --tg-border:        #2a313c;
  --tg-ink:           #e7eaef;
  --tg-muted:         #97a1b0;
  --tg-accent:        #fbe452;
  --tg-table-head:    #000000;
  --tg-table-head-fg: #ffffff;
  --tg-tag-bg:        #0e1116;
}

:root,
body,
button,
input,
textarea {
  font-family: 'Mulish', sans-serif !important;
}

/* ---- Markdown content rendered inside assistant/user messages ---- */

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tg-ink) !important;
  border-bottom: 2px solid var(--tg-accent);
  padding-bottom: 6px;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: hsl(var(--primary)) !important;
  border-left: 4px solid var(--tg-accent);
  padding-left: 10px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--primary)) !important;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.85rem;
  margin: 16px 0;
}

th {
  background-color: var(--tg-table-head) !important;
  color: var(--tg-table-head-fg) !important;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  border-top: 1px solid var(--tg-border);
}

tr:nth-child(even) td {
  background-color: var(--tg-surface);
}

tr:nth-child(odd) td {
  background-color: transparent;
}

code {
  font-family: monospace;
  background-color: var(--tg-surface);
  padding: 2px 4px;
  border-radius: 3px;
}

pre {
  background-color: var(--tg-surface);
  border-left: 3px solid var(--tg-accent);
  padding: 12px;
  overflow-x: auto;
  border-radius: 4px;
}

pre code {
  background-color: transparent;
  padding: 0;
}

blockquote {
  background-color: var(--tg-cream);
  border-left: 4px solid var(--tg-accent);
  color: var(--tg-ink);
  margin: 0;
  padding: 12px 16px;
}

/* Links inside message content (scoped so app-chrome links keep their styling) */
.message-content a {
  color: hsl(var(--primary)) !important;
  text-decoration: none;
}
.message-content a:hover {
  text-decoration: underline;
}

/* Prose rhythm — scoped to message content so chrome <p>/<li> are untouched */
.message-content { line-height: 1.6; }
.message-content p { margin: 0 0 14px; }
.message-content ul,
.message-content ol { margin: 0 0 14px; padding-left: 22px; }
.message-content li { margin: 5px 0; }
.message-content h2,
.message-content h3 { margin: 22px 0 10px; }

/* ---- Source chip + document modal (SourcePanel.jsx custom element) ---- */

.technogise-source-chip {
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  align-self: flex-start;
  gap: 4px;
  border-radius: 0.75rem;
  background-color: var(--tg-surface);
  color: hsl(var(--primary));
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
}
.technogise-source-chip:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Highlighted matched section inside the modal */
.technogise-matched-section {
  background-color: var(--tg-cream);
  border-left: 4px solid var(--tg-accent);
  padding: 8px 14px;
  margin: 10px 0;
  border-radius: 4px;
}

/* Matched-section tag shown inline on a source chip */
.technogise-chip-tag {
  background-color: var(--tg-tag-bg);
  color: hsl(var(--primary));
  border-radius: 0.5rem;
  padding: 0 6px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: none;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Keep tags readable when the chip turns blue on hover */
.technogise-source-chip:hover .technogise-chip-tag {
  background-color: var(--tg-tag-bg);
  color: hsl(var(--primary));
}

/* On-brand "Matched for your query" badge (overrides the default pink Badge) */
.technogise-matched-badge {
  background-color: var(--tg-accent) !important;
  color: #1a1a1a !important;
  border: none !important;
  display: inline-block;
  margin-bottom: 6px;
}

/* ---- Tool-activity trace (ToolTrace.jsx custom element) ---- */
.technogise-trace {
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  background-color: var(--tg-surface);
  margin: 14px 0;
  overflow: hidden;
}
.technogise-trace summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tg-ink);
}
.technogise-trace summary::-webkit-details-marker { display: none; }
.technogise-trace-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background-color: #1f8a4c; flex: 0 0 auto;
}
.technogise-trace-chev {
  margin-left: auto; color: var(--tg-muted); transition: transform .2s;
}
.technogise-trace[open] summary .technogise-trace-chev { transform: rotate(90deg); }
.technogise-trace-body {
  padding: 4px 14px 12px; border-top: 1px solid var(--tg-border);
}
.technogise-trace-step {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem; color: var(--tg-ink);
}
.technogise-trace-ok { color: #1f8a4c; flex: 0 0 auto; }
.technogise-trace-fn { color: hsl(var(--primary)); font-weight: 700; }
.technogise-trace-ms { margin-left: auto; color: var(--tg-muted); }

/* ---- Status cards (StatusCard.jsx: error / empty states) ---- */
.technogise-status-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--tg-border);
  border-left-width: 4px;
  border-radius: 10px;
  background-color: var(--tg-surface);
  padding: 14px 16px;
  margin: 6px 0;
}
.technogise-status-icon { flex: 0 0 auto; margin-top: 1px; }
.technogise-status-heading { font-weight: 700; font-size: 0.95rem; color: var(--tg-ink); margin-bottom: 2px; }
.technogise-status-body { color: var(--tg-muted); font-size: 0.85rem; line-height: 1.5; }
.technogise-status-error { border-left-color: #d7263d; }
.technogise-status-error .technogise-status-icon { color: #d7263d; }
.technogise-status-empty { border-left-color: hsl(var(--primary)); }
.technogise-status-empty .technogise-status-icon { color: hsl(var(--primary)); }

/* ---- Loading status (LoadingStatus.jsx custom element) ---- */
/* Animation is pure CSS so it runs smoothly client-side, independent of the
   stream; Python only swaps the phase text on real events. */
.technogise-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 2px; color: var(--tg-muted); font-size: 0.95rem;
}
.technogise-loading-spinner {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--tg-border);
  border-top-color: hsl(var(--primary));
  animation: tg-spin 0.7s linear infinite;
}
.technogise-loading-emoji { flex: 0 0 auto; }
.technogise-loading-text { font-size: 16px; font-weight: 700; }
.technogise-loading-dots { display: inline-flex; align-items: center; gap: 3px; }
.technogise-loading-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background-color: currentColor;
  animation: tg-blink 1.2s infinite ease-in-out both;
}
.technogise-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.technogise-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tg-spin { to { transform: rotate(360deg); } }
@keyframes tg-blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* ---- Chrome polish (stable Chainlit ids) ---- */
#header { border-bottom: 1px solid var(--tg-border); }
#chat-submit { border-radius: 10px; }

/* ---- Welcome hero (WelcomeHero.jsx custom element) ---- */
.technogise-welcome-hero { max-width: 720px; margin: 4px auto 0; text-align: center; }
.technogise-welcome-mark { display: flex; justify-content: center; margin: 0 auto 16px; }
.technogise-welcome-mark img {
  width: 56px; height: 56px; border-radius: 50%;
  filter: drop-shadow(0 8px 20px rgba(0, 87, 184, .28));
}
.technogise-welcome-h {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--tg-ink); margin-bottom: 8px;
}
.technogise-welcome-sub {
  color: var(--tg-muted); font-size: 1.05rem; line-height: 1.5;
  max-width: 560px; margin: 0 auto 18px;
}
.technogise-welcome-sub-lead {
  display: block; color: var(--tg-ink); font-weight: 600; margin-bottom: 6px;
}
.technogise-welcome-sub-detail {
  display: block; font-size: 0.95rem;
}
.technogise-welcome-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tg-muted); margin: 6px 0 16px;
}
.technogise-welcome-chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 660px; margin: 0 auto;
}
.technogise-welcome-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background-color: var(--tg-surface); color: hsl(var(--primary));
  border: 1px solid var(--tg-border); border-radius: 999px;
  padding: 7px 14px; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background-color .14s, color .14s, border-color .14s;
}
.technogise-welcome-chip:hover,
.technogise-welcome-chip:focus-visible {
  background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.technogise-welcome-chip:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.technogise-welcome-chipic { display: grid; place-items: center; flex: 0 0 auto; }

/* ---- Composer (light theme) — white "Ask a question" box (design Variation C) ---- */
html:not(.dark) div.rounded-3xl:has(#chat-input) {
  background-color: #ffffff !important;
  border: 1.5px solid #d7dbe2 !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10) !important;
}
html:not(.dark) #chat-input { color: var(--tg-ink) !important; background: transparent !important; }
html:not(.dark) #chat-input::placeholder { color: var(--tg-muted) !important; }

/* ---- Chrome polish (header border only — no custom logo in header) ---- */

/* ---- Hero centered composer (design Variation A) ---- */
.technogise-welcome-fakeinput {
  max-width: 640px; margin: 0 auto 26px;
  display: flex; align-items: flex-end; gap: 10px;
  background-color: #ffffff; border: 1.5px solid #d7dbe2; border-radius: 14px;
  padding: 8px 8px 8px 16px; text-align: left;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  transition: border-color .15s, box-shadow .15s;
}
.dark .technogise-welcome-fakeinput {
  background-color: var(--tg-surface); border-color: var(--tg-border); box-shadow: none;
}
.technogise-welcome-fakeinput:focus-within {
  border-color: hsl(var(--primary)); box-shadow: 0 0 0 4px hsl(var(--primary) / 0.18);
}
.technogise-welcome-fakeinput-ta {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  border: 0; outline: 0; resize: none; background: transparent;
  font-family: inherit; font-size: 1rem; line-height: 1.5; color: var(--tg-ink);
  padding: 8px 0;
}
.technogise-welcome-fakeinput-ta::placeholder { color: var(--tg-muted); }
.technogise-welcome-send {
  width: 40px; height: 40px; flex: 0 0 auto; border: 0; cursor: pointer;
  border-radius: 10px; background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: grid; place-items: center; transition: filter .15s;
}
.technogise-welcome-send:hover { filter: brightness(0.93); }
.technogise-welcome-send:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.technogise-welcome-send:disabled { opacity: .5; cursor: not-allowed; }
/* hide the real bottom composer (box + hint) while on the welcome screen */
div:has(> div > #message-composer) { display: none !important; }
html.tg-chatting div:has(> div > #message-composer) { display: flex !important; }
/* hide the fake input + suggestions once the conversation starts (don't show questions again) */
html.tg-chatting .technogise-welcome-fakeinput,
html.tg-chatting .technogise-welcome-eyebrow,
html.tg-chatting .technogise-welcome-chips { display: none; }
/* hide the per-message avatar for the welcome hero only (it floats orphaned beside the centered hero) */
.ai-message:has(.technogise-welcome-hero) > span:has(img[alt^="Avatar"]) { display: none !important; }

/* ---- Tool trace running state (live "Searching…" while tools run) ---- */
.technogise-trace-running {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 0.8rem; font-weight: 600; color: var(--tg-muted);
}
.technogise-trace-spinner {
  width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--tg-border); border-top-color: hsl(var(--primary));
  animation: technogise-spin .7s linear infinite;
}
@keyframes technogise-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .technogise-trace-spinner { animation: none; opacity: 0.5; }
}

/* ---- Collapsible sources panel (SourcePanel.jsx) ---- */
.technogise-sources {
  border: 1px solid var(--tg-border); border-radius: 10px;
  background-color: var(--tg-surface); margin: 14px 0; overflow: hidden;
}
.technogise-sources summary {
  list-style: none; cursor: pointer; padding: 9px 14px;
  display: flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 600; color: var(--tg-ink);
}
.technogise-sources summary::-webkit-details-marker { display: none; }
.technogise-sources-ic { color: hsl(var(--primary)); flex: 0 0 auto; }
.technogise-sources[open] summary .technogise-trace-chev { transform: rotate(90deg); }
.technogise-sources-body {
  padding: 10px 14px 12px; border-top: 1px solid var(--tg-border);
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* ---- Source document modal typography (SourcePanel.jsx) ---- */
.technogise-doc-eyebrow {
  font-size: 0.72rem !important; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tg-muted) !important;
  border: 0 !important; padding: 0 !important;
}
.technogise-doc { font-size: 0.95rem; line-height: 1.6; color: var(--tg-ink); }
.technogise-doc h1 {
  font-size: 1.4rem; font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
  color: var(--tg-ink) !important; margin: 2px 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--tg-accent);
}
.technogise-doc h2 {
  font-size: 1.12rem; font-weight: 600; margin: 22px 0 8px;
  border-left: 3px solid var(--tg-accent); padding-left: 9px;
}
.technogise-doc h3 { font-size: 1rem; margin: 16px 0 6px; }
.technogise-doc p { margin: 0 0 12px; }
.technogise-doc ul, .technogise-doc ol { margin: 0 0 12px; padding-left: 20px; }
.technogise-doc li { margin: 4px 0; }
.technogise-doc hr { border: 0; border-top: 1px solid var(--tg-border); margin: 16px 0; }
/* `---` renders as a shadcn Separator div whose `h-[1px]` Tailwind class is
   purged by Chainlit, so it shows as a thick bar — constrain it to a hairline. */
.technogise-doc div.bg-border { height: 1px !important; padding: 0 !important; border: 0 !important; margin: 16px 0; }
.technogise-doc table { margin: 12px 0; font-size: 0.82rem; }
/* Markdown wraps tables in a bordered shadcn card; the table also carries its own
   border — a double frame. Drop the table's border and let the card clip + frame it. */
.technogise-doc div.rounded-lg:has(table) { overflow: hidden !important; }
.technogise-doc table { border: 0 !important; border-radius: 0 !important; }
.technogise-doc h1 + p, .technogise-doc h1 + p + p,
.technogise-doc h1 + div, .technogise-doc h1 + div + div {
  color: var(--tg-muted) !important; font-size: 0.85rem; line-height: 1.7;
  margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--tg-border);
}
.technogise-doc h1 + p strong, .technogise-doc h1 + p + p strong,
.technogise-doc h1 + div strong, .technogise-doc h1 + div + div strong { color: var(--tg-ink) !important; font-weight: 600; }
.technogise-doc .technogise-matched-section {
  padding: 4px 12px; margin: 8px 0; border-left-width: 3px; border-radius: 6px;
  background-color: color-mix(in srgb, var(--tg-cream) 65%, transparent);
}
.technogise-doc .technogise-matched-badge {
  font-size: 0.62rem; padding: 1px 8px; margin-bottom: 4px;
}

/* ===================================================================
   Responsive layer (mobile-first add-on). The rules above are tuned
   for desktop; these adapt down. Breakpoints:
   mobile ≤640 · tablet 641–1024 · desktop ≥1025.
   =================================================================== */

/* ---------- Mobile (≤640px) ---------- */
@media (max-width: 640px) {
  /* Hero scales down so it doesn't dominate a small screen */
  .technogise-welcome-hero { padding: 0 4px; }
  .technogise-welcome-mark { margin: 0 auto 12px; }
  .technogise-welcome-mark img { width: 44px; height: 44px; }
  .technogise-welcome-h { font-size: 1.6rem; }
  .technogise-welcome-sub { font-size: 0.95rem; margin-bottom: 16px; }

  /* Hero input: tighter padding, comfortable type on phones */
  .technogise-welcome-fakeinput { padding: 6px 6px 6px 12px; margin-bottom: 20px; }
  .technogise-welcome-fakeinput-ta { font-size: 0.95rem; }

  /* Chips: full-width, stacked, ≥44px tap targets */
  .technogise-welcome-chips { flex-direction: column; gap: 8px; }
  .technogise-welcome-chip {
    width: 100%; justify-content: flex-start;
    min-height: 44px; font-size: 0.92rem;
  }

  /* Source modal: tighter doc padding + smaller in-doc headings */
  .technogise-doc { font-size: 0.9rem; }
  .technogise-doc h1 { font-size: 1.2rem; }
  .technogise-doc h2 { font-size: 1.02rem; }
}

/* ---------- Tablet (641–1024px) ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  /* gentle step between mobile (1.6rem) and desktop base (1.9rem) */
  .technogise-welcome-h { font-size: 1.8rem; }
  .technogise-welcome-sub { font-size: 1rem; }
}

/* ---------- Touch devices: comfortable tap targets ---------- */
@media (pointer: coarse) {
  .technogise-sources summary,
  .technogise-trace summary,
  details summary { min-height: 44px; }
}

/* ---------- Chat answers: prevent long tokens from forcing overflow ---------- */
.ai-message .message-content { overflow-wrap: anywhere; }
/* ...but table cells must NOT word-break, or the table collapses instead of
   overflowing and the scroll affordance below becomes meaningless. */
.ai-message table { overflow-wrap: normal; }

/* ---------- Wide answer tables: horizontal-scroll affordance ---------- */
/* Chromium target: a thin always-visible classic scrollbar cues horizontal
   scroll. Firefox falls back to its native overlay scrollbar. */
.ai-message div:has(> table) { overflow-x: auto; }
.ai-message div:has(> table)::-webkit-scrollbar { height: 6px; }
.ai-message div:has(> table)::-webkit-scrollbar-thumb { background: var(--tg-muted); border-radius: 3px; }

/* ---------- Touch devices: enlarge native header controls to 44px ---------- */
@media (pointer: coarse) {
  #header button { min-height: 44px; min-width: 44px; }
}

/* ---------- Mobile: render wide answer tables as stacked cards ----------
   technogise.js stamps data-label (the column header) onto each <td>, and the
   data-tg-cards flag onto the <table>, so each row becomes a labelled card and
   no horizontal scrolling is needed. */
@media (max-width: 640px) {
  /* neutralise Chainlit's card frame + horizontal-scroll wrapper around the table */
  .ai-message div:has(> div > table[data-tg-cards]) {
    border: 0 !important; background: transparent !important; border-radius: 0 !important;
  }
  .ai-message div:has(> table[data-tg-cards]) { overflow-x: visible !important; }

  .ai-message table[data-tg-cards] { display: block; border: 0; font-size: 0.9rem; }
  .ai-message table[data-tg-cards] thead { display: none; }
  .ai-message table[data-tg-cards] tbody { display: block; }
  .ai-message table[data-tg-cards] tr {
    display: block; margin: 0 0 10px; padding: 10px 14px;
    border: 1px solid var(--tg-border); border-radius: 10px;
    background: var(--tg-surface);
  }
  .ai-message table[data-tg-cards] td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 6px 0; border: 0; border-bottom: 1px solid var(--tg-border); text-align: right;
  }
  .ai-message table[data-tg-cards] td::before {
    content: attr(data-label); font-weight: 600; color: var(--tg-muted);
    text-align: left; margin-right: auto;
  }
  /* first cell = card title (project name), full width, no label */
  .ai-message table[data-tg-cards] td:first-child {
    display: block; text-align: left; font-weight: 700; font-size: 1.05em;
    padding: 0 0 8px; margin-bottom: 4px;
  }
  .ai-message table[data-tg-cards] td:first-child::before { display: none; }
  .ai-message table[data-tg-cards] td:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Plotly chrome: hide the dev-tool toolbar + logo on inline charts ---------- */
.ai-message .modebar-container,
.ai-message a[href^="https://plotly.com"] { display: none !important; }

/* ---- Follow-up questions (FollowUpQuestions.jsx custom element) ---- */
.technogise-follow-up {
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  background-color: var(--tg-surface);
  padding: 14px 16px;
  margin: 14px 0;
}

.technogise-follow-up-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tg-muted);
  margin-bottom: 12px;
}

.technogise-follow-up-header svg {
  color: hsl(var(--primary));
}

.technogise-follow-up-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technogise-follow-up-chip {
  padding: 8px 14px;
  background-color: var(--tg-tag-bg);
  border: 1px solid var(--tg-border);
  border-radius: 20px;
  color: var(--tg-ink);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: left;
}

.technogise-follow-up-chip:hover {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.technogise-follow-up-chip:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* ---------- Mobile: full-width follow-up chips with comfortable tap targets ---------- */
@media (max-width: 640px) {
  .technogise-follow-up-questions {
    flex-direction: column;
  }
  
  .technogise-follow-up-chip {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.92rem;
  }
}

