/* Procedure Analytics (Contract Intelligence). Uses the portal's existing tokens and classes only
   (.card, .select-control, .filter-label, .pill, .btn-outline, .data-table, .modal-*); the rules below
   are layout and the two view-specific treatments the design calls for (AI placeholder chip, matrix shading).
   Colors are the existing palette: navy #0D2140, teal #2A8C7E, text #1A2D3E, muted #6B7D8D, faint #93A2AF,
   border #DDE3EA, surface-alt #FAFBFC, background #F0F4F8, teal tint #E8F3F1. */

.pa-root { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.pa-root .card { margin: 0; overflow: visible; }

/* controls */
.pa-band1 { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 16px 20px; align-items: flex-end; }
.pa-band2 { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 12px 20px; border-top: 1px solid #DDE3EA; align-items: center; background: #FAFBFC; }
.pa-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.pa-field .select-control { height: 34px; min-height: 34px; padding-top: 0; padding-bottom: 0; }
.pa-field.pa-locked .select-control { opacity: .55; }
.pa-ref { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 34px; }
.pa-ref .select-control { padding: 0 28px 0 10px; font-size: 13px; }
.pa-ref .pill[disabled] { opacity: .45; cursor: default; }
.pa-range-btn { height: 34px; min-height: 34px; padding: 0 32px 0 12px; text-align: left; min-width: 240px; cursor: pointer; font-size: 13px; font-family: inherit; font-variant-numeric: tabular-nums; }
.pa-pop-scrim { position: fixed; inset: 0; z-index: 40; }
.pa-pop { position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 41; width: 320px; background: #FFFFFF; border: 1px solid #DDE3EA; border-radius: 10px; box-shadow: 0 12px 32px rgba(13,33,64,.24); }
.pa-pop-dates { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-bottom: 1px solid #DDE3EA; }
.pa-pop-presets { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #DDE3EA; }
.pa-pop-foot-note { font-size: 11px; color: #6B7D8D; white-space: nowrap; }

/* figures */
.pa-figs-wrap { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 0; }
.pa-figs { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: flex-start; }
/* fixed slot width: a figure never moves when another figure's value changes width */
.pa-fig { display: flex; flex-direction: column; gap: 4px; flex: 0 0 210px; width: 210px; position: relative; }
.pa-fig-k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #6B7D8D; }
.pa-fig-v { font-size: 26px; font-weight: 700; color: #0D2140; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pa-fig-sub { font-size: 12px; color: #6B7D8D; }
.pa-subline { font-size: 13px; color: #6B7D8D; text-wrap: pretty; max-width: 1100px; }
.pa-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pa-empty strong { font-weight: 600; color: #1A2D3E; }
.pa-empty span { max-width: 640px; }
.pa-busy { opacity: .6; transition: opacity .15s; pointer-events: none; }

/* breadcrumb */
.pa-crumbs { padding: 12px 20px 0; }
.pa-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 1.4; }
.pa-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pa-crumbs a { color: #2A8C7E; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #B5D9D3; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-crumbs a:hover { text-decoration-color: #2A8C7E; }
.pa-crumbs [aria-current="page"] { color: #1A2D3E; font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-crumbs .pa-sep { color: #93A2AF; }

/* table card */
.pa-table-top { padding: 10px 20px; gap: 12px; flex-wrap: wrap; }
.pa-table-top h2 { font-size: 13px; }
.pa-foot { padding: 10px 20px; border-top: 1px solid #DDE3EA; font-size: 12px; color: #1A2D3E; display: flex; gap: 8px; flex-wrap: wrap; }
.pa-foot .pa-foot-note { color: #6B7D8D; }
.pa-foot .pa-recon { font-variant-numeric: tabular-nums; }
.pa-table .cell-num, .pa-matrix td { font-variant-numeric: tabular-nums; }
.pa-table tbody tr:has(.pa-open) { cursor: pointer; }
.pa-table tbody tr:has(.pa-subject-row) { background: #F0F4F8; }
.pa-table tbody tr:has(.pa-total-row) { background: #FAFBFC; }
.pa-bold { font-weight: 600; }
.pa-muted { color: #6B7D8D; }
.pa-faint { color: #93A2AF; }
.pa-cell-first { display: inline-flex; align-items: center; gap: 8px; }

/* AI review chip (docs/design/ai-review/SPEC.md section 1): solid tint pill, not dashed -- the
   dashed treatment stays only on .pa-placeholder-tag, the "not connected" fallback's own marker. */
.pa-ai-chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 3px 9px; border: 0; border-radius: 100px; background: #E6F4F2; color: #2A8C7E; font: 700 10px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pa-ai-chip:hover { background: #2A8C7E; color: #FFFFFF; }
.pa-placeholder-tag { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px dashed #6B7D8D; border-radius: 10px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #6B7D8D; }
.pa-ai-context { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; font-size: 13px; }
.pa-ai-context span:nth-child(odd) { color: #6B7D8D; }
.pa-ai-box { border: 1px dashed #DDE3EA; border-radius: 8px; background: #F0F4F8; padding: 20px; font-size: 13px; color: #6B7D8D; line-height: 1.5; }

/* matrix */
.pa-matrix td { height: 56px; line-height: 1.3; }
.pa-matrix td.pa-mx-open { cursor: pointer; }
.pa-matrix .pa-mx-v { display: block; font-variant-numeric: tabular-nums; font-weight: 600; color: #1A2D3E; }
.pa-matrix .pa-mx-sub { display: block; font-size: 11px; color: #93A2AF; }
.pa-matrix .pa-shade-light { background: rgba(42,140,126,.07); }
.pa-matrix .pa-shade-dark { background: rgba(42,140,126,.16); }
.pa-matrix .pa-hatched { background: repeating-linear-gradient(135deg, #FAFBFC 0 6px, #EDF1F5 6px 12px); }
.pa-matrix .pa-hatched .pa-mx-v { font-weight: 400; color: #6B7D8D; }

/* identity control and meeting mode */
.pa-header-controls { display: none; align-items: center; gap: 8px; }
body.pa-active .pa-header-controls { display: flex; }
.pa-id-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.55); }
.pa-id-track { display: flex; gap: 2px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 100px; padding: 2px; }
.pa-id-track.pa-light { background: #F0F4F8; border-color: #DDE3EA; }
.pa-id-track button { border: none; cursor: pointer; border-radius: 100px; padding: 4px 11px; font-size: 12px; font-weight: 500; font-family: inherit; background: transparent; color: rgba(255,255,255,.7); }
.pa-id-track button.on { background: #FFFFFF; color: #0D2140; }
.pa-id-track.pa-light button { color: #6B7D8D; }
.pa-id-track.pa-light button.on { background: #0D2140; color: #FFFFFF; }
.pa-id-track button[disabled] { opacity: .4; cursor: default; }
.pa-meeting-bar { display: none; align-items: center; justify-content: space-between; padding: 10px 24px; background: #FFFFFF; border-bottom: 1px solid #DDE3EA; gap: 16px; flex-wrap: wrap; }
.pa-meeting-bar .pa-mb-left { display: flex; align-items: center; gap: 20px; }
.pa-meeting-bar img { height: 28px; width: auto; }
.pa-meeting-bar .pa-mb-text { font-size: 13px; color: #6B7D8D; }
.pa-meeting-bar .pa-mb-right { display: flex; align-items: center; gap: 8px; }
body.pa-meeting .pa-meeting-bar { display: flex; }
body.pa-meeting .header, body.pa-meeting #module-nav, body.pa-meeting #view-tabs, body.pa-meeting #page-header { display: none !important; }

/* the page never shifts sideways when the scrollbar appears or disappears */
html:has(body.pa-active) { overflow-y: scroll; }

/* figure info icon + popover */
.pa-fig-k { display: flex; align-items: center; gap: 6px; }
.pa-info { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid #93A2AF; background: #FFFFFF; color: #6B7D8D; font: italic 600 10px/1 Georgia, 'Times New Roman', serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-transform: none; letter-spacing: 0; }
.pa-info:hover, .pa-info[aria-expanded="true"] { border-color: #2A8C7E; color: #2A8C7E; background: #E8F3F1; }
.pa-info-pop { position: absolute; top: 100%; left: 0; margin-top: 8px; z-index: 30; width: 340px; padding: 12px 14px; background: #FFFFFF; border: 1px solid #DDE3EA; border-radius: 10px; box-shadow: 0 12px 32px rgba(13,33,64,.24); font-size: 12px; line-height: 1.5; color: #1A2D3E; text-wrap: pretty; }
.pa-info-pop[hidden] { display: none; }

/* manufacturer multi-select sits in the control band like the selects beside it */
.pa-field .fsel-btn { height: 34px; min-width: 180px; }
.pa-field.pa-locked .fsel-wrap { pointer-events: none; opacity: .55; }

/* case modal: fixed header, scrolling body, table fits the modal (no sideways scroll, no clipped last column) */
.pa-case-modal { max-width: 1040px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
.pa-case-modal .modal-header { flex: 0 0 auto; }
.pa-case-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pa-case-modal .table-wrap { overflow: visible; }
.pa-case-modal .data-table { width: 100%; min-width: 0; }
.pa-case-modal .data-table thead th { position: sticky; top: 0; z-index: 2; }
.pa-case-modal .modal-footer-stats { margin-top: 12px; }

/* PLACEHOLDER(ai-review) start: prepared static report in the AI review modal (api/pa_ai_placeholder.py). Remove with it. */
.pa-ai-modal { max-width: 900px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.pa-ai-modal .modal-header { flex: 0 0 auto; }
.pa-ai-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.pa-ai-modal .modal-body > * { flex-shrink: 0; }

/* Shared AI modal header (all three states: loading, prepared report, not-connected placeholder) */
.pa-ai-modal-header { display: flex; align-items: flex-start; gap: 12px; }
.pa-ai-modal-glyph { flex: none; margin-top: 1px; }
.pa-ai-title-ai { color: #2A8C7E; }

/* Loading state: the glyph's centre square pulses instead of a generic spinner */
.pa-ai-think { padding: 40px 24px; display: flex; gap: 10px; align-items: center; color: #56687A; }
.pa-ai-think-dot { transform-origin: 50px 50px; animation: pa-ai-sym-think 1.4s ease-in-out infinite; }
@keyframes pa-ai-sym-think { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .pa-ai-think-dot { animation: none; } }

/* Prepared report body: variation A layout */
.pa-ai-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #56687A; }
.pa-ai-basis-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #56687A; margin-right: 4px; }
.pa-ai-seg { display: flex; gap: 6px; }
.pa-ai-pill { color: #56687A; }                /* same .pill/.pill.active shape; just the SPEC's exact inactive-text color */

/* Table card: restored 2026-11-23 at Jonathan's direction, for more contrast -- the pre-2026-11-23
   card/band/zebra treatment, with the "Cost" label + scenario pills (new this build) folded into the
   same header band rather than a separate row above the card. */
.pa-ai-sec { border: 1px solid #DDE3EA; border-radius: 8px; overflow: hidden; }
.pa-ai-sec-h { padding: 12px 16px 10px; background: #FAFBFC; border-bottom: 1px solid #DDE3EA; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pa-ai-sec-t { font-size: 13px; font-weight: 600; color: #0D2140; }
.pa-ai-sec-c { font-size: 12px; color: #6B7D8D; margin-top: 3px; }
.pa-ai-sec .data-table { width: 100%; min-width: 0; }
.pa-ai-sec .data-table td, .pa-ai-sec .data-table th { height: 38px; padding: 8px 14px; cursor: default; }
.pa-ai-sec .data-table th { position: static; }
.pa-ai-sec .num { text-align: right; font-variant-numeric: tabular-nums; }
.pa-ai-sec tbody tr:nth-child(even) td { background: #FAFBFC; }
.pa-ai-up { color: #C0392B; font-weight: 600; }
.pa-ai-dn { color: #1E8449; font-weight: 600; }
.pa-ai-foot { font-size: 11.5px; color: #6B7D8D; padding: 8px 16px 10px; }

.pa-ai-findings { border: 1px solid #DDE3EA; border-radius: 8px; background: #FAFBFC; padding: 12px 14px; }
.pa-ai-findings-h { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #2A8C7E; margin-bottom: 4px; }
.pa-ai-findings-glyph { flex: none; }
.pa-ai-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: #0D2140; display: flex; flex-direction: column; gap: 4px; }
.pa-ai-list .sub { color: #56687A; display: block; font-size: 12.5px; }
.pa-ai-legend { font-size: 12px; color: #56687A; border-top: 1px solid #DDE3EA; padding-top: 12px; line-height: 1.7; }
/* PLACEHOLDER(ai-review) end */

/* PLACEHOLDER(ai-chat) start: docked AI chat panel + its row's Ask button (docs/PA-AI-CHAT-SPEC.md).
   Remove together with PLACEHOLDER(ai-review) when a model is wired in. */
:root { --pa-nav-offset: 0px; }   /* measured live from .app-bars by procedure-analytics.js; 0 is only the pre-JS/no-chrome fallback, never the real value -- see that file's updateNavOffset() */
/* `align-items: stretch` (the default -- stated explicitly so it can't regress back) is still needed
   as the base case: .pa-chat-panel's `position: sticky` can only stick within its own containing
   block's bounds, and with `align-items: flex-start` #pa-chat-slot shrink-wraps to the panel's own
   height, leaving it zero room to travel at all. But stretch alone only gives it as much room as
   whichever sibling happens to be the taller one, and .pa-root is routinely the shorter one here --
   the Ask column only exists on the compact procedure-group landing table (one row per group), which
   a chat-capable group's own panel content can easily outgrow. procedure-analytics.js's
   updateChatMaxHeight() tops #pa-chat-slot's min-height up to whichever is larger: .pa-root's real
   rendered height, or the panel's own height plus a generous, deliberately-round scroll allowance --
   every repaint and on scroll/resize. Matching .pa-root exactly (tried first) left zero stick room
   the moment the panel outgrew it; found live via the 2026-11-23 Playwright self-test (real scroll,
   real layout -- jsdom has no layout engine to have caught either version of this with).
   .pa-chat-panel's own `align-self: flex-start`/`height: auto` keep it from stretching to match
   #pa-chat-slot, so it stays its own natural height
   either way. */
.pa-shell { display: flex; align-items: stretch; }
.pa-shell > .pa-root { flex: 1 1 auto; min-width: 0; }

/* Ask button: outline pill in the table's last, unlabeled column -- section 3. */
.pa-ask-btn { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 4px 10px; border: 1.5px solid #DDE3EA; border-radius: 100px; background: #FFFFFF; color: #0D2140; font: 600 12px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; cursor: pointer; }
.pa-ask-btn svg { color: #2A8C7E; }
.pa-ask-btn:hover { border-color: #2A8C7E; }
.pa-ask-btn.pa-ask-open { background: #E6F4F2; border-color: #2A8C7E; }
.pa-table tbody tr:has(.pa-ask-open) { background: #F2F8F7; }

/* Panel: docked right in the same .pa-shell flex row, pushes the table left, does not overlay it --
   section 4 (refactored 2026-11-23 so it no longer slides under the portal's pinned header/module/
   view-tabs stack). `top`/`max-height` key off --pa-nav-offset, the real measured height of that
   sticky stack (.app-bars in main.css -- one element since its own 2026-10-27 fix merged header+module
   tier+view-tabs into a single sticky box), not a hand-summed guess: main.css's own history records
   that kind of arithmetic going stale the moment a tab's padding or a badge wraps a line. */
.pa-chat-panel { width: 360px; max-width: 100vw; flex: none; margin-left: 16px; position: sticky; top: calc(var(--pa-nav-offset) + 16px); height: auto; max-height: calc(100vh - var(--pa-nav-offset) - 32px); align-self: flex-start; background: #FFFFFF; border: 1px solid #DDE3EA; border-radius: 12px; box-shadow: 0 8px 24px rgba(13,33,64,.12); overflow: hidden; display: flex; flex-direction: column; }

/* Below 1100px the panel leaves the flex row and becomes a fixed overlay (the table regains full
   width on its own -- no rule needed there, the flex gap just closes). Below 640px it spans edge to
   edge. z-index stays under .modal-overlay's 200 (main.css) so the AI review modal still stacks above
   it -- section 7. Both top formulas leave exactly a 16px gap at the viewport bottom too (section 3),
   so the composer and disclaimer are always fully visible -- max-height is never a hand-picked number,
   it's 100vh minus the panel's own top offset minus that same 16px. */
@media (max-width: 1100px) {
  .pa-chat-panel { position: fixed; right: 16px; top: calc(var(--pa-nav-offset) + 12px); max-height: calc(100vh - var(--pa-nav-offset) - 28px); margin-left: 0; box-shadow: 0 12px 32px rgba(13,33,64,.25); z-index: 150; }
}
@media (max-width: 640px) {
  .pa-chat-panel { left: 8px; right: 8px; width: auto; }
}

/* Two lines (2026-11-23, replacing the single ellipsized line): a one-line-ellipsized title was
   truncating real group names ("Defibrillator and resynchronization devices") at 360px. Top-aligned
   now that the title block can be taller than the 28px action buttons. */
.pa-chat-header { flex: none; min-height: 44px; background: #0D2140; padding: 10px 12px 10px 14px; display: flex; align-items: flex-start; gap: 10px; }
.pa-chat-head-glyph { flex: none; margin-top: 1px; }
.pa-chat-head-text { flex: 1 1 auto; min-width: 0; }
.pa-chat-title { font: 600 14px/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #FFFFFF; }
.pa-chat-title-ai { color: #35B5A4; }
/* Line 2: the group name, allowed to wrap up to 2 lines (clamped, with a native tooltip for the rare
   name that still doesn't fully fit) rather than ellipsized on one. */
.pa-chat-group { margin-top: 2px; font-size: 12px; color: #B9CDDD; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pa-chat-head-actions { flex: none; display: flex; align-items: center; gap: 8px; }
/* "New chat" is an icon button now, not a text label -- same 28px hit target, tinted via currentColor. */
.pa-chat-new { height: 28px; width: 28px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: #B9CDDD; cursor: pointer; padding: 0; }
.pa-chat-new:hover { color: #FFFFFF; }
.pa-chat-close { height: 28px; width: 28px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: #B9CDDD; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.pa-chat-close:hover { color: #FFFFFF; }

/* Conversation log -- section 4's message shapes. Only this scrolls; header and composer stay fixed. */
.pa-chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.pa-chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.pa-chat-msg-glyph { flex: none; margin-top: 1px; }
.pa-chat-intro { color: #56687A; font-size: 13px; line-height: 1.5; }
.pa-chat-q { justify-content: flex-end; scroll-margin-top: 12px; }   /* section 2: on send, this bubble scrolls to the log's top with a 12px gap */
.pa-chat-bubble { background: #EDF1F5; border-radius: 12px 12px 2px 12px; padding: 8px 12px; max-width: 85%; font-size: 13px; color: #1A2D3E; line-height: 1.45; }
.pa-chat-a-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pa-chat-lead { font-size: 13px; color: #0D2140; line-height: 1.5; }
.pa-chat-second { font-size: 12.5px; color: #56687A; line-height: 1.5; }
.pa-chat-thinking { color: #56687A; font-size: 13px; }

/* Evidence card reuses the review's .pa-ai-sec card chrome; no scenario pills, no footnote strip,
   and deliberately no glyph of its own (section 4: "Evidence card (no glyph)"). */
.pa-chat-evidence .pa-ai-sec-h { align-items: flex-start; }
.pa-chat-evidence .pa-ai-eyebrow { margin-bottom: 2px; }
.pa-chat-evidence-foot { margin-top: 8px; }
.pa-chat-review-btn { font-size: 12px; padding: 6px 12px; }

/* Section 1: more than 4 columns don't fit the 360px card as a table (it would need horizontal
   scroll, which this panel never allows -- .pa-ai-sec's own `overflow: hidden` backs that up). Stack
   each row instead: name + cases on one line, then one label/value line per remaining column. */
.pa-chat-stack-row { padding: 10px 16px; border-bottom: 1px solid #EDF1F5; }
.pa-chat-stack-row:last-child { border-bottom: none; }
.pa-chat-stack-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pa-chat-stack-name { font-size: 13px; font-weight: 600; color: #1A2D3E; }
.pa-chat-stack-cases { font-size: 12px; color: #6B7D8D; }
.pa-chat-stack-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; }
.pa-chat-stack-label { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #56687A; }
.pa-chat-stack-val { font-variant-numeric: tabular-nums; font-weight: 600; color: #0D2140; text-align: right; }

/* Suggestions now render inside the log itself (chatPanelHtml appends them as its last block) --
   directly under the intro with no history yet, or under the latest answer as "Follow-ups" -- as
   wrapping chips rather than a list stacked above the composer. */
.pa-chat-suggested { display: flex; flex-direction: column; gap: 6px; }
.pa-chat-suggested-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #6B7D8D; }
.pa-chat-suggested-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-chat-sugg-btn { font-size: 12.5px; padding: 5px 10px; border: 1.5px solid #DDE3EA; border-radius: 100px; background: #FFFFFF; color: #0D2140; cursor: pointer; }
.pa-chat-sugg-btn:hover { border-color: #2A8C7E; background: #E6F4F2; }

.pa-chat-input-row { flex: none; display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #EDF1F5; }
.pa-chat-input { flex: 1 1 auto; min-width: 0; height: 36px; border: 1px solid #DDE3EA; border-radius: 8px; padding: 0 12px; font-size: 13px; font-family: inherit; }
.pa-chat-input:disabled { background: #F0F4F8; }
.pa-chat-send { flex: none; height: 36px; padding: 0 16px; border: none; border-radius: 8px; background: #0D2140; color: #FFFFFF; font-size: 13px; font-weight: 600; cursor: pointer; }
.pa-chat-send:disabled { background: #93A2AF; cursor: default; }
.pa-chat-disclaimer { flex: none; padding: 0 14px 10px; font-size: 11.5px; color: #56687A; }
/* PLACEHOLDER(ai-chat) end */
