:root {
    --ink: #202522;
    --ink-soft: #5d665f;
    --ink-muted: #929b93;
    --paper: #f8f8f4;
    --surface: #fffffc;
    --surface-soft: #f1f3ee;
    --line: #e1e5dd;
    --line-strong: #cfd6cc;
    --sidebar: #202522;
    --sidebar-soft: #2b312d;
    --sidebar-ink: #f4f5ef;
    --gold: #d1a849;
    --gold-deep: #a77b22;
    --gold-wash: #f3ead4;
    --green: #3d7655;
    --green-wash: #e4efe7;
    --blue: #5b78a9;
    --blue-wash: #e8eef8;
    --pink: #a76570;
    --pink-wash: #f5e8e9;
    --orange: #b57c41;
    --shadow: 0 8px 30px rgba(34, 42, 35, .06);
    --sidebar-width: 264px;
    --content-width: 1040px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: #e7d19a; color: var(--ink); }

.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }

/* Sidebar */
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 22px 14px 14px; background: var(--sidebar); color: var(--sidebar-ink); }
.sidebar-top { padding: 0 6px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 26px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #171a17; background: var(--gold); }
.brand-mark .icon { width: 18px; height: 18px; stroke-width: 2; }
.brand-copy { display: grid; line-height: 1.05; letter-spacing: -.02em; }
.brand-copy strong { color: #fff; font-size: 14px; font-weight: 700; }
.brand-copy span { margin-top: 3px; color: #9ea79e; font-size: 10px; letter-spacing: .02em; }
.icon-button { display: inline-grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 8px; color: currentColor; background: transparent; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.icon-button:hover { background: var(--surface-soft); border-color: var(--line); }
.sidebar .icon-button:hover { background: var(--sidebar-soft); border-color: #404941; }
.icon-button .icon { width: 17px; height: 17px; }
.sidebar-collapse { color: #8f9890; transform: rotate(-90deg); }
.new-chat-button { display: flex; width: 100%; height: 43px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #4b544c; border-radius: 9px; color: #fff; background: #303731; font-size: 12px; font-weight: 600; text-align: left; transition: border-color .18s ease, background .18s ease; }
.new-chat-button:hover { border-color: #778277; background: #363e37; }
.new-chat-icon { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 5px; color: #202522; background: var(--gold); }
.new-chat-icon .icon { width: 14px; height: 14px; stroke-width: 2.2; }
kbd { color: var(--ink-muted); font-size: 10px; font-family: inherit; }
.new-chat-button kbd { margin-left: auto; color: #9ba49c; }
.search-box { display: flex; height: 38px; align-items: center; gap: 8px; margin-top: 11px; padding: 0 10px; border: 1px solid #3b443d; border-radius: 8px; color: #919b92; background: #272d28; }
.search-box .icon { width: 15px; height: 15px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #eef1eb; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #7f8b80; }
.search-box kbd { display: none; color: #829084; }
.main-nav { margin-top: 27px; }
.nav-label { padding: 0 11px 8px; color: #7f8980; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { position: relative; display: flex; height: 38px; align-items: center; gap: 11px; margin: 2px 0; padding: 0 11px; border-radius: 8px; color: #aeb6ae; font-size: 12px; font-weight: 500; transition: color .18s ease, background .18s ease; }
.nav-item .icon { width: 16px; height: 16px; color: #849087; }
.nav-item:hover { color: #fff; background: #2a312b; }
.nav-item.is-active { color: #fff; background: #343b35; font-weight: 650; }
.nav-item.is-active::before { position: absolute; left: -14px; width: 3px; height: 19px; border-radius: 0 3px 3px 0; background: var(--gold); content: ""; }
.nav-item.is-active .icon { color: var(--gold); }
.nav-count { display: inline-grid; min-width: 17px; height: 17px; margin-left: auto; place-items: center; border-radius: 5px; color: #22261f; background: var(--gold); font-size: 9px; font-weight: 700; }
.sidebar-lower { min-height: 0; margin-top: 25px; overflow: hidden; }
.conversation-list { overflow: auto; }
.conversation-item { display: flex; width: 100%; height: 35px; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 7px; color: #a4ada5; background: transparent; font-size: 11px; text-align: left; }
.conversation-item:hover, .conversation-item.is-current { color: #e8ece7; background: #2a302b; }
.conversation-item span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item small { margin-left: auto; color: #707c71; font-size: 9px; }
.conversation-dot { width: 5px; height: 5px; border-radius: 50%; background: #667269; }
.conversation-item.is-current .conversation-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(209,168,73,.12); }
.sidebar-footer { position: relative; margin-top: auto; padding-top: 13px; border-top: 1px solid #343b35; }
.system-status { display: flex; align-items: center; gap: 7px; padding: 0 10px 12px; color: #79857b; font-size: 10px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ba77c; box-shadow: 0 0 0 3px rgba(107,167,124,.12); }
.profile-card { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 9px; border: 0; border-radius: 9px; color: #fff; background: transparent; text-align: left; }
.profile-card:hover { background: #2b312c; }
.avatar { display: inline-grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; }
.avatar-gold { color: #24271f; background: #d9bc72; }
.avatar-purple { background: #8476a7; }.avatar-blue { background: #7595ba; }.avatar-teal { background: #659a8b; }.avatar-orange { background: #ba8559; }
.profile-copy { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.profile-copy strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.profile-copy small { margin-top: 3px; color: #9da89e; font-size: 10px; }
.profile-card > .icon { width: 15px; color: #7e897f; }
.profile-menu { position: absolute; right: 0; bottom: 58px; display: none; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); box-shadow: 0 14px 40px rgba(28,35,29,.16); }
.profile-menu.is-open { display: block; animation: pop-in .18s ease-out; }
.popover-label { padding: 6px 8px 8px; color: var(--ink-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.role-option { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 7px; color: var(--ink-soft); background: transparent; font-size: 11px; text-align: left; }.role-option:hover { background: var(--surface-soft); color: var(--ink); }.role-option .role-check { display: none; margin-left: auto; color: var(--green); }.role-option.is-selected .role-check { display: inline-grid; }.role-option .icon { width: 14px; height: 14px; }.popover-divider { height: 1px; margin: 6px 0; background: var(--line); }

/* Main layout */
.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); background: var(--paper); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 65px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(225,229,221,.8); background: rgba(248,248,244,.94); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions, .topbar-context { display: flex; align-items: center; }.topbar-context { gap: 8px; color: var(--ink-muted); font-size: 12px; }.topbar-context strong { color: var(--ink); font-weight: 650; }.slash { color: #c4cac2; }.context-pulse { width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }.topbar-actions { gap: 8px; }.data-period { display: flex; align-items: center; gap: 5px; margin-right: 10px; color: var(--ink-muted); font-size: 10px; }.data-period strong { color: var(--ink-soft); font-weight: 550; }.notification-button { position: relative; }.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid var(--paper); border-radius: 50%; background: var(--gold); }.top-avatar { display: none; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; color: #24271f; background: #d9bc72; font-size: 9px; font-weight: 700; }.mobile-menu { display: none; }
.page-wrap { padding: 0 34px 56px; }.view-panel { display: none; max-width: var(--content-width); margin: 0 auto; padding-top: 39px; }.view-panel.is-active { display: block; animation: fade-in .22s ease-out; }.content-width { width: min(100%, 860px); margin-right: auto; margin-left: auto; }.chat-header { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 29px; }.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold-deep); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }.eyebrow-line { width: 22px; height: 1px; background: var(--gold); }.chat-header h1, .page-heading h1 { margin: 10px 0 5px; color: var(--ink); font-size: 27px; font-weight: 680; letter-spacing: -.045em; line-height: 1.15; }.chat-header h1 span { color: var(--gold-deep); }.chat-header p, .page-heading p { margin: 0; color: var(--ink-muted); font-size: 12px; }.chat-header-actions, .heading-actions { display: flex; gap: 8px; }.button { display: inline-flex; height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 650; transition: transform .18s ease, background .18s ease, border-color .18s ease; }.button:active { transform: translateY(1px); }.button .icon { width: 15px; height: 15px; }.button-secondary { color: var(--ink-soft); border-color: var(--line); background: var(--surface); }.button-secondary:hover { border-color: var(--line-strong); background: var(--surface-soft); }.button-primary { color: #24271f; background: var(--gold); }.button-primary:hover { background: #ddbb68; }.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--gold-deep); background: transparent; font-size: 11px; font-weight: 700; }.text-button .icon { width: 14px; height: 14px; }

/* Chat */
.chat-stream { padding-bottom: 195px; }.date-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: #aab2aa; font-size: 10px; }.date-divider::before, .date-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }.message { position: relative; display: flex; gap: 12px; margin-bottom: 30px; }.message-user { display: block; margin-left: auto; width: min(100%, 640px); }.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink-muted); font-size: 10px; }.message-meta span:first-child { color: var(--ink-soft); font-weight: 700; }.message-meta time { color: #b1b8b0; }.message-user .message-meta { justify-content: flex-end; }.user-bubble { display: inline-block; max-width: 100%; padding: 13px 16px; border: 1px solid #dedfce; border-radius: 13px 3px 13px 13px; color: #323932; background: #f1eddf; font-size: 13px; line-height: 1.55; }.message-ai { align-items: flex-start; }.ai-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #d5b96d; border-radius: 8px; color: var(--gold-deep); background: var(--gold-wash); }.ai-avatar .icon { width: 16px; height: 16px; }.message-body { width: 100%; max-width: 790px; }.message-ai .message-meta { margin-bottom: 11px; }.ai-status { padding: 2px 6px; border-radius: 4px; color: var(--green); background: var(--green-wash); font-size: 9px; font-weight: 700; }.message-body > p { max-width: 700px; margin: 0 0 17px; color: #505950; font-size: 13px; line-height: 1.7; }.message-body strong { color: var(--ink); font-weight: 700; }.insight-callout { display: flex; gap: 11px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #e5dfc9; border-radius: 8px; background: #fbf8ed; }.callout-mark { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: var(--gold-deep); background: #f0e2bd; font-size: 9px; font-weight: 800; }.insight-callout p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }.insight-callout strong { font-size: 11px; }.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }.recommendation-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.recommendation-card.is-primary { border-color: #dbc887; background: #fffdf6; }.product-kicker { display: flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 9px; font-weight: 650; }.product-symbol { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; color: #6c531e; background: #f0dfac; font-size: 11px; font-weight: 800; }.product-symbol-blue { color: #48638e; background: var(--blue-wash); }.relevance { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: var(--green); background: var(--green-wash); font-size: 9px; }.relevance-muted { color: var(--blue); background: var(--blue-wash); }.recommendation-card h3 { margin: 14px 0 6px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: -.01em; }.recommendation-card > p { min-height: 38px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }.recommendation-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 9px; }.trend-up { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700; }.trend-up .icon { width: 12px; height: 12px; }.next-step { padding-top: 2px; }.message-source { display: flex; align-items: center; gap: 6px; color: #98a098; font-size: 10px; }.message-source .icon { width: 13px; height: 13px; color: var(--green); }.message-source button { padding: 0; border: 0; color: var(--gold-deep); background: transparent; font-size: 10px; font-weight: 650; }.message-actions { display: flex; gap: 5px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }.message-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 0; border-radius: 5px; color: var(--ink-muted); background: transparent; font-size: 10px; }.message-actions button:hover { color: var(--ink-soft); background: var(--surface-soft); }.message-actions .icon { width: 13px; height: 13px; }
.composer-zone { position: fixed; z-index: 15; right: 0; bottom: 0; left: var(--sidebar-width); padding: 38px 34px 19px; background: linear-gradient(180deg, rgba(248,248,244,0), var(--paper) 34%); }.suggestion-row { display: flex; justify-content: flex-end; gap: 7px; margin-bottom: 10px; }.suggestion-chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-muted); background: rgba(255,255,252,.82); font-size: 10px; }.suggestion-chip:hover { border-color: #d3bc7b; color: var(--gold-deep); }.suggestion-chip span { margin-left: 5px; color: var(--gold-deep); }.composer { position: relative; padding: 12px 50px 8px 15px; border: 1px solid #cfd6cc; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }.composer:focus-within { border-color: #c5a04c; box-shadow: 0 0 0 3px rgba(209,168,73,.12), var(--shadow); }.composer textarea { display: block; width: 100%; max-height: 150px; min-height: 27px; padding: 2px 0; resize: none; overflow-y: auto; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; line-height: 1.5; }.composer textarea::placeholder { color: #a1aaa0; }.composer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; color: #a3aca4; font-size: 9px; }.security-mark { color: #74a083; }.composer-shortcut { color: #b0b7af; }.send-button { position: absolute; right: 13px; bottom: 13px; display: grid; width: 31px; height: 31px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #24271f; background: var(--gold); transition: transform .18s ease, background .18s ease; }.send-button:hover { background: #dfbd6a; transform: translateY(-1px); }.send-button .icon { width: 16px; height: 16px; }

/* Shared dashboard and data views */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }.page-heading h1 { font-size: 29px; }.signal-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; padding: 14px 16px; border: 1px solid #e7d9ae; border-radius: 9px; background: #fbf7e9; }.signal-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--gold-deep); background: #f0dfac; }.signal-icon .icon { width: 17px; height: 17px; }.signal-banner > div:nth-child(2) { flex: 1; }.signal-banner strong { display: block; color: #604e26; font-size: 11px; }.signal-banner p { margin: 2px 0 0; color: #887546; font-size: 10px; }.signal-banner .text-button { color: #89681d; }.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }.kpi-block { position: relative; min-height: 153px; padding: 17px 17px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }.kpi-label, .overview-label { display: block; color: var(--ink-muted); font-size: 10px; font-weight: 550; }.kpi-block > strong { display: block; margin: 10px 0 6px; color: var(--ink); font-size: 23px; font-weight: 700; letter-spacing: -.05em; }.kpi-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-muted); font-size: 9px; }.kpi-meta .icon { width: 12px; height: 12px; }.kpi-meta.positive { color: var(--green); }.kpi-meta.warning { color: var(--orange); }.kpi-meta.neutral { color: var(--ink-muted); }.kpi-block > small { display: block; margin-top: 7px; color: var(--ink-muted); font-size: 9px; }.kpi-bar, .pipeline-line { width: 100%; height: 4px; margin-top: 17px; overflow: hidden; border-radius: 99px; background: #edf0ea; }.kpi-bar span, .pipeline-line span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }.pipeline-line span { background: var(--blue); }.ring-progress { position: absolute; right: 15px; bottom: 16px; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--progress), #e9ede8 0); }.ring-progress::after { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); content: ""; }.ring-progress span { position: relative; z-index: 1; color: var(--ink); font-size: 11px; font-weight: 750; }.ring-progress small { font-size: 8px; }.mini-bars { display: flex; height: 33px; align-items: end; gap: 4px; margin-top: 16px; }.mini-bars i { width: 11%; border-radius: 2px 2px 0 0; background: #c4d5c7; }.mini-bars i:nth-last-child(-n+2) { background: #7eaa88; }.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 10px; }.panel-block { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.performance-chart, .focus-list { min-height: 336px; padding: 20px; }.block-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.block-kicker { display: block; color: var(--gold-deep); font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }.block-header h2 { margin: 5px 0 0; color: var(--ink); font-size: 15px; font-weight: 680; letter-spacing: -.02em; }.block-header select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: var(--surface); font-size: 10px; outline: 0; }.chart-area { position: relative; display: flex; height: 204px; margin: 22px 2px 0; padding-left: 34px; }.chart-y { position: absolute; top: 0; bottom: 18px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: #aeb7ad; font-size: 9px; }.line-chart { width: 100%; height: 180px; overflow: visible; }.chart-grid { fill: none; stroke: #e9ede7; stroke-width: 1; }.chart-fill { fill: rgba(209,168,73,.1); }.chart-line { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-width: 2.4; }.chart-point { fill: var(--gold); stroke: var(--surface); stroke-width: 3; }.chart-x { position: absolute; right: 0; bottom: 0; left: 34px; display: flex; justify-content: space-between; color: #aeb7ad; font-size: 9px; }.chart-legend { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 9px; }.legend-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }.legend-dot.gold { background: var(--gold); }.chart-highlight { color: var(--ink); font-size: 11px; font-weight: 700; }.chart-highlight small { margin-left: 3px; color: var(--ink-muted); font-size: 9px; font-weight: 500; }.focus-list .block-header { margin-bottom: 12px; }.focus-item { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); }.focus-number { color: #aeb7ad; font-size: 10px; font-weight: 750; }.focus-item > div { min-width: 0; flex: 1; }.focus-item strong { display: block; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.focus-item p { margin: 3px 0 0; overflow: hidden; color: var(--ink-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.focus-badge { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 650; }.focus-badge.high { color: #916032; background: #f5ead8; }.focus-badge.medium { color: #61799e; background: var(--blue-wash); }.focus-badge.low { color: #68786d; background: var(--green-wash); }.full-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 0; border: 0; color: var(--gold-deep); background: transparent; font-size: 10px; font-weight: 700; }.full-link .icon { width: 14px; height: 14px; }

/* Tables and list pages */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }.table-search { display: flex; width: 290px; height: 38px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-muted); background: var(--surface); }.table-search .icon { width: 15px; height: 15px; }.table-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.table-search input::placeholder { color: #aab2a9; }.toolbar-actions { display: flex; gap: 7px; }.toolbar-actions .button { height: 36px; font-size: 10px; }.filter-count { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 4px; color: var(--gold-deep); background: var(--gold-wash); font-size: 9px; }.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.data-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }.data-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }.data-table td { padding: 14px 16px; border-bottom: 1px solid #edf0ea; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }.data-table tbody tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #fcfcf8; }.entity-cell { display: flex; align-items: center; gap: 10px; }.entity-avatar, .product-avatar { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #667263; background: #e6ebe2; font-size: 11px; font-weight: 750; }.product-avatar { color: #7e681f; background: var(--gold-wash); font-size: 17px; }.entity-cell div { display: grid; gap: 2px; }.entity-cell strong { color: var(--ink); font-size: 11px; font-weight: 680; }.entity-cell small { color: var(--ink-muted); font-size: 9px; }.segment-label { color: var(--ink-soft); font-size: 10px; }.risk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; font-size: 9px; font-weight: 650; }.risk-pill i { width: 5px; height: 5px; border-radius: 50%; }.risk-pill.low { color: var(--green); background: var(--green-wash); }.risk-pill.low i { background: #5a9b6d; }.risk-pill.medium { color: #916d32; background: #f5ecd9; }.risk-pill.medium i { background: #ca9547; }.risk-pill.high { color: #a45c63; background: var(--pink-wash); }.risk-pill.high i { background: #c8757d; }.row-more { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 6px; color: #9ba49c; background: transparent; }.row-more:hover { color: var(--gold-deep); background: var(--gold-wash); }.row-more .icon { width: 14px; height: 14px; }.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; color: var(--ink-muted); font-size: 10px; }.pagination { display: flex; gap: 4px; }.pagination button { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-muted); background: var(--surface); font-size: 10px; }.pagination button:hover:not(:disabled), .pagination button.is-current { color: var(--gold-deep); border-color: #dfcc94; background: var(--gold-wash); }.pagination button:disabled { opacity: .5; cursor: not-allowed; }.product-overview { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; margin-bottom: 17px; }.product-overview > div { display: grid; min-height: 96px; align-content: center; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.overview-label { margin-bottom: 6px; }.product-overview strong { color: var(--ink); font-size: 19px; letter-spacing: -.035em; }.product-overview .kpi-meta { margin-top: 5px; }

/* Performance, reports, settings, activity */
.team-score { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 25px; margin-bottom: 17px; padding: 18px 20px; border: 1px solid #dfd4b5; border-radius: 10px; background: #fbf7e9; }.team-score strong { display: block; margin-top: 4px; color: var(--ink); font-size: 27px; letter-spacing: -.05em; }.team-score p { margin: 2px 0 0; color: #8a7850; font-size: 10px; }.score-track { height: 8px; overflow: hidden; border-radius: 99px; background: #eadfbe; }.score-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }.score-note { color: var(--green); font-size: 10px; font-weight: 700; }.rank-list { padding: 20px; }.rank-list .block-header { margin-bottom: 12px; }.muted-label { color: var(--ink-muted); font-size: 10px; }.rank-row { display: grid; grid-template-columns: 28px 31px minmax(0,1fr) 84px minmax(100px, .8fr); align-items: center; gap: 10px; min-height: 62px; border-top: 1px solid var(--line); }.rank-position { color: #b0b8b0; font-size: 10px; font-weight: 750; }.rank-position.first { color: var(--gold-deep); }.rank-name { display: grid; gap: 2px; min-width: 0; }.rank-name strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.rank-name small, .rank-value small { color: var(--ink-muted); font-size: 9px; }.rank-value { display: grid; justify-items: end; gap: 2px; }.rank-value strong { color: var(--ink); font-size: 12px; }.rank-bar { height: 5px; overflow: hidden; border-radius: 99px; background: #edf0ea; }.rank-bar span { display: block; height: 100%; border-radius: inherit; background: #9abca2; }.rank-row:first-of-type .rank-bar span { background: var(--gold); }.report-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin-bottom: 17px; }.report-card { display: flex; min-height: 235px; flex-direction: column; align-items: flex-start; padding: 19px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }.report-card:hover { transform: translateY(-2px); border-color: #d6c487; box-shadow: var(--shadow); }.report-card.featured { border-color: #dfc982; background: #fffaf0; }.report-icon { display: grid; width: 33px; height: 33px; margin-bottom: 29px; place-items: center; border-radius: 8px; color: var(--gold-deep); background: #f0dfac; }.report-icon-soft { color: var(--blue); background: var(--blue-wash); }.report-icon-pink { color: var(--pink); background: var(--pink-wash); }.report-icon .icon { width: 17px; height: 17px; }.report-label { color: var(--ink-muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.report-card h2 { margin: 5px 0 7px; font-size: 17px; letter-spacing: -.03em; }.report-card p { margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.6; }.report-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--gold-deep); font-size: 10px; font-weight: 700; }.report-link .icon { width: 14px; height: 14px; }.recent-reports { padding: 19px; }.recent-reports .block-header { margin-bottom: 10px; }.report-row { display: flex; align-items: center; gap: 11px; min-height: 56px; border-top: 1px solid var(--line); }.file-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-wash); font-size: 8px; font-weight: 800; }.file-mark-gold { color: var(--gold-deep); background: var(--gold-wash); }.report-row > div { display: grid; flex: 1; gap: 2px; }.report-row strong { color: var(--ink); font-size: 11px; }.report-row small, .report-row-value { color: var(--ink-muted); font-size: 9px; }.report-row .icon-button { width: 28px; height: 28px; }.admin-badge { padding: 6px 9px; border-radius: 5px; color: var(--pink); background: var(--pink-wash); font-size: 9px; font-weight: 700; }.settings-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 24px; }.settings-tabs { display: grid; align-content: start; gap: 2px; }.setting-tab { padding: 9px 10px; border: 0; border-radius: 6px; color: var(--ink-muted); background: transparent; font-size: 11px; text-align: left; }.setting-tab:hover, .setting-tab.is-active { color: var(--ink); background: var(--surface); font-weight: 650; }.setting-tab.is-active { box-shadow: inset 2px 0 var(--gold); }.settings-content { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.settings-section { padding: 21px; border-bottom: 1px solid var(--line); }.settings-section:last-child { border: 0; }.settings-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.settings-section-heading h2 { margin: 5px 0 4px; color: var(--ink); font-size: 15px; }.settings-section-heading p { margin: 0; color: var(--ink-muted); font-size: 10px; }.connection-status { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; font-weight: 700; }.connection-status i { width: 6px; height: 6px; border-radius: 50%; background: #66a075; }.provider-card { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid #e4d7b3; border-radius: 8px; background: #fffcf3; }.provider-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 7px; color: #fff; background: #2b312d; font-size: 16px; }.provider-card > div { display: grid; flex: 1; gap: 2px; }.provider-card strong { color: var(--ink); font-size: 11px; }.provider-card small { color: var(--ink-muted); font-size: 9px; }.provider-default { padding: 3px 6px; border-radius: 4px; color: var(--green); background: var(--green-wash); font-size: 9px; font-weight: 700; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }.form-grid label, .prompt-field { display: grid; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 650; }.form-grid input, .form-grid select, .prompt-field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #fcfcf8; font-size: 11px; }.form-grid input:focus, .form-grid select:focus, .prompt-field textarea:focus { border-color: #d0ac58; box-shadow: 0 0 0 3px rgba(209,168,73,.1); }.prompt-field { margin-top: 15px; }.prompt-field textarea { resize: vertical; line-height: 1.6; }.form-section .button { margin-top: 17px; }.activity-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.activity-column { min-height: 380px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f2f4ef; }.column-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 11px; color: var(--ink); font-size: 11px; font-weight: 700; }.column-heading span:last-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; color: var(--ink-muted); background: #e3e8e0; font-size: 9px; }.activity-card { margin-bottom: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.activity-card.muted-card { opacity: .76; }.activity-type { display: inline-block; padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }.activity-type.visit { color: #876822; background: var(--gold-wash); }.activity-type.call { color: var(--blue); background: var(--blue-wash); }.activity-type.follow-up { color: var(--pink); background: var(--pink-wash); }.activity-type.meeting { color: var(--green); background: var(--green-wash); }.activity-card h3 { margin: 12px 0 4px; font-size: 12px; }.activity-card p { min-height: 35px; margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }.activity-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 9px; }.mini-avatar { width: 20px; height: 20px; font-size: 7px; }.empty-activity { display: grid; min-height: 280px; place-items: center; align-content: center; padding: 20px; color: var(--ink-muted); text-align: center; }.empty-activity > span { display: grid; width: 36px; height: 36px; margin-bottom: 10px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-wash); }.empty-activity .icon { width: 17px; }.empty-activity strong { color: var(--ink-soft); font-size: 11px; }.empty-activity p { max-width: 150px; margin: 4px 0; font-size: 10px; }

/* Feedback */
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; min-width: 250px; max-width: calc(100vw - 32px); align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: 0 10px 35px rgba(28,35,29,.16); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }.toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }.toast-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-wash); }.toast-icon .icon { width: 13px; height: 13px; }.mobile-backdrop { display: none; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }@keyframes pop-in { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }@keyframes typing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

@media (max-width: 1100px) {
    :root { --sidebar-width: 238px; }.topbar { padding-right: 24px; padding-left: 24px; }.page-wrap { padding-right: 24px; padding-left: 24px; }.composer-zone { left: var(--sidebar-width); padding-right: 24px; padding-left: 24px; }.kpi-block > strong { font-size: 20px; }.kpi-block { padding-right: 13px; padding-left: 13px; }.recommendation-foot { display: block; }.recommendation-foot .trend-up { margin-top: 5px; }.dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); }
}
@media (max-width: 800px) {
    .sidebar { width: 264px; box-shadow: 12px 0 30px rgba(0,0,0,.14); transform: translateX(-102%); transition: transform .22s ease-out; }.sidebar.is-open { transform: translateX(0); }.mobile-backdrop { position: fixed; z-index: 40; inset: 0; display: block; visibility: hidden; background: rgba(27,33,28,.3); opacity: 0; transition: opacity .22s ease, visibility .22s ease; }.mobile-backdrop.is-visible { visibility: visible; opacity: 1; }.main-shell { margin-left: 0; }.composer-zone { left: 0; }.mobile-menu { display: inline-grid; margin-right: 7px; }.topbar { height: 58px; padding: 0 16px; }.topbar-actions { gap: 2px; }.data-period { display: none; }.top-avatar { display: inline-grid; }.page-wrap { padding: 0 16px 48px; }.view-panel { padding-top: 27px; }.chat-header { display: block; padding-bottom: 22px; }.chat-header-actions { margin-top: 15px; }.chat-header h1, .page-heading h1 { font-size: 24px; }.composer-zone { padding: 32px 16px 12px; }.suggestion-row { justify-content: flex-start; overflow-x: auto; margin-bottom: 8px; padding-bottom: 2px; scrollbar-width: none; }.suggestion-row::-webkit-scrollbar { display: none; }.suggestion-chip { flex: 0 0 auto; white-space: nowrap; }.composer-shortcut { display: none; }.dashboard-grid { grid-template-columns: 1fr; }.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }.list-toolbar { align-items: stretch; flex-direction: column; }.table-search { width: 100%; }.toolbar-actions { overflow-x: auto; }.toolbar-actions .button { flex: 0 0 auto; }.product-overview { grid-template-columns: repeat(3, 1fr); }.product-overview strong { font-size: 15px; }.report-grid { grid-template-columns: repeat(2, 1fr); }.report-card.featured { grid-column: 1 / -1; min-height: 205px; }.settings-layout { grid-template-columns: 1fr; gap: 10px; }.settings-tabs { display: flex; overflow-x: auto; }.setting-tab { flex: 0 0 auto; }.activity-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }.activity-column:last-child { display: none; }
}
@media (max-width: 560px) {
    .topbar-context { font-size: 11px; }.topbar-context .slash, .topbar-context span:first-of-type { display: none; }.chat-header-actions .button { flex: 1; }.message { gap: 8px; }.message-body > p { font-size: 12px; }.recommendation-grid { grid-template-columns: 1fr; }.recommendation-card > p { min-height: 0; }.message-actions { flex-wrap: wrap; }.kpi-grid { gap: 7px; }.kpi-block { min-height: 136px; padding: 13px; }.kpi-label { font-size: 9px; }.kpi-block > strong { margin-top: 7px; font-size: 18px; }.ring-progress { right: 10px; bottom: 12px; transform: scale(.84); transform-origin: bottom right; }.dashboard-grid, .performance-chart, .focus-list { min-height: 0; }.performance-chart, .focus-list, .rank-list, .recent-reports { padding: 15px; }.chart-area { height: 178px; }.line-chart { height: 154px; }.chart-y { bottom: 18px; }.product-overview { grid-template-columns: 1fr; }.product-overview > div { min-height: 76px; }.product-overview > div:nth-child(2) { grid-row: 1; }.report-grid { grid-template-columns: 1fr; }.report-card.featured { grid-column: auto; }.report-card { min-height: 190px; }.report-icon { margin-bottom: 18px; }.team-score { grid-template-columns: 1fr; gap: 13px; }.score-note { margin-top: -5px; }.rank-row { grid-template-columns: 25px 28px minmax(0,1fr) 60px; gap: 7px; }.rank-bar { grid-column: 3 / -1; grid-row: 2; margin: -9px 0 8px; }.rank-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.activity-board { grid-template-columns: 1fr; }.activity-column:last-child { display: block; }.topbar .icon-button { width: 31px; }.message-user { width: 94%; }.user-bubble { font-size: 12px; }.composer-note { font-size: 8px; }.toast { right: 16px; bottom: 16px; left: 16px; min-width: 0; }.page-heading .button-primary { width: 100%; }.signal-banner { align-items: flex-start; }.signal-banner .text-button { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

html[data-theme="dark"] { --ink: #edf0e9; --ink-soft: #b7c0b7; --ink-muted: #89958c; --paper: #202521; --surface: #292e2a; --surface-soft: #333a34; --line: #3b443d; --line-strong: #4d594e; --gold-wash: #413a27; --green-wash: #273b2e; --blue-wash: #2b3445; --pink-wash: #432f34; --sidebar: #171b18; --sidebar-soft: #29302a; --shadow: 0 8px 30px rgba(0,0,0,.18); }.dark .profile-menu { background: var(--surface); }.dark .user-bubble { color: var(--ink); background: #3d382a; border-color: #675c3a; }html[data-theme="dark"] .topbar { background: rgba(32,37,33,.94); }html[data-theme="dark"] .signal-banner, html[data-theme="dark"] .insight-callout, html[data-theme="dark"] .report-card.featured, html[data-theme="dark"] .provider-card { background: #302d23; border-color: #5c4f2d; }html[data-theme="dark"] .signal-banner strong, html[data-theme="dark"] .signal-banner p { color: #dfc87e; }html[data-theme="dark"] .recommendation-card.is-primary { background: #302d23; border-color: #66572e; }html[data-theme="dark"] .form-grid input, html[data-theme="dark"] .form-grid select, html[data-theme="dark"] .prompt-field textarea { background: #242a25; }html[data-theme="dark"] .data-table tbody tr:hover { background: #303630; }html[data-theme="dark"] .activity-column { background: #242a25; }html[data-theme="dark"] .composer-zone { background: linear-gradient(180deg, rgba(32,37,33,0), var(--paper) 34%); }
/* Dynamic response and compact states */
.response-title { margin: 0 0 8px; color: var(--ink); font-size: 14px; letter-spacing: -.02em; }
.inline-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 3px 0 16px; max-width: 600px; }
.inline-stats div { display: grid; gap: 3px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.inline-stats span { color: var(--ink-muted); font-size: 9px; }
.inline-stats strong { font-size: 14px; }
.activity-review { max-width: 600px; margin: 4px 0 16px; padding: 14px; border: 1px solid #dfd4b5; border-radius: 9px; background: #fbf7e9; }
.review-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #6c5723; font-size: 11px; }
.review-heading span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 5px; color: var(--green); background: var(--green-wash); }
.review-heading .icon { width: 13px; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid #eadfbe; color: #8a7850; font-size: 10px; }
.review-row strong { color: #51482e; font-size: 10px; text-align: right; }
.review-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #eadfbe; }
.review-actions .button { height: 32px; font-size: 10px; }
.saved-activity { display: flex; align-items: center; gap: 8px; }
.saved-activity > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-wash); }
.saved-activity .icon { width: 15px; }
.saved-activity strong { color: var(--ink); font-size: 11px; }
.saved-activity small { color: var(--ink-muted); font-size: 9px; }
.typing-copy { color: var(--ink-muted) !important; }
.typing-dots { margin-left: 4px; color: var(--gold); letter-spacing: 2px; animation: typing 1.1s infinite; }
.message-actions button.is-selected { color: var(--green); background: var(--green-wash); }
.trend-text { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 10px; font-weight: 700; }.trend-text .icon { width: 13px; height: 13px; }.trend-text.negative { color: var(--pink); }
.sidebar-collapsed .sidebar { width: 72px; padding-right: 10px; padding-left: 10px; }.sidebar-collapsed .main-shell { margin-left: 72px; }.sidebar-collapsed .composer-zone { left: 72px; }.sidebar-collapsed .brand-copy, .sidebar-collapsed .sidebar-collapse, .sidebar-collapsed .new-chat-button span:last-of-type, .sidebar-collapsed .new-chat-button kbd, .sidebar-collapsed .search-box, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item span:not(.nav-count), .sidebar-collapsed .conversation-list, .sidebar-collapsed .system-status, .sidebar-collapsed .profile-copy, .sidebar-collapsed .profile-card > .icon { display: none; }.sidebar-collapsed .brand-row { justify-content: center; margin-right: 0; margin-left: 0; }.sidebar-collapsed .new-chat-button { justify-content: center; padding: 0; }.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }.sidebar-collapsed .nav-item.is-active::before { left: -10px; }.sidebar-collapsed .profile-card { justify-content: center; padding-right: 0; padding-left: 0; }
.sidebar-collapsed .sidebar-collapse { display: inline-grid; }
@media (max-width: 560px) { .inline-stats { grid-template-columns: 1fr; } .review-row { align-items: flex-start; flex-direction: column; gap: 2px; } .review-row strong { text-align: left; } }
.chat-empty-state { display: grid; min-height: 410px; place-items: center; align-content: center; padding: 30px 16px 80px; text-align: center; }.empty-spark { display: grid; width: 45px; height: 45px; margin-bottom: 16px; place-items: center; border: 1px solid #d8bf7c; border-radius: 13px; color: var(--gold-deep); background: var(--gold-wash); }.empty-spark .icon { width: 22px; height: 22px; }.chat-empty-state .eyebrow { justify-content: center; }.chat-empty-state h2 { margin: 11px 0 5px; color: var(--ink); font-size: 23px; letter-spacing: -.04em; }.chat-empty-state > p { max-width: 390px; margin: 0; color: var(--ink-muted); font-size: 12px; }.empty-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: min(100%, 540px); margin-top: 22px; }.empty-prompt-grid button { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--surface); font-size: 10px; text-align: left; }.empty-prompt-grid button:hover { border-color: #d4bb72; color: var(--gold-deep); background: #fffdf6; }.empty-prompt-grid button span { color: var(--gold-deep); font-size: 14px; }
@media (max-width: 560px) { .chat-empty-state { min-height: 370px; padding-right: 8px; padding-left: 8px; }.empty-prompt-grid { grid-template-columns: 1fr; } }
.ai-table-wrap { max-width: 100%; margin: 14px 0 17px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.ai-data-table { width: 100%; min-width: 590px; border-collapse: collapse; text-align: left; }.ai-data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-muted); background: var(--surface-soft); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }.ai-data-table td { padding: 11px 12px; border-bottom: 1px solid #edf0ea; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }.ai-data-table tbody tr:last-child td { border-bottom: 0; }.ai-data-table tbody tr:hover { background: var(--surface-soft); }.ai-data-table code { padding: 2px 4px; border-radius: 4px; color: var(--gold-deep); background: var(--gold-wash); font-size: 10px; }
.ai-response-copy { max-width: 700px; margin: 0 0 17px; color: #505950; font-size: 13px; line-height: 1.7; }.ai-response-copy strong { color: var(--ink); font-weight: 700; }.ai-response-copy .ai-table-wrap { margin-right: 0; margin-left: 0; }

/* Keep sent messages grouped and anchored to the right edge of the stream. */
.message-user { display: flex; flex-direction: column; align-items: flex-end; }
.message-user .message-meta { width: 100%; }
.user-bubble { display: block; width: fit-content; margin-left: auto; }
@media (max-width: 560px) { .message-user { width: 94%; } }
