/* Colour is reserved for workflow context; the shell remains neutral. */
:root { --workflow-summary-gradient: linear-gradient(110deg, #e8f0f7 0%, #f0ecf6 48%, #f8eee5 100%); }
.workspace-metrics {
  background: linear-gradient(110deg, #e8f0f7 0%, #f0ecf6 48%, #f8eee5 100%);
}

.metric:nth-child(1) .metric-icon { background: #e6f0f7; color: #587b91; }
.metric:nth-child(2) .metric-icon { background: #f2eaf7; color: #79638d; }
.metric:nth-child(3) .metric-icon { background: #f8ece6; color: #9a6b58; }
.metric:nth-child(4) .metric-icon { background: #e8f1e8; color: #58785d; }

.hub-column { background: #eaf1f7; }
.hub-column:nth-child(2) { background: #f0ecf6; }
.hub-column:nth-child(3) { background: #f8eee5; }
.hub-column:nth-child(4) { background: #e8f1e8; }

.hub-column .hub-item { background: #ffffffed; }
.hub-column[data-drop-status="To Review"] h3 { color: #466d87; }
.hub-column[data-drop-status="In Negotiation"] h3 { color: #715c87; }
.hub-column[data-drop-status="Drafted in SPA"] h3 { color: #95634c; }
.hub-column[data-drop-status="Satisfied/Closed"] h3 { color: #527657; }

.hub-tags .hub-stage { background: #edf0f5; color: #52677a; }
.hub-summary-tile:nth-child(2) .hub-count { background: #f0eaf6; color: #705c86; }
.hub-summary-tile:nth-child(3) .hub-count { background: #f8ede6; color: #966750; }

.logic-action .logic-icon { background: #e9f0f7; color: #557693; }
.logic-action:nth-of-type(even) .logic-icon { background: #f1ebf6; color: #77638b; }
.library-view .action-item:nth-child(3n + 2) .action-symbol { background: #f2ebf7; color: #79638c; }
.library-view .action-item:nth-child(3n) .action-symbol { background: #f8eee7; color: #956b56; }

/* Shared action colours for Core M&A, Actions by Issue, and Apply Deal Lens. Deal Hub stays uncoloured. */
.library-view .action-item[data-core-icon="search"] .action-symbol, .playbook-card[data-core-icon="search"] .action-symbol, .logic-action[data-core-icon="search"] .logic-icon, .explore-categories .category-symbol[data-core-icon="search"] { background: #e7eef2; color: #547083; }
.library-view .action-item[data-core-icon="wrench"] .action-symbol, .playbook-card[data-core-icon="wrench"] .action-symbol, .logic-action[data-core-icon="wrench"] .logic-icon, .explore-categories .category-symbol[data-core-icon="wrench"] { background: #f1eaf7; color: #76628d; }
.library-view .action-item[data-core-icon="handshake"] .action-symbol, .playbook-card[data-core-icon="handshake"] .action-symbol, .logic-action[data-core-icon="handshake"] .logic-icon, .explore-categories .category-symbol[data-core-icon="handshake"] { background: #f8eee6; color: #986d57; }
.library-view .action-item[data-core-icon="circle-check"] .action-symbol, .playbook-card[data-core-icon="circle-check"] .action-symbol, .logic-action[data-core-icon="circle-check"] .logic-icon, .explore-categories .category-symbol[data-core-icon="circle-check"] { background: #e8f1e8; color: #55765d; }
.library-view .action-item[data-core-icon="file-pen-line"] .action-symbol, .playbook-card[data-core-icon="file-pen-line"] .action-symbol, .logic-action[data-core-icon="file-pen-line"] .logic-icon, .explore-categories .category-symbol[data-core-icon="file-pen-line"] { background: #e6f0f7; color: #567a94; }
.library-view .action-item[data-core-icon="shield-check"] .action-symbol, .playbook-card[data-core-icon="shield-check"] .action-symbol, .logic-action[data-core-icon="shield-check"] .logic-icon, .explore-categories .category-symbol[data-core-icon="shield-check"] { background: #f8f0d9; color: #8d7441; }
.library-view .action-item[data-core-icon="banknote"] .action-symbol, .playbook-card[data-core-icon="banknote"] .action-symbol, .logic-action[data-core-icon="banknote"] .logic-icon, .explore-categories .category-symbol[data-core-icon="banknote"] { background: #f6e8ed; color: #956477; }
.library-view .action-item[data-core-icon="file-search"] .action-symbol, .playbook-card[data-core-icon="file-search"] .action-symbol, .logic-action[data-core-icon="file-search"] .logic-icon, .explore-categories .category-symbol[data-core-icon="file-search"] { background: #e6f2f2; color: #4e777a; }
.library-view .action-item[data-core-icon="lock-keyhole"] .action-symbol, .playbook-card[data-core-icon="lock-keyhole"] .action-symbol, .logic-action[data-core-icon="lock-keyhole"] .logic-icon, .explore-categories .category-symbol[data-core-icon="lock-keyhole"] { background: #eeeaf5; color: #706384; }
.library-view .action-item[data-core-icon="arrow-down-up"] .action-symbol, .playbook-card[data-core-icon="arrow-down-up"] .action-symbol, .logic-action[data-core-icon="arrow-down-up"] .logic-icon, .explore-categories .category-symbol[data-core-icon="arrow-down-up"] { background: #f3ece4; color: #8b6c4e; }
.library-view .action-item[data-core-icon="calendar-check"] .action-symbol, .playbook-card[data-core-icon="calendar-check"] .action-symbol, .logic-action[data-core-icon="calendar-check"] .logic-icon, .explore-categories .category-symbol[data-core-icon="calendar-check"] { background: #e7f0ec; color: #537665; }
.library-view .action-item[data-core-icon="circle-arrow-right"] .action-symbol, .playbook-card[data-core-icon="circle-arrow-right"] .action-symbol, .logic-action[data-core-icon="circle-arrow-right"] .logic-icon, .explore-categories .category-symbol[data-core-icon="circle-arrow-right"] { background: #e9edf7; color: #576f9a; }
.library-view .action-item[data-core-icon="arrow-left-right"] .action-symbol, .playbook-card[data-core-icon="arrow-left-right"] .action-symbol, .logic-action[data-core-icon="arrow-left-right"] .logic-icon, .explore-categories .category-symbol[data-core-icon="arrow-left-right"] { background: #f2e9e4; color: #8a6255; }
.library-view .action-item[data-core-icon="ellipsis"] .action-symbol, .playbook-card[data-core-icon="ellipsis"] .action-symbol, .logic-action[data-core-icon="ellipsis"] .logic-icon { background: #eef0ef; color: #65716e; }

.map .map-title { border: 0; padding: 4px 8px; margin: -4px -8px; min-height: 28px; border-radius: 999px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.map .map-title:hover { background: var(--theme-selected, #dfe5e0); color: var(--ink); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .map .map-title { transition: none; } }
