/* Business surfaces share the approved native workspace tokens. No data or
   authorization behavior belongs in this stylesheet. */
.live-trace { max-width: 620px; font: 12px/1.5 var(--font); color: var(--ink); }
.live-trace button { cursor: pointer; color: var(--ink-2); background: transparent; border: 0; font: inherit; }
.live-trace-toggle { display: flex; align-items: center; gap: 8px; padding: 7px 0; text-align: left; }
.live-trace-body { padding: 8px 0; }
.trace-segments,.trace-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.trace-segments button,.trace-filters button,.trace-layout { border-radius: 999px; padding: 5px 9px; }
.trace-segments button[aria-pressed=true],.trace-filters button[aria-pressed=true] { background: var(--hover); color: var(--ink); }
.trace-filters small { margin-left: 4px; color: var(--ink-3); }
.trace-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.trace-rows li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.trace-rows.capsules li { border: 1px solid var(--line); border-radius: 18px; background: var(--inset); }
.trace-rows li>div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.trace-rows small { display: block; color: var(--ink-3); font-size: 11px; }
.trace-state { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; flex-shrink: 0; }
.trace-state-label { font-size: 10px; color: var(--ink-2); flex-shrink: 0; }
.trace-rows [data-state=Tamamlandı] .trace-state { color: var(--success); }
.trace-rows [data-state=Hata] :is(.trace-state,.trace-state-label) { color: var(--danger); }
.trace-note { color: var(--ink-3); font: 11px/1.6 var(--font); }
.trace-query { max-width: 100%; overflow: auto; white-space: pre-wrap; font: 11px/1.6 ui-monospace,monospace; }
.trace-rows details { margin-top: 6px; font-size: 11px; color: var(--ink-2); }
.trace-rows summary { cursor: pointer; }
.native-run-history [hidden],.native-selection[hidden] { display: none!important; }
.native-run-history .trace-filters button,.sentinel-table th button { color: var(--ink-2); background: transparent; border: 0; font: 12px var(--font); cursor: pointer; }
.native-run-history .trace-filters button[aria-pressed=true] { background: var(--hover); }
.sentinel-table { overflow: auto; max-height: 480px; }
.sentinel-table caption { text-align: left; color: var(--ink-3); font: 11px var(--font); padding: 10px; }
.sentinel-table th { position: sticky; top: 0; background: var(--inset); }
.trace-layout { margin-top: 8px; }
.native-selection input { width: 145px; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 12px var(--font); padding: 6px; }
.native-selection { max-width: calc(100vw - 16px); flex-wrap: wrap; }
.native-code-lines { display: flex; }
.native-code-lines pre { flex: 1; min-width: 0; }
.native-code-gutter { white-space: pre; user-select: none; text-align: right; padding: 14px 0 14px 12px; font: 12px/1.7 ui-monospace,monospace; color: var(--ink-3); }
.native-evidence { margin: 12px 0; font: 12px/1.6 var(--font); }
.native-evidence summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; }
.native-evidence-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); gap: 10px; margin-top: 8px; }
.native-evidence article { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; overflow-wrap: anywhere; background: var(--inset); }
.native-evidence article p { font-weight: 400; color: var(--ink-2); }
.native-evidence article small { color: var(--ink-3); }
.agentic-shell { --ui-control: 13px; --ui-row-space: 11px; --ui-reading: 14px; }
.agentic-shell .app.ag-chat-active .header #native-display-button { display: inline-flex!important; align-items: center; justify-content: center; }
.agentic-shell .header-icon-btn { color: var(--ink-2); }
.agentic-shell .safe-dashboard { align-items: start; }
.agentic-shell .safe-card::after,.agentic-shell .safe-card::before { display: none; }
.agentic-shell :is(.view,.expense-config-dialog,.profile-modal-card,.sentinel-popup) {
  color: var(--ink); font-family: var(--font);
}
.agentic-shell :is(.dashboard-shell,.expense-shell,.ai-workspace-shell,.workspace-shell) { padding: 24px; gap: 24px; background: var(--surface); }
.agentic-shell :is(.dashboard-title h1,.expense-heading h1,.ai-workspace-hero h1) { font: 500 25px/1.3 var(--font); letter-spacing: -.65px; color: var(--ink); }
.agentic-shell :is(.dashboard-title p,.expense-heading p,.ai-workspace-hero p) { font: 400 13px/1.65 var(--font); color: var(--ink-2); max-width: 70ch; }
.agentic-shell :is(.dashboard-hero,.expense-heading,.ai-workspace-hero) { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.agentic-shell :is(.dashboard-hero,.ai-workspace-hero)::before,
.agentic-shell :is(.dashboard-hero,.ai-workspace-hero)::after { display: none; }
.agentic-shell :is(.ai-workspace-hero>div>span,.automation-hub-title>span) { display: none; }
.agentic-shell :is(.dashboard-action,.expense-primary,.expense-secondary,.saas-save-button,.ws-btn,.sentinel-primary-btn,.sentinel-secondary-btn,.ai-workspace-hero>button,.module-table-btns button,.logs-toolbar button) {
  min-height: 34px; border-radius: 8px; font: 500 var(--ui-control)/1.4 var(--font);
  padding: 7px 12px; box-shadow: none; text-shadow: none; transform: none;
}
.agentic-shell :is(.expense-primary,.saas-save-button:not(.secondary),.sentinel-primary-btn,.primary-module-action,.ai-workspace-hero>button) { background: var(--brand); color: white; border: 1px solid var(--brand); }
.agentic-shell :is(.expense-secondary,.saas-save-button.secondary,.ws-btn,.sentinel-secondary-btn,.dashboard-action,.module-table-btns button:not(.primary-module-action)) { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.agentic-shell :is(.expense-secondary,.ws-btn,.dashboard-action,.sentinel-secondary-btn):hover { background: var(--hover); border-color: var(--line-strong); }
.agentic-shell button:disabled { cursor: not-allowed; }
.agentic-shell :is(.expense-field,.expense-config-fields,.saas-field,.workspace-filters,.module-filter-field,.profile-body) :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
.agentic-shell :is(.module-table-search,.saas-settings-search input,.automation-catalog-search input,.ws-chat-input textarea,.sentinel-followup-bar input) {
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
  font: 400 var(--ui-control)/1.5 var(--font); min-height: 36px; box-shadow: none;
}
.agentic-shell :is(.expense-field,.expense-config-fields,.saas-field,.profile-body) label { font: 500 12px/1.5 var(--font); color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.agentic-shell :is(.settings-muted,.expense-settings-toolbar p,.saas-permission-list>div>span) { color: var(--ink-2); font: 400 12px/1.6 var(--font); }
.agentic-shell :is(.schema-modal-content,.coa-source,.license-card) { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.agentic-shell :is(.schema-modal-header,.schema-modal-body) { background: var(--surface); border-color: var(--line); }
.agentic-shell :is(input,select,textarea):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.agentic-shell :is(.expense-tabs,.expense-record-tabs,.sentinel-tabs) { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 16px; padding: 0; }
.agentic-shell :is(.expense-tab,.expense-record-tab,.sentinel-tab) { background: none; box-shadow: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font: 500 13px/1.5 var(--font); color: var(--ink-2); padding: 11px 1px; }
.agentic-shell :is(.expense-tab,.expense-record-tab,.sentinel-tab).active { background: none; color: var(--ink); border-bottom-color: var(--brand); }
.agentic-shell :is(.expense-tab-count,.expense-record-tab-count,.module-table-count) { font: 500 11px/1.4 var(--font); background: var(--hover); color: var(--ink-2); box-shadow: none; }
/* Records / FilterTable: one toolbar and one scroll boundary, not nested cards. */
.agentic-shell :is(.expense-data-surface,.expense-table-wrap,.expense-config-table-wrap,.module-table-wrap,.workspace-grid-wrap) { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; background: var(--surface); min-width: 0; }
.agentic-shell :is(.expense-data-table,.expense-config-table,.expense-table,.data-table,.tabulator) { background: var(--surface); font: 400 12px/1.5 var(--font); color: var(--ink); }
.agentic-shell :is(.expense-data-table,.expense-config-table,.expense-table,.data-table) th { background: var(--inset); color: var(--ink-2); font: 500 11px/1.5 var(--font); padding: 11px 14px; border-color: var(--line); }
.agentic-shell :is(.expense-data-table,.expense-config-table,.expense-table,.data-table) td { padding: var(--ui-row-space) 14px; border-color: var(--line); font-size: 12px; font-weight: 400; }
.agentic-shell :is(.expense-data-table,.expense-config-table,.expense-table,.data-table) td strong { font-weight: 500; }
.agentic-shell :is(.expense-data-table,.expense-config-table,.expense-table,.data-table) tbody tr:hover { background: var(--hover); }
.agentic-shell :is(.expense-list-toolbar,.expense-list-tools,.expense-filter-row,.module-table-toolbar,.module-filter-panel,.workspace-toolbar) { background: var(--surface); border-color: var(--line); box-shadow: none; gap: 10px; }
.agentic-shell :is(.expense-search-box,.expense-filter-row select,.module-filter-chip) { background: var(--surface); border-color: var(--line-strong); border-radius: 8px; font-size: 12px; font-weight: 400; }
.agentic-shell :is(.expense-list-pagination,.module-pagination,.workspace-status) { background: var(--surface); border-color: var(--line); font: 400 12px/1.5 var(--font); }
.agentic-shell .tabulator { border: 0; }
.agentic-shell .tabulator .tabulator-header { background: var(--inset); border-color: var(--line); font: 500 11px/1.5 var(--font); }
.agentic-shell .tabulator .tabulator-header .tabulator-col { background: transparent; border-color: var(--line); }
.agentic-shell .tabulator .tabulator-row { background: var(--surface); color: var(--ink); border-color: var(--line); }
.agentic-shell .tabulator .tabulator-row.tabulator-row-even { background: var(--surface); }
.agentic-shell .tabulator .tabulator-row:hover { background: var(--hover); }
.agentic-shell .tabulator .tabulator-row.tabulator-selected { background: var(--brand-soft); }
.agentic-shell .tabulator .tabulator-cell { padding-block: var(--ui-row-space); border-color: var(--line); }
/* Dashboard / InsightCards preserve the real chart and metric data. */
.agentic-shell :is(.dashboard-panel,.dash-kpi,.expense-kpi,.safe-card,.sap-cockpit-card,.widget-card,.expense-agent-card) { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; padding: 18px; }
.agentic-shell :is(.dash-kpi,.expense-kpi)::before { display: none; }
.agentic-shell :is(.dashboard-section-heading strong,.dash-card-title strong,.safe-title,.widget-title) { font: 500 15px/1.5 var(--font); color: var(--ink); }
.agentic-shell :is(.dashboard-section-heading span,.dash-card-title span,.safe-copy,.widget-subtitle) { font: 400 12px/1.6 var(--font); color: var(--ink-2); }
.agentic-shell :is(.dashboard-section,.dashboard-hero,.dashboard-section-heading) { margin-bottom: 0; }
.agentic-shell :is(.dashboard-main-grid,.dashboard-split-grid,.dashboard-triple-grid,.dashboard-kpis,.expense-kpis) { gap: 16px; }
.agentic-shell :is(.dashboard-flat-row,.dashboard-flat-stat,.dash-kpi-label,.expense-kpi span) { font-size: 12px; font-weight: 400; }
.agentic-shell :is(.dash-kpi-value,.expense-kpi strong) { font-size: 25px; font-weight: 500; letter-spacing: -.5px; }
.agentic-shell :is(.dashboard-panel,.widget-card):hover { transform: none; box-shadow: none; }
/* AgentScreen / RecommendationCard: restrained catalog + real execution details. */
.agentic-shell :is(.automation-hub,.sentinel-detail-hero,.sentinel-detail-section,.sentinel-insight,.sentinel-run) { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.agentic-shell .ai-workspace-hub { padding: 0; }
.agentic-shell .automation-hub-head { background: none; border-bottom: 1px solid var(--line); padding: 18px; }
.agentic-shell .automation-hub-title strong { font: 500 16px/1.5 var(--font); color: var(--ink); }
.agentic-shell .automation-hub-title p { font: 400 12px/1.6 var(--font); color: var(--ink-2); }
.agentic-shell :is(.automation-catalog-overview,.automation-catalog-stat) { background: var(--inset); border-color: var(--line); box-shadow: none; }
.agentic-shell .sentinel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; gap: 12px; }
.agentic-shell .sentinel-card::before { display: none; }
.agentic-shell .sentinel-card:hover { box-shadow: none; border-color: var(--line-strong); }
.agentic-shell :is(.sentinel-card-title strong,.sentinel-detail-title h3) { font-weight: 500; white-space: normal; }
.agentic-shell .sentinel-card-title strong { font-size: 15px; }
.agentic-shell :is(.sentinel-card p,.sentinel-detail-title p,.sentinel-detail-section>div>span) { font: 400 12px/1.65 var(--font); color: var(--ink-2); }
.agentic-shell .sentinel-card p { display: block; overflow: visible; }
.agentic-shell :is(.sentinel-card-title span,.sentinel-card-footer>span,.sentinel-card-detail) { font-size: 11px; font-weight: 500; }
.agentic-shell :is(.sentinel-agent-pill,.sentinel-card .sentinel-workflows button) { border-radius: 6px; background: var(--inset); border-color: var(--line); font: 400 12px/1.5 var(--font); white-space: normal; }
.agentic-shell :is(.sentinel-detail-flow,.sentinel-detail-agent,.sentinel-insight-box,.sentinel-row) { background: var(--inset); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.agentic-shell :is(.sentinel-action-list button,.native-recommendation) { text-align: left; padding: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: var(--ink); }
.agentic-shell :is(.sentinel-action-list em,.sentinel-detail-flow strong) { font: 500 13px/1.6 var(--font); }
.agentic-shell .sentinel-action-list small { font-weight: 500; color: var(--brand); }
.agentic-shell .automation-hub-content { padding: 18px; }
.agentic-shell .automation-catalog-overview { background: none; gap: 12px; }
.agentic-shell .automation-catalog-intro { border: 0; background: none; padding: 10px 0; }
.agentic-shell .automation-catalog-intro strong { font: 500 14px/1.5 var(--font); color: var(--ink); }
.agentic-shell .automation-catalog-intro span { font: 400 12px/1.6 var(--font); color: var(--ink-2); }
.agentic-shell .automation-catalog-stat { border-radius: 9px; background: var(--inset); padding: 12px; }
.agentic-shell .automation-catalog-stat strong { color: var(--ink); font: 500 22px/1.4 var(--font); }
.agentic-shell .automation-catalog-stat span { color: var(--ink-2); font: 400 11px/1.5 var(--font); text-transform: none; letter-spacing: 0; }
.agentic-shell .automation-catalog-search { background: var(--surface); color: var(--ink); border-color: var(--line-strong); border-radius: 8px; font: 400 13px var(--font); }
.agentic-shell .automation-catalog-categories button { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; font: 400 12px var(--font); }
.agentic-shell .automation-catalog-categories button.active { background: var(--hover); color: var(--ink); border-color: var(--line-strong); }
.agentic-shell .automation-agent-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: 14px; }
.agentic-shell .automation-agent-card { grid-template-columns: 30px minmax(0,1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; gap: 12px; }
.agentic-shell .automation-agent-card::after { display: none; }
.agentic-shell .automation-agent-card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.agentic-shell .automation-agent-icon { background: var(--inset); color: var(--ink-2); width: 30px; height: 30px; border-radius: 7px; box-shadow: none; font: 500 11px var(--font); }
.agentic-shell .automation-agent-copy { gap: 8px; }
.agentic-shell .automation-agent-copy strong { color: var(--ink); font: 500 14px/1.5 var(--font); white-space: normal; }
.agentic-shell .automation-agent-copy span { color: var(--ink-2); font: 400 12px/1.6 var(--font); display: block; overflow: visible; }
.agentic-shell .automation-agent-category { color: var(--ink-2)!important; font-size: 10px!important; font-weight: 500!important; letter-spacing: .02em; }
.agentic-shell .automation-agent-copy button { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font: 500 12px var(--font); }
.agentic-shell .automation-agent-copy button:hover { background: var(--hover); }
.agentic-shell .automation-hub-empty { color: var(--ink-2); font: 400 13px/1.6 var(--font); }
/* Settings: two quiet rails, sufficiently wide actual form content. */
.agentic-shell .saas-settings-shell { background: var(--surface); border: 0; border-radius: 0; box-shadow: none; }
.agentic-shell .saas-settings-topbar { padding: 18px 24px; background: var(--surface); border-color: var(--line); }
.agentic-shell .saas-settings-title { font: 500 22px/1.4 var(--font); }
.agentic-shell .saas-settings-body { grid-template-columns: 142px 190px minmax(0,1fr); background: var(--surface); }
.agentic-shell :is(.saas-app-rail,.saas-section-rail) { background: var(--surface); border-color: var(--line); padding: 16px 10px; }
.agentic-shell :is(.saas-app-button,.saas-section-button) { min-height: 34px; border-radius: 7px; font: 400 12px/1.5 var(--font); color: var(--ink-2); box-shadow: none; }
.agentic-shell :is(.saas-app-button,.saas-section-button).active { background: var(--hover); color: var(--ink); box-shadow: none; }
.agentic-shell .saas-app-icon { width: 26px; height: 26px; background: none; color: var(--ink-2); box-shadow: none; border-radius: 6px; }
.agentic-shell .saas-section-group>span { font: 500 10px/1.5 var(--font); letter-spacing: .035em; color: var(--ink-2); }
.agentic-shell .saas-settings-content { background: var(--surface); padding: 22px 24px 40px; }
.agentic-shell :is(.saas-settings-panel,.expense-settings-card,.expense-compact-setting,.expense-settings-list-group) { background: var(--surface); border-color: var(--line); border-radius: 10px; box-shadow: none; }
.agentic-shell .saas-content-head h3 { font: 500 20px/1.4 var(--font); }
.agentic-shell :is(.saas-content-head p,.expense-settings-note,.expense-settings-head p) { font: 400 12px/1.65 var(--font); color: var(--ink-2); }
.agentic-shell .expense-settings-list-row { border-color: var(--line); background: none; padding: 14px; }
.agentic-shell .expense-settings-list-row strong { font: 500 13px/1.5 var(--font); }
.agentic-shell .expense-settings-list-row small { font: 400 12px/1.6 var(--font); }
.agentic-shell .expense-settings-list-row b { font: 400 10px/1.5 var(--font); color: var(--ink-2); background: var(--inset); }
.agentic-shell .expense-config-add { border-radius: 7px; font-size: 12px; font-weight: 500; }
.agentic-shell .saas-settings-content .field label { font: 500 12px/1.5 var(--font); text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.agentic-shell .saas-settings-content :is(.settings-row,.setting-row) { font-weight: 400; }
/* Dialogs, forms, workspace and audit use the same controls, not a second theme. */
.agentic-shell :is(.expense-config-dialog,.profile-modal-card,.modal-content,.sentinel-popup) { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 16px 64px rgb(0 0 0 / .16); }
.agentic-shell :is(.expense-config-dialog-head h3,.profile-head strong,.modal-content h3) { font: 500 18px/1.5 var(--font); }
.agentic-shell :is(.expense-config-dialog-actions button,.profile-foot button) { font-size: 13px; font-weight: 500; border-radius: 8px; }
.agentic-shell :is(.expense-document-pane,.expense-form-pane,.expense-activity-pane) { background: var(--surface); border-color: var(--line); box-shadow: none; }
.agentic-shell .expense-document-stage { background: var(--inset); }
.agentic-shell .expense-draft-state { border-radius: 8px; font-size: 12px; line-height: 1.6; }
.agentic-shell :is(.expense-draft-state strong,.expense-activity-head strong,.expense-document-head strong) { font-weight: 500; }
.agentic-shell .workspace-side { background: var(--surface); border-color: var(--line); border-radius: 10px; }
.agentic-shell :is(.workspace-side-title,.module-table-title) { font-size: 14px; font-weight: 500; }
.agentic-shell :is(.workspace-side-section,.ws-chat-chips button,.log-entry,.logs-header) { background: var(--surface); border-color: var(--line); box-shadow: none; font-size: 12px; }
.agentic-shell .msg.bot .msg-content,.agentic-shell .msg.user .msg-content { font-size: var(--ui-reading); }
/* Missing AI-native primitives are data-driven renderers in business-surfaces.js. */
.native-code { margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--inset); overflow: hidden; }
.native-code-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid var(--line); font: 500 11px/1.5 var(--font); color: var(--ink-2); }
.native-code-head button { border: 0; background: none; color: var(--ink-2); font: 500 11px var(--font); padding: 5px; border-radius: 4px; cursor: pointer; }
.native-code pre { margin: 0; padding: 14px; overflow: auto; max-height: 360px; white-space: pre; color: var(--ink); font: 12px/1.7 ui-monospace,monospace; }
.native-diff { border: 1px solid var(--line); border-radius: 10px; margin-block: 12px; overflow: auto; }
.native-diff table { width: 100%; border-collapse: collapse; font: 12px/1.6 var(--font); }
.native-diff :is(th,td) { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; min-width: 100px; }
.native-diff th { background: var(--inset); color: var(--ink-2); font-weight: 500; }
.native-diff del { color: var(--danger); text-decoration-thickness: 1px; }
.native-diff ins { color: var(--success); text-decoration: none; }
.native-flow { display: flex; gap: 0; overflow-x: auto; padding: 12px 0; margin: 0; list-style: none; }
.agentic-shell .native-flow { padding: 16px 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background-image: radial-gradient(var(--line-strong) 1px,transparent 1px); background-size: 14px 14px; }
.agentic-shell .native-flow li strong,.agentic-shell .native-flow li small { background: var(--surface); width: fit-content; padding: 2px 4px; border-radius: 4px; }
.agentic-shell .sentinel-insight-columns { gap: 12px; }
.agentic-shell .sentinel-action-list button { display: flex; align-items: center; gap: 10px; width: 100%; font-weight: 400; }
.agentic-shell .sentinel-action-list button em { flex: 1; font-style: normal; }
.agentic-shell .sentinel-action-list button small { border-radius: 999px; padding: 5px 9px; color: white; background: var(--brand); white-space: nowrap; }
.agentic-shell .sentinel-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(130px,100%),1fr)); gap: 10px; }
.agentic-shell .sentinel-kpi { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--inset); }
.agentic-shell .sentinel-kpi span { font: 11px/1.6 var(--font); color: var(--ink-2); }
.agentic-shell .sentinel-kpi strong { display: block; font: 500 22px/1.5 var(--font); letter-spacing: -.4px; }
.native-flow li { flex: 1; min-width: 115px; position: relative; padding: 0 12px 0 0; font: 12px/1.5 var(--font); color: var(--ink-2); }
.native-flow li::before { content: ''; position: absolute; left: 10px; right: 0; top: 9px; height: 1px; background: var(--line-strong); }
.native-flow li:last-child::before { display: none; }
.native-flow .native-flow-dot { position: relative; display: grid; place-items: center; width: 20px; height: 20px; margin-bottom: 7px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-size: 10px; }
.native-flow .done .native-flow-dot { background: var(--brand); color: white; border-color: var(--brand); }
.native-flow [aria-current=step] .native-flow-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.native-flow strong { display: block; font-weight: 500; color: var(--ink); }
.native-flow small { display: block; font-size: 11px; }
.native-preferences { position: fixed; inset: 70px 24px auto auto; width: min(320px,calc(100vw - 32px)); z-index: 9500; padding: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 40px rgb(0 0 0 / .14); }
.native-preferences h2 { margin: 0; font: 500 15px/1.5 var(--font); }
.native-preferences header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.native-preferences button { font: 500 12px var(--font); padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); cursor: pointer; }
.native-preferences label { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 15px 0; font: 12px/1.6 var(--font); }
.native-preferences input { grid-column: 1/-1; width: 100%; accent-color: var(--brand); }
.native-preferences p { font: 11px/1.6 var(--font); color: var(--ink-2); }
.native-selection { position: fixed; z-index: 9500; display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: 0 8px 30px rgb(0 0 0 / .13); }
.native-selection button { border: 0; border-radius: 5px; background: none; color: var(--ink); padding: 8px; font: 500 12px var(--font); cursor: pointer; }
.native-selection button:hover { background: var(--hover); }
.native-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media (max-width: 1100px) {
  .agentic-shell .saas-settings-body { grid-template-columns: 160px minmax(0,1fr); }
  .agentic-shell .saas-app-rail { grid-column: 1/-1; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .agentic-shell .saas-settings-content { padding: 18px; }
}
@media (max-width: 760px) {
  .agentic-shell :is(.dashboard-shell,.expense-shell,.ai-workspace-shell,.workspace-shell) { padding: 18px 14px; gap: 18px; }
  .agentic-shell :is(.dashboard-title h1,.expense-heading h1,.ai-workspace-hero h1) { font-size: 23px; }
  .agentic-shell :is(.dashboard-kpis,.dashboard-main-grid,.dashboard-split-grid,.dashboard-triple-grid,.expense-kpis) { grid-template-columns: 1fr; }
  .agentic-shell .saas-settings-body { grid-template-columns: minmax(0,1fr); }
  .agentic-shell .saas-section-rail { max-height: 190px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .agentic-shell .saas-section-app { display: none; }
  .agentic-shell .saas-section-group { display: flex; flex-wrap: wrap; gap: 4px; }
  .agentic-shell .saas-section-group>span { width: 100%; }
  .agentic-shell .saas-section-button { width: auto; padding: 7px 9px; }
  .agentic-shell .saas-settings-topbar { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .agentic-shell .saas-settings-content { padding: 18px 14px 32px; max-height: none; overflow: visible; }
  .agentic-shell .saas-content-head { flex-wrap: wrap; gap: 12px; }
  .agentic-shell .expense-tabbar { align-items: stretch; gap: 12px; }
  .agentic-shell .expense-tabs { gap: 14px; overflow-x: auto; flex-wrap: nowrap; }
  .agentic-shell .expense-tab { white-space: nowrap; flex: none; }
  .agentic-shell :is(.expense-actions,.module-table-btns,.workspace-toolbar) { flex-wrap: wrap; }
  .agentic-shell :is(.module-table-search,.saas-settings-search) { min-width: 0; max-width: 100%; }
  .agentic-shell :is(.expense-config-dialog,.profile-modal-card) { max-height: calc(100dvh - 24px); border-radius: 12px; }
  .agentic-shell .expense-config-fields { grid-template-columns: minmax(0,1fr); }
  .agentic-shell .native-preferences { inset: 65px 16px auto auto; }
}
/* Compact rail, readable record panes, and progressively disclosed evidence. */
.agentic-shell #header-settings-button { display: none !important; }
.agentic-shell .profile-main { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.agentic-shell .profile-copy { flex: 1; min-width: 0; }
.agentic-shell .profile-avatar { flex: 0 0 30px; width: 30px; height: 30px; }
.agentic-shell .ag-profile-actions { display: flex; flex: none; align-items: center; gap: 2px; }
.agentic-shell .ag-profile-actions .ag-profile-action { width: 28px; min-width: 28px; height: 30px; min-height: 30px; flex-basis: 28px; padding: 0; display: grid; place-items: center; }
.agentic-shell .sidebar-collapsed .brand-shell { width: 44px; margin-inline: 0; justify-content: center; }
.agentic-shell .sidebar-collapsed .brand { display: none; }
.agentic-shell .sidebar-collapsed .sidebar-collapse { position: static; width: 36px; height: 32px; box-shadow: none; background: transparent; }
.agentic-shell .sidebar-collapsed :is(.nav-btn:not(.ag-profile-action),.ag-shortcut,.ag-sap-toggle>summary) { width: 44px; min-height: 40px; padding: 0; margin-inline: auto; display: flex; justify-content: center; align-items: center; gap: 0; }
.agentic-shell .sidebar-collapsed .ag-sap-toggle>summary>span { display: none; }
.agentic-shell .sidebar-collapsed .modules-tree { width: 44px; }
.agentic-shell .sidebar-collapsed .status-area { padding-inline: 0; }
.agentic-shell .sidebar-collapsed .profile-main { display: flex; flex-direction: column; align-items: center; width: 44px; gap: 10px; }
.agentic-shell .sidebar-collapsed .profile-avatar { width: 32px; min-width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; }
.agentic-shell .sidebar-collapsed .ag-profile-actions { flex-direction: column; align-items: center; margin: 0; gap: 4px; }
.agentic-shell .ag-result-panel { min-width: 0; }
.agentic-shell .ag-result-panel .chat-data-table { max-height: 65vh; overflow: auto; overscroll-behavior: contain; }
.agentic-shell .ag-result-panel .chat-data-table table { table-layout: auto; width: max-content; min-width: 100%; max-width: none; }
.agentic-shell .ag-result-panel .chat-data-table :is(th,td) { min-width: 110px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; vertical-align: top; line-height: 1.5; }
.agentic-shell .ag-result-panel .chat-data-table th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.agentic-shell .ag-result-panel .chat-data-table :is(th,td):first-child { min-width: 44px; }
.agentic-shell .ag-result-panel .chat-data-table td[data-label="Cari Ad"] { min-width: 260px; }
.agentic-shell .native-result-details { margin-top: 10px; color: var(--ink-2); font-size: 11px; }
.agentic-shell .native-result-details>summary { cursor: pointer; width: fit-content; padding: 5px 0; }
.agentic-shell .native-result-details[open]>summary { margin-bottom: 8px; }
.agentic-shell .native-result-details .ag-trace { border: 0; background: transparent; margin: 0; }
.agentic-shell .ag-result-card { box-shadow: none; margin-block: 14px 8px; }
.agentic-shell .context-cards { display: grid; gap: 12px; }
.agentic-shell .context-heading { display: flex; align-items: center; gap: 8px; }
.agentic-shell .context-heading>span:last-child { padding: 2px 6px; border-radius: 5px; }
.agentic-shell .context-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.agentic-shell .context-card-heading { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; min-height: 0; }
.agentic-shell .context-card-heading>span:last-child { margin-left: auto; color: var(--ink-2); }
.agentic-shell .context-card-body { margin: 10px 0 14px; padding: 0; font: 12px/1.65 var(--font); color: var(--ink-2); overflow-wrap: anywhere; }
.agentic-shell .context-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0; }
.agentic-shell .context-card-footer>span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; height: auto; min-height: 28px; max-width: 100%; overflow-wrap: anywhere; }
.agentic-shell .context-card-footer>span>span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 18px; font-size: 8px; white-space: nowrap; border-radius: 4px; }
.agentic-shell .context-card-footer>button { margin-left: auto; padding: 6px 10px; min-height: 30px; height: auto; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); font: 12px var(--font); }
.agentic-shell .thinking-timeline { position: relative; margin: 8px 0 0; padding: 0; }
.agentic-shell .thinking-timeline-line { position: absolute; left: 6px; top: 18px; bottom: 18px; width: 2px; background: var(--ink-3); opacity: .65; pointer-events: none; }
.agentic-shell .thinking-timeline-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 6px 0; }
.agentic-shell .thinking-timeline-row>:first-child { position: relative; z-index: 1; box-sizing: border-box; flex: 0 0 14px; width: 14px; min-width: 14px; height: 14px; min-height: 14px; aspect-ratio: 1; background-color: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
.agentic-shell .ag-composer { position: relative; }
.agentic-shell .ag-composer { border-radius: 16px; padding: 10px 12px; box-shadow: none; }
.agentic-shell .ag-composer #msg-input { min-height: 38px; padding: 5px 4px; font-size: 14px; }
.agentic-shell .ag-composer-tools #ag-attach { font-size: 0; width: 30px; min-width: 30px; padding: 5px; }
.agentic-shell .ag-composer-tools #ag-attach svg { width: 17px; height: 17px; }
.agentic-shell .ag-composer-tools #prompt-effort { margin-left: auto; max-width: 135px; }
.agentic-shell .ag-composer-tools #chat-send { margin-left: 0; width: 30px; height: 30px; min-width: 30px; border-radius: 9px; }
.agentic-shell .ag-composer-tools { flex-wrap: wrap; gap: 8px; }
.agentic-shell .ag-composer-tools>button:not(#chat-send):not(#ag-stop),.agentic-shell #prompt-effort { background: transparent; color: var(--ink-2); border: 0; border-radius: 6px; padding: 5px; font: 11px var(--font); min-height: 28px; }
.agentic-shell .ag-composer-tools>button:hover { background: var(--hover); }
.agentic-shell .prompt-menu { position: absolute; z-index: 40; bottom: calc(100% + 8px); left: 0; right: 0; max-height: min(320px,40vh); overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px; box-shadow: var(--workspace-shadow); }
.agentic-shell .prompt-menu[hidden] { display: none; }
.agentic-shell .prompt-menu button { display: grid; gap: 4px; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 10px 12px; background: transparent; color: var(--ink); }
.agentic-shell .prompt-menu button[aria-selected=true] { background: var(--hover-2); }
.agentic-shell .prompt-menu button[aria-disabled=true] { opacity: .5; }
.agentic-shell .prompt-menu strong { font: 500 12px var(--font); }
.agentic-shell .prompt-menu small { font: 11px/1.5 var(--font); color: var(--ink-2); }
.agentic-shell .prompt-agent-chip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.agentic-shell .prompt-agent-chip:not(:empty) { margin: 0 0 8px; padding: 6px 0; font: 12px var(--font); }
.agentic-shell .prompt-agent-chip select { max-width: 100%; min-width: 0; padding: 4px 6px; font: 11px var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; }
.agentic-shell .prompt-agent-chip button { margin-left: auto; background: transparent; padding: 5px; color: var(--ink-2); }
.agentic-shell .recommendation-confidence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; color: var(--ink-2); font: 12px var(--font); }
.agentic-shell .recommendation-confidence meter { width: 110px; height: 8px; }
.agentic-shell .recommendation-alternatives { margin-top: 10px; }
.agentic-shell .recommendation-alternatives summary { cursor: pointer; font: 12px var(--font); padding: 7px 0; }
@media(prefers-reduced-motion:reduce) { .agentic-shell .thinking-timeline-row,.agentic-shell .context-card,.agentic-shell .prompt-menu { animation: none !important; transition: none !important; } }

/* UX v5: gezinme kaydırması ve ajan kataloğu. */
.agentic-shell :is(.nav-section,.modules-tree,.saas-section-rail) { scrollbar-width:thin; scrollbar-color:transparent transparent; }
.agentic-shell :is(.nav-section,.modules-tree,.saas-section-rail):is(:hover,:focus-within) { scrollbar-color:var(--border) transparent; }
.agentic-shell :is(.nav-section,.modules-tree,.saas-section-rail)::-webkit-scrollbar { width:6px; height:6px; }
.agentic-shell :is(.nav-section,.modules-tree,.saas-section-rail)::-webkit-scrollbar-thumb { background:transparent; border-radius:3px; }
.agentic-shell :is(.nav-section,.modules-tree,.saas-section-rail):is(:hover,:focus-within)::-webkit-scrollbar-thumb { background:var(--border); }
@media(min-width:901px) {
  .agentic-shell .saas-settings-shell { flex:1; min-height:0; display:flex; flex-direction:column; }
  /* Yetki görünürlüğündeki display:block!important flex yüksekliğini bozuyordu. */
  .agentic-shell .saas-settings-shell.manager-only.role-visible { display:flex!important; }
  .agentic-shell .saas-settings-body { flex:1; min-height:0; overflow:hidden; grid-template-rows:minmax(0,1fr); }
  .agentic-shell .saas-section-rail { min-height:0; overflow-y:auto; overflow-x:hidden; }
  .agentic-shell .saas-settings-content { min-height:0; max-height:none; }
}
@media(min-width:901px) and (max-width:1100px) {
  .agentic-shell .saas-settings-body { grid-template-rows:auto minmax(0,1fr); }
}
.agentic-shell select.automation-catalog-categories { display:block; flex:0 1 240px; min-width:0; max-width:100%; height:42px; padding:0 32px 0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; }
.agentic-shell .automation-agent-actions button { background:transparent; }
.agentic-shell .automation-agent-actions .ajan-calistir { background:#2563eb; border-color:#2563eb; color:#fff; }
.agentic-shell .automation-agent-actions .ajan-calistir:hover { background:#1d4ed8; }
.agentic-shell .automation-agent-badge { background:#c2410c; box-shadow:none; }
.agentic-shell .automation-agent-icon svg { width:24px; height:24px; }
.saas-baglanti-kontrol { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
#saas-baglanti-sonucu { color:var(--text-secondary); font-size:.78rem; }

.agentic-shell .sidebar:is(:hover,:focus-within) :is(.nav-section,.modules-tree) { scrollbar-color:var(--border) transparent; }
.agentic-shell .sidebar:is(:hover,:focus-within) :is(.nav-section,.modules-tree)::-webkit-scrollbar-thumb { background:var(--border); }

/* UX v6: son alan ile eylemler arasında tutarlı boşluk. */
.agentic-shell .expense-draft-actions { margin-top:20px; }
.agentic-shell .expense-draft-actions:empty { display:none; }
@media(max-width:900px) {
  .agentic-shell #view-settings { overflow-y:auto; }
  .agentic-shell .saas-settings-shell { flex:none; min-height:0; overflow:visible; }
}
