/* R52: teal chrome, restrained accents and readable shared surfaces. */
body.crm-unified,body.workspace-home-body,body.crm-workbooks{--crm-accent:#176c70;--crm-ink:#193d43;--crm-muted:#52696e;--crm-line:#d4e2e1}
/* Gold is reserved for small marks on dark chrome, never a selected surface. */
body.crm-unified :is(.module-view-tabs,.module-section-links)>a.active,
body.crm-unified .module-primary>a.active,
body.crm-unified #main-content .header-nav :is(a.active,button.active,[aria-current="page"],[aria-pressed="true"]),
body.crm-unified .app-main :is(.tabs,.compact-tabs) a.active{background:#e4f1ef!important;color:#164c52!important;border-color:#bdd8d5!important;box-shadow:inset 3px 0 #287e80!important;background-image:none!important}
body.crm-unified :is(.module-nav-icon,.module-primary .nav-icon),
body.crm-unified #personal-dashboard .pd-shortcut .crm-action-icon{background:transparent;color:#287078;padding:1px;box-shadow:none;border-radius:4px}
body.crm-unified :is(.module-nav-icon,.module-primary .nav-icon,.pd-shortcut .crm-action-icon) .crm-icon-accent{stroke:#287078!important}
body.crm-unified .module-primary>a,body.crm-unified .module-direct-actions>a{background:#f8fbfa!important;color:#244d54!important;border-color:#d4e2e1!important;box-shadow:none!important;text-shadow:none!important}
body.crm-unified .module-primary>a.active{background:#e4f1ef!important;box-shadow:inset 3px 0 #287e80!important}
body.crm-unified :is(.module-primary,.module-view-tabs,.module-section-links) a:hover{background:#edf5f3!important;color:#164c52!important}
body.crm-unified .module-nav-label{overflow-wrap:anywhere;font-weight:400}
body.crm-unified :is(.module-primary,.module-view-tabs,.module-section-links) a.active .module-nav-label{font-weight:600}
body.crm-unified .topbar .avatar,#workspace-home .dh-avatar,#workspace-home .dh-logo{background:#d9ece8;color:#164c52;border-color:#8cb5b0}
#workspace-home .dh-access-badge{background:#e6f2ef;color:#285f64;border-color:#b9d9d4}
#workspace-home .dh-banner .dh-button-icon{background:#eaf3f1;color:#287078;box-shadow:none}
#workspace-home .dh-banner .dh-button-icon .crm-icon-accent{stroke:#287078!important}
body.crm-unified .module-hanger-home .home-tile-icon{background:#eaf3f1!important;color:#287078!important}
body.crm-unified .module-hanger-home .home-tile-icon :is(.crm-line-icon,.crm-icon-accent){color:#287078!important;stroke:#287078!important}

/* Contrast must be explicit: these controls sit inside a white-text toolbar. */
body.crm-unified .topbar .topbar-punch-time{flex-direction:row;align-items:center;gap:5px;min-width:0;min-height:34px;padding:6px 8px;box-sizing:border-box;background:#e9f3f1;color:#214f55;border:1px solid #bdd6d2;font-size:12px}
body.crm-unified .topbar .topbar-punch-time strong{color:#214f55;font-weight:600;font-variant-numeric:tabular-nums}
body.crm-unified .topbar .global-search input,#workspace-home .dh-search input{color:#193d43;caret-color:#193d43;min-width:0;text-shadow:none}
body.crm-unified .topbar .global-search input::placeholder,#workspace-home .dh-search input::placeholder{color:#52696e;opacity:1}
body.crm-unified .topbar .user-menu>div>a{display:flex;align-items:center;gap:8px;background:#fff!important;color:#244d54!important;border:1px solid #d4e2e1!important;border-radius:7px;box-shadow:none!important;text-shadow:none!important;padding:8px 10px;min-height:36px;white-space:normal;overflow-wrap:anywhere}
body.crm-unified .topbar .user-menu>div>a:hover{background:#eaf3f1!important}
body.crm-unified .topbar .user-menu>div>a .crm-action-icon{color:#287078}
body.crm-unified .topbar .user-menu>div>a .crm-icon-accent{stroke:#287078!important}

/* Keep the page title teal; use quieter section headings beneath it. */
body.crm-unified #main-content :is(.executive-header,.page-head){gap:12px;flex-wrap:wrap;min-width:0}
body.crm-unified #main-content .executive-header .header-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;flex:1 1 320px}
body.crm-unified #main-content :is(.executive-header,.page-head) :is(h1,h2,p,small){max-width:100%;overflow-wrap:anywhere;white-space:normal}
body.crm-unified #main-content .executive-header .header-copy>p:not(.eyebrow){max-width:75ch;line-height:1.45}
body.crm-unified #main-content :is(.executive-header,.page-head) .eyebrow{color:#d5e9e6!important;font-size:10px;letter-spacing:.08em}
body.crm-unified #main-content .dashboard-header .header-copy{display:flex;grid-template-columns:none;gap:4px}
body.crm-unified #main-content .dashboard-header .header-copy>small{font-size:11px;color:#d5e9e6!important}
body.crm-unified #main-content :is(.panel-head,.section-head),
body.crm-unified #main-content :is(.panel,.form-panel)>h2{background:#f2f7f5!important;color:#193d43!important;border-color:#d4e2e1;box-shadow:none}
body.crm-unified #main-content :is(.panel-head,.section-head) :is(h2,h3,p,small,.eyebrow){color:#244d54!important}
body.crm-unified #main-content :is(.panel-head,.section-head) :is(button,a.button,a.secondary,a.mini,summary):not(.danger):not(.reject):not(.delete):not(.link-button){background:#fff!important;color:#24545b!important;border-color:#c6dcd8!important;box-shadow:0 1px 3px #193d4309!important}
body.crm-unified #main-content :is(.panel-head,.section-head) :is(button,a.button,a.secondary,a.mini,summary):hover:not(:disabled){background:#e4f1ef!important}
body.crm-unified #main-content :is(.panel-head,.section-head) .crm-action-icon{color:#287078}
body.crm-unified .dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
body.crm-unified .dashboard-summary>a{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px solid #d4e2e1;border-top:3px solid #287e80;border-radius:10px;background:#fff;color:#193d43;box-shadow:0 2px 8px #193d4308;min-width:0;overflow-wrap:anywhere;text-decoration:none}
body.crm-unified .dashboard-summary span{font-size:13px;line-height:1.4}
body.crm-unified .dashboard-summary strong{font-size:25px;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums}
body.crm-unified .header-metrics a{background:#f6faf8!important;background-image:none!important;color:#214f55!important;border:1px solid #bdd6d2!important;border-radius:10px;box-shadow:none!important;text-shadow:none!important}
body.crm-unified #main-content :is(.panel-head,.section-head) .crm-icon-accent{stroke:#287078!important}
body.crm-unified #personal-dashboard .pd-header-columns{background:#f6f9f8}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns>a{border-top-color:#287e80;background:#fff}
body.crm-unified #personal-dashboard .pd-shortcut>a{background:#f8fbfa!important;color:#244d54!important;border-color:#d4e2e1!important;box-shadow:none!important}
body.crm-unified #personal-dashboard .pd-row{line-height:1.45;gap:8px}
body.crm-unified #personal-dashboard .pd-row>a{flex:1 1 140px;min-width:0}
body.crm-unified #personal-dashboard .pd-columns strong{font-weight:600;font-variant-numeric:tabular-nums}

/* No horizontally frozen text columns: content remains readable at every scroll offset. */
body.crm-unified .record-list-form :is(.identity-column,.actions-column){position:static;left:auto;right:auto;box-shadow:none}
body.crm-unified .record-list-form thead :is(.identity-column,.actions-column){position:sticky;top:0;z-index:4}
body.crm-unified .record-list-form .selection-column{box-sizing:border-box;width:40px;min-width:40px;max-width:40px}
body.crm-unified .record-list-form .identity-column{min-width:200px;max-width:260px}
body.crm-unified .record-list-form .identity-column :is(a,small){display:block;max-width:260px;overflow-wrap:anywhere;white-space:normal}
body.crm-unified .record-list-form .business-cell{min-width:130px;max-width:250px;white-space:normal;overflow-wrap:anywhere;word-break:normal}
body.crm-unified .record-list-form .business-cell>span{display:block;max-width:250px;overflow-wrap:anywhere}
body.crm-unified .record-list-form .table-wrap{scroll-padding:40px;overscroll-behavior:contain}
body.crm-unified .applications-table td{max-width:270px;white-space:normal;overflow-wrap:anywhere}
body.crm-unified .applications-table .row-actions{min-width:130px}
.event-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;min-width:0;line-height:1.45}
.event-heading>strong{font-size:12px;font-weight:400;color:#52696e;flex-shrink:0}
.event-heading>a{font-weight:600;overflow-wrap:anywhere;min-width:0}
.timeline article>div{min-width:0}.timeline article p{overflow-wrap:anywhere;line-height:1.5}

/* Search popover: concise navigation and permitted records, optional grounded guidance. */
body.crm-unified .search-navigator{background:#fff;color:#193d43;border:1px solid #c6dcd8;box-shadow:0 12px 32px #193d4326;padding:10px;line-height:1.45;overflow:auto;overscroll-behavior:contain}
.search-navigator .navigator-heading{gap:10px;border-bottom:1px solid #e3ece9;padding-bottom:8px;margin-bottom:6px}
.search-navigator .navigator-record,.search-navigator .navigator-shortcut{display:block;padding:8px;border-radius:6px;overflow-wrap:anywhere;white-space:normal;color:#245f66;text-decoration:none}
.search-navigator .navigator-record:hover,.search-navigator .navigator-shortcut:hover{background:#edf5f3}
.search-navigator .navigator-record small{display:block;color:#52696e;font-size:11px;font-weight:400;margin-top:2px}
.search-navigator article{padding:10px;margin:6px 0;background:#f5f9f8;border:1px solid #dce8e4;border-radius:8px}
.search-navigator article h3{font-size:14px;line-height:1.4;margin:3px 0 6px;overflow-wrap:anywhere}
.search-navigator article p{font-size:13px;margin:4px 0 8px;overflow-wrap:anywhere}
.search-navigator .navigator-actions{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px}
body.crm-unified .search-navigator [hidden]{display:none!important}
@media(max-width:700px){body.crm-unified .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.crm-unified .dashboard-summary>a{padding:10px}body.crm-unified #main-content .executive-header .header-copy{flex-basis:100%}body.crm-unified .record-list-form .identity-column{min-width:170px}body.crm-unified .record-list-form .business-cell{min-width:120px}}
@media(prefers-reduced-motion:reduce){body.crm-unified :is(.module-nav-icon,.nav-icon,.crm-action-icon,.home-tile-icon) *{animation:none!important;transition:none!important}}

body.crm-unified .record-workflow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;min-height:0;margin-bottom:12px}
body.crm-unified .record-workflow :is(h2,p){margin:0;line-height:1.4}
body.crm-unified .record-workflow .row-actions{margin:0;gap:8px}
@media(min-width:851px){body.crm-unified .module-layout:has(.module-section-links) .form-step-nav{display:none}}
