/* Approved handoff: shared spacing and live widget workspace, no mock data. */
html[data-ui-style="executive"] #widgetWorkspace {min-width:0}
html[data-ui-style="executive"] #webchatAdmin120 {border:1px solid var(--border);border-radius:22px;background:var(--surface);padding:24px;box-shadow:var(--shadow)}
html[data-ui-style="executive"] #webchatAdmin120 .widget-instance-picker {display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border)}
html[data-ui-style="executive"] #webchatAdmin120 .widget-instance-picker label {flex:1;min-width:220px}
html[data-ui-style="executive"] #webchatAdmin120 label {display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:var(--text)}
html[data-ui-style="executive"] #webchatAdmin120 label:has(input[type="checkbox"]) {flex-direction:row;align-items:center}
html[data-ui-style="executive"] #webchatAdmin120 input:not([type="checkbox"]),html[data-ui-style="executive"] #webchatAdmin120 select,html[data-ui-style="executive"] #webchatAdmin120 textarea {width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);padding:12px;font:inherit}
html[data-ui-style="executive"] #webchatAdmin120 textarea {min-height:96px;resize:vertical}
html[data-ui-style="executive"] #webchatAdmin120 details {border:1px solid var(--border);border-radius:16px;padding:16px;margin:16px 0;background:var(--surface-2)}
html[data-ui-style="executive"] #webchatAdmin120 summary {cursor:pointer;font-weight:600;min-height:24px}
html[data-ui-style="executive"] #webchatAdmin120 .widget-leads-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:16px}
html[data-ui-style="executive"] #webchatAdmin120 .widget-leads-list article {min-width:0;border:1px solid var(--border);border-radius:16px;padding:16px;background:var(--surface);display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}
html[data-ui-style="executive"] #webchatAdmin120 .wc-history-list {display:flex;flex-direction:column;gap:8px;margin:16px 0}
html[data-ui-style="executive"] #webchatAdmin120 .wc-history-messages {overflow-wrap:anywhere}
html[data-ui-style="executive"] #webchatAdmin120 button {min-height:40px;white-space:normal}
html[data-ui-style="executive"] #webchatAdmin120 :focus-visible {outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:620px){html[data-ui-style="executive"] #webchatAdmin120{padding:16px;border-radius:16px}html[data-ui-style="executive"] #webchatAdmin120 .widget-instance-picker{align-items:stretch;flex-direction:column}html[data-ui-style="executive"] #webchatAdmin120 .widget-instance-picker label{min-width:0}html[data-ui-style="executive"] #webchatAdmin120 .card-actions-058{display:flex;flex-direction:column;gap:8px}html[data-ui-style="executive"] #webchatAdmin120 button{min-height:44px}}

/* Screen-shot correction: compact hierarchy, content-driven card heights. */
html[data-ui-style="executive"][data-theme] #app {font-size:14px;line-height:1.45}
html[data-ui-style="executive"][data-theme] #app .main > .page.active {max-width:1540px;box-sizing:border-box;margin-inline:auto;padding:0 24px 28px}
html[data-ui-style="executive"][data-theme] #app .topbar.dt-frame-175 {box-sizing:border-box;min-height:72px!important;margin-bottom:24px;padding:12px 24px!important}
html[data-ui-style="executive"][data-theme] #app .page :is(.panel,.card,.metric-card) {box-shadow:0 1px 2px rgba(18,42,56,.04);border-color:var(--border)}
html[data-ui-style="executive"][data-theme] #page-home.active {gap:16px}
html[data-ui-style="executive"][data-theme] #page-home .page-hero {min-height:0!important;padding:24px!important;align-items:center;background:linear-gradient(110deg,var(--surface),var(--surface-2));border-radius:22px}
html[data-ui-style="executive"][data-theme] #page-home .page-hero h2 {font-size:26px!important;line-height:1.2;margin:0 0 8px;letter-spacing:-.035em}
html[data-ui-style="executive"][data-theme] #page-home .page-hero p {font-size:13px!important;max-width:720px;line-height:1.5;margin:0}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid {gap:14px!important;align-items:stretch}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card {min-height:100px!important;padding:16px!important;display:flex;flex-direction:column;justify-content:center;gap:8px;border-radius:16px}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-label {font-size:12px!important;margin:0!important;color:var(--muted)}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-value {font-size:28px!important;line-height:1.1;margin:0!important;font-weight:750;letter-spacing:-.03em}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163 {align-items:start;gap:16px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163 > section {min-height:0!important;padding:18px!important;border-radius:16px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-attention-row-163 {min-height:52px!important;padding:10px 12px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-row-163 {min-height:32px!important;margin:4px 0!important;padding:4px 0!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175 > .panel {min-height:0!important;padding:18px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-server-177 {padding:18px!important;border-radius:16px}
html[data-ui-style="executive"][data-theme] #app .page :is(h2,h3) {letter-spacing:-.025em}
html[data-ui-style="executive"][data-theme] #app .page button {font-size:13px;line-height:1.3}
@media(max-width:900px){html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163{grid-template-columns:1fr!important}html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #app .main > .page.active{padding:0 14px 24px}html[data-ui-style="executive"][data-theme] #app .topbar.dt-frame-175{padding:10px 14px!important;margin-bottom:16px}html[data-ui-style="executive"][data-theme] #page-home .page-hero{padding:18px!important}html[data-ui-style="executive"][data-theme] #page-home .page-hero h2{font-size:22px!important}html[data-ui-style="executive"][data-theme] #page-home .dt-home-actions-150{display:flex;flex-wrap:wrap;gap:8px}html[data-ui-style="executive"][data-theme] #page-home .dt-home-actions-150 a{min-height:44px}html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card{min-height:92px!important;padding:14px!important}html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175{grid-template-columns:1fr!important}}

/* One final handoff geometry layer replaces conflicting older presentation values. */
html[data-ui-style="executive"][data-theme] #app {font-size:14px;line-height:1.45}
html[data-ui-style="executive"][data-theme] #app .page {max-width:1600px;width:100%;box-sizing:border-box;margin-inline:auto;padding:24px!important;gap:16px}
html[data-ui-style="executive"][data-theme] #app .topbar {min-height:72px!important;padding:12px 24px!important;border-bottom:1px solid var(--border);box-shadow:none!important}
html[data-ui-style="executive"][data-theme] #app .page :is(.panel,.settings-box,.knowledge-doc-panel,.knowledge-memory-panel) {border-radius:16px;padding:18px!important;box-shadow:var(--shadow);border:1px solid var(--border)}
html[data-ui-style="executive"][data-theme] #app .page :is(h2,h3,h4) {letter-spacing:-.025em;line-height:1.25}
html[data-ui-style="executive"][data-theme] #app .page h3 {font-size:16px}
html[data-ui-style="executive"][data-theme] #app .page .page-hero {min-height:0;padding:24px!important;border-radius:22px}
html[data-ui-style="executive"][data-theme] #page-home .page-hero {min-height:170px;box-sizing:border-box;align-items:center;position:relative;overflow:hidden;background:linear-gradient(110deg,var(--surface),var(--surface-2))}
html[data-ui-style="executive"][data-theme] #page-home .page-hero h2 {font-size:27px!important;margin:0 0 8px}
html[data-ui-style="executive"][data-theme] #page-home .page-hero p {max-width:720px;font-size:13px;margin:0}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card {display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:104px!important;padding:16px!important;box-sizing:border-box;border-radius:16px;position:relative;box-shadow:none!important;background:var(--surface)}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-value {font-size:25px!important;line-height:1.15;margin:0!important}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-label {font-size:12px!important;margin:0!important;padding-right:30px}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card::after {content:"";position:absolute;right:16px;top:16px;width:24px;height:24px;border-radius:8px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border))}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163 {align-items:start;gap:16px!important;margin:0}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163>section {min-height:0!important;padding:18px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-attention-row-163 {min-height:52px!important;padding:10px 12px!important;box-sizing:border-box}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-row-163 {min-height:32px!important;font-size:12px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175 {order:3!important;gap:16px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175>.panel {min-height:0!important;padding:18px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-server-177 {order:4!important}
html[data-ui-style="executive"][data-theme] #app .page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {box-sizing:border-box;max-width:100%;border-radius:10px;font-size:13px}
html[data-ui-style="executive"][data-theme] #app .page :is(button,.primary,.secondary) {font-size:13px;min-height:36px;border-radius:10px}
html[data-ui-style="executive"][data-theme] #app .page table {font-size:13px;border-collapse:collapse}
html[data-ui-style="executive"][data-theme] #app .page :is(th,td) {padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle}
html[data-ui-style="executive"][data-theme] #app .page th {background:var(--surface-2);color:var(--muted);font-weight:600;text-align:left}
html[data-ui-style="executive"][data-theme] #app .page :is(.toolbar,.card-actions-058) {gap:8px;flex-wrap:wrap}
@media(min-width:901px){html[data-ui-style="executive"][data-theme] #app .sidebar{width:238px!important}html[data-ui-style="executive"][data-theme] #app .main{margin-left:238px!important}}
@media(max-width:900px){html[data-ui-style="executive"][data-theme] #app .page{padding:18px!important}html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163{grid-template-columns:1fr}}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #app .page{padding:12px!important}html[data-ui-style="executive"][data-theme] #app .topbar{min-height:64px!important;padding:10px 12px!important}html[data-ui-style="executive"][data-theme] #page-home .page-hero{min-height:0;padding:18px!important}html[data-ui-style="executive"][data-theme] #page-home .page-hero h2{font-size:22px!important}html[data-ui-style="executive"][data-theme] #app .page :is(button,.primary,.secondary){min-height:44px}html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid{gap:10px!important}html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card{padding:12px!important;min-height:92px!important}html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card::after{display:none}html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-label{padding-right:0}html[data-ui-style="executive"][data-theme] #page-home .dt-home-actions-150{display:flex;flex-wrap:wrap;gap:8px}}

/* Screen refinement: keep existing nodes and event handlers. */
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159 {grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);align-items:start;gap:16px}
html[data-ui-style="executive"][data-theme] #page-agents :is(.dt-agent-list-159,.dt-agent-detail-159) {border-radius:16px;padding:18px;min-height:0}
html[data-ui-style="executive"][data-theme] #page-agents .agent-v2-card {border:1px solid var(--border);border-radius:12px;padding:16px;margin-bottom:10px;box-shadow:none;background:var(--surface)}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-summary-177 {gap:16px}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-summary-177>div {border-radius:16px;padding:16px;box-shadow:none}
html[data-ui-style="executive"][data-theme] #page-integrations .integration-grid-058 {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;align-items:start}
html[data-ui-style="executive"][data-theme] #page-integrations .integration-card-058 {display:flex;flex-direction:column;gap:12px;border:1px solid var(--border);border-radius:16px;padding:18px;min-width:0;min-height:0!important;background:var(--surface);box-shadow:none}
html[data-ui-style="executive"][data-theme] #page-integrations .integration-card-058 p {margin:0;font-size:13px;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-integrations .integration-card-058 .card-actions-058 {margin-top:auto;padding-top:8px}
html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-layout {grid-template-columns:minmax(180px,.8fr) minmax(0,2fr) minmax(230px,1fr);gap:16px;align-items:start}
html[data-ui-style="executive"][data-theme] #page-knowledge :is(.knowledge-layout>div:first-child,.dt-knowledge-doc-161,.dt-knowledge-memory-161) {min-height:0!important;border-radius:16px;padding:16px}
html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-space {padding:12px;margin-bottom:8px;border-radius:10px;overflow-wrap:anywhere}
html[data-ui-style="executive"][data-theme] #page-help .help-card-058 {min-height:0!important;border:1px solid var(--border);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px;background:var(--surface);box-shadow:none}
html[data-ui-style="executive"][data-theme] #page-help .help-card-058 :is(h3,p) {margin:0}
html[data-ui-style="executive"][data-theme] #page-help .help-card-058 strong {font-size:16px}
html[data-ui-style="executive"][data-theme] #page-channels .channel-platform-tab {border:1px solid var(--border);border-radius:12px;padding:12px 16px;min-height:44px;white-space:normal;background:var(--surface);color:var(--text)}
html[data-ui-style="executive"][data-theme] #page-channels .channel-platform-tab[aria-selected="true"] {background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-color:var(--accent);color:var(--accent)}
html[data-ui-style="executive"][data-theme] :is(#agentV2Modal,#manualOverlay140) .modal {border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box}
html[data-ui-style="executive"][data-theme] #agentV2Modal .editor-tabs {display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--border);padding:12px 0}
html[data-ui-style="executive"][data-theme] #agentV2Modal .editor-tabs button {border-radius:10px;min-height:40px}
@media(max-width:1100px){html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-layout {grid-template-columns:minmax(180px,.8fr) minmax(0,2fr)}html[data-ui-style="executive"][data-theme] #page-knowledge .dt-knowledge-memory-161 {grid-column:1/-1}}
@media(max-width:900px){html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159 {grid-template-columns:1fr}html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-detail-159 {position:static}}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-layout {grid-template-columns:1fr}html[data-ui-style="executive"][data-theme] #page-knowledge .dt-knowledge-memory-161 {grid-column:auto}html[data-ui-style="executive"][data-theme] :is(#agentV2Modal,#manualOverlay140) .modal {max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}html[data-ui-style="executive"][data-theme] #agentV2Modal .editor-tabs button{flex:1 1 auto;min-height:44px}}

/* Passive section tips are not active tutorial targets. */
.dt-tour-hint-211.is-contextual {border:1px solid var(--border);border-left:3px solid var(--accent);padding:14px 16px;margin:0 0 16px;border-radius:12px;background:var(--surface-2);font-size:13px}
.dt-tour-hint-211.is-contextual p {margin:6px 0;font-size:12px}
.dt-tour-hint-211.is-contextual button {margin-top:6px}
.dt-tour-hint-211.is-guided {border-width:1px}

/* Chat, work and settings use the same handoff components. */
html[data-ui-style="executive"][data-theme] #page-askai .chat-mode-switch-201 {box-shadow:none;margin-bottom:12px;border-radius:12px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-mode-help-201 {font-size:12px;max-width:760px;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-askai .chief-chat-notice-201 {box-shadow:none;border-radius:12px;padding:12px 16px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-message-v58 {font-size:14px;line-height:1.65;overflow-wrap:anywhere;border-radius:14px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-compose-wrap-201 {padding:16px;gap:12px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-attachment-tools-201 {border-radius:12px;padding:12px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-attachment-tools-201 :is(small,span,label) {font-size:12px;white-space:normal;overflow-wrap:anywhere}
html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198 {gap:16px;align-items:start}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-detail-070 {border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:none;min-width:0}
html[data-ui-style="executive"][data-theme] #page-work .dt-kanban-column-150 {border:1px solid var(--border);border-radius:16px;background:var(--surface-2);padding:12px;min-width:0}
html[data-ui-style="executive"][data-theme] #page-work .dt-kanban-card-150 {background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;box-shadow:none;overflow-wrap:anywhere}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150 {gap:12px}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150>div {min-height:76px;padding:14px;border-radius:12px;box-shadow:none}
html[data-ui-style="executive"][data-theme] #page-work .dt-assignee-tabs-150 {display:flex;gap:8px;flex-wrap:wrap}
html[data-ui-style="executive"][data-theme] #page-settings.active {max-width:1180px;gap:16px}
html[data-ui-style="executive"][data-theme] #page-settings .settings-tabs-140 {box-shadow:none;border-radius:12px;gap:6px;padding:6px}
html[data-ui-style="executive"][data-theme] #page-settings .settings-tabs-140 button {font-size:13px;min-height:40px}
html[data-ui-style="executive"][data-theme] #page-settings .settings-box p {font-size:13px;line-height:1.55;max-width:820px}
html[data-ui-style="executive"][data-theme] #page-settings :is(pre,.technical-log) {max-width:100%;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:var(--surface-2);border-radius:10px;padding:12px}
@media(max-width:900px){html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198 {grid-template-columns:1fr}}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #page-askai .chat-mode-switch-201 {width:100%;box-sizing:border-box;flex-wrap:wrap}html[data-ui-style="executive"][data-theme] #page-askai .chat-mode-switch-201 [role="tab"] {flex:1;min-height:44px}html[data-ui-style="executive"][data-theme] #page-askai .chat-compose-wrap-201 {padding:12px}html[data-ui-style="executive"][data-theme] #page-settings .settings-tabs-140 button {flex:1 1 auto;min-height:44px}}

/* Actual profile DOM uses adjacent label/input pairs, not nested grid labels. */
html[data-ui-style="executive"][data-theme] #page-settings .settings-profile-grid {display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:start}
html[data-ui-style="executive"][data-theme] #page-settings .settings-general-form {display:grid;grid-template-columns:minmax(140px,.6fr) minmax(0,1.4fr);gap:12px 16px;align-items:center}
html[data-ui-style="executive"][data-theme] #page-settings .settings-general-form label {font-size:13px;color:var(--muted);margin:0}
html[data-ui-style="executive"][data-theme] #page-settings .settings-general-form :is(button,#generalSettingsMessage) {grid-column:1/-1;justify-self:start}
html[data-ui-style="executive"][data-theme] #page-settings .profile-avatar-box {display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
html[data-ui-style="executive"][data-theme] #page-audit .alerts-grid-058 {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
html[data-ui-style="executive"][data-theme] #page-audit .alert-card-058 {border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:none;background:var(--surface);min-width:0}
html[data-ui-style="executive"][data-theme] #page-audit .alert-card-058.error {border-left:3px solid var(--danger)}
html[data-ui-style="executive"][data-theme] #page-audit .alert-card-058.warn {border-left:3px solid var(--warning)}
html[data-ui-style="executive"][data-theme] #page-audit .alert-card-058.ok {border-left:3px solid var(--success)}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-summary-157 {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-log-search-157 {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
html[data-ui-style="executive"][data-theme] #page-audit .log-row-058 {padding:14px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
html[data-ui-style="executive"][data-theme] #app .sidebar .nav {min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
html[data-ui-style="executive"][data-theme] #app .sidebar .brand {min-height:72px;padding:16px 12px!important}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #page-settings .settings-profile-grid{grid-template-columns:1fr;gap:16px}html[data-ui-style="executive"][data-theme] #page-settings .settings-general-form{grid-template-columns:1fr;gap:8px}html[data-ui-style="executive"][data-theme] #page-settings .settings-general-form input,html[data-ui-style="executive"][data-theme] #page-settings .settings-general-form select{margin-bottom:8px}html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-log-search-157{align-items:stretch;flex-direction:column}}

/* Structural correction from owner screenshots, rather than decorative spacing. */
html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:12px 24px;padding:22px!important}
html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.eyebrow,html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>h3 {grid-column:1}
html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>p {grid-column:1;font-size:13px;max-width:660px;margin:0}
html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.agent-costs {grid-column:2;grid-row:1/4;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-self:center}
html[data-ui-style="executive"][data-theme] #page-agents .agent-cost {padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
html[data-ui-style="executive"][data-theme] #page-agents .agent-cost .money {display:block;font-size:23px;margin:8px 0;line-height:1.2}
html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.money-small,html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel {grid-column:1/-1}
html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel {background:var(--surface-2)}
html[data-ui-style="executive"][data-theme] #page-agents .agent-v2-card .agent-costs {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
html[data-ui-style="executive"][data-theme] #page-agents .agent-v2-card .agent-cost {padding:12px}
html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-memory-panel {min-width:0}
html[data-ui-style="executive"][data-theme] #page-knowledge #memoryEntries {max-height:480px;overflow-y:auto;overscroll-behavior:contain}
html[data-ui-style="executive"][data-theme] #page-knowledge .memory-row-125 {padding:12px;border:1px solid var(--border);border-radius:12px;margin:8px 0;background:var(--surface-2);overflow-wrap:anywhere}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-enable-control {justify-content:flex-start!important;gap:10px!important;align-self:end;padding:12px;border-radius:12px;background:var(--surface-2)}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-enable-control input {width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:0}
.widget-setup-guide {padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);margin:16px 0}
.widget-setup-guide ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:12px 0 0;padding-left:20px;font-size:13px}
html[data-ui-style="executive"][data-theme] #page-work .page-hero {padding:16px 20px!important}
html[data-ui-style="executive"][data-theme] #page-work .dt-tour-hint-211 {margin-bottom:0}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150 {margin-top:0}
@media(max-width:900px){html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card {grid-template-columns:1fr}html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.agent-costs {grid-column:1;grid-row:auto}.widget-setup-guide ol{grid-template-columns:1fr;gap:10px}}

/* Shared help affordance: explicit, unobtrusive and keyboard accessible. */
html[data-theme] :is(.help-inline-button,.help-button-058,.agent-tab-help-mark-211,.agent-field-help-211){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;margin:0;border:1px solid var(--border);border-radius:50%;background:var(--surface-2);color:var(--muted);font-family:inherit;font-size:13px;font-weight:600;line-height:1;box-shadow:none;cursor:pointer}
html[data-theme] :is(.help-inline-button,.help-button-058,.agent-tab-help-mark-211,.agent-field-help-211):hover{color:var(--accent);border-color:var(--accent);background:var(--surface)}
html[data-theme] :is(.help-inline-button,.help-button-058,.agent-tab-help-mark-211,.agent-field-help-211):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html[data-theme] #app .dt-help-anchor-211{position:relative;padding-right:160px!important}
html[data-theme] #app .dt-help-anchor-211>.help-inline-button{top:16px;right:16px;width:auto;min-width:30px;height:32px;gap:8px;padding:0 10px;border-radius:10px;font-size:12px}
html[data-theme] .agent-field-help-211{vertical-align:middle;margin:4px 0}
html[data-theme] .agent-field-note-211{font-size:12px;line-height:1.6;border-left:2px solid var(--accent);padding:8px 12px;background:var(--surface-2);border-radius:8px}
.server-usage-ring-286{width:92px;height:92px;border-radius:50%;background:conic-gradient(var(--success) var(--usage),var(--border) 0);display:grid;place-items:center;margin:12px 0}
.server-usage-ring-286>span{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--surface);font-size:20px;font-weight:700;color:var(--text)}
.server-usage-ring-286.warning{background:conic-gradient(var(--warning) var(--usage),var(--border) 0)}
.server-usage-ring-286.critical{background:conic-gradient(var(--danger) var(--usage),var(--border) 0)}
#page-home .server-usage-ring-286~.server-usage-meter-218{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
html[data-theme] #page-work .work-explanation-286{padding:12px 16px!important;margin-bottom:12px}
.work-explanation-286 summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--muted)}
.work-explanation-286 p{font-size:13px;line-height:1.6;margin-bottom:0}
@media(max-width:620px){html[data-theme] #app .dt-help-anchor-211{padding-right:58px!important}.section-help-label-286{display:none}html[data-theme] #app .dt-help-anchor-211>.help-inline-button{width:30px;padding:0}.server-usage-ring-286{width:80px;height:80px}.server-usage-ring-286>span{width:62px;height:62px}}

/* Compact operational dashboard: rings never determine unrelated tile height. */
html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;align-items:start!important}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-item{min-height:112px!important;height:auto!important;padding:14px!important;display:flex!important;flex-direction:column;gap:8px;position:relative;justify-content:flex-start!important}
html[data-theme] #page-home .server-readable-item>b{font-size:17px!important;line-height:1.3}
html[data-theme] #page-home .server-readable-item:has(.server-usage-ring-286){display:grid!important;grid-template-columns:1fr 56px!important;align-items:center!important;gap:6px}
html[data-theme] #page-home .server-readable-item:has(.server-usage-ring-286)>b{display:none}
html[data-theme] #page-home .server-readable-item:has(.server-usage-ring-286)>.muted{grid-column:1;grid-row:1}
html[data-theme] #page-home .server-usage-ring-286{grid-column:2;grid-row:1/3;width:56px;height:56px;margin:0}
html[data-theme] #page-home .server-usage-ring-286>span{width:44px;height:44px;font-size:14px}
html[data-theme] #page-home .server-usage-caption-218{font-size:11px;grid-column:1;grid-row:2}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175{align-items:start!important}
html[data-theme] #webchatAdmin120>.settings-grid.widget-settings-layout-287{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:20px;align-items:start}
.widget-settings-section-287{min-width:0;border:1px solid var(--border);border-radius:14px;padding:18px;margin:0;display:flex;flex-direction:column;gap:14px;background:var(--surface)}
.widget-settings-section-287 legend{font-weight:700;font-size:15px;padding:0 6px}
.widget-settings-section-287 p{font-size:12px;line-height:1.5;margin:0}
html[data-theme] #webchatAdmin120 .widget-settings-section-287 label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:13px;min-width:0}
html[data-theme] #webchatAdmin120 .widget-settings-section-287 textarea{min-height:76px!important;height:76px;resize:vertical}
html[data-theme] #webchatAdmin120 .widget-settings-section-287 .widget-enable-control{flex-direction:row}
html[data-theme] #webchatAdmin120 .widget-design-section-287[open]{display:block;background:var(--surface-2)}
html[data-theme] #webchatAdmin120 .widget-preview{max-width:340px;margin:18px auto;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px #0000000d}
html[data-theme] #page-work .dt-task-team-150{padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.dt-task-team-150>summary{font-size:13px;font-weight:600;cursor:pointer;color:var(--muted)}
html[data-theme] #page-work .dt-task-team-head-150{margin-top:14px}
html[data-theme] #page-work .dt-task-view-head-150{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 12px}
html[data-theme] #page-work .dt-task-view-head-150 p{font-size:11px;max-width:440px}
html[data-theme] #page-work .dt-kanban-column-150 h3{font-size:14px}
html[data-theme] #page-work .dt-kanban-card-150 h3{font-size:14px;line-height:1.4;margin:8px 0}
@media(max-width:1200px){html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){html[data-theme] #webchatAdmin120>.settings-grid.widget-settings-layout-287{grid-template-columns:1fr!important}html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-theme] #page-work .dt-task-view-head-150{align-items:start;flex-direction:column}}
/* CRM task table adapted to our server contract from shadcn-admin task columns. */
html[data-theme] #page-work .dt-work-area-198{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px}
html[data-theme] #page-work .dt-work-area-198.has-detail-288{grid-template-columns:minmax(0,1fr) minmax(300px,380px)!important;align-items:start}
.crm-table-scroll-288{overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--surface);min-width:0}
.crm-task-table-288{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:680px}
.crm-task-table-288 th{background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:600;padding:13px 16px;white-space:nowrap;border-bottom:1px solid var(--border)}
.crm-task-table-288 td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:middle}
.crm-task-table-288 tr:last-child td{border-bottom:0}
.crm-task-table-288 tbody tr:hover,.crm-task-table-288 tr.is-selected{background:var(--surface-2)}
html[data-theme] #page-work .crm-task-title-288{display:flex;align-items:baseline;gap:9px;border:0;background:transparent;padding:0;min-height:24px;text-align:left;box-shadow:none;color:var(--text);cursor:pointer;font-size:13px}
.crm-task-title-288:hover strong{color:var(--accent)}
.crm-task-number-288{color:var(--muted);font-size:11px;white-space:nowrap}
.crm-task-excerpt-288{font-size:11px;color:var(--muted);line-height:1.5;margin:4px 0 0;max-width:350px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.crm-priority-288{font-size:11px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.crm-priority-288:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--muted)}
.crm-priority-288[data-priority="urgent"]:before{background:var(--danger)}
.crm-priority-288[data-priority="high"]:before{background:var(--warning)}
.crm-priority-288[data-priority="low"]:before{background:var(--success)}
.crm-view-options-288{display:flex;gap:12px;flex-wrap:wrap}
.crm-view-options-288 label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
html[data-theme] #page-work .crm-view-options-288 select{width:auto;min-height:34px;padding:6px 10px;font-size:12px;margin:0}
html[data-theme] #page-work .crm-toolbar-288{padding:12px 0;margin:0;flex-wrap:wrap}
html[data-theme] #page-work .crm-toolbar-288>p{display:none}
html[data-theme] #page-work .dt-task-kpi-150{display:flex!important;flex-wrap:wrap;gap:0!important;border:1px solid var(--border);background:var(--surface);border-radius:12px;margin:12px 0}
html[data-theme] #page-work .dt-task-kpi-150>div{flex:1 1 120px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px!important;padding:12px 14px!important;border:0;border-right:1px solid var(--border);background:transparent;border-radius:0!important}
html[data-theme] #page-work .dt-task-kpi-150 strong{font-size:19px}
html[data-theme] #page-work .dt-task-query-150{padding:12px 14px;box-shadow:none;margin:12px 0}
html[data-theme] #page-work #taskSearch150{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
html[data-theme] #page-work #taskSearch150 label{font-size:12px;margin:0}
html[data-theme] #page-work #taskSearchInput150{width:min(320px,100%);min-height:36px;margin:0}
html[data-theme] #page-work .dt-kanban-150{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;overflow-x:auto;align-items:start}
html[data-theme] #page-work .dt-kanban-column-150{min-height:200px}
html[data-theme] #page-work .dt-kanban-card-150{width:100%;display:flex;flex-direction:column;gap:8px;margin:10px 0;text-align:left;transition:border-color .15s}
html[data-theme] #page-work .dt-kanban-card-150:hover{border-color:var(--accent)}
.crm-sr-only-288{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1050px){html[data-theme] #page-work .dt-work-area-198.has-detail-288{grid-template-columns:1fr!important}}
@media(max-width:620px){html[data-theme] #page-work .crm-toolbar-288{align-items:stretch}.crm-view-options-288{flex-direction:column}.crm-view-options-288 label{justify-content:space-between}html[data-theme] #page-work .dt-kanban-150{grid-template-columns:repeat(3,260px)}}

.section-toggle-grid-289{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.section-toggle-grid-289 label{display:flex!important;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:10px;padding:12px;font-size:13px}
.section-toggle-grid-289 input{width:18px!important;min-height:18px!important;height:18px;margin:0;accent-color:var(--accent)}
html[data-theme] #page-work .dt-task-detail-070{position:fixed!important;inset:7vh max(18px,calc((100vw - 880px)/2))!important;z-index:1100;max-height:86vh!important;width:auto!important;overflow:auto!important;padding:24px!important;box-shadow:0 24px 80px #0003;border-radius:18px}
html[data-theme] #page-work .dt-work-area-198.has-detail-288{grid-template-columns:1fr!important}
html[data-theme] #page-work .dt-task-detail-head-070{position:sticky;top:-24px;background:var(--surface);z-index:2;padding:12px 0;border-bottom:1px solid var(--border)}
@media(max-width:620px){.section-toggle-grid-289{grid-template-columns:1fr}html[data-theme] #page-work .dt-task-detail-070{inset:12px!important;max-height:calc(100dvh - 24px)!important;padding:16px!important}}

html[data-theme] #page-knowledge .memory-row-125{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.memory-content-291{border:0!important;background:transparent!important;padding:0!important;margin:8px 0!important;min-width:0}
.memory-content-291 summary{cursor:pointer;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:var(--text)}
.memory-content-291[open] summary{font-weight:600}
.memory-content-291 p{font-size:13px;line-height:1.7;white-space:pre-wrap;border-top:1px solid var(--border);padding-top:10px}
html[data-theme] #page-knowledge .memory-row-125>.danger{font-size:11px;min-height:32px;padding:6px 10px}
@media(max-width:620px){html[data-theme] #page-knowledge .memory-row-125{grid-template-columns:1fr}html[data-theme] #page-knowledge .memory-row-125>.danger{justify-self:end}}
/* Connected workspace pass: memory, chat, CRM, widget and alerts. */
.memory-tools-292{display:flex;flex-wrap:wrap;align-items:end;gap:12px;position:sticky;top:0;background:var(--surface);z-index:1;padding:12px 0;border-bottom:1px solid var(--border);margin-bottom:12px}
.memory-tools-292 label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);margin:0;flex:1 1 140px}
.memory-tools-292 input,.memory-tools-292 select{margin:0;min-height:36px;font-size:12px}
.memory-tools-292 [role="status"]{font-size:11px;color:var(--muted);padding-bottom:10px}
html[data-theme] #page-knowledge .knowledge-layout{align-items:start;gap:18px}
html[data-theme] #page-knowledge .knowledge-memory-panel{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:18px!important}
html[data-theme] #page-knowledge .knowledge-memory-panel h2{font-size:20px;margin:6px 0 10px}
html[data-theme] #page-knowledge .knowledge-memory-panel>p{font-size:12px;line-height:1.6;max-width:680px}
html[data-theme] #page-askai .chat-mode-guide-292{margin:0 0 12px;padding:10px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.chat-mode-guide-292 summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:600}
html[data-theme] #page-askai .chat-mode-guide-292 .chat-mode-help-201{margin:10px 0 0}
html[data-theme] #page-askai .ai-chat-history{padding:14px!important;border:1px solid var(--border);border-radius:14px;background:var(--surface);min-width:0}
html[data-theme] #page-askai .ai-chat-workspace{border-radius:16px;overflow:hidden;min-width:0;background:var(--surface);border:1px solid var(--border)}
html[data-theme] #page-askai .ai-chat-modelbar{padding:12px 16px!important;background:var(--surface-2);border-bottom:1px solid var(--border)}
html[data-theme] #page-askai .ai-chat-messages-v58{height:clamp(280px,44vh,520px)!important;min-height:280px!important;padding:20px!important;overflow-y:auto}
html[data-theme] #page-askai .ai-chat-compose-v58{display:flex!important;align-items:end;gap:10px}
html[data-theme] #page-askai .ai-chat-compose-v58 textarea{flex:1;min-width:0;min-height:72px!important;margin:0}
html[data-theme] #page-askai .ai-chat-compose-v58>button{width:auto!important;min-width:100px;min-height:42px;margin:0}
html[data-theme] #page-askai .developer-notice{padding:16px!important;border:1px solid var(--border);border-radius:14px;font-size:12px;line-height:1.6}
html[data-theme] #page-work .crm-advanced-292,html[data-theme] #page-work details.dt-task-timeline-070{border:1px solid var(--border);border-radius:12px;padding:14px;margin-top:16px;background:var(--surface-2)}
.crm-advanced-292>summary,details.dt-task-timeline-070>summary{cursor:pointer;font-weight:600;font-size:13px;color:var(--text)}
html[data-theme] #page-work .dt-task-detail-070 form{margin-top:14px}
html[data-theme] #page-work .dt-task-detail-070 label{font-size:12px;line-height:1.5}
html[data-theme] #page-work .dt-task-detail-070 .dt-task-timeline-070 h3{display:none}
html[data-theme] #page-work .dt-task-detail-070 .dt-task-transfer-150>p{font-size:12px;max-width:620px}
.widget-metrics-292{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.widget-metrics-292>div{border:1px solid var(--border);border-radius:12px;padding:14px;background:var(--surface);display:flex;flex-direction:column;gap:8px}
.widget-metrics-292 span{color:var(--muted);font-size:11px}
.widget-metrics-292 strong{font-size:22px;color:var(--text);line-height:1.2}
html[data-theme] #webchatAdmin120 .widget-statistics{border:1px solid var(--border);border-radius:14px;padding:18px;background:var(--surface-2)}
html[data-theme] #webchatAdmin120 .widget-statistics>.select,html[data-theme] #webchatAdmin120 .widget-statistics>select{max-width:180px;margin:0;min-height:36px}
html[data-theme] #webchatAdmin120 .widget-statistics .muted{font-size:11px;line-height:1.6;margin-bottom:0}
html[data-theme] #page-audit .alert-event-210{border:1px solid var(--border);border-radius:12px;margin:8px 0;background:var(--surface);padding:14px!important}
html[data-theme] #page-audit .alert-event-210>summary{display:flex;align-items:start;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}
html[data-theme] #page-audit .alert-event-210>summary b{font-size:13px;line-height:1.5}
html[data-theme] #page-audit .alert-event-210>summary small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.5}
html[data-theme] #page-audit .alert-event-details-210{font-size:12px;line-height:1.65;padding-top:12px;overflow-wrap:anywhere}
html[data-theme] #page-audit .alert-event-details-210 pre{max-height:240px;overflow:auto;padding:12px;border-radius:10px;background:var(--surface-2);white-space:pre-wrap;font-size:11px}
html[data-theme] #page-audit .alert-notify-setting-210{display:flex;align-items:center;gap:10px;padding:12px;border-radius:10px;background:var(--surface-2);font-size:12px}
html[data-theme] #page-audit .alert-notify-setting-210 input{width:18px!important;height:18px;min-height:18px;flex:0 0 18px;margin:0}
@media(max-width:760px){.widget-metrics-292{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] #page-askai .ai-chat-messages-v58{height:40vh!important;min-height:220px!important;padding:14px!important}html[data-theme] #page-askai .ai-chat-compose-v58{flex-wrap:wrap}html[data-theme] #page-askai .ai-chat-compose-v58>button{width:100%!important}.memory-tools-292{position:static}html[data-theme] #page-audit .alert-event-210>summary{flex-direction:column;gap:8px}}
/* Final connected component pass: dense cards, readable editor and native task dialog. */
html[data-theme] #page-work dialog.dt-task-detail-070{margin:0!important;box-shadow:0 24px 80px #0003!important;border:1px solid var(--border);background:var(--surface);color:var(--text)}
#page-work dialog.dt-task-detail-070::backdrop{background:#071b2c80;backdrop-filter:blur(3px)}
html[data-theme] #page-work dialog.dt-task-detail-070:not([open]){display:none!important}
html[data-theme] #page-work dialog.dt-task-detail-070[open]{display:block!important}
html[data-theme] #page-agents .agent-v2-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:16px;align-items:start}
html[data-theme] #page-agents .agent-v2-card{min-height:0!important;padding:18px!important;box-shadow:none;border:1px solid var(--border);border-radius:16px;gap:10px}
html[data-theme] #page-agents .agent-v2-card h2{font-size:19px;line-height:1.3;margin:4px 0 8px}
html[data-theme] #page-agents .agent-v2-card .money-small{font-size:11px;line-height:1.5}
html[data-theme] #page-agents .agent-v2-card .actions{display:flex;gap:8px;padding-top:12px;border-top:1px solid var(--border)}
html[data-theme] #page-agents .chief-autonomy-panel{padding:16px!important;border:1px solid var(--border);border-radius:12px}
html[data-theme] #page-agents .chief-autonomy-panel p{font-size:12px;line-height:1.6;margin:8px 0 12px}
html[data-theme] #agentV2Modal .agent-editor-v2{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:22px;border-radius:18px;overflow-y:auto;background:var(--surface);border:1px solid var(--border)}
html[data-theme] #agentV2Modal .modal-head{position:sticky;top:-22px;background:var(--surface);z-index:3;padding:12px 0;border-bottom:1px solid var(--border)}
html[data-theme] #agentV2Modal .modal-head h2{font-size:22px;margin:0}
html[data-theme] #agentV2Modal label{font-size:12px;line-height:1.5;color:var(--muted)}
html[data-theme] #agentV2Modal :is(input:not([type="checkbox"]),select,textarea){width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);padding:10px 12px;font-size:13px;min-height:40px}
html[data-theme] #agentV2Modal textarea{min-height:110px;line-height:1.65;resize:vertical}
html[data-theme] #agentV2Modal .agent-tab-wrap-211{display:inline-flex;align-items:center;gap:6px}
html[data-theme] #agentV2Modal [data-agent-tab]{font-size:12px;min-height:38px;border-radius:9px;padding:8px 12px}
html[data-theme] #app :is(.product-empty,.empty){padding:24px 18px;border:1px dashed var(--border);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:13px;line-height:1.6;text-align:center}
html[data-theme] #app .error:not(button):not(input):not(.alert-card-058){overflow-wrap:anywhere;font-size:13px;line-height:1.6}
html[data-theme] #app :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html[data-theme] #app .dt-tour-hint-211.is-contextual{display:flex;align-items:start;justify-content:space-between;gap:14px;padding:12px 16px!important;margin-bottom:14px!important}
.context-tip-293{flex:1;min-width:0}
.context-tip-293>summary{font-size:12px;font-weight:600;color:var(--muted);cursor:pointer}
.context-tip-293>strong{display:none}
html[data-theme] #app .dt-tour-hint-211.is-contextual>button{min-height:30px;font-size:11px;margin:0;flex:0 0 auto}
html[data-theme] #webchatAdmin120 .wc-history-list button{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
html[data-theme] #webchatAdmin120 .wc-history-messages{max-height:520px;overflow:auto;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
html[data-theme] #webchatAdmin120 .wc-history-messages:empty{display:none}
@media(max-width:620px){html[data-theme] #agentV2Modal .agent-editor-v2{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:16px}html[data-theme] #app .dt-tour-hint-211.is-contextual{gap:8px;flex-wrap:wrap}html[data-theme] #page-agents .chief-profile-card{padding:16px!important}}
@media(prefers-reduced-motion:reduce){html[data-theme] #app *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Sources, connectors and settings are operational workspaces rather than tall prose cards. */
html[data-theme] #page-knowledge .knowledge-layout{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;gap:18px}
html[data-theme] #page-knowledge #knowledgeSpaces{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow:auto}
html[data-theme] #page-knowledge .knowledge-space{display:block;width:100%;min-height:64px;text-align:left;border:1px solid var(--border);border-radius:12px;padding:14px;background:var(--surface);color:var(--text);margin:0;cursor:pointer}
html[data-theme] #page-knowledge .knowledge-space.active{border-color:var(--accent);background:var(--surface-2)}
.knowledge-space-title{font-size:13px;font-weight:600}.knowledge-space-meta{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}
html[data-theme] #page-knowledge .knowledge-doc-panel{padding:18px!important;min-width:0;min-height:0!important}
html[data-theme] #page-knowledge #knowledgeCurrentTitle{font-size:18px;font-weight:700;line-height:1.4;margin-bottom:14px}
html[data-theme] #page-knowledge .upload-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:1px dashed var(--border);border-radius:12px;padding:14px;background:var(--surface-2);margin-bottom:16px}
html[data-theme] #page-knowledge .upload-row input{flex:1 1 220px;min-width:0;margin:0;font-size:12px}
html[data-theme] #page-knowledge .document-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border);font-size:13px}
.document-row b{overflow-wrap:anywhere}.document-status{font-size:11px;color:var(--muted);line-height:1.5}
html[data-theme] #page-knowledge .document-row .actions{display:flex;gap:6px;flex-wrap:wrap}
html[data-theme] #page-knowledge .document-row button{min-height:32px;padding:6px 9px;font-size:11px}
html[data-theme] #page-integrations .integration-grid-058{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:16px;align-items:start}
html[data-theme] #page-integrations .integration-card-058{min-height:0!important;height:auto!important;padding:18px!important;box-shadow:none;border:1px solid var(--border);border-radius:14px}
html[data-theme] #page-integrations .integration-card-058 h3{font-size:18px;margin:6px 0}
html[data-theme] #page-integrations .integration-card-058 p{font-size:12px;line-height:1.6}
html[data-theme] #page-integrations .integration-stats-058{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
html[data-theme] #page-integrations .card-actions-058{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
html[data-theme] #page-integrations .card-actions-058 button{font-size:12px;min-height:36px;padding:8px 12px}
html[data-theme] #page-integrations .provider-policy-note-058{display:block;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);margin-bottom:14px}
.provider-policy-note-058 summary{font-size:12px;font-weight:600;cursor:pointer;color:var(--muted)}
.provider-policy-note-058[open]>span{display:block;font-size:12px;line-height:1.7;margin-top:10px}
html[data-theme] #page-settings .settings-box{min-height:0!important;padding:20px!important;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:none}
html[data-theme] #page-settings .settings-box h3{font-size:18px;margin:0 0 10px}
html[data-theme] #page-settings .settings-general-form>small{grid-column:1/-1;font-size:11px;line-height:1.6;background:var(--surface-2);padding:10px 12px;border-radius:9px}
html[data-theme] #page-settings .profile-avatar-box{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
html[data-theme] #page-settings .settings-box :is(input:not([type="checkbox"]),select,textarea){box-sizing:border-box;max-width:100%;font-size:13px}
html[data-theme] #app .product-loading{padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:13px;line-height:1.6}
html[data-theme] #app :is(.runtime-pill,.status-pill){max-width:100%;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
@media(max-width:1050px){html[data-theme] #page-knowledge .knowledge-layout{grid-template-columns:1fr!important}html[data-theme] #page-knowledge #knowledgeSpaces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px}}
@media(max-width:620px){html[data-theme] #page-knowledge #knowledgeSpaces{grid-template-columns:1fr}html[data-theme] #page-knowledge .document-row{grid-template-columns:1fr;gap:7px}.document-row .actions{justify-content:flex-start}html[data-theme] #page-settings .settings-box{padding:16px!important}}
/* Consistent long-content/error states across current DOM. */
html[data-theme] #app .product-error{padding:20px;border:1px solid var(--danger);border-radius:14px;background:var(--surface);color:var(--text);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
html[data-theme] #app .product-error h3{font-size:17px;margin:0 0 8px}
html[data-theme] #app .product-error p{max-width:720px;margin:8px 0 14px}
html[data-theme] #app :is(#wcStatus,#chat058Status,#knowledgeUploadStatus){font-size:12px;line-height:1.6;overflow-wrap:anywhere}
html[data-theme] #app :is(#wcStatus,#chat058Status,#knowledgeUploadStatus):empty{display:none}
html[data-theme] #app :is(.chat-attachment-card-201,.chat-history-item,.integration-card-058,.alert-card-058,.document-row){min-width:0;overflow-wrap:anywhere}
html[data-theme] #page-askai .chat-attachment-card-201 pre{max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:11px;padding:12px;background:var(--surface-2);border-radius:9px}
html[data-theme] #page-askai .chat-attachment-card-201 summary{cursor:pointer;font-size:12px;line-height:1.5}
html[data-theme] #app :is(.settings-box,.integration-card-058,.agent-editor-v2) input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;accent-color:var(--accent)}
html[data-theme] #app :is(.settings-box,.integration-card-058) input[type="color"]{min-height:40px;padding:4px;width:64px}
html[data-theme] #app :is(button,a.primary,a.secondary){white-space:normal;line-height:1.35}
html[data-theme] #app :is(.page-hero,.toolbar,.card-row-058){min-width:0;gap:14px}
html[data-theme] #app .page-hero>div{min-width:0}
html[data-theme] #app button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}
html[data-theme] #app .nav-group-title[hidden]{display:none!important}
@media(max-width:620px){html[data-theme] #app :is(.page-hero,.toolbar){flex-wrap:wrap}html[data-theme] #app :is(.page-hero,.toolbar)>button{max-width:100%}html[data-theme] #page-integrations .card-row-058{flex-wrap:wrap}html[data-theme] #app .product-error{padding:16px}}
/* Canonical work-centre geometry: no competing sidebar layout. */
html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198,
html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198.has-detail-288{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px;min-width:0}
html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198>.dt-task-list-150{min-width:0;margin:0}
html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198 .dt-kanban-150{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));grid-auto-flow:row;gap:14px;overflow-x:auto;align-items:start}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070{position:fixed!important;inset:7vh max(18px,calc((100vw - 880px)/2))!important;width:auto!important;height:auto;margin:0!important;max-height:86vh;overflow-y:auto;overscroll-behavior:contain;padding:24px!important}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 .dt-task-detail-head-070{margin:0 0 14px;top:-24px;padding:12px 0}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 :is(#taskEdit070,.dt-task-move-150,.dt-task-transfer-150){padding:0}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #page-work .dt-work-area-198 .dt-kanban-150{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:84%;scroll-snap-type:x mandatory;scroll-padding-inline:5px;overscroll-behavior-x:contain;scrollbar-width:thin;touch-action:pan-x pan-y;padding-bottom:12px}html[data-ui-style="executive"][data-theme] #page-work .dt-kanban-column-150{scroll-snap-align:start}html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070{inset:12px!important;max-height:calc(100dvh - 24px);padding:16px!important}html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 .dt-task-detail-head-070{top:-16px}}
/* RC156: screen-level geometry owns the cascade, including executive theme. */
html[data-ui-style="executive"][data-theme] #app .page.active{max-width:1480px;padding:22px 28px!important;gap:18px}
html[data-ui-style="executive"][data-theme] #app .page .page-hero{padding:20px 24px!important;min-height:0!important;margin:0 0 18px!important;border-radius:18px;background:var(--surface);box-shadow:none}
html[data-ui-style="executive"][data-theme] #app .page .page-hero h2{font-size:24px;line-height:1.25;margin:0 0 6px}
html[data-ui-style="executive"][data-theme] #app .page .page-hero p{font-size:13px;line-height:1.5;margin:0;max-width:780px}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;align-items:stretch}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-item{display:flex!important;flex-direction:column;justify-content:flex-start;min-height:104px!important;height:auto!important;padding:14px!important;gap:7px;border-radius:12px}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-item b{font-size:18px;line-height:1.3}
html[data-ui-style="executive"][data-theme] #page-home .server-usage-ring-286{width:48px!important;height:48px!important;align-self:flex-end;margin-top:-30px}
html[data-ui-style="executive"][data-theme] #page-home .server-usage-ring-286 span{font-size:11px}
html[data-ui-style="executive"][data-theme] #page-home .server-usage-caption-218{font-size:10px}
html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr)!important;gap:10px 24px;padding:20px!important}
html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;margin-top:4px!important;padding:16px!important;background:var(--surface-2)}
html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel :is(.eyebrow,h3,p){grid-column:1/-1;margin:0;font-size:12px;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel :is(select,button){margin:0;min-height:38px;border-radius:10px}
html[data-ui-style="executive"][data-theme] #page-agents .agent-v2-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important;gap:16px;align-items:start}
html[data-ui-style="executive"][data-theme] #page-agents .agent-v2-card{min-height:0!important;height:auto!important;padding:20px!important;border-radius:16px}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-layout{display:grid!important;grid-template-columns:240px minmax(0,1fr) 220px!important;gap:14px;align-items:stretch}
html[data-ui-style="executive"][data-theme] #page-askai :is(.ai-chat-history,.dt-chat-rail-158){min-width:0;padding:16px!important;border-radius:14px}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-workspace{min-width:0;overflow:hidden;border-radius:16px}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-messages-v58{min-height:300px!important;height:clamp(300px,48vh,600px)!important;overflow-y:auto;padding:20px!important}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-compose-v58{display:flex!important;gap:10px;align-items:flex-end;padding:0!important}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-compose-v58 textarea{flex:1;width:100%!important;min-width:0;min-height:76px;max-height:200px;margin:0}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-compose-v58 button{width:auto!important;flex:0 0 auto;min-height:42px;padding:10px 20px}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-settings-layout-287{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-settings-section-287{padding:18px;gap:12px}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-settings-section-287 textarea{min-height:72px!important;height:72px}
.widget-setup-nav-298{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-design-section-287>.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-preview{max-width:340px;margin:16px auto;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px #00000012}
html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-layout{grid-template-columns:240px minmax(0,1fr)!important;gap:16px}
html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-memory-panel{min-height:0!important;padding:18px!important}
html[data-ui-style="executive"][data-theme] #page-knowledge #memoryEntries{max-height:360px!important;overflow-y:auto}
html[data-ui-style="executive"][data-theme] #page-work .crm-task-table-288{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
html[data-ui-style="executive"][data-theme] #page-work .crm-task-table-288 :is(th,td){padding:14px 16px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}
html[data-ui-style="executive"][data-theme] #page-work .crm-task-table-288 th{background:var(--surface-2);font-size:11px;color:var(--muted)}
html[data-ui-style="executive"][data-theme] #page-work .crm-task-table-288 tbody tr:hover{background:var(--surface-2)}
html[data-ui-style="executive"][data-theme] #page-audit .alerts-grid-058{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:14px}
html[data-ui-style="executive"][data-theme] #page-audit :is(.alert-card-058,.alert-event-210){padding:16px!important;border-radius:14px;min-height:0!important;font-size:13px;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-settings .settings-box{padding:20px!important;min-height:0!important;border-radius:16px}
@media(max-width:1150px){html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-layout{grid-template-columns:210px minmax(0,1fr)!important}html[data-ui-style="executive"][data-theme] #page-askai .dt-chat-rail-158{grid-column:1/-1}}
@media(max-width:760px){html[data-ui-style="executive"][data-theme] #app .page.active{padding:16px!important}html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card{grid-template-columns:1fr!important}html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.agent-costs{grid-column:1!important;grid-row:auto!important}html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-layout{grid-template-columns:minmax(0,1fr)!important}html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-history{max-height:180px;overflow:auto}html[data-ui-style="executive"][data-theme] #page-askai .dt-chat-rail-158{grid-column:1}html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-settings-layout-287,html[data-ui-style="executive"][data-theme] #page-knowledge .knowledge-layout{grid-template-columns:1fr!important}}
@media(max-width:480px){html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel{grid-template-columns:1fr}html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-compose-v58{flex-wrap:wrap}html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-compose-v58 button{width:100%!important}html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-design-section-287>.settings-grid{grid-template-columns:1fr}}
/* RC157: actual selected-employee workspace and conversation states. */
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:start;gap:18px}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159 .agent-v2-grid{grid-template-columns:1fr!important;gap:8px}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159 .agent-v2-card{padding:14px 14px 14px 58px!important;min-height:90px!important}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159 .agent-v2-card .runtime-pill{position:static;transform:none;margin-top:8px;max-width:100%}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-detail-159{padding:20px;border-radius:16px;min-width:0}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-detail-159 .chief-profile-card{padding:0!important;border:0;box-shadow:none;background:transparent}
html[data-ui-style="executive"][data-theme] #page-agents .chief-autonomy-panel :is(h4,.muted){grid-column:1/-1;margin:0;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-selected-159 h3{font-size:24px;margin:8px 0}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-detail-tabs-165{display:flex;gap:8px;border-bottom:1px solid var(--border);padding-bottom:12px;margin:16px 0}
html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-cost-row-165{display:flex;justify-content:space-between;gap:12px;padding:16px;background:var(--surface-2);border-radius:12px;margin-bottom:10px}
html[data-ui-style="executive"][data-theme] #app .page :is(.chief-profile-card,.dt-agent-selected-159,.widget-settings-section-287,.dt-chat-rail-158)[hidden]{display:none!important}
html[data-ui-style="executive"][data-theme] #page-askai .chat-message-v58{width:fit-content;max-width:90%;padding:14px 18px;border:1px solid var(--border);border-radius:16px;margin:0 0 14px;background:var(--surface-2);font-size:14px;line-height:1.7;overflow-wrap:anywhere;min-width:0}
html[data-ui-style="executive"][data-theme] #page-askai .chat-message-v58.user{margin-left:auto;background:color-mix(in srgb,var(--accent) 9%,var(--surface));border-color:color-mix(in srgb,var(--accent) 22%,var(--border))}
html[data-ui-style="executive"][data-theme] #page-askai .message-role-v58{font-size:11px;font-weight:700;color:var(--muted);margin-bottom:7px}
html[data-ui-style="executive"][data-theme] #page-askai .message-usage-v58{display:flex;gap:10px;font-size:10px;color:var(--muted);margin-top:10px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-attachment-grid-201{display:grid;gap:8px;min-width:0}
html[data-ui-style="executive"][data-theme] #page-askai .chat-attachment-card-201{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
html[data-ui-style="executive"][data-theme] #page-askai #chat058Status:not(:empty){margin:12px 0 0;padding:12px 14px;background:var(--surface-2);border-radius:10px;border-left:3px solid var(--accent)}
html[data-ui-style="executive"][data-theme] #page-askai #chat058Status.error{border-left-color:var(--danger)}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 #widgetHistoryPane[open]{display:grid;grid-template-columns:280px minmax(0,1fr);gap:12px;align-items:start}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 #widgetHistoryPane> :not(.wc-history-list):not(.wc-history-messages){grid-column:1/-1}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .wc-history-list{display:flex;flex-direction:column;gap:8px;max-height:560px;overflow:auto}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .wc-history-list button{padding:14px!important;font-size:12px;line-height:1.5;text-align:left}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .wc-history-list button[aria-pressed="true"]{border-color:var(--accent);background:var(--surface-2)}
.widget-message-299{max-width:90%;padding:12px 15px;border-radius:14px;border:1px solid var(--border);background:var(--surface);margin:12px 0;overflow-wrap:anywhere}
.widget-message-299.visitor{margin-left:auto;background:color-mix(in srgb,var(--accent) 9%,var(--surface))}
.widget-message-299 strong{font-size:11px;color:var(--muted)}.widget-message-299 p{white-space:pre-wrap;font-size:13px;line-height:1.6;margin:6px 0 0}
.widget-operator-299{padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);margin-bottom:16px}
.widget-operator-299 textarea{width:100%;min-height:76px;box-sizing:border-box}.widget-operator-299 button{margin:8px 8px 0 0}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 .dt-task-detail-head-070{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;background:var(--surface);z-index:2}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 textarea{width:100%;box-sizing:border-box;min-height:140px;max-height:320px;resize:vertical;line-height:1.65}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 .dt-task-result-070{padding:16px;border-left:3px solid var(--accent);border-radius:10px;background:var(--surface-2);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
html[data-ui-style="executive"][data-theme] #page-audit .alert-event-210 summary{display:flex;justify-content:space-between;gap:14px;align-items:center;cursor:pointer}
html[data-ui-style="executive"][data-theme] #page-audit .alert-event-210 summary small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}
html[data-ui-style="executive"][data-theme] #page-audit .alert-event-210 pre{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:var(--surface-2);padding:14px;border-radius:10px}
@media(max-width:1000px){html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159{grid-template-columns:260px minmax(0,1fr)}html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-detail-159 .chief-profile-card{grid-template-columns:1fr!important}html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.agent-costs{grid-column:1!important;grid-row:auto!important}}
@media(max-width:760px){html[data-ui-style="executive"][data-theme] #page-agents .dt-agent-workspace-159{grid-template-columns:1fr}html[data-ui-style="executive"][data-theme] #webchatAdmin120 #widgetHistoryPane[open]{grid-template-columns:1fr}html[data-ui-style="executive"][data-theme] #webchatAdmin120 .wc-history-list{max-height:220px}html[data-ui-style="executive"][data-theme] #page-askai .chat-message-v58{max-width:100%;padding:12px}.widget-message-299{max-width:100%}}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 #widgetHistoryPane[hidden]{display:none!important}
/* CRM final working toolbar: compact filters, clear list/board, task dialog. */
html[data-ui-style="executive"][data-theme] #page-work .crm-commandbar-300{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:16px 18px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.crm-commandbar-300>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crm-commandbar-300 strong{font-size:18px}.crm-commandbar-300 [role="status"]{font-size:12px;color:var(--muted)}
.crm-commandbar-300 a{display:inline-flex;text-decoration:none;align-items:center;min-height:38px;padding:8px 14px;box-sizing:border-box;border-radius:10px}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-query-150{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;padding:16px!important;min-height:0!important}
html[data-ui-style="executive"][data-theme] #page-work #taskSearch150{display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex:1 1 300px}
html[data-ui-style="executive"][data-theme] #page-work #taskSearch150 label{width:100%;font-size:12px}
html[data-ui-style="executive"][data-theme] #page-work #taskSearch150 input{flex:1;min-width:160px;width:auto;margin:0}
html[data-ui-style="executive"][data-theme] #page-work .crm-view-options-288{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:0!important}
html[data-ui-style="executive"][data-theme] #page-work .crm-view-options-288 label{display:flex;flex-direction:column;gap:5px;font-size:11px;min-width:130px}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150>div{padding:14px!important;min-height:0!important;border-radius:12px}
html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150 b{font-size:22px}
html[data-ui-style="executive"][data-theme] #page-work .crm-table-scroll-288{overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
html[data-ui-style="executive"][data-theme] #page-work .crm-task-title-288{display:flex;gap:8px;text-align:left;align-items:baseline;border:0;background:transparent;padding:0;min-height:28px;color:var(--text)}
html[data-ui-style="executive"][data-theme] #page-work .crm-task-excerpt-288{font-size:11px;color:var(--muted);margin:5px 0 0;max-width:480px;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-work .dt-work-filters-070{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
html[data-ui-style="executive"][data-theme] #page-work .dt-kanban-column-150{border:1px solid var(--border);border-radius:14px;background:var(--surface-2);padding:12px;min-width:0}
html[data-ui-style="executive"][data-theme] #page-work .dt-kanban-card-150{padding:14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);margin-bottom:10px;overflow-wrap:anywhere}
@media(max-width:900px){html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){html[data-ui-style="executive"][data-theme] #page-work .crm-commandbar-300{align-items:stretch;flex-direction:column}html[data-ui-style="executive"][data-theme] #page-work .dt-task-query-150{padding:12px!important}html[data-ui-style="executive"][data-theme] #page-work .crm-task-table-288{min-width:680px}html[data-ui-style="executive"][data-theme] #page-work .dt-task-kpi-150{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* RC159 home: two useful columns, no repeated system counts or uneven spacer rows. */
html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)!important;gap:16px;align-items:start;margin:16px 0!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-163{padding:18px!important;min-height:0!important;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-163>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;font-size:14px;list-style:none}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-163>summary span{font-size:11px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-163 progress{margin:12px 0;width:100%}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-attention-163{padding:18px!important;min-height:0!important;box-shadow:none;border-radius:14px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-attention-row-163{padding:12px 14px;margin-top:8px;border-radius:10px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)!important;gap:16px;align-items:start;margin:0 0 16px!important}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175>.panel{margin:0!important;min-height:0!important;padding:20px!important;border-radius:14px;box-shadow:none}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-175 .finance-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px;margin-top:16px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-175 .metric-card{min-height:0!important;padding:14px!important;border-radius:12px}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-175 .metric-card:first-child{grid-column:1/-1;background:var(--surface-2);border:0}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-175 .metric-card:first-child .metric-value{font-size:30px;margin:6px 0}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-quick-row-175{padding:14px;margin-top:8px;border-radius:10px}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card::after{display:none!important}
html[data-ui-style="executive"][data-theme] #page-home .dashboard-grid .metric-card{min-height:0!important;padding:18px!important}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:8px;min-height:112px!important}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-item>.muted{grid-column:1/-1;min-height:30px;line-height:1.35;font-size:11px}
html[data-ui-style="executive"][data-theme] #page-home .server-usage-ring-286{grid-column:2;grid-row:2/4;align-self:center;margin:0!important;width:44px!important;height:44px!important}
html[data-ui-style="executive"][data-theme] #page-home .server-usage-caption-218{grid-column:1;font-size:10px}
html[data-ui-style="executive"][data-theme] #page-home .server-readable-item>.money-small{grid-column:1/-1;line-height:1.45;font-size:10px}
@media(max-width:1000px){html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-175 .finance-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){html[data-ui-style="executive"][data-theme] #page-home .dt-home-workspace-163,html[data-ui-style="executive"][data-theme] #page-home .dt-home-lower-175{grid-template-columns:1fr!important}}
@media(max-width:420px){html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-175 .finance-grid{grid-template-columns:1fr!important}html[data-ui-style="executive"][data-theme] #page-home .dt-home-setup-163>summary{align-items:start;flex-direction:column}}
/* RC160: phone inputs, touch targets and containment of wide workspaces. */
@media(max-width:760px){
html[data-ui-style="executive"][data-theme] #app .page.active{width:100%!important;max-width:100%;box-sizing:border-box;padding:14px!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
html[data-ui-style="executive"][data-theme] #app .page :is(.panel,fieldset,.settings-box,.ai-chat-workspace,.dt-agent-list-159,.dt-agent-detail-159){min-width:0;max-width:100%;box-sizing:border-box}
html[data-ui-style="executive"][data-theme] #app :is(input:not([type="checkbox"]):not([type="color"]),select,textarea),html[data-theme] #agentV2Modal :is(input:not([type="checkbox"]),select,textarea){font-size:16px!important;max-width:100%;box-sizing:border-box}
html[data-ui-style="executive"][data-theme] #app :is(button,a.primary,a.secondary){min-height:44px}
html[data-ui-style="executive"][data-theme] #app :is(.settings-tabs-140,.dt-assignee-tabs-150,.channel-platform-tabs,.dt-task-view-switch-150){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-modelbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
html[data-ui-style="executive"][data-theme] #page-askai .ai-chat-modelbar>div{min-width:0}
html[data-ui-style="executive"][data-theme] #page-askai .chat-attachment-row-201{display:flex;flex-wrap:wrap;gap:8px}
html[data-ui-style="executive"][data-theme] #page-askai #chat058FilesName{min-width:0;overflow-wrap:anywhere;flex:1 1 160px}
html[data-ui-style="executive"][data-theme] #page-askai .chat-save-files-201{display:flex;gap:8px;align-items:start;line-height:1.5}
html[data-ui-style="executive"][data-theme] #page-askai .chat-save-files-201 input{flex:0 0 18px;width:18px!important}
html[data-ui-style="executive"][data-theme] #page-work .crm-table-scroll-288{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
html[data-ui-style="executive"][data-theme] #page-work dialog.dt-task-detail-070 .dt-task-form-grid-070{display:grid;grid-template-columns:1fr!important;gap:12px}
html[data-ui-style="executive"][data-theme] #page-settings :is(.settings-profile-grid,.settings-general-form){grid-template-columns:1fr!important;min-width:0}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-instance-picker{display:flex!important;flex-direction:column;align-items:stretch;gap:10px}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-instance-picker label{width:100%;min-width:0}
html[data-ui-style="executive"][data-theme] #webchatAdmin120 .widget-metrics-292{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-ui-style="executive"][data-theme] #page-audit .alert-event-210 summary{align-items:start;flex-wrap:wrap}
html[data-ui-style="executive"][data-theme] #page-home .dt-home-cost-head-175{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
}
@media(max-width:360px){html[data-ui-style="executive"][data-theme] #page-home .server-readable-grid{grid-template-columns:1fr!important}html[data-ui-style="executive"][data-theme] #app .page .page-hero h2{font-size:21px}html[data-ui-style="executive"][data-theme] #page-agents .chief-profile-card>.agent-costs{grid-template-columns:1fr!important}}

/* Simple account access, Settings / Profile. */
#adminAccess302 form{display:grid;gap:14px;padding:18px;border:1px solid var(--border,#dfe7e9);border-radius:14px;margin:14px 0}
#adminAccess302 fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;border:0;padding:10px 0}
#adminAccess302 label{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#adminAccess302 label:has(input:not([type=checkbox])){display:grid}
#adminAccess302 input[type=checkbox]{width:18px;height:18px;flex:none}
#adminAccess302 button{justify-self:start;min-height:44px}
@media(max-width:600px){#adminAccess302 form{padding:12px}#adminAccess302 fieldset{grid-template-columns:1fr}#adminAccess302 button{width:100%}}
/* RC172: help owns a normal-flow row; alert cards never inherit table columns. */
html[data-theme] #app .section-help-row-308{display:flex;justify-content:flex-end;align-items:center;margin:0 0 12px;min-width:0}
html[data-theme] #app .section-help-row-308>.help-inline-button{position:static;transform:none;width:auto;min-height:36px;height:auto;padding:8px 12px;gap:8px;border-radius:10px;white-space:normal}
html[data-ui-style="executive"][data-theme] #page-audit .alerts-grid-058.dt-alert-list-169{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:12px!important;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-list-169 .alert-card-058{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;min-width:0;min-height:0;padding:18px!important;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:14px;background:var(--surface);overflow-wrap:anywhere}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-list-169 .alert-card-058.warn{border-left-color:#d99124}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-list-169 .alert-card-058.error{border-left-color:#d94444}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-list-169 .alert-card-058>*{position:static!important;transform:none!important;grid-column:auto!important;max-width:100%;min-width:0;margin:0}
html[data-ui-style="executive"][data-theme] #page-audit .dt-alert-list-169 .alert-card-058 .runtime-pill{align-self:flex-start;width:auto;white-space:normal}
html[data-ui-style="executive"][data-theme] #page-audit .alert-event-details-210{width:100%}
html[data-ui-style="executive"][data-theme] #page-audit .alert-event-details-210 pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:620px){html[data-theme] #app .section-help-row-308{justify-content:flex-start}html[data-ui-style="executive"][data-theme] #page-audit .alerts-grid-058.dt-alert-list-169{grid-template-columns:minmax(0,1fr)!important}}
