:root { /* ── Design system tokens ──────────────────────────────────── */ /* Ink palette */ --ink: #14202e; --ink-2: #1b2a3d; --ink-3: #3a4a63; --ink-4: #6b7890; --ink-5: #9aa5b8; /* Paper palette */ --paper: #f7f3ea; --paper-2: #efe8d9; --paper-edge: #e6dcc7; --surface: #ffffff; --surface-2: #fbf9f3; --surface-line:#e2e5ec; /* Brand blues */ --blue: #1f3a5f; --blue-2: #223b57; --blue-3: #2d5382; --blue-4: #4a78ac; --blue-soft: rgba(34, 59, 87, 0.08); --blue-tint: #eaf0f8; /* Warm accents */ --ochre: #b8892b; --ochre-2: #d4a84a; --ochre-soft: rgba(184, 137, 43, 0.12); --ochre-tint: #f4ead0; /* Editorial accent */ --crimson: #a61f2c; --crimson-soft:rgba(166, 31, 44, 0.08); /* Semantic */ --ok: #2f7d4f; --ok-soft: rgba(47, 125, 79, 0.10); --warn: #b86b12; --warn-soft: rgba(184, 107, 18, 0.10); --danger: #a61f2c; --danger-soft: rgba(166, 31, 44, 0.08); /* Party colours are injected at runtime from /api/meta (see App.tsx), so this stylesheet carries no country-specific values. Only the fallback lives here. */ --party-na: #9aa5b8; /* Typography — self-hosted via @fontsource (see main.tsx). The "Variable" families are the bundled fonts; the plain names remain as fallbacks. */ --font-display: "EB Garamond Variable", "EB Garamond", "Adobe Garamond Pro", Garamond, "Times New Roman", serif; --font-body: "Inter Variable", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; /* Type scale */ --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-15: 0.9375rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-28: 1.75rem; --fs-34: 2.125rem; --fs-44: 2.75rem; --fs-56: 3.5rem; /* Line heights */ --lh-tight: 1.15; --lh-snug: 1.3; --lh-body: 1.55; --lh-reading: 1.7; /* Letter spacing */ --tracking-caps: 0.12em; --tracking-eyebrow: 0.18em; --tracking-tight: -0.01em; --tracking-normal: 0; /* Radii */ --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px; /* Shadows */ --shadow-xs: 0 1px 2px rgba(20, 32, 46, 0.06); --shadow-sm: 0 2px 6px rgba(20, 32, 46, 0.06), 0 1px 2px rgba(20, 32, 46, 0.04); --shadow-md: 0 6px 18px rgba(20, 32, 46, 0.08), 0 2px 4px rgba(20, 32, 46, 0.04); --shadow-lg: 0 18px 40px rgba(20, 32, 46, 0.12), 0 4px 10px rgba(20, 32, 46, 0.06); --shadow-inset: inset 0 0 0 1px var(--surface-line); /* Spacing */ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 56px; --space-10: 80px; /* ── Backwards-compat aliases ──────────────────────────────── */ --bg: var(--paper); --text: var(--ink); --muted: var(--ink-4); --panel-bg: var(--surface); --panel-border: var(--surface-line); --accent: var(--blue-3); --accent-soft: var(--blue-soft); --primary: var(--blue); --primary-hover:var(--blue-2); font-family: var(--font-body); color: var(--ink); background: var(--paper); } /* ============================================================ Semantic typographic roles ============================================================ */ .t-eyebrow { font-family: var(--font-body); font-size: var(--fs-12); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-4); } .t-display { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-56); line-height: var(--lh-tight); letter-spacing: 0.04em; color: var(--blue-2); text-transform: uppercase; } .t-h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-44); line-height: var(--lh-tight); letter-spacing: 0.06em; color: var(--blue-2); text-transform: uppercase; } .t-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-28); line-height: var(--lh-snug); color: var(--ink); letter-spacing: var(--tracking-tight); } .t-h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-18); line-height: var(--lh-snug); color: var(--ink); letter-spacing: var(--tracking-tight); } .t-lede { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: var(--fs-20); line-height: var(--lh-body); color: var(--ink-3); } .t-body { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-16); line-height: var(--lh-body); color: var(--ink-2); } .t-reading { font-family: var(--font-display); font-size: var(--fs-18); line-height: var(--lh-reading); color: var(--ink); } .t-small { font-family: var(--font-body); font-size: var(--fs-14); line-height: var(--lh-body); color: var(--ink-3); } .t-meta { font-family: var(--font-body); font-size: var(--fs-13); line-height: 1.4; color: var(--ink-4); } .t-mono { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--ink-3); } .t-quote { font-family: var(--font-display); font-style: italic; font-size: var(--fs-24); line-height: var(--lh-snug); color: var(--ink); } body, html, #root { margin: 0; padding: 0; min-height: 100%; } body { overflow-x: clip; } a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; } .app { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; display: flex; flex-direction: column; gap: 2rem; } .page-header { display: flex; flex-direction: column; gap: 0.5rem; } .page-header h1 { margin: 0; font-size: var(--fs-44); font-weight: 400; font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--blue-2); } .page-header .tagline { margin: 0; color: var(--muted); font-size: 1rem; } .content { display: flex; flex-direction: column; gap: 1.5rem; } .panel { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; } .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .panel-header__reset { margin-left: auto; } .panel-header h2 { margin: 0; font-size: 1.5rem; color: var(--blue-2); } /* Sub-panel sections (a research thread inside the board) sit a level down. */ .panel-header h3 { margin: 0; font-size: var(--fs-20); color: var(--blue-2); } .search-panel form { display: grid; gap: 1.25rem; } .field { display: flex; flex-direction: column; gap: 0.5rem; } .field span { font-family: var(--font-body); font-size: var(--fs-12); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-4); } input[type="text"], input[type="number"], select, textarea { width: 100%; font-family: inherit; padding: 0.65rem 0.75rem; border-radius: 10px; border: 1px solid var(--panel-border); background: #fdfdff; font-size: 0.95rem; } select { height: 7.5rem; } textarea { min-height: 120px; resize: vertical; } .primary, .search-panel button[type="submit"] { align-self: flex-start; padding: 0.6rem 1.2rem; border-radius: 999px; border: none; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; transition: background 0.2s ease; } .primary:hover:not(:disabled), .search-panel button[type="submit"]:hover:not(:disabled) { background: var(--primary-hover); } /* Research keeps its primary actions disabled most of the time (empty topic, job already running), so the disabled state has to read as disabled. */ .primary:disabled, .search-panel button[type="submit"]:disabled { cursor: not-allowed; opacity: 0.55; } .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; } .speaker-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem; background: var(--surface-2); border-radius: var(--radius-md); } .speaker-suggestions span { font-weight: 600; color: var(--accent); } .speaker-suggestions button { border: none; background: #fff; padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); } .stats-view header h2 { margin: 0; font-size: 1.4rem; } .charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; } .chart { display: flex; flex-direction: column; gap: 0.5rem; } .results-table { background: none; box-shadow: none; padding: 0; } .results-table table { width: 100%; border-collapse: separate; border-spacing: 0 0.75rem; } .results-table th { text-align: left; padding: 0 1rem 0.4rem; color: var(--muted); font-weight: 600; font-size: 0.9rem; } .results-table td { background: var(--panel-bg); padding: 0.9rem 1rem; border: 1px solid var(--panel-border); border-left-width: 4px; } .results-table tbody tr { border-radius: 12px; } .results-table tbody tr td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; } .results-table tbody tr td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; } .party-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 0.2rem 0.7rem; border-radius: 999px; color: #1b1c1f; font-weight: 600; background: #e5e7eb; } /* One rule for every party. `--party-color` is set inline by the component from the colour /api/meta supplied; color-mix derives the tint and the text shade, which is why no per-party lightened palette needs maintaining. */ .party-chip { background: color-mix(in srgb, var(--party-color, var(--party-na)) 20%, transparent); color: color-mix(in srgb, var(--party-color, var(--party-na)) 75%, black); } .party-chip[data-party="-"], .party-chip[data-party=""] { background: #eceef3; color: var(--muted); } .results-table__row td:first-child { border-left-color: var(--party-color, var(--party-na)); } /* Party-color left border on result rows */ .results-table__row[data-party="-"] td:first-child, .results-table__row[data-party=""] td:first-child { border-left-color: var(--party-na); } .snippet p { margin: 0; line-height: 1.5; } .snippet details { margin-top: 0.4rem; } .snippet summary { cursor: pointer; color: var(--primary); font-weight: 600; } .snippet-long { white-space: pre-wrap; margin: 0; font-family: inherit; } .error-banner { padding: 0.85rem 1rem; border-radius: var(--radius-md); background: var(--danger-soft); color: var(--danger); font-weight: 600; } .empty-state { text-align: center; gap: 0.75rem; } .empty-state h2 { margin: 0; } .empty-state p { margin: 0; color: var(--muted); } .feedback form { display: flex; flex-direction: column; gap: 1rem; } .year-filter { gap: 0.75rem; } .range-slider { display: flex; flex-direction: column; gap: 0.5rem; } .range-slider__inputs { position: relative; height: 36px; } .range-slider__inputs::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 6px; border-radius: 999px; background: var(--panel-border); transform: translateY(-50%); } .range-slider__inputs input[type="range"] { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: 0; width: 100%; -webkit-appearance: none; background: none; pointer-events: none; /* Only let the thumbs capture pointer events so both handles stay draggable. */ } .range-slider__inputs input[type="range"]:first-of-type { z-index: 3; } .range-slider__inputs input[type="range"]:last-of-type { z-index: 2; } .range-slider__inputs input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; background: var(--primary); box-shadow: 0 2px 6px rgba(0, 49, 110, 0.35); border: none; pointer-events: auto; cursor: pointer; } .range-slider__inputs input[type="range"]::-moz-range-thumb { height: 18px; width: 18px; border-radius: 50%; background: var(--primary); box-shadow: 0 2px 6px rgba(0, 49, 110, 0.35); border: none; pointer-events: auto; cursor: pointer; } .range-slider__inputs input[type="range"]::-ms-thumb { height: 18px; width: 18px; border-radius: 50%; background: var(--primary); border: none; pointer-events: auto; cursor: pointer; } .range-slider__progress { position: absolute; top: 50%; height: 6px; background: var(--accent); border-radius: 999px; transform: translateY(-50%); pointer-events: none; } .range-slider__labels { display: flex; justify-content: space-between; font-weight: 600; color: var(--muted); } .explainer { display: flex; flex-direction: column; gap: 0.5rem; } .explainer__summary { cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; } .explainer__summary::-webkit-details-marker { display: none; } .explainer__summary:after { content: "▾"; font-size: 0.8rem; transition: transform 0.2s ease; } .explainer[open] .explainer__summary:after { transform: rotate(180deg); } .explainer__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.2rem; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--paper-edge); box-shadow: var(--shadow-xs); color: var(--ink-4); font-size: 0.9rem; line-height: 1.45; } .explainer__body ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.25rem; } .explainer__example { margin: 0; font-weight: 600; } .explainer__body code { padding: 0.15rem 0.4rem; background: var(--ochre-tint); border-radius: var(--radius-xs); font-size: 0.85rem; word-break: break-word; } .field--query .search-bar { display: flex; align-items: stretch; gap: 0.75rem; } .field--query .search-bar input[type="text"], .field--query .search-bar textarea { flex: 1 1 auto; min-width: 0; } .search-button { display: inline-flex; align-items: center; gap: 0.5rem; padding-inline: 1.35rem; white-space: nowrap; } .search-button[disabled] { cursor: not-allowed; opacity: 0.55; } /* Submitting, not unavailable: the form marks itself busy while in flight. */ form[aria-busy="true"] .search-button[disabled] { cursor: progress; opacity: 0.9; } .button-spinner { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); border-top-color: #fff; animation: spinner-rotate 0.6s linear infinite; } @keyframes spinner-rotate { to { transform: rotate(360deg); } } @media (max-width: 768px) { .app { padding: 1.75rem 1rem 3rem; } .results-table table { font-size: 0.9rem; } .results-table th, .results-table td { padding: 0.7rem; } .field--query .search-bar { flex-direction: column; align-items: stretch; } } .mode-toggle { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius-pill); background: var(--paper-2); } .mode-toggle button { border: none; border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; } .mode-toggle button[data-active="true"] { background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1); } .results-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05); } .results-controls__group { display: flex; align-items: center; gap: 0.75rem; } .results-controls__label { font-weight: 600; color: var(--muted); } .results-controls__toggle { display: inline-flex; gap: 0.4rem; background: var(--paper-2); padding: 0.25rem; border-radius: var(--radius-pill); } .results-controls__toggle button { border: none; border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; } .results-controls__toggle button[data-active="true"] { background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1); } .results-controls--footer { justify-content: center; gap: 0; } .results-controls--footer .primary { align-self: center; } .field--chat .search-bar { align-items: flex-start; } /* Make chat input field fill available space and align left, just like ord-sök input */ .field--chat .search-bar textarea, .field--chat .search-bar .chat-panel__input { flex: 1 1 auto; min-width: 0; align-self: stretch; /* Ensure it stretches vertically if needed */ } .chat-view__answerText { overflow-x: auto; } /* Live, speculative answer preview — plain text while it streams in, before the fully-processed HTML (citations, person links) replaces it. */ .chat-view__answerText--streaming { opacity: 0.85; } .chat-view__answerText--streaming::after { content: "▍"; display: inline-block; margin-left: 1px; animation: chat-stream-cursor-blink 1s step-end infinite; } @keyframes chat-stream-cursor-blink { 50% { opacity: 0; } } .chat-view__answerText table { width: 100%; margin: 1rem 0; border-collapse: collapse; border: 1px solid rgba(0, 0, 0, 0.08); background: #fff; border-radius: 0.5rem; overflow: hidden; } .chat-view__answerText th, .chat-view__answerText td { padding: 0.65rem 0.9rem; border-bottom: 1px solid rgba(0, 0, 0, 0.08); text-align: left; } .chat-view__answerText thead th { background: rgba(15, 23, 42, 0.05); font-weight: 600; } .chat-view__answerText tbody tr:nth-child(odd) { background: rgba(15, 23, 42, 0.03); } .chat-view__answerText sup a.chat-cite-link { color: var(--accent); text-decoration: none; } .chat-view__answerText sup a.chat-cite-link:hover { text-decoration: underline; } .chat-view__answerText a[href^="/mp/"] { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px dotted var(--accent); } .chat-view__answerText a[href^="/mp/"]:hover { border-bottom-style: solid; } /* Source description links in the "Källor" section */ .chat-view__answerText a.chat-source-link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.2); } .chat-view__answerText a.chat-source-link:hover { color: var(--accent); border-bottom-color: var(--accent); } /* Shared style for both search and chat input fields */ .search-bar input[type="text"], .search-bar textarea, .chat-panel__input { padding: 0.65rem 0.75rem; border-radius: 10px; border: 1px solid var(--panel-border); background: #fdfdff; font-size: 0.95rem; line-height: 1.45; transition: border-color 0.2s ease, box-shadow 0.2s ease; box-sizing: border-box; } /* Focus style for both */ .search-bar input[type="text"]:focus, .search-bar textarea:focus, .chat-panel__input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); outline: none; } /* Remove browser default outline for input and textarea for consistency */ .search-bar input[type="text"]:focus-visible, .search-bar textarea:focus-visible, .chat-panel__input:focus-visible { outline: none; } .results-table__toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0.5rem; } .results-table__count { font-size: 0.85rem; color: var(--text-secondary, #64748b); } .results-table__download-btn { font-size: 0.8rem; padding: 0.3rem 0.7rem; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; background: var(--panel-bg); cursor: pointer; color: var(--text-secondary, #64748b); transition: background 0.15s, color 0.15s; } .results-table__download-btn:hover { background: var(--accent, #2563eb); color: #fff; border-color: var(--accent, #2563eb); } .results-table__footer { display: flex; justify-content: center; padding: 1rem 0 0; } .chat-view { position: relative; display: flex; flex-direction: column; gap: 1.25rem; } /* ============================ QUESTION HEADER ============================ */ .chat-question-header { padding: 0.75rem 1rem; background: var(--ochre-soft); border-radius: var(--radius-md); } .chat-question-header__text { margin: 0; font-weight: 600; color: var(--ink); font-size: var(--fs-15); line-height: var(--lh-snug); } /* ============================ CAROUSEL ============================ */ /* Full-bleed shell: breaks out of the centered .app column. align-self: center places a 100vw item symmetrically within the flex container without relying on percentage margin calculations that can drift through nested flex/block contexts. */ .chat-carousel-shell { position: relative; width: 100vw; align-self: center; overflow-x: clip; } /* Edge fades hint that more cards exist on each side */ .chat-carousel-shell::before, .chat-carousel-shell::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3.5rem; pointer-events: none; z-index: 2; } .chat-carousel-shell::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); } .chat-carousel-shell::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); } /* No fades when there is only one turn */ .chat-carousel-shell:has(.chat-turn-stack:only-child)::before, .chat-carousel-shell:has(.chat-turn-stack:only-child)::after { display: none; } /* On mobile: peek the next card to signal horizontal scrollability. The peeking edge is the scroll affordance — no extra UI needed. Single-card case reverts to full width so it doesn't look inset. */ @media (max-width: 768px) { .chat-carousel { grid-auto-columns: calc(100% - 2.5rem); } .chat-carousel-shell:has(.chat-turn-stack:only-child) .chat-carousel { grid-auto-columns: 100%; } } .chat-carousel { /* Each turn is constrained to a comfortable reading width; padding centers the first and last turn so they snap to the middle of the viewport. */ display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 0.25rem; padding-inline: max(1.5rem, calc((100% - 1100px) / 2)); scroll-padding-inline: max(1.5rem, calc((100% - 1100px) / 2)); } .chat-carousel::-webkit-scrollbar { display: none; } /* Single card: same centering as multi-card, no special override needed */ /* ────────────────────────────────────────────────────────────── TURN STACK: Container for vertically stacked research cards ────────────────────────────────────────────────────────────── */ .chat-turn-stack { display: flex; flex-direction: column; gap: 1rem; scroll-snap-align: center; min-width: 0; pointer-events: auto; cursor: pointer; } .chat-card { transition: opacity 0.25s ease, filter 0.25s ease; opacity: 0.4; filter: grayscale(0.12); pointer-events: auto; min-width: 0; /* prevent grid blowout */ /* Keep white card background but strip the shadow */ background: var(--panel-bg); box-shadow: none; } .chat-turn-stack[data-active="true"] .chat-card { opacity: 1; filter: none; cursor: default; } .chat-card__body { min-height: 4rem; } .chat-card__error { color: #c0392b; margin: 0; } .chat-card__actions { display: flex; justify-content: flex-end; margin-top: 0.6rem; } /* ============================ DOT PAGINATION ============================ */ .chat-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.1rem 0; } .chat-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--blue-3); background: transparent; cursor: pointer; padding: 0; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; } .chat-dot[data-active="true"] { background: var(--blue); border-color: var(--blue); transform: scale(1.35); } /* ============================ LOADING STATE ============================ */ .chat-loading { display: flex; flex-direction: column; gap: 1.25rem; } .chat-loading__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; } .chat-loading__step { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); } .chat-loading__step--done { color: var(--muted); } .chat-loading__step--active { color: var(--text); font-weight: 500; } .chat-loading__step-icon { color: #22c55e; font-size: 0.85rem; flex-shrink: 0; } .chat-loading__spinner { width: 0.9rem; height: 0.9rem; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(27, 28, 31, 0.2); border-top-color: var(--primary); display: inline-block; animation: spinner-rotate 0.6s linear infinite; } .chat-loading__avatars { display: flex; flex-direction: column; gap: 0.5rem; } .chat-loading__avatars-label { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 500; } .chat-loading__avatar-row { display: flex; flex-wrap: wrap; gap: 0.4rem; } .chat-loading__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--panel-border); background: var(--bg); animation: avatar-appear 0.3s ease both; } @keyframes avatar-appear { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } } /* ============================ SOURCE CARDS ============================ */ .chat-sources { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--panel-border); } .chat-sources__title { margin: 0 0 0.75rem; font-size: var(--fs-12); font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); } .chat-sources__scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent; } .chat-source-card { flex: 0 0 210px; display: flex; flex-direction: column; gap: 0.5rem; background: var(--surface-2); border-radius: var(--radius-md); padding: 0.75rem; font-size: 0.85rem; border: 1px solid var(--paper-edge); } .chat-source-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper-edge); align-self: flex-start; } .chat-source-card__body { display: flex; flex-direction: column; gap: 0.3rem; } .chat-source-card__speaker { margin: 0; font-weight: 600; color: var(--text); font-size: 0.85rem; } .chat-source-card__meta { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; } .chat-source-card__party { background: var(--accent); color: #fff; border-radius: 999px; padding: 0.1rem 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; } .chat-source-card__date { color: var(--muted); font-size: 0.78rem; } .chat-source-card__snippet { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .chat-source-card__link { font-size: 0.8rem; color: var(--primary); text-decoration: none; margin-top: 0.1rem; align-self: flex-start; } .chat-source-card__link:hover { text-decoration: underline; } .chat-form { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; /* Make children fill the container */ padding-inline: 0; /* Remove horizontal padding */ } .chat-form__content { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; /* Make children fill the container */ padding-inline: 0; /* Remove horizontal padding */ } .chat-actions { display: flex; justify-content: flex-end; } .secondary-button { padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--panel-border); background: #fff; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; } .secondary-button:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); } .secondary-button:disabled { cursor: not-allowed; opacity: 0.6; } .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* Copy-as-markdown — same pill on chat answers, MP answers, research thread answers and the research report. */ .copy-md-button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.34rem 0.72rem; border: 1px solid var(--panel-border); border-radius: var(--radius-pill); background: var(--surface); /* A