html, body {
    font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    height: 100%;
}

/* ---- App shell (top-tab layout) ---- */
.app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--neutral-layer-2);
}

.app-topbar {
    flex: 0 0 auto;
    height: 58px;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 0 clamp(1rem, 3vw, 2rem);
    background: #ffffff;
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
    box-shadow: 0 1px 3px rgba(3, 45, 96, 0.05);
    z-index: 20;
}

.app-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--neutral-foreground-rest); text-decoration: none; }
.app-brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-fill-rest) 0%, #032d60 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
}

.app-tabs { display: flex; gap: 0.25rem; align-self: stretch; }
.app-tab {
    display: inline-flex; align-items: center; padding: 0 1rem;
    color: var(--neutral-foreground-hint); font-weight: 600; text-decoration: none;
    border-bottom: 2px solid transparent;
}
.app-tab:hover { color: var(--neutral-foreground-rest); }
.app-tab.active { color: var(--accent-fill-rest); border-bottom-color: var(--accent-fill-rest); }

.app-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }

.app-main { flex: 1; min-height: 0; overflow-y: auto; }
.app-content { max-width: 1180px; margin: 0 auto; padding: 1.75rem clamp(1rem, 4vw, 2.25rem); }

/* Full-width view: only widens routes the layout marks ".widenable" (Ask & Dashboard). */
html.view-full .app-content.widenable { max-width: none; }

/* Top-bar full-width toggle (shown only on Ask & Dashboard). */
.view-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    height: 34px; padding: 0 0.7rem;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 8px;
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    font-weight: 600; font-size: 0.85rem; line-height: 1;
    cursor: pointer;
}
.view-toggle:hover { background: var(--neutral-layer-2); }
.view-toggle svg { flex: 0 0 auto; }

/* The button shows one state at a time, driven by the global view-full class (no JS needed to swap). */
.view-toggle .vt-state { display: inline-flex; align-items: center; gap: 0.4rem; }
html.view-full .view-toggle .vt-fixed { display: none; }
html:not(.view-full) .view-toggle .vt-full { display: none; }

@media (max-width: 720px) {
    .view-toggle-label { display: none; }
    .view-toggle { padding: 0 0.55rem; }
}

/* ---- User menu (avatar dropdown) ---- */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--accent-fill-rest); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem;
}
.user-caret { color: var(--neutral-foreground-hint); font-size: 0.65rem; }
.user-pop {
    position: absolute; right: 0; top: 46px; min-width: 230px; background: #fff;
    border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 10px;
    box-shadow: 0 16px 44px -16px rgba(3, 45, 96, 0.4); padding: 0.4rem; z-index: 100;
}
.user-pop-email { padding: 0.5rem 0.65rem; color: var(--neutral-foreground-hint); font-size: 0.82rem; border-bottom: 1px solid var(--neutral-stroke-divider-rest); margin-bottom: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop-item { display: block; width: 100%; text-align: left; padding: 0.5rem 0.65rem; border-radius: 7px; color: var(--neutral-foreground-rest); font-size: 0.9rem; background: none; border: none; cursor: pointer; text-decoration: none; font-family: inherit; }
.user-pop-item:hover { background: var(--neutral-layer-2); }
.user-pop-sep { height: 1px; background: var(--neutral-stroke-divider-rest); margin: 0.3rem 0; }
.user-pop-form { margin: 0; }
.user-pop-signout { color: #ba0517; }

/* ---- Auth shell (login / register) ---- */
.auth-shell { display: flex; flex-direction: column; min-height: 100vh; background: var(--neutral-layer-2); }
.auth-shell-top { padding: 1.25rem clamp(1rem, 4vw, 2rem); }
.auth-shell-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; }
.auth-shell-foot { display: flex; gap: 1.5rem; justify-content: center; padding: 1.5rem; color: var(--neutral-foreground-hint); }
.auth-shell-foot a { color: var(--neutral-foreground-hint); text-decoration: none; }
.auth-shell-foot a:hover { color: var(--accent-fill-rest); }

/* ---- Surfaces ---- */
.surface-card {
    background: var(--neutral-layer-1);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px);
    padding: 1.5rem;
    box-shadow: var(--elevation-shadow-card-rest);
}

.hero {
    background: linear-gradient(135deg, var(--accent-fill-rest) 0%, #032d60 100%);
    color: #ffffff;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    padding: 2.5rem;
    margin-bottom: 1.75rem;
}

.hero h1 { margin: 0 0 0.5rem 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.hero p { margin: 0; opacity: 0.94; max-width: 60ch; }

.soql-code {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.9rem;
}

.auth-card {
    max-width: 440px;
    margin: 2.5rem auto;
}

.full-width { width: 100%; }

/* ---- Schema sync status (settings) ---- */
.schema-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--neutral-foreground-rest); }
.schema-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--neutral-foreground-hint); }
.schema-dot.ok { background: #2e844a; }
.schema-dot.busy { background: #b67d10; }
.schema-dot.err { background: #ba0517; }

/* ---- Admin: SOQL system-prompt version history ---- */
.prompt-history { display: flex; flex-direction: column; gap: 0.6rem; }

.prompt-version {
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    background: var(--neutral-layer-1);
}

.prompt-version.active {
    border-color: var(--accent-fill-rest);
    background: var(--neutral-layer-2);
}

.prompt-version-head { display: flex; align-items: center; gap: 0.6rem; }

.prompt-version-when { font-weight: 600; }

.prompt-version-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent-fill-rest);
    border-radius: 10px;
    padding: 0.05rem 0.5rem;
}

.prompt-version-meta { font-size: 0.85rem; color: var(--neutral-foreground-hint); }

.prompt-version-body { margin-top: 0.45rem; }

.prompt-version-body > summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent-fill-rest);
}

.prompt-version-pre {
    margin: 0.5rem 0 0 0;
    padding: 0.6rem 0.75rem;
    background: var(--neutral-layer-3);
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow-y: auto;
}

/* ---- Admin: activity log ---- */
.activity-periods { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}
.activity-stat {
    background: var(--neutral-layer-1);
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}
.activity-stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.activity-stat-label { font-size: 0.8rem; color: var(--neutral-foreground-hint); margin-top: 0.2rem; }

.activity-chart { height: 260px; position: relative; }

.activity-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.activity-filters .objects-search { min-width: 150px; }

.activity-table-wrap { overflow-x: auto; border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px; }
.activity-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.activity-table thead th {
    text-align: left; position: sticky; top: 0;
    background: var(--neutral-layer-2);
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
    padding: 0.5rem 0.6rem; font-weight: 600; white-space: nowrap;
}
.activity-table tbody td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--neutral-stroke-divider-rest); vertical-align: top; }
.activity-table tbody tr:hover { background: var(--neutral-layer-1); }
.activity-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-table .nowrap { white-space: nowrap; }
.activity-table .act-detail { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-ok { color: #2e844a; font-weight: 700; }
.act-fail { color: #ba0517; font-weight: 700; }

.activity-pager { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.85rem; color: var(--neutral-foreground-hint); }

/* ---- Dashboard widget grid (self-contained 12-column) ---- */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.widget-cell {
    grid-column: span var(--span, 4);
    min-width: 0; /* let tables/charts shrink instead of blowing out the track */
}
/* "Start a new row": pin the start line to column 1 (keeping the same span) so auto-flow wraps this cell
   onto a fresh row at its full configured width, leaving an intentional gap on the previous row. The whole
   shorthand must be set — the base `span N` lives on grid-column-START, so overriding only the start would
   drop the span and collapse the cell to a single column. */
.widget-cell.row-break {
    grid-column: 1 / span var(--span, 4);
}
@media (max-width: 720px) {
    .widget-grid { grid-template-columns: 1fr; }
    .widget-cell,
    .widget-cell.row-break { grid-column: auto; }
}

/* ---- Dashboard tabs (one tab per dashboard for the engine, + add / settings controls) ---- */
.dashboard-tabs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
    margin: 0.25rem 0 1.1rem;
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}
.dashboard-tab {
    border: none; background: none; cursor: pointer;
    padding: 0.45rem 0.85rem; border-radius: 8px 8px 0 0;
    font-family: inherit; font-size: 0.9rem; font-weight: 600;
    color: var(--neutral-foreground-hint);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dashboard-tab:hover { color: var(--neutral-foreground-rest); background: var(--neutral-layer-2); }
.dashboard-tab.active { color: var(--accent-fill-rest); border-bottom-color: var(--accent-fill-rest); }
.dashboard-tab-icon {
    margin-left: 0.35rem; width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--neutral-stroke-divider-rest); background: var(--neutral-layer-2);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; line-height: 1; color: var(--neutral-foreground-rest);
}
.dashboard-tab-icon:hover { border-color: var(--accent-fill-rest); color: var(--accent-fill-rest); }

/* ---- Pin-to-dashboard picker (shown when a user has more than one dashboard) ---- */
.pin-picker-list { display: flex; flex-direction: column; gap: 0.4rem; }
.pin-picker-item {
    text-align: left; border: 1px solid var(--neutral-stroke-divider-rest); background: var(--neutral-layer-1);
    border-radius: 8px; padding: 0.6rem 0.8rem; cursor: pointer;
    font-family: inherit; font-size: 0.92rem; font-weight: 600; color: var(--neutral-foreground-rest);
}
.pin-picker-item:hover { border-color: var(--accent-fill-rest); color: var(--accent-fill-rest); }
.pin-picker-new {
    margin-top: 0.8rem; width: 100%; border: 1px dashed var(--neutral-stroke-divider-rest); background: none;
    border-radius: 8px; padding: 0.55rem 0.8rem; cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--accent-fill-rest);
}
.pin-picker-new:hover { border-color: var(--accent-fill-rest); background: var(--neutral-layer-2); }

/* ---- Widget settings modal ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(3, 45, 96, 0.35);
    display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem;
}
.modal-panel {
    background: #fff; border-radius: 14px; width: 100%; max-width: 440px;
    box-shadow: 0 30px 70px -20px rgba(3, 45, 96, 0.5);
    display: flex; flex-direction: column; max-height: 90vh; overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--neutral-stroke-divider-rest); }
.modal-close { border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--neutral-foreground-hint); line-height: 1; }
.modal-close:hover { color: var(--neutral-foreground-rest); }
.modal-body { padding: 1.25rem; overflow-y: auto; }
.modal-title-input { width: 100%; box-sizing: border-box; padding: 0.5rem 0.7rem; border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--neutral-foreground-rest); }
.modal-title-input:focus { outline: none; border-color: var(--accent-fill-rest); }
.modal-section { margin-bottom: 1.25rem; }
.modal-section.modal-danger { margin-bottom: 0; }
.modal-label { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.modal-label-hint { font-weight: 400; color: var(--neutral-foreground-hint); }
/* Segmented fill bar: a 12-column track you fill like a slider. The filled
   portion mirrors the proportion of the dashboard row the widget will occupy. */
.width-bar { display: flex; flex-direction: row-reverse; gap: 3px; padding: 4px; background: var(--neutral-layer-2); border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 9px; }
.width-seg { flex: 1 1 0; height: 38px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 4px; background: #fff; cursor: pointer; color: var(--neutral-foreground-hint); font-size: 0.72rem; font-weight: 600; transition: background 0.08s ease, color 0.08s ease; }
.width-seg-num { pointer-events: none; }
/* Committed selection — only while the bar is not being hovered. */
.width-bar:not(:hover) .width-seg.fill { background: var(--accent-fill-rest); color: #fff; }
/* Hover preview — fill the hovered segment plus every segment to its left
   (its later DOM siblings, since the bar is rendered reversed). */
.width-bar:hover .width-seg:hover,
.width-bar:hover .width-seg:hover ~ .width-seg { background: var(--accent-fill-rest); color: #fff; }
.width-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.width-preset { border: 1px solid var(--neutral-stroke-divider-rest); background: var(--neutral-layer-2); border-radius: 999px; padding: 0.32rem 0.8rem; cursor: pointer; font-size: 0.8rem; color: var(--neutral-foreground-rest); }
.width-preset:hover { border-color: var(--accent-fill-rest); color: var(--accent-fill-rest); }
.modal-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--neutral-stroke-divider-rest); display: flex; justify-content: flex-end; }

/* ---- Widget query-detail modal (query text + plain-English explanation) ---- */
.query-modal { max-width: 640px; }
.query-modal pre.soql-code {
    background: var(--neutral-layer-3);
    border: 1px solid var(--neutral-stroke-divider-rest);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.query-explain-loading { display: flex; align-items: center; gap: 0.5rem; color: var(--neutral-foreground-hint); }

/* ---- Chart configuration controls (widget settings modal) ---- */
.chart-select {
    width: 100%; box-sizing: border-box; padding: 0.45rem 0.6rem;
    border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px;
    font-family: inherit; font-size: 0.9rem; color: var(--neutral-foreground-rest); background: #fff;
}
.chart-select:focus { outline: none; border-color: var(--accent-fill-rest); }
.chart-series-list {
    display: flex; flex-direction: column; gap: 0.35rem;
    max-height: 180px; overflow-y: auto;
    padding: 0.55rem 0.7rem; border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 8px; background: var(--neutral-layer-2);
}
.chart-series-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.chart-series-item input { cursor: pointer; }

/* ---- Result table column picker ---- */
.result-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.column-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 6px;
    background: var(--neutral-layer-2);
}

/* ---- Result table: sortable headers + per-column filters ---- */
.result-table-wrap { overflow-x: auto; border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px; }
.result-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 420px; }
.result-table td { padding: 0.45rem 0.7rem; border-top: 1px solid var(--neutral-stroke-divider-rest); overflow-wrap: anywhere; vertical-align: top; }
.result-table tbody tr:hover { background: var(--neutral-layer-2); }
.result-table-head th { background: var(--neutral-layer-2); padding: 0; }
.rt-sort { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; width: 100%; border: none; background: none; cursor: pointer; padding: 0.5rem 0.7rem; font: inherit; font-weight: 600; color: var(--neutral-foreground-rest); }
.rt-sort:hover { color: var(--accent-fill-rest); }
.rt-col { overflow-wrap: anywhere; text-align: left; }
.rt-arrow { flex: 0 0 auto; color: var(--neutral-foreground-hint); font-size: 0.72rem; }
.rt-sort:hover .rt-arrow { color: var(--accent-fill-rest); }
.result-table-filters th { background: var(--neutral-layer-2); padding: 0 0.4rem 0.4rem; }
.rt-filter { width: 100%; box-sizing: border-box; padding: 0.28rem 0.45rem; border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 6px; font-family: inherit; font-size: 0.78rem; color: var(--neutral-foreground-rest); background: #fff; }
.rt-filter:focus { outline: none; border-color: var(--accent-fill-rest); }
.rt-empty { padding: 1rem 0.7rem; color: var(--neutral-foreground-hint); text-align: center; }
.rt-footer { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; color: var(--neutral-foreground-hint); font-size: 0.78rem; }

/* ---- Data Sync object list ---- */
.sync-list {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 6px;
}

.sync-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.sync-row:last-child {
    border-bottom: none;
}

.sync-name {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 600;
}

.sync-label {
    color: var(--neutral-foreground-hint);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38%;
}

.sync-count {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.76rem;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
}

.sync-status {
    font-size: 0.76rem;
    white-space: nowrap;
}

.sync-status.ok { color: #2e844a; }
.sync-status.err { color: #ba0517; cursor: help; }

/* ---- Charts ---- */
.chart-host {
    position: relative;
    width: 100%;
    height: 260px;
}

.viz-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

/* ---- Dashboard widget ---- */
.width-badge {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.72rem;
    color: var(--neutral-foreground-hint);
    min-width: 2.6rem;
    text-align: center;
    white-space: nowrap;
}

/* Hero widgets have no white card — the gradient tile fills the whole grid cell. */
.widget-hero-cell { display: flex; }
.widget-hero-cell > .stat-hero { flex: 1; }

.stat-hero {
    background: linear-gradient(135deg, var(--accent-fill-rest) 0%, #032d60 100%);
    color: #ffffff;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-card-rest);
    padding: 1.5rem 1rem 0.6rem;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* KPI title + value centered in the space left under the action row. */
.stat-hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Action icons sit in the bottom-right of the colored tile, in white for contrast. */
.widget-actions-hero {
    width: 100%;
    margin: 0.3rem 0 0 0;
    justify-content: flex-end;
}
.widget-actions-hero .widget-icon { color: rgba(255, 255, 255, 0.82); }
.widget-actions-hero .widget-icon:hover,
.widget-actions-hero .widget-icon:focus-visible { color: #fff; }
.widget-actions-hero .widget-icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
.widget-actions-hero .widget-icon-btn:disabled { color: rgba(255, 255, 255, 0.5); background: none; }

.stat-hero-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.92;
    margin-bottom: 0.65rem;
    overflow-wrap: anywhere;
}

.stat-hero-value {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.stat-hero-caption {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* "Refresh all" rides on the right edge of the dashboard tab strip. */
.dashboard-tabs-refresh {
    margin-left: auto;
    flex: 0 0 auto;
}

.widget-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* margin-left:auto pins the controls to the right edge regardless of the title (or lack of one). */
.widget-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    flex: 0 0 auto;
}

/* Unified widget controls: query (info span) + refresh/settings (buttons), all inline-SVG
   so color is fully controllable via currentColor (works on white cards and dark hero tiles). */
.widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--neutral-foreground-hint);
    background: none;
    border: none;
    padding: 0;
}
.widget-icon:hover { color: var(--accent-fill-rest); }
.widget-icon:focus-visible { color: var(--accent-fill-rest); outline: 2px solid currentColor; outline-offset: 1px; }
.query-icon { cursor: pointer; }
.widget-icon-btn { cursor: pointer; }
.widget-icon-btn:hover { background: rgba(3, 45, 96, 0.08); }
.widget-icon-btn:disabled { opacity: 0.35; cursor: default; color: var(--neutral-foreground-hint); background: none; }

/* Drag-to-reorder: grip handle + dragged/drop-target feedback. */
.widget-drag-handle { cursor: grab; touch-action: none; }
.widget-drag-handle:active { cursor: grabbing; }
.widget-cell.widget-dragging { opacity: 0.45; }
.widget-cell.widget-drag-over { outline: 2px dashed var(--accent-fill-rest); outline-offset: 3px; border-radius: 12px; }

/* ---- Ask (chat with conversation sidebar) ---- */
.ask-layout {
    display: flex;
    gap: 1.1rem;
    height: calc(100vh - 58px - 3.5rem);
    min-height: 420px;
}

.ask-sidebar {
    width: 264px;
    flex: 0 0 264px;
    display: flex;
    flex-direction: column;
    background: var(--neutral-layer-1);
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 12px;
    overflow: hidden;
}

.ask-sidebar-head { padding: 0.75rem; border-bottom: 1px solid var(--neutral-stroke-divider-rest); }
.ask-sidebar-list { flex: 1; overflow-y: auto; padding: 0.4rem; }

.ask-conv {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 0.6rem; border-radius: 8px; cursor: pointer;
}
.ask-conv:hover { background: var(--neutral-layer-2); }
.ask-conv.active { background: #e6f1fb; }
.ask-conv-title { flex: 1; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-conv-del { border: none; background: none; cursor: pointer; color: var(--neutral-foreground-hint); opacity: 0; font-size: 0.85rem; padding: 0 0.2rem; line-height: 1; }
.ask-conv:hover .ask-conv-del { opacity: 1; }
.ask-conv-del:hover { color: #ba0517; }
.ask-empty { padding: 1.25rem 0.6rem; color: var(--neutral-foreground-hint); font-size: 0.85rem; text-align: center; }

.ask-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---- Ask tools (above the question field) + object/field browsers ---- */
.chat-tools { display: flex; gap: 0.45rem; padding: 0.4rem 0 0.5rem; flex: 0 0 auto; }
.ask-icon-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    border: 1px solid var(--neutral-stroke-divider-rest); background: var(--neutral-layer-1);
    border-radius: 8px; padding: 0.35rem 0.7rem; cursor: pointer;
    color: var(--neutral-foreground-rest); font-size: 0.82rem; font-weight: 600;
}
.ask-icon-btn:hover:not(:disabled) { border-color: var(--accent-fill-rest); color: var(--accent-fill-rest); }
.ask-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ask-icon-btn-label { line-height: 1; }

.objects-panel { max-width: 480px; }
.objects-search {
    width: 100%; box-sizing: border-box; padding: 0.5rem 0.7rem; margin-bottom: 0.7rem;
    border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px;
    font-family: inherit; font-size: 0.9rem; color: var(--neutral-foreground-rest);
}
.objects-search:focus { outline: none; border-color: var(--accent-fill-rest); }
.objects-count { font-size: 0.75rem; color: var(--neutral-foreground-hint); margin-bottom: 0.4rem; }
.objects-state { display: flex; align-items: center; gap: 0.6rem; padding: 1.25rem 0.25rem; color: var(--neutral-foreground-hint); font-size: 0.88rem; }
.objects-state.error { color: #ba0517; }
.objects-list { display: flex; flex-direction: column; gap: 0.3rem; max-height: 48vh; overflow-y: auto; }
.objects-row {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
    width: 100%; text-align: left; padding: 0.5rem 0.65rem; border-radius: 8px;
    border: 1px solid transparent; background: var(--neutral-layer-2); cursor: pointer;
    flex: 0 0 auto; /* don't let the flex column crush rows when the list is long */
}
.objects-row:hover { border-color: var(--accent-fill-rest); background: #eef5fd; }
.objects-api { font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 0.85rem; font-weight: 600; color: var(--neutral-foreground-rest); overflow-wrap: anywhere; }
.objects-label { font-size: 0.78rem; color: var(--neutral-foreground-hint); }

/* ---- Tables & fields accordion ---- */
/* flex:0 0 auto is required: overflow:hidden makes a flex item's auto min-size 0,
   so without it the rows collapse to thin lines in a long list. */
.field-obj { border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.field-obj-head {
    display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left;
    padding: 0.5rem 0.65rem; border: none; background: var(--neutral-layer-2); cursor: pointer;
}
.field-obj-head:hover { background: #eef5fd; }
.field-caret { flex: 0 0 auto; color: var(--neutral-foreground-hint); font-size: 0.7rem; width: 0.8rem; }
.field-badge { flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-fill-rest); background: #e6f1fb; border-radius: 999px; padding: 0.08rem 0.4rem; }
.field-list { display: flex; flex-direction: column; max-height: 30vh; overflow-y: auto; border-top: 1px solid var(--neutral-stroke-divider-rest); background: #fff; }
.field-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    width: 100%; text-align: left; padding: 0.34rem 0.7rem 0.34rem 1.6rem;
    border: none; border-bottom: 1px solid var(--neutral-stroke-divider-rest); background: none; cursor: pointer;
}
.field-row:last-child { border-bottom: none; }
.field-row:hover { background: #eef5fd; }
.field-name { font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 0.8rem; color: var(--neutral-foreground-rest); overflow-wrap: anywhere; }
.field-type { flex: 0 0 auto; font-size: 0.72rem; color: var(--neutral-foreground-hint); }

/* ---- Guidance modal (object definitions + term guidance) ---- */
.guid-panel { max-width: 620px; }
.guid-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--neutral-stroke-divider-rest); margin-bottom: 1rem; }
.guid-tab {
    border: none; background: none; cursor: pointer; padding: 0.5rem 0.85rem;
    font-size: 0.85rem; font-weight: 600; color: var(--neutral-foreground-hint);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.guid-tab:hover { color: var(--neutral-foreground-rest); }
.guid-tab.active { color: var(--accent-fill-rest); border-bottom-color: var(--accent-fill-rest); }
.guid-add-head { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--neutral-foreground-hint); margin: 1.1rem 0 0.5rem; }
.guid-empty { color: var(--neutral-foreground-hint); font-size: 0.88rem; padding: 0.5rem 0 0.75rem; }
.guid-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 42vh; overflow-y: auto; margin-bottom: 0.5rem; }
.guid-item { border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px; padding: 0.6rem 0.7rem; background: var(--neutral-layer-2); }
.guid-item-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.3rem; }
.guid-item-subject { font-weight: 700; font-size: 0.9rem; color: var(--neutral-foreground-rest); overflow-wrap: anywhere; }
.guid-item-detail { font-size: 0.82rem; color: var(--neutral-foreground-hint); white-space: pre-wrap; overflow-wrap: anywhere; }
.guid-item-actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.guid-link { border: none; background: none; cursor: pointer; padding: 0; font-size: 0.78rem; font-weight: 600; color: var(--accent-fill-rest); }
.guid-link:hover { text-decoration: underline; }
.guid-link.danger { color: #ba0517; }
/* Demo custom-field showcase (Guidance panel) */
.guid-cf-group { border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 8px; padding: 0.6rem 0.7rem; background: var(--neutral-layer-2); }
.guid-cf-object { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.9rem; color: var(--neutral-foreground-rest); margin-bottom: 0.45rem; }
.guid-cf-count { font-size: 0.72rem; font-weight: 700; color: var(--neutral-foreground-hint); background: var(--neutral-stroke-divider-rest); border-radius: 999px; padding: 0.05rem 0.45rem; }
.guid-cf-fields { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.guid-cf-chip {
    display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px;
    background: rgba(1, 118, 211, 0.1); border: 1px solid rgba(1, 118, 211, 0.22); color: #015fb0;
    font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 0.78rem; font-weight: 600;
}

.guid-editor { border: 1px solid var(--neutral-stroke-divider-rest); border-radius: 10px; padding: 0.85rem; background: var(--neutral-layer-1); margin-bottom: 0.75rem; }
.guid-editor-title { margin-bottom: 0.5rem; }
.guid-editor-actions { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; }

/* FieldLookupTextArea: anchor for its "/" popover. The popover lives inside the Guidance modal's
   scroll area (overflow:hidden/auto), which would clip a tall list — so js/fieldlookup.js promotes it
   to position:fixed and sets its coordinates. The high z-index keeps it above the modal overlay (1000);
   the absolute fallback below applies only for the brief moment before the JS runs. */
.fl-field { position: relative; }
/* Compound selector so it beats the later `.slash-menu { z-index: 50 }` rule and sits above the modal. */
.slash-menu.fl-menu { top: calc(100% + 6px); bottom: auto; z-index: 1100; }
.fl-menu .slash-list { max-height: 240px; }

.ask-welcome { text-align: center; max-width: 560px; margin: clamp(1.5rem, 8vh, 5rem) auto 0; color: var(--neutral-foreground-hint); }
.ask-welcome h2 { color: var(--neutral-foreground-rest); margin: 0 0 0.35rem; font-size: 1.5rem; }
.ask-welcome p { margin: 0; }

/* ---- AI Query chat ---- */
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0.5rem 1rem 0;
}

.chat-row {
    display: flex;
    margin-bottom: 1rem;
}

.chat-row.user { justify-content: flex-end; }
.chat-row.assistant { justify-content: flex-start; }

.chat-bubble {
    max-width: 82%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    line-height: 1.45;
}

.chat-row.user .chat-bubble {
    background: var(--accent-fill-rest);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-row.assistant .chat-bubble {
    background: var(--neutral-layer-1);
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-bottom-left-radius: 4px;
}

.chat-bubble.error {
    background: var(--error-color, #fdf3f4);
    border-color: #ba0517;
}

.ai-step { margin-bottom: 0.85rem; }

/* Step header: "Ran SOQL" on the left, "Pin to dashboard" pinned to the top-right. Plain flexbox
   (not FluentStack) so the layout never depends on FluentUI's scoped-CSS delivery. */
.ai-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}
.ai-step-ran { font-weight: 600; }

/* "Show data" affordance for reloaded turns (results are never stored, only the query). */
.step-rerun { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.step-rerun-note {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.8rem; color: var(--neutral-foreground-hint); max-width: 46ch;
}
.step-rerun-note svg { flex: 0 0 auto; opacity: 0.8; }
.step-rerun-loading {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--neutral-foreground-hint); font-size: 0.85rem;
}

.ai-step pre.soql-code {
    background: var(--neutral-layer-3);
    border: 1px solid var(--neutral-stroke-divider-rest);
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0 0 0.5rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-answer {
    white-space: pre-wrap;
    margin-top: 0.6rem;
}

/* Result-bearing answers take the full chat width so the table and its top-right
   "Pin to dashboard" button (level with "Ran SOQL") use the available real estate. */
.chat-row.assistant .chat-bubble.wide { max-width: 100%; width: 100%; }

/* Related-question suggestions offered when a query returns no data. */
.chat-suggest { margin-top: 0.75rem; }
.chat-suggest-head { font-weight: 600; margin-bottom: 0.5rem; }
.chat-suggest-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-suggest-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--neutral-foreground-hint);
}

/* Clarification questions asked when a request is too broad. */
.clarify {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.4rem;
}

.clarify-preamble {
    white-space: pre-wrap;
    color: var(--neutral-foreground-rest);
}

.clarify-hint {
    font-size: 0.85rem;
    color: var(--neutral-foreground-hint);
    margin-top: -0.35rem;
}

.clarify-q {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.clarify-q-text {
    font-weight: 600;
}

.clarify-text {
    margin-top: 0.15rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid var(--neutral-stroke-divider-rest);
    position: relative; /* anchor for the "/" lookup popover */
}

.chat-input-field { flex: 1; min-width: 0; }

/* ---- "/" inline lookup popover (anchored above the input) ---- */
.slash-menu {
    position: absolute;
    left: 0; right: 0; bottom: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 10px;
    box-shadow: 0 18px 40px -16px rgba(3, 45, 96, 0.45);
    z-index: 50;
    overflow: hidden;
}
.slash-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--neutral-stroke-divider-rest);
    background: var(--neutral-layer-2); font-size: 0.8rem; color: var(--neutral-foreground-rest);
}
.slash-hint { color: var(--neutral-foreground-hint); font-size: 0.72rem; }
.slash-state { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem; color: var(--neutral-foreground-hint); font-size: 0.85rem; }
.slash-state.error { color: #ba0517; }
.slash-list { max-height: 280px; overflow-y: auto; padding: 0.25rem; display: flex; flex-direction: column; gap: 0.1rem; }
.slash-item {
    display: flex; align-items: baseline; gap: 0.5rem; width: 100%; text-align: left;
    padding: 0.4rem 0.55rem; border: none; border-radius: 7px; background: none; cursor: pointer; flex: 0 0 auto;
}
.slash-item.active { background: #e6f1fb; }
.slash-item-main { font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 0.84rem; font-weight: 600; color: var(--neutral-foreground-rest); overflow-wrap: anywhere; }
.slash-item-sec { margin-left: auto; flex: 0 0 auto; font-size: 0.74rem; color: var(--neutral-foreground-hint); }

/* Send button ~90% of the textarea height, vertically centered. */
.chat-input fluent-button { align-self: center; height: 90%; }
.chat-input fluent-button::part(control) { height: 100%; }

/* ---- Blazor default error UI ---- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #ba0517;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ---- Cloudflare Turnstile widget on the demo signup form ---- */
.cf-turnstile {
    display: flex;
    justify-content: center;
}

/* ---- Login page: two clearly-separated sign-in sections with an "or" divider ---- */
.login-section {
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 10px;
    background: rgba(3, 45, 96, 0.018);
}

.login-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-foreground-hint);
    margin-bottom: 0.8rem;
}

.login-or {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.15rem 0;
    color: var(--neutral-foreground-hint);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

    .login-or::before,
    .login-or::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background: var(--neutral-stroke-divider-rest);
    }

/* ---- Branded "Continue with Salesforce" button (the production sign-in path) ---- */
.sf-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0176d3 0%, #032d60 100%);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(1, 118, 211, 0.35);
    transition: box-shadow 140ms ease, transform 120ms ease, filter 140ms ease;
}

    .sf-login-btn:hover {
        filter: brightness(1.06);
        box-shadow: 0 8px 22px rgba(1, 118, 211, 0.45);
        transform: translateY(-1px);
    }

    .sf-login-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(1, 118, 211, 0.35);
    }

    .sf-login-btn .sf-login-icon {
        flex: 0 0 auto;
    }

/* ---- Demo password reveal card (TryDemo) — prominent, easy to read + copy ---- */
.demo-pw-box {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid rgba(3, 45, 96, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(1, 118, 211, 0.07), rgba(1, 118, 211, 0.02));
}

.demo-pw-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
    margin-bottom: 0.5rem;
}

.demo-pw-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

/* The password itself: big monospace in a white field; user-select:all so one click grabs all of it. */
.demo-pw-value {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    background: #ffffff;
    border: 1px solid rgba(3, 45, 96, 0.22);
    border-radius: 8px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    /* Sized so a 16-char password fits without triggering the horizontal scrollbar, down to ~320px wide. */
    font-size: clamp(0.78rem, 3.4vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #032d60;
    user-select: all;
    -webkit-user-select: all;
    overflow-x: auto;
    white-space: nowrap;
}

.demo-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.05rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-fill-rest, #0176d3);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 140ms ease;
}

    .demo-copy-btn:hover { background: #015fb0; }
    .demo-copy-btn:active { transform: translateY(1px); }

    .demo-copy-btn .demo-copy-check,
    .demo-copy-btn .demo-copy-label-done { display: none; }

    .demo-copy-btn.copied { background: #107c10; }

        .demo-copy-btn.copied .demo-copy-icon,
        .demo-copy-btn.copied .demo-copy-label-copy { display: none; }

        .demo-copy-btn.copied .demo-copy-check { display: inline-flex; }
        .demo-copy-btn.copied .demo-copy-label-done { display: inline; }

.demo-pw-hint {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--neutral-foreground-hint);
}

/* ---- Demo-mode SQL/SOQL note on the Ask page — a soft, professional callout ---- */
.demo-mode-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(1, 118, 211, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(1, 118, 211, 0.06), rgba(1, 118, 211, 0.02));
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--neutral-foreground-rest);
}

.demo-mode-note-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: rgba(1, 118, 211, 0.12);
    color: #0176d3;
}

    .demo-mode-note-text strong {
        color: #032d60;
        font-weight: 700;
    }
