/* Live Operations Dashboard: scoped visual system and responsive panel layout. */
#crm-dashboard-view.crm-live-root {
  --live-ink:#ecedff; --live-muted:#aeb6d1; --live-surface:#0d152a;
  --live-raised:#141e36; --live-line:#584477; --live-accent:#7738e6;
  --live-accent-soft:#231744; --live-green:#36cfa7;
  display:block; width:100%; max-width:none; margin:0; padding:12px 14px 22px;
  border:0; border-radius:18px; background:#080d1b; color:var(--live-ink);
  box-shadow:0 14px 48px #04071335;
  font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
#crm-dashboard-view.crm-live-root[hidden]{display:none!important}
#crm-dashboard-view.crm-live-root *{box-sizing:border-box}
#crm-dashboard-view.crm-live-root h2,#crm-dashboard-view.crm-live-root h3,#crm-dashboard-view.crm-live-root h4{color:#f5f4ff}
#crm-dashboard-view.crm-live-root a{color:#c5b0ff}
#crm-dashboard-view.crm-live-root a:hover{text-decoration:underline}
#crm-dashboard-view.crm-live-root .crm-live-toolbar{
  display:flex; align-items:center; justify-content:space-between;flex-wrap:wrap;
  gap:12px;padding:8px 6px 18px
}
#crm-dashboard-view.crm-live-root .crm-live-title{min-width:240px}
#crm-dashboard-view.crm-live-root .crm-live-title h2{font-size:clamp(20px,2.3vw,29px);letter-spacing:-.03em;margin:3px 0}
#crm-dashboard-view.crm-live-root .crm-live-title p{color:var(--live-muted);font-size:13px;margin:0}
#crm-dashboard-view.crm-live-root .crm-live-eyebrow{font-weight:800;letter-spacing:.10em;color:var(--live-green);font-size:10px}
#crm-dashboard-view.crm-live-root .crm-live-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#crm-dashboard-view.crm-live-root .crm-live-action,
#crm-dashboard-view.crm-live-root .crm-live-small,
#crm-dashboard-view.crm-live-root .crm-live-icon {
  background:#162039!important;color:#ebe8ff!important;border:1px solid #4e4a70!important;
  border-radius:9px!important;font-weight:650!important;cursor:pointer;text-decoration:none
}
#crm-dashboard-view.crm-live-root .crm-live-action{padding:8px 10px!important;font-size:12px!important;min-height:36px}
#crm-dashboard-view.crm-live-root .crm-live-primary{background:#6e32d6!important;border-color:#9865f4!important}
#crm-dashboard-view.crm-live-root .crm-live-small{padding:5px 8px!important;font-size:11px!important}
#crm-dashboard-view.crm-live-root .crm-live-tools button:hover,
#crm-dashboard-view.crm-live-root .crm-live-panel-actions button:hover{background:#40306c!important}
#crm-dashboard-view.crm-live-root button:focus-visible,
#crm-dashboard-view.crm-live-root a:focus-visible,
#crm-dashboard-view.crm-live-root input:focus-visible,
#crm-dashboard-view.crm-live-root select:focus-visible,
#crm-dashboard-view.crm-live-root .crm-live-divider:focus-visible{
  outline:3px solid #ffd272!important;outline-offset:3px
}
#crm-dashboard-view.crm-live-root .crm-live-date,
#crm-dashboard-view.crm-live-root .crm-live-search,
#crm-dashboard-view.crm-live-root .crm-live-member-filter{
  width:auto;min-height:36px;padding:7px 9px;background:#141f36;color:#f6f6ff;
  border:1px solid #535474;border-radius:8px;font-size:12px
}
#crm-dashboard-view.crm-live-root .crm-live-settings{
  margin:0 8px 16px auto;max-width:450px;padding:13px 15px;
  border:1px solid #7552ce;border-radius:12px;background:#171632;color:#fff;
  box-shadow:0 12px 25px #0006
}
#crm-dashboard-view.crm-live-root .crm-live-settings[hidden]{display:none!important}
#crm-dashboard-view.crm-live-root .crm-live-settings-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px
}
#crm-dashboard-view.crm-live-root .crm-live-widget-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px
}
#crm-dashboard-view.crm-live-root .crm-live-setting-row{
  display:flex;align-items:center;gap:8px;margin:0;padding:8px;border-radius:7px;
  background:#22213c;color:#eeeaff;font-size:12px;cursor:pointer
}
#crm-dashboard-view.crm-live-root .crm-live-setting-row input{width:16px;height:16px;accent-color:#9e72ff;margin:0}
#crm-dashboard-view.crm-live-root .crm-live-note{font-size:11px;color:#bfb6d7;margin:9px 0 0}
#crm-dashboard-view.crm-live-root .crm-live-layout{position:relative}
#crm-dashboard-view.crm-live-root .crm-live-grid{
  display:grid;grid-template-columns:var(--crm-live-cols,minmax(0,1fr) minmax(0,1fr));
  grid-auto-rows:minmax(400px,auto);align-items:stretch;gap:12px;
}
#crm-dashboard-view.crm-live-root .crm-live-panel{
  display:flex;flex-direction:column;min-height:390px;min-width:0;overflow:hidden;
  border:1px solid #6b508e;border-radius:15px;background:#11182c;
  box-shadow:inset 0 1px #ffffff13
}
#crm-dashboard-view.crm-live-root .crm-live-panel-heading{
  display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 13px;
  background:linear-gradient(180deg,#21213b,#15192e);border-bottom:1px solid #5d487a;
  cursor:grab;user-select:none
}
#crm-dashboard-view.crm-live-root .crm-live-panel-identity{display:flex;gap:9px;min-width:0;align-items:center}
#crm-dashboard-view.crm-live-root .crm-live-panel-labels{min-width:0}
#crm-dashboard-view.crm-live-root .crm-live-panel-labels h3{
  font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  margin:0;line-height:1.25
}
#crm-dashboard-view.crm-live-root .crm-live-panel-labels small{color:#b3a9d2;font-size:10px;display:block}
#crm-dashboard-view.crm-live-root .crm-live-symbol{
  display:grid;place-items:center;min-width:29px;height:29px;border-radius:8px;
  background:#34255e;color:#b893ff;font-size:20px;font-weight:800
}
#crm-dashboard-view.crm-live-root .crm-live-panel-actions{display:flex;gap:4px;align-items:center;flex-shrink:0}
#crm-dashboard-view.crm-live-root .crm-live-icon{
  display:inline-flex;align-items:center;justify-content:center;padding:0!important;
  width:29px;height:29px;min-height:29px;font-size:17px;line-height:1
}
#crm-dashboard-view.crm-live-root .crm-live-panel-body{
  min-height:0;min-width:0;flex:1;overflow:auto;padding:12px;
  scrollbar-color:#584678 #11182c
}
#crm-dashboard-view.crm-live-root .crm-live-state,
#crm-dashboard-view.crm-live-root .crm-live-empty{padding:18px 10px;color:#bdbfd9;font-size:13px;text-align:center}
#crm-dashboard-view.crm-live-root .crm-live-state.is-error{color:#ffbdbd}
#crm-dashboard-view.crm-live-root .crm-live-ellipsis{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a6b4d2}
#crm-dashboard-view.crm-live-root .crm-live-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:11px}
#crm-dashboard-view.crm-live-root .crm-live-chip{
  padding:5px 10px;border:1px solid #514b73;border-radius:999px;
  background:#28213f;color:#f1eaff;font-size:11px;font-weight:700
}
#crm-dashboard-view.crm-live-root .crm-live-chip:first-child{background:#6934d2;border-color:#ad79ff}
#crm-dashboard-view.crm-live-root .crm-live-scroll{overflow:auto;max-height:350px}
#crm-dashboard-view.crm-live-root .crm-live-agenda-table{border-collapse:collapse;width:100%;font-size:12px}
#crm-dashboard-view.crm-live-root .crm-live-agenda-table th{
  background:#25304a;color:#c8c9e6;font-weight:800;position:sticky;top:0;z-index:1
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-table td,
#crm-dashboard-view.crm-live-root .crm-live-agenda-table th{
  border-bottom:1px solid #363c59;padding:9px 8px;min-width:0;text-align:left
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-table tr:hover{background:#29243e}
#crm-dashboard-view.crm-live-root .crm-live-agenda-table td small{
  display:block;font-size:10px;color:#aeb6ce
}
#crm-dashboard-view.crm-live-root .crm-live-time{white-space:nowrap;color:#dbdbff;font-variant-numeric:tabular-nums}
#crm-dashboard-view.crm-live-root .crm-live-route-frame{
  width:100%;height:380px;min-height:100%;border:0;display:block;
  background:#091322;border-radius:9px
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget="routes"] .crm-live-panel-body{padding:4px}
#crm-dashboard-view.crm-live-root .crm-live-calendar-bar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 3px 9px
}
#crm-dashboard-view.crm-live-root .crm-live-calendar-bar>span{display:flex;gap:4px}
#crm-dashboard-view.crm-live-root .crm-live-month-weekdays,
#crm-dashboard-view.crm-live-root .crm-live-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
#crm-dashboard-view.crm-live-root .crm-live-month-weekdays{
  text-align:center;color:#9ea8c8;font-size:10px;font-weight:800;margin-bottom:5px
}
#crm-dashboard-view.crm-live-root .crm-live-calendar-day{
  display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:1px;
  min-height:39px;min-width:0;margin:0;padding:4px 5px!important;
  border:1px solid #3f415e!important;background:#172139!important;color:#ebecff!important;
  border-radius:5px!important;text-align:left;font-size:12px!important;font-weight:750
}
#crm-dashboard-view.crm-live-root .crm-live-calendar-day small{
  display:block;font-size:9px;color:#a9a6cf;font-weight:500;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-calendar-day[data-outside="true"]{opacity:.45}
#crm-dashboard-view.crm-live-root .crm-live-calendar-day[data-selected="true"]{
  outline:2px solid #a86afa!important;background:#462775!important
}
#crm-dashboard-view.crm-live-root .crm-live-calendar-day:hover{background:#3a315c!important}
#crm-dashboard-view.crm-live-root .crm-live-day-summary{
  padding:8px;color:#dad1fb;margin:8px 0 0;font-weight:700;font-size:12px
}
#crm-dashboard-view.crm-live-root .crm-live-directory{
  display:grid;grid-template-columns:minmax(150px,39%) minmax(0,1fr);gap:11px;height:100%;min-height:335px
}
#crm-dashboard-view.crm-live-root .crm-live-member-list{
  min-width:0;display:flex;flex-direction:column;gap:7px;border-right:1px solid #414367;padding-right:9px
}
#crm-dashboard-view.crm-live-root .crm-live-search,
#crm-dashboard-view.crm-live-root .crm-live-member-filter{width:100%;flex-shrink:0}
#crm-dashboard-view.crm-live-root .crm-live-member-scroll{min-height:0;overflow:auto;flex:1;display:grid;align-content:start;gap:5px}
#crm-dashboard-view.crm-live-root .crm-live-member{
  width:100%;margin:0;text-align:left;padding:8px 10px!important;
  border:1px solid #343c59!important;background:#202742!important;color:#f3f1ff!important;
  border-radius:9px!important;font-size:13px;font-weight:800
}
#crm-dashboard-view.crm-live-root .crm-live-member[aria-pressed="true"]{
  border-color:#a26bfa!important;background:#40236e!important
}
#crm-dashboard-view.crm-live-root .crm-live-member small{
  display:block;margin-top:2px;font-size:10px;font-weight:500;color:#bec3db;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-member-profile{min-width:0;padding:4px 2px;overflow:auto}
#crm-dashboard-view.crm-live-root .crm-live-member-profile h4{font-size:18px;margin:0 0 2px}
#crm-dashboard-view.crm-live-root .crm-live-subtle{color:#b5afcf;font-size:12px;margin:0 0 11px}
#crm-dashboard-view.crm-live-root .crm-live-details{margin:0 0 12px}
#crm-dashboard-view.crm-live-root .crm-live-detail-row{
  display:grid;grid-template-columns:90px minmax(0,1fr);gap:7px;align-items:baseline;
  padding:6px 0;border-bottom:1px solid #343850;font-size:12px
}
#crm-dashboard-view.crm-live-root .crm-live-detail-row dt{color:#aeb7d5;font-weight:600}
#crm-dashboard-view.crm-live-root .crm-live-detail-row dd{margin:0;color:#f0f1ff;overflow-wrap:anywhere}
#crm-dashboard-view.crm-live-root .crm-live-profile-link{
  display:inline-block;margin-top:4px;padding:7px 9px;border:1px solid #6d549d;
  border-radius:8px;background:#362554;text-decoration:none;font-weight:750;font-size:12px
}
#crm-dashboard-view.crm-live-root .crm-live-legacy{color:#eae8ff;font-size:13px}
#crm-dashboard-view.crm-live-root .crm-live-legacy>h2{font-size:16px!important;margin:4px 0 7px}
#crm-dashboard-view.crm-live-root .crm-live-legacy>p{color:#b4bdd9}
#crm-dashboard-view.crm-live-root .crm-live-legacy .financial-cards{
  margin:10px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:6px
}
#crm-dashboard-view.crm-live-root .crm-live-legacy .financial-card,
#crm-dashboard-view.crm-live-root .crm-live-legacy .statbar>div{
  background:#222641!important;color:#ebecff!important;border:1px solid #555074;
  border-radius:9px;padding:9px
}
#crm-dashboard-view.crm-live-root .crm-live-legacy .financial-card strong{color:#fff;font-size:18px}
#crm-dashboard-view.crm-live-root .crm-live-legacy .muted,
#crm-dashboard-view.crm-live-root .crm-live-legacy .help{color:#bfc3d5}
#crm-dashboard-view.crm-live-root .crm-live-legacy .crm-dashboard-fold{
  border:1px solid #464567;border-radius:9px;padding:8px;margin:8px 0;background:#1b233a
}
#crm-dashboard-view.crm-live-root .crm-live-legacy .crm-dashboard-fold summary{color:#e8e0ff}
#crm-dashboard-view.crm-live-root .crm-live-legacy .crm-dual{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#crm-dashboard-view.crm-live-root .crm-live-legacy .table-wrap{overflow:auto}
#crm-dashboard-view.crm-live-root .crm-live-legacy .crm-location-row{color:#f0e7ff}
#crm-dashboard-view.crm-live-root .crm-live-insight-banner{
  color:#bcb7da;font-size:11px;margin:0 0 12px
}
#crm-dashboard-view.crm-live-root .crm-live-live-status{font-size:11px;color:#ad9ccf;margin:12px 6px 0}
#crm-dashboard-view.crm-live-root .crm-live-divider{
  position:absolute;z-index:3;background:#a778f1;opacity:0;
  border:0;transition:opacity .15s;touch-action:none
}
#crm-dashboard-view.crm-live-root .crm-live-layout:hover .crm-live-divider,
#crm-dashboard-view.crm-live-root .crm-live-divider:focus-visible{opacity:.7}
#crm-dashboard-view.crm-live-root .crm-live-divider-vertical{width:7px;height:calc(100% - 24px);top:12px;transform:translateX(-50%);cursor:col-resize}
#crm-dashboard-view.crm-live-root .crm-live-divider-horizontal{height:7px;width:calc(100% - 24px);left:12px;transform:translateY(-50%);cursor:row-resize}
#crm-dashboard-view.crm-live-root .crm-live-divider[hidden]{display:none!important}
#crm-dashboard-view.crm-live-root .crm-live-placeholder{min-height:390px;border:1px dashed #514467;border-radius:12px}
#crm-dashboard-view.crm-live-root .crm-live-modal{
  position:fixed;width:min(1550px,96vw);height:min(1100px,95dvh);max-width:none;max-height:none;
  padding:0;border:1px solid #9b71f0;border-radius:14px;background:#10162c;color:#fff;overflow:hidden;
  margin:auto;inset:0;box-shadow:0 20px 80px #000c
}
#crm-dashboard-view.crm-live-root .crm-live-modal::backdrop{background:#03050ceb;backdrop-filter:blur(5px)}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-panel{height:100%;border:0;border-radius:0;min-height:0}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-panel-body{height:100%}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-route-frame{height:100%;min-height:660px}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-scroll{max-height:none}
@media(max-width:1180px){
  #crm-dashboard-view.crm-live-root .crm-live-tools{flex:1 1 auto}
  #crm-dashboard-view.crm-live-root .crm-live-panel-labels small{display:none}
  #crm-dashboard-view.crm-live-root .crm-live-legacy .crm-dual{grid-template-columns:1fr}
  #crm-dashboard-view.crm-live-root .crm-live-grid{grid-auto-rows:minmax(385px,auto)}
}
@media(max-width:900px){
  #crm-dashboard-view.crm-live-root{padding:10px 8px}
  #crm-dashboard-view.crm-live-root .crm-live-grid{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:minmax(400px,auto)}
  #crm-dashboard-view.crm-live-root .crm-live-divider{display:none}
  #crm-dashboard-view.crm-live-root .crm-live-panel-labels small{display:block}
}
@media(max-width:500px){
  #crm-dashboard-view.crm-live-root .crm-live-title h2{font-size:21px}
  #crm-dashboard-view.crm-live-root .crm-live-panel-labels h3{font-size:13px}
  #crm-dashboard-view.crm-live-root .crm-live-toolbar{gap:10px}
  #crm-dashboard-view.crm-live-root .crm-live-tools{gap:4px}
  #crm-dashboard-view.crm-live-root .crm-live-action{padding:6px 8px!important;font-size:11px!important}
  #crm-dashboard-view.crm-live-root .crm-live-widget-list{grid-template-columns:1fr}
  #crm-dashboard-view.crm-live-root .crm-live-directory{grid-template-columns:minmax(120px,40%) minmax(0,1fr);gap:6px}
  #crm-dashboard-view.crm-live-root .crm-live-panel-body{padding:8px}
  #crm-dashboard-view.crm-live-root .crm-live-detail-row{grid-template-columns:1fr;gap:1px}
  #crm-dashboard-view.crm-live-root .crm-live-month{gap:2px}
  #crm-dashboard-view.crm-live-root .crm-live-calendar-day{min-height:36px;padding:3px!important;font-size:11px!important}
  #crm-dashboard-view.crm-live-root .crm-live-calendar-day small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
  #crm-dashboard-view.crm-live-root .crm-live-divider{transition:none}
}
#crm-dashboard-view.crm-live-root .crm-live-panel[hidden]{display:none!important}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-four{grid-template-rows:minmax(270px,var(--crm-live-first-row,50%)) minmax(270px,calc(100% - var(--crm-live-first-row,50%)));height:900px;grid-auto-rows:unset}
@media(max-width:900px){#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-four{height:auto;grid-template-rows:none;grid-auto-rows:minmax(400px,auto)}}

/* Dashboard-only unified chrome.
 * The shared CRM shell ships blue/white html, body, header, nav and menus
 * with !important. Override them only while the authenticated Dashboard tab
 * is visible; every other CRM section keeps its established theme.
 */
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) {
  --crm-dashboard-shell:#0a1020;
  --crm-dashboard-header:#181832;
  --crm-dashboard-violet:#7136d8;
  --crm-dashboard-hover:#362456;
  --crm-dashboard-outline:#7154a1;
  --crm-dashboard-text:#f2edff;
  --crm-dashboard-muted:#c7bce4;
  background:radial-gradient(ellipse 95% 68% at 50% 0%,#191936 0%,#0c1328 49%,#080d1b 100%) fixed!important;
  color:var(--crm-dashboard-text)!important;
}
html:has(body #app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) {
  background:#080d1b!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) main:has(#app:not([hidden])) {
  background:transparent!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header {
  background:linear-gradient(108deg,#0e172c 0%,#1b1c3b 48%,#35205d 100%)!important;
  border:0!important;
  border-bottom:1px solid #6c4d9b!important;
  box-shadow:0 6px 25px #03040d88,inset 0 1px #ffffff16!important;
  color:var(--crm-dashboard-text)!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-owner-link,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header #workspace-brand a,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header #workspace-name {
  color:var(--crm-dashboard-text)!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-app-mark {
  background:linear-gradient(145deg,#8e56f4,#5c29c2)!important;
  color:#fff!important;
  border:1px solid #b08afd!important;
  box-shadow:0 0 0 2px #ad77f01f!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header small {
  color:var(--crm-dashboard-muted)!important;
}
/* Top-level navigation links, grouped nav summaries and active Dashboard tab */
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar {
  background:transparent!important;
  scrollbar-color:#7154a1 transparent;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar > button,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar > a.secondary,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-group > summary {
  color:#e7dcff!important;
  background:transparent!important;
  border-color:transparent!important;
  border-radius:7px!important;
  box-shadow:none!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar > button:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar > a.secondary:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-group > summary:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-group[open] > summary {
  color:#fff!important;
  background:var(--crm-dashboard-hover)!important;
  border-color:#65458c!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar [aria-current="page"],
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-group[data-active="true"] > summary {
  color:#fff!important;
  background:linear-gradient(120deg,#6430c8,#8348e7)!important;
  border-color:#ae81fa!important;
  box-shadow:0 2px 13px #4a1eab55,inset 0 1px #ffffff1c!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar [aria-current="page"]:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-group[data-active="true"] > summary:hover {
  background:linear-gradient(120deg,#723add,#9256f5)!important;
  color:#fff!important;
}
/* Dropdown menus: same violet-charcoal surface, not a white popup */
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-nav-subitems,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-menu {
  background:#1a2038!important;
  color:#f0ebff!important;
  border:1px solid #635081!important;
  box-shadow:0 14px 34px #050711bb!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-subitems .crm-nav-subitem,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-menu > a,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-menu > button {
  background:transparent!important;
  color:#efe7ff!important;
  border-color:transparent!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-subitems .crm-nav-subitem:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar .crm-nav-subitems [aria-current="page"],
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-menu > a:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-menu > button:hover {
  color:#fff!important;
  background:#48316f!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-popout > summary {
  background:#28213e!important;
  color:#eadcff!important;
  border-color:#654b91!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-shell-popout > summary:hover {
  background:#48316f!important;
}
/* Right-end workspace selector, sign-out, and any inline account switcher */
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header #logout,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-ui-project-switch select {
  color:#f7f2ff!important;
  background:#26203f!important;
  border:1px solid #705593!important;
}
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header #logout:hover,
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header .crm-ui-project-switch select:hover {
  background:#463066!important;
}
/* Keep visible keyboard focus and maintain compact responsive navigation. */
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header :is(button,a,summary,select):focus-visible {
  outline:3px solid #f5ca76!important;
  outline-offset:2px!important;
}
@media(max-width:600px){
  body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) header.crm-header {
    border-bottom:1px solid #6c4d9b!important;
  }
  body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])) #crm-sidebar.crm-command-bar {
    padding-bottom:3px!important;
  }
}


/* The only dashboard layout control is the top-right cog.
   Responsive fullscreen/grid mode layers on top of the existing freeform dashboard. */
#crm-dashboard-view.crm-live-root .crm-live-config{position:relative;margin-left:auto;z-index:45;flex:0 0 auto}
#crm-dashboard-view.crm-live-root .crm-live-settings-trigger{
 width:36px;min-width:36px;min-height:35px;padding:5px!important;
 display:grid;place-items:center;font-size:19px!important;line-height:1!important;
 background:#33224e!important;border-color:#805dbd!important
}
#crm-dashboard-view.crm-live-root .crm-live-settings-trigger[aria-expanded="true"]{
 background:#7140ba!important;border-color:#b998f3!important
}
#crm-dashboard-view.crm-live-root .crm-live-settings{
 position:absolute;top:calc(100% + 7px);right:0;z-index:60;
 margin:0!important;padding:13px!important;width:min(365px,calc(100vw - 20px));
 max-width:none!important;max-height:min(76dvh,710px);overflow:auto;overscroll-behavior:contain;
 border:1px solid #7d5bbe;background:#191932;color:#f5edff;
 border-radius:12px;box-shadow:0 18px 50px #01030bd9
}
#crm-dashboard-view.crm-live-root .crm-live-settings-head{
 display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px
}
#crm-dashboard-view.crm-live-root .crm-live-fullscreen-row{
 display:flex;gap:10px;align-items:center;min-height:38px;margin:0 0 12px;
 font-size:12px;font-weight:750
}
#crm-dashboard-view.crm-live-root .crm-live-options-label{
 display:block;font-size:11px;margin:0 0 6px;color:#ccc1e6;
 text-transform:uppercase;letter-spacing:.06em
}
#crm-dashboard-view.crm-live-root .crm-live-grid-options{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:4px;margin:0 0 9px}
#crm-dashboard-view.crm-live-root .crm-live-grid-option{
 font:750 11px system-ui,sans-serif;min-height:33px;min-width:0;
 padding:4px 5px!important;margin:0;border:1px solid #625280!important;
 border-radius:7px;background:#29233f!important;color:#e8dcff!important;
}
#crm-dashboard-view.crm-live-root .crm-live-grid-option[aria-pressed="true"]{
 background:#7840cf!important;border-color:#bd96ff!important;color:#fff!important
}
#crm-dashboard-view.crm-live-root .crm-live-rotate-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:15px}
#crm-dashboard-view.crm-live-root .crm-live-rotate-tools button{min-height:32px}
#crm-dashboard-view.crm-live-root .crm-live-visibility-head{margin:0 0 7px}
#crm-dashboard-view.crm-live-root .crm-live-visibility-head small{color:#bcb0d8;font-size:10px}
#crm-dashboard-view.crm-live-root .crm-live-widget-list{display:grid;grid-template-columns:1fr!important;gap:4px}
#crm-dashboard-view.crm-live-root .crm-live-widget-setting{
 display:grid;grid-template-columns:minmax(0,1fr) 29px;gap:5px;
 padding:3px 5px!important;align-items:center;
 border:1px solid #41395d;border-radius:7px;
 background:#24223f;color:#f0ecff
}
#crm-dashboard-view.crm-live-root .crm-live-setting-check{
 display:flex;align-items:center;gap:8px;min-width:0;cursor:pointer;
 font-size:12px;font-weight:600;padding:4px 2px
}
#crm-dashboard-view.crm-live-root .crm-live-setting-check span{
 white-space:nowrap;text-overflow:ellipsis;overflow:hidden
}
#crm-dashboard-view.crm-live-root .crm-live-move-widget{
 display:grid;place-items:center;min-height:27px;width:29px;
 margin:0;padding:0!important;border:1px solid #6c548b!important;
 border-radius:6px;background:#30244d!important;color:#f5eaff!important;
 font-weight:800;font-size:16px!important
}
#crm-dashboard-view.crm-live-root .crm-live-move-widget:disabled{opacity:.32;cursor:not-allowed}
#crm-dashboard-view.crm-live-root .crm-live-settings .crm-live-note{margin-top:9px;line-height:1.4}
/* Four widgets fill quarters; 2, 6 and 8 use the same adaptive grid. */
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles{
 display:grid!important;
 grid-template-columns:repeat(var(--crm-live-grid-columns,2),minmax(0,1fr))!important;
 grid-template-rows:repeat(var(--crm-live-grid-rows,2),minmax(0,1fr))!important;
 grid-auto-rows:minmax(0,1fr)!important;
 height:clamp(520px,76dvh,880px)!important;
 min-height:0!important;
 gap:8px!important;align-items:stretch!important
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel{
 min-height:0!important;height:100%;min-width:0;overflow:hidden
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-heading{
 padding:6px 8px;gap:4px;min-height:38px
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-labels h3{font-size:12px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-labels small{display:none}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-symbol{
 min-width:23px;height:23px;font-size:15px;border-radius:5px
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-actions{gap:2px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-icon{
 width:25px;height:25px;min-height:25px;font-size:14px
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-body{
 min-height:0;overflow:auto;padding:6px
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-route-frame{
 height:100%;min-height:100%;border-radius:4px
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-scroll{
 max-height:100%;overflow:auto
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-directory{min-height:0}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-month{gap:2px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-calendar-day{
 min-height:26px;padding:2px!important;font-size:10px!important
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-calendar-day small{
 font-size:8px;overflow:hidden;text-overflow:ellipsis;max-width:100%
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-agenda-table td,
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-agenda-table th{padding:4px;font-size:10px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-chip{
 font-size:10px;padding:3px 6px
}
#crm-dashboard-view.crm-live-root .crm-live-empty-slot{
 border:1px dashed #6a5787;border-radius:12px;
 display:grid;place-items:center;color:#938ba9;
 font-size:12px;min-width:0;min-height:0;
 background:repeating-linear-gradient(135deg,#151b30,#151b30 14px,#161d33 14px,#161d33 28px)
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles[data-slots="8"] .crm-live-panel-heading{padding:4px 5px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles[data-slots="8"] .crm-live-panel-identity{gap:4px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles[data-slots="8"] .crm-live-panel-labels h3{font-size:11px}
/* Dashboard fullscreen is reversible without requesting browser permission.
   The cog stays accessible in the sticky toolbar. */
body:has(#app:not([hidden]) #crm-dashboard-view.crm-live-root:not([hidden])[data-fullscreen="true"]){overflow:hidden!important}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"]{
 position:fixed!important;inset:0!important;z-index:510!important;
 height:100dvh!important;width:100vw!important;max-width:none!important;
 margin:0!important;padding:7px 12px 12px!important;
 border:0!important;border-radius:0!important;overflow-y:auto!important;
 overscroll-behavior:contain;background:#080d1b!important;
 box-shadow:none!important
}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-toolbar{
 position:sticky;top:0;z-index:45;padding:5px 5px 9px;
 background:#080d1bf5;box-shadow:0 7px 15px #05091280;
 backdrop-filter:blur(7px)
}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-tiles{
 height:calc(100dvh - 115px)!important;min-height:340px!important;max-height:none!important
}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-live-status{margin:4px 6px}
@media(max-width:1100px){
 #crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles[data-slots="6"],
 #crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles[data-slots="8"]{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:none!important;grid-auto-rows:minmax(260px,auto)!important;
  height:auto!important
 }
 #crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-tiles[data-slots="6"],
 #crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-tiles[data-slots="8"]{height:auto!important}
}
@media(max-width:650px){
 #crm-dashboard-view.crm-live-root .crm-live-settings{right:0;width:min(335px,calc(100vw - 20px))}
 #crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;
  grid-auto-rows:minmax(290px,auto)!important;height:auto!important
 }
 #crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-tiles{
  height:auto!important;min-height:0!important
 }
 #crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel{min-height:290px!important}
 #crm-dashboard-view.crm-live-root .crm-live-toolbar{align-items:center}
 #crm-dashboard-view.crm-live-root .crm-live-config{margin-left:auto}
}

/* Widget-first CRM: W / centered project mark + small date / single top-right cog. */
#crm-dashboard-view.crm-live-root .crm-live-widget-shell-bar{
 display:grid!important;grid-template-columns:minmax(45px,1fr) minmax(0,auto) minmax(45px,1fr);
 align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;
 min-height:43px;padding:4px 3px 7px!important;margin:0
}
#crm-dashboard-view.crm-live-root .crm-live-w-mark{
 display:inline-grid;place-items:center;justify-self:start;width:30px;height:30px;
 background:#6b3ab2;color:#fff;font-size:14px;font-weight:900;
 border:1px solid #ac7bee;border-radius:8px;text-decoration:none;letter-spacing:-.04em
}
#crm-dashboard-view.crm-live-root .crm-live-center-brand{
 display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-center-icon{
 display:grid;place-items:center;width:23px;height:23px;min-width:23px;
 border-radius:6px;background:#30244d;color:#d4b5ff;font-size:13px;overflow:hidden
}
#crm-dashboard-view.crm-live-root .crm-live-brand-logo{width:100%;height:100%;object-fit:contain}
#crm-dashboard-view.crm-live-root .crm-live-center-name{
 color:#f4ebff;font-size:12px;font-weight:800;max-width:190px;overflow:hidden;text-overflow:ellipsis
}
#crm-dashboard-view.crm-live-root .crm-live-center-brand .crm-live-date{
 width:112px!important;max-width:120px;min-height:26px;padding:3px 5px;
 border:0!important;border-left:1px solid #59447b!important;border-radius:0!important;
 color:#c3b4dd;background:transparent;font-size:10px!important
}
#crm-dashboard-view.crm-live-root .crm-live-tools{justify-self:end;flex:none!important;margin:0}
#crm-dashboard-view.crm-live-root .crm-live-config{margin-left:0!important}
#crm-dashboard-view.crm-live-root .crm-live-menu-quick{
 display:flex;gap:4px;margin:11px 0 12px
}
#crm-dashboard-view.crm-live-root .crm-live-menu-quick .crm-live-action{
 min-width:0;min-height:29px!important;flex:1;font-size:10px!important;
 padding:4px 6px!important
}
#crm-dashboard-view.crm-live-root .crm-live-nav-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:3px;max-height:205px;overflow:auto;padding:2px 0 3px;
 border-top:1px solid #48365b
}
#crm-dashboard-view.crm-live-root .crm-live-nav-entry{
 display:flex;align-items:center;min-height:31px;padding:6px 8px;
 background:#272341;color:#e9ddff!important;border-radius:6px;text-decoration:none;
 font-size:11px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
#crm-dashboard-view.crm-live-root .crm-live-nav-entry:hover{background:#473070}
/* Working Agenda is the same authenticated day planner used on Schedule. */
#crm-dashboard-view.crm-live-root .crm-live-agenda-controls{
 display:flex;align-items:center;gap:7px;padding:3px 4px 6px;min-height:35px
}
#crm-dashboard-view.crm-live-root .crm-live-add-booking{
 background:#703fc1!important;border:1px solid #a981e6!important;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-date{
 font-size:11px;font-weight:700;color:#e1d7f8;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-status{
 color:#f4b6bf;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-frame{
 width:100%;height:calc(100% - 39px);min-height:210px;display:block;
 border:0;background:#10162b;border-radius:6px
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel[data-widget=agenda] .crm-live-panel-body{
 padding:4px!important;overflow:hidden
}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-agenda-frame{height:calc(100% - 37px);min-height:0}
#crm-dashboard-view.crm-live-root .crm-live-year-frame{
 display:block;width:100%;height:100%;min-height:450px;border:0;
 border-radius:7px;background:#0f142a
}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-year-frame{min-height:0;height:100%}
/* Client panel is a real inline editor and an expandable shared profile form. */
#crm-dashboard-view.crm-live-root .crm-live-client-quick{
 display:flex;gap:5px;padding:0 0 3px;flex:0 0 auto
}
#crm-dashboard-view.crm-live-root .crm-live-client-quick .crm-live-small{
 padding:5px 7px!important;min-height:29px;color:#f9f2ff;
 background:#55308e!important;border-color:#9268d1!important
}
#crm-dashboard-view.crm-live-root .crm-live-client-name{
 background:transparent!important;border:0!important;padding:0!important;margin:0;
 text-align:left;font-weight:800;font-size:18px;color:#f6ecff!important;
 text-decoration:underline;text-decoration-color:#8a6bc1;text-underline-offset:3px;cursor:pointer
}
#crm-dashboard-view.crm-live-root .crm-live-editable-row{
 grid-template-columns:minmax(62px,92px) minmax(0,1fr) 22px;gap:5px;min-height:28px
}
#crm-dashboard-view.crm-live-root .crm-live-inline-edit{
 width:22px;min-height:22px!important;padding:1px!important;margin:0;
 font-size:12px!important;border:1px solid #625184!important;
 border-radius:5px;background:#292341!important;color:#e5d5fb!important
}
#crm-dashboard-view.crm-live-root .crm-live-client-editor{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:6px 0
}
#crm-dashboard-view.crm-live-root .crm-live-client-field{
 display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;
 color:#cdbce3;font-weight:700
}
#crm-dashboard-view.crm-live-root .crm-live-client-field:has(textarea){grid-column:1/-1}
#crm-dashboard-view.crm-live-root .crm-live-client-input{
 width:100%;min-width:0;min-height:32px;padding:6px 8px;border:1px solid #766395;
 border-radius:7px;background:#1e2843;color:#fff;font-size:12px;
}
#crm-dashboard-view.crm-live-root textarea.crm-live-client-input{min-height:82px;resize:vertical}
#crm-dashboard-view.crm-live-root .crm-live-client-editor-actions{
 grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end
}
#crm-dashboard-view.crm-live-root .crm-live-client-save{background:#7140b3!important;color:#fff!important}
#crm-dashboard-view.crm-live-root .crm-live-client-notice{margin:4px 0;color:#c8b6e8;font-size:11px}
#crm-dashboard-view.crm-live-root .crm-live-client-notice.is-error{color:#ffb6bd}
@media(max-width:650px){
 #crm-dashboard-view.crm-live-root .crm-live-widget-shell-bar{grid-template-columns:34px minmax(0,1fr) 38px;gap:4px}
 #crm-dashboard-view.crm-live-root .crm-live-center-name{max-width:95px;font-size:11px}
 #crm-dashboard-view.crm-live-root .crm-live-center-brand .crm-live-date{width:99px!important;font-size:9px!important}
 #crm-dashboard-view.crm-live-root .crm-live-center-icon{width:18px;height:18px;min-width:18px}
 #crm-dashboard-view.crm-live-root .crm-live-client-editor{grid-template-columns:minmax(0,1fr)}
 #crm-dashboard-view.crm-live-root .crm-live-client-field:has(textarea){grid-column:1}
}


/* Widget-first Phase B: dense but interactive, with independent scrolling. */
#crm-dashboard-view.crm-live-root .crm-live-panel:not(.crm-live-expanded) .crm-live-panel-heading{
 min-height:31px!important;gap:5px!important;padding:3px 7px!important;
}
#crm-dashboard-view.crm-live-root .crm-live-panel-labels h3{font-size:12px!important;line-height:1.2!important}
#crm-dashboard-view.crm-live-root .crm-live-panel-heading .crm-live-symbol{
 min-width:22px!important;width:22px!important;height:22px!important;font-size:14px!important;border-radius:5px!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel-heading .crm-live-panel-identity{gap:5px!important}
#crm-dashboard-view.crm-live-root .crm-live-panel-heading .crm-live-icon{
 min-height:25px!important;width:25px!important;height:25px!important;font-size:14px!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel:not(.crm-live-expanded) .crm-live-panel-body{padding:5px!important;overflow:auto}
#crm-dashboard-view.crm-live-root:not([data-fullscreen=true]) .crm-live-panel:not(.crm-live-expanded){max-height:min(74dvh,740px)}
#crm-dashboard-view.crm-live-root .crm-live-directory{
 height:100%!important;min-height:0!important;grid-template-columns:minmax(120px,38%) minmax(0,1fr)!important;gap:5px!important
}
#crm-dashboard-view.crm-live-root .crm-live-member-list{gap:3px!important;padding-right:4px!important;min-height:0}
#crm-dashboard-view.crm-live-root .crm-live-member-scroll{
 overflow:auto!important;max-height:100%;min-height:0!important;gap:2px!important;overscroll-behavior:contain
}
#crm-dashboard-view.crm-live-root .crm-live-member{
 min-height:31px!important;padding:3px 6px!important;font-size:11px!important;
 line-height:1.15!important;border-radius:5px!important
}
#crm-dashboard-view.crm-live-root .crm-live-member small{
 font-size:9px!important;margin-top:1px!important;line-height:1.2!important;
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere
}
#crm-dashboard-view.crm-live-root .crm-live-search{min-height:29px;padding:4px 6px;font-size:11px}
#crm-dashboard-view.crm-live-root .crm-live-client-quick{align-items:center;gap:4px}
#crm-dashboard-view.crm-live-root .crm-live-client-columns{
 position:relative;min-width:0;font-size:10px;color:#dcd1f5
}
#crm-dashboard-view.crm-live-root .crm-live-client-columns summary{
 cursor:pointer;padding:5px 7px;border:1px solid #5f517f;border-radius:6px;background:#2d2549;
 list-style:none
}
#crm-dashboard-view.crm-live-root .crm-live-client-columns[open]{
 background:#261d42;border-radius:6px;padding:2px 4px 5px
}
#crm-dashboard-view.crm-live-root .crm-live-column-option{
 display:flex;align-items:center;gap:5px;padding:3px;white-space:nowrap;font-size:10px
}
#crm-dashboard-view.crm-live-root .crm-live-column-option input{width:13px;height:13px;accent-color:#a374ef}
#crm-dashboard-view.crm-live-root .crm-live-detail-row{padding:3px 0!important;gap:4px!important;font-size:11px!important}
#crm-dashboard-view.crm-live-root .crm-live-click-field{
 cursor:text;border-radius:4px;padding:3px!important;min-height:22px
}
#crm-dashboard-view.crm-live-root .crm-live-click-field:hover,
#crm-dashboard-view.crm-live-root .crm-live-click-field:focus-visible{
 background:#332e57;outline:2px solid #9168d1;outline-offset:0
}
#crm-dashboard-view.crm-live-root .crm-live-associate-section{
 border-top:1px solid #56436b;margin-top:8px;padding-top:5px;display:grid;gap:5px
}
#crm-dashboard-view.crm-live-root .crm-live-associate-section h4{font-size:12px;margin:0}
#crm-dashboard-view.crm-live-root .crm-live-associate-list{display:grid;gap:4px;max-height:150px;overflow:auto}
#crm-dashboard-view.crm-live-root .crm-live-associate-item{
 display:flex;align-items:center;justify-content:space-between;gap:6px;
 padding:4px 5px;background:#242745;border-radius:5px;font-size:11px
}
#crm-dashboard-view.crm-live-root .crm-live-associate-form{display:grid;gap:5px;padding:6px;background:#20213d;border:1px solid #71568e;border-radius:7px}
#crm-dashboard-view.crm-live-root .crm-live-associate-new{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px
}
#crm-dashboard-view.crm-live-root .crm-live-associate-new[hidden]{display:none!important}
#crm-dashboard-view.crm-live-root .crm-live-associate-form .crm-live-client-input{min-height:28px;padding:4px 6px}
#crm-dashboard-view.crm-live-root .crm-live-agenda-controls{
 display:flex!important;flex-wrap:nowrap!important;gap:3px!important;align-items:center;
 padding:1px 2px 3px!important;min-height:28px!important;max-width:100%;overflow-x:auto
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-controls .crm-live-small{
 min-height:23px!important;padding:2px 5px!important;font-size:10px!important;white-space:nowrap!important
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-date{
 font-size:10px!important;overflow:hidden;text-overflow:ellipsis;min-width:0
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-segment{
 display:inline-flex;gap:1px;padding:2px;border:1px solid #5b497a;border-radius:6px
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-segment button[aria-pressed=true]{
 background:#7242bd!important;color:#fff!important
}
#crm-dashboard-view.crm-live-root .crm-live-agenda-frame{height:calc(100% - 32px);min-height:0}
#crm-dashboard-view.crm-live-root .crm-live-custom-frame{
 display:block;width:100%;height:100%;min-height:250px;border:0;background:#f5f9ff;border-radius:5px
}
#crm-dashboard-view.crm-live-root .crm-live-modal .crm-live-custom-frame{height:100%}
.crm-live-day-popup{
 z-index:1800!important;width:min(560px,calc(100vw - 26px));
 max-height:min(85dvh,700px);overflow:auto;padding:0;
 color:#f7f1ff;background:#15192e;border:1px solid #835fb4;border-radius:13px;
 box-shadow:0 22px 70px #000b
}
.crm-live-day-popup::backdrop{background:#050511bf}
.crm-live-day-popup-head{
 display:flex;justify-content:space-between;align-items:center;gap:7px;
 margin:0;padding:8px 12px!important;background:#292143;border-bottom:1px solid #7354a4
}
.crm-live-day-popup-head h3{margin:0;font-size:14px}
.crm-live-day-popup-list{
 display:grid;gap:4px;padding:9px;max-height:55dvh;overflow:auto
}
.crm-live-day-booking{
 display:flex;flex-direction:column;align-items:flex-start;gap:3px;
 width:100%;padding:7px 9px;text-align:left;
 font-size:12px;color:#fff;background:#242b49;border:1px solid #584579;border-radius:7px;
}
.crm-live-day-booking:hover{background:#41325e}
.crm-live-day-booking small{font-size:10px;color:#c1b4db}
.crm-live-day-popup-actions{display:flex;justify-content:flex-end;gap:7px;padding:8px 10px;border-top:1px solid #493b63}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=insights] .financial-card,
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=insights] .intel-card{
 border:1px solid #6e61a3!important;
 background:linear-gradient(155deg,#212a4c,#242039)!important;color:#eae5ff!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=insights] .financial-cards{
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:6px!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=insights] .intel-bar-fill{background:linear-gradient(90deg,#7a5ce1,#41afc4)!important}
@media(max-width:650px){
 #crm-dashboard-view.crm-live-root .crm-live-directory{grid-template-columns:minmax(110px,39%) minmax(0,1fr)!important}
 #crm-dashboard-view.crm-live-root .crm-live-associate-new{grid-template-columns:1fr}
 #crm-dashboard-view.crm-live-root .crm-live-panel:not(.crm-live-expanded) .crm-live-panel-heading{padding:3px 5px!important}
}


/* Finance widgets use the authenticated project invoice ledger, not demo metrics. */
#crm-dashboard-view.crm-live-root .crm-live-financial-stats{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px
}
#crm-dashboard-view.crm-live-root .crm-live-financial-kpi{
 display:grid;gap:3px;min-width:0;padding:7px 8px;
 border:1px solid #62568c;border-radius:7px;
 background:linear-gradient(140deg,#23294c,#25203f)
}
#crm-dashboard-view.crm-live-root .crm-live-financial-kpi small{color:#c5b5e4;font-size:10px}
#crm-dashboard-view.crm-live-root .crm-live-financial-kpi strong{font-size:15px;color:#fff;overflow-wrap:anywhere}
#crm-dashboard-view.crm-live-root .crm-live-financial-bars{display:grid;gap:8px;margin:10px 0}
#crm-dashboard-view.crm-live-root .crm-live-financial-bar{
 display:grid;grid-template-columns:80px minmax(0,1fr) 82px;align-items:center;gap:6px;
 font-size:10px
}
#crm-dashboard-view.crm-live-root .crm-live-financial-bar strong{
 font-weight:700;text-align:right;color:#e9ddff;overflow-wrap:anywhere
}
#crm-dashboard-view.crm-live-root .crm-live-financial-track{
 height:11px;overflow:hidden;border-radius:5px;background:#353451
}
#crm-dashboard-view.crm-live-root .crm-live-financial-fill{
 display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#7149cd,#52b6d4)
}
#crm-dashboard-view.crm-live-root .crm-live-financial-note,
#crm-dashboard-view.crm-live-root .crm-live-team-note{font-size:10px;color:#b9afd2}
#crm-dashboard-view.crm-live-root .crm-live-invoice-scroll{
 display:grid;gap:3px;min-height:0;max-height:340px;overflow-y:auto;margin:5px 0 9px
}
#crm-dashboard-view.crm-live-root .crm-live-invoice-row{
 display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;
 padding:6px 8px;min-height:35px;border:1px solid #4c4b6f!important;
 border-radius:6px;background:#222942!important;color:#f1eaff!important;font-size:11px
}
#crm-dashboard-view.crm-live-root .crm-live-invoice-row small{font-size:10px;color:#c7badc}
#crm-dashboard-view.crm-live-root .crm-live-team-group{
 margin:8px 0 1px;padding:3px 5px;color:#dbc6ff;font-size:10px;line-height:1.2;
 border-bottom:1px solid #7052a7;text-transform:uppercase;letter-spacing:.03em
}

/* Phase C: shared day controls live beside the active workspace logo. */
#crm-dashboard-view.crm-live-root .crm-live-widget-shell-bar{
  grid-template-columns:34px minmax(0,1fr) 42px!important;gap:8px!important
}
#crm-dashboard-view.crm-live-root .crm-live-center-brand{
  justify-content:flex-start!important;min-width:0!important;gap:7px!important
}
#crm-dashboard-view.crm-live-root .crm-live-center-name{flex:0 1 auto;max-width:170px}
#crm-dashboard-view.crm-live-root .crm-live-shared-date-nav{
  display:flex;align-items:center;gap:3px;min-width:0;white-space:nowrap;
  padding-left:7px;border-left:1px solid #554274
}
#crm-dashboard-view.crm-live-root .crm-live-shared-date-nav .crm-live-action{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:26px!important;min-width:26px!important;padding:3px 6px!important;
  font-size:11px!important;border-radius:5px!important
}
#crm-dashboard-view.crm-live-root .crm-live-shared-date-nav .crm-live-date{
  width:121px!important;max-width:121px;min-height:26px!important;
  padding:3px 4px!important;border:1px solid #52436e!important;
  border-radius:5px!important;color:#f1eaff!important
}
#crm-dashboard-view.crm-live-root .crm-live-tag-filter{
  min-height:26px;max-width:135px;padding:3px 5px;font-size:10px;
  border:1px solid #78629f;border-radius:6px;background:#1f2944;color:#f7efff
}
#crm-dashboard-view.crm-live-root .crm-live-client-quick{flex-wrap:wrap}
#crm-dashboard-view.crm-live-root .crm-live-client-hero{
  display:flex;align-items:center;gap:9px;padding:4px 0 9px;border-bottom:1px solid #564879
}
#crm-dashboard-view.crm-live-root .crm-live-client-avatar,
#crm-dashboard-view.crm-live-root .crm-live-client-avatar-fallback{
  display:grid;place-items:center;width:66px;height:66px;flex:0 0 66px;
  border-radius:11px;object-fit:cover;border:1px solid #8b71b6;background:#4d3772;
  color:#fff;font-size:28px;font-weight:800
}
#crm-dashboard-view.crm-live-root .crm-live-client-avatar[hidden],
#crm-dashboard-view.crm-live-root .crm-live-client-avatar-fallback[hidden]{display:none!important}
#crm-dashboard-view.crm-live-root .crm-live-edit-all{margin:5px 0}
#crm-dashboard-view.crm-live-root .crm-live-dog-tag-toggle{
  display:flex;align-items:center;gap:7px;grid-column:1/-1;
  font-size:12px;color:#f3defd
}
#crm-dashboard-view.crm-live-root .crm-live-dog-tag-toggle input{width:17px;height:17px;accent-color:#a96af1}
#crm-dashboard-view.crm-live-root .crm-live-client-photo-upload{
  display:grid;grid-column:1/-1;gap:5px;padding:8px;
  border:1px solid #6c5a88;border-radius:8px;background:#262540;font-size:11px
}
#crm-dashboard-view.crm-live-root .crm-live-upload-status{font-size:11px;color:#e6bcff}
#crm-dashboard-view.crm-live-root .crm-live-team-metrics,
#crm-dashboard-view.crm-live-root .crm-live-period-signals{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:5px 0
}
#crm-dashboard-view.crm-live-root .crm-live-team-metric{
  display:grid;gap:2px;text-align:center;padding:5px;border:1px solid #685384;border-radius:7px;
  background:#232844
}
#crm-dashboard-view.crm-live-root .crm-live-team-metric strong{font-size:15px;color:#fff}
#crm-dashboard-view.crm-live-root .crm-live-team-metric small{font-size:9px;color:#c9b9e5}
#crm-dashboard-view.crm-live-root .crm-live-financial-rates{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:7px 0;
  border-block:1px solid #544578;font-size:11px;color:#d0c4e8
}
#crm-dashboard-view.crm-live-root .crm-live-financial-rates strong{font-size:15px;color:#77e0bf}
#crm-dashboard-view.crm-live-root .crm-live-review-link{
  display:block;padding:5px 8px;margin:4px 0;border-radius:6px;
  background:#2b2844;color:#f5eaff!important;font-size:11px;text-decoration:none
}
#crm-dashboard-view.crm-live-root .crm-live-capacity-card{display:grid;gap:8px;margin-bottom:13px}
#crm-dashboard-view.crm-live-root .crm-live-capacity-card small{color:#bcb8d9;font-size:10px}
/* The month calendar must occupy all available widget height, not leave a blank lower half. */
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=calendar] .crm-live-panel-body{
  display:flex!important;flex-direction:column;min-height:0!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=calendar] .crm-live-month{
  flex:1 1 auto;grid-auto-rows:minmax(34px,1fr);min-height:225px
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=calendar] .crm-live-calendar-day{
  height:100%;min-height:34px!important;align-items:flex-start;justify-content:flex-start
}
/* Entire day available within the agenda's own scrolling viewport. */
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=agenda] .crm-live-panel-body{
  display:flex!important;flex-direction:column;overflow:hidden!important;min-height:0!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=agenda] .crm-live-agenda-frame{
  flex:1 1 auto!important;min-height:160px!important;height:100%!important;
  overflow:auto!important
}
#crm-dashboard-view.crm-live-root .crm-live-panel[data-widget=routes] .crm-live-route-frame{
  min-height:280px!important;height:100%!important
}
/* Cog: apply the CRM's existing project theme variables from Settings, retaining contrast. */
#crm-dashboard-view.crm-live-root[data-website-theme=true]{
  --live-accent:var(--crm-accent,#0f8c99)!important;
  --live-surface:var(--crm-primary,#11243a)!important;
  --live-raised:color-mix(in srgb,var(--crm-primary,#11243a) 85%,white)!important;
  --live-line:color-mix(in srgb,var(--crm-accent,#0f8c99) 65%,white)!important;
  border-color:var(--crm-accent,#0f8c99)!important;
  background:color-mix(in srgb,var(--crm-primary,#11243a) 85%,black)!important
}
#crm-dashboard-view.crm-live-root[data-website-theme=true] .crm-live-panel{
  background:color-mix(in srgb,var(--crm-primary,#11243a) 88%,black)!important;
  border-color:var(--crm-accent,#0f8c99)!important;color:#f7faff!important
}
#crm-dashboard-view.crm-live-root[data-website-theme=true] .crm-live-panel-heading{
  background:linear-gradient(110deg,var(--crm-primary,#11243a),color-mix(in srgb,var(--crm-accent,#0f8c99) 33%,var(--crm-primary,#11243a)))!important;
  border-color:var(--crm-accent,#0f8c99)!important
}
#crm-dashboard-view.crm-live-root[data-website-theme=true] .crm-live-shared-date-nav .crm-live-action,
#crm-dashboard-view.crm-live-root[data-website-theme=true] .crm-live-small{
  background:var(--crm-accent,#0f8c99)!important;color:var(--crm-on-accent,#fff)!important;
  border-color:var(--crm-accent,#0f8c99)!important
}
@media(max-width:750px){
  #crm-dashboard-view.crm-live-root .crm-live-shared-date-nav{gap:2px;padding-left:3px}
  #crm-dashboard-view.crm-live-root .crm-live-shared-date-nav .crm-live-date{width:105px!important;font-size:10px!important}
  #crm-dashboard-view.crm-live-root .crm-live-shared-date-nav .crm-live-action{min-width:23px!important;min-height:24px!important;padding:2px 4px!important}
  #crm-dashboard-view.crm-live-root .crm-live-center-name{max-width:92px;font-size:10px!important}
  #crm-dashboard-view.crm-live-root .crm-live-center-brand{gap:3px!important}
}
@media(max-width:440px){
  #crm-dashboard-view.crm-live-root .crm-live-center-name{max-width:52px!important}
  #crm-dashboard-view.crm-live-root .crm-live-shared-date-nav .crm-live-date{width:93px!important}
  #crm-dashboard-view.crm-live-root .crm-live-shared-date-nav .crm-live-action:last-child{font-size:9px!important}
}

/* Client list portraits: actual upload, or unmistakable paw fallback. */
#crm-dashboard-view.crm-live-root .crm-live-member.crm-live-has-thumbnail{
  position:relative!important;padding-left:39px!important;min-height:39px!important
}
#crm-dashboard-view.crm-live-root .crm-live-client-thumb{
  position:absolute;left:5px;top:50%;transform:translateY(-50%);
  width:29px;height:29px;object-fit:cover;border:1px solid #7956b5;
  border-radius:7px;background:#372d57
}
#crm-dashboard-view.crm-live-root .crm-live-client-thumb-placeholder{
  display:grid;place-items:center;color:#e9d4ff;font-size:15px
}

/* 2026-11-16 compact dashboard pass: one consistent spacing scale, without changing embedded route/booking logic. */
#crm-dashboard-view.crm-live-root{
  padding:8px 9px 10px;border-radius:12px;box-shadow:none
}
#crm-dashboard-view.crm-live-root .crm-live-widget-shell-bar{
  min-height:38px;padding:2px 2px 5px!important;gap:5px!important
}
#crm-dashboard-view.crm-live-root .crm-live-grid:not(.crm-live-tiles){
  gap:6px;grid-auto-rows:minmax(330px,auto)
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-four{
  height:min(900px,max(580px,calc(100dvh - 96px)))
}
#crm-dashboard-view.crm-live-root .crm-live-panel{
  min-height:330px;border-radius:10px;border-color:#59496f;box-shadow:none
}
#crm-dashboard-view.crm-live-root .crm-live-panel-heading{
  gap:6px;min-height:38px;padding:6px 9px;
  background:#1a2035;border-bottom-color:#514465
}
#crm-dashboard-view.crm-live-root .crm-live-panel-identity{gap:6px}
#crm-dashboard-view.crm-live-root .crm-live-panel-labels h3{font-size:13px;line-height:1.25}
#crm-dashboard-view.crm-live-root .crm-live-panel:not(.crm-live-expanded) .crm-live-panel-labels small{display:none}
#crm-dashboard-view.crm-live-root .crm-live-symbol{min-width:25px;height:25px;font-size:16px;border-radius:6px}
#crm-dashboard-view.crm-live-root .crm-live-panel-actions{gap:3px}
#crm-dashboard-view.crm-live-root .crm-live-icon{
  width:30px;height:30px;min-height:30px;font-size:15px
}
#crm-dashboard-view.crm-live-root .crm-live-panel-body{padding:7px}
#crm-dashboard-view.crm-live-root .crm-live-chips{gap:4px;margin-bottom:6px}
#crm-dashboard-view.crm-live-root .crm-live-chip{padding:4px 7px}
#crm-dashboard-view.crm-live-root .crm-live-live-status{margin:5px 2px 0;font-size:10px}
#crm-dashboard-view.crm-live-root .crm-live-settings{padding:9px!important;max-height:min(82dvh,790px)}
#crm-dashboard-view.crm-live-root .crm-live-settings-head{margin-bottom:6px}
#crm-dashboard-view.crm-live-root .crm-live-rotate-tools{margin-bottom:8px}
#crm-dashboard-view.crm-live-root .crm-live-fullscreen-row{margin-bottom:7px}
#crm-dashboard-view.crm-live-root .crm-live-nav-list{max-height:none;overflow:visible}
#crm-dashboard-view.crm-live-root .crm-live-nav-entry{min-height:33px}
#crm-dashboard-view.crm-live-root .crm-live-signout{
  display:block;width:100%;min-height:38px;margin-top:9px;padding:8px 10px!important;
  border:1px solid #8f6683!important;border-radius:7px;
  background:#302238!important;color:#fff0f4!important;
  font:700 12px system-ui,sans-serif;text-align:left;cursor:pointer
}
#crm-dashboard-view.crm-live-root .crm-live-signout:hover{background:#51304a!important}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles{
  gap:6px!important;height:clamp(510px,82dvh,900px)!important
}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-heading{min-height:34px;padding:4px 7px}
#crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles .crm-live-panel-body{padding:5px}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"]{padding:5px 7px 7px!important}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-tiles{
  height:calc(100dvh - 76px)!important;min-height:0!important
}
#crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-four{
  height:calc(100dvh - 76px)!important;min-height:0
}
@media(max-width:900px){
  #crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-four{
    height:auto!important;grid-auto-rows:minmax(310px,auto)
  }
  #crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-four{height:auto!important}
}
@media(max-width:650px){
  #crm-dashboard-view.crm-live-root{padding:5px 5px 8px}
  #crm-dashboard-view.crm-live-root .crm-live-grid{gap:5px!important}
  #crm-dashboard-view.crm-live-root .crm-live-grid.crm-live-tiles{
    height:auto!important;grid-auto-rows:minmax(290px,auto)!important
  }
  #crm-dashboard-view.crm-live-root[data-fullscreen="true"] .crm-live-grid.crm-live-tiles{height:auto!important}
  #crm-dashboard-view.crm-live-root .crm-live-panel-heading{padding:5px 7px;min-height:38px}
  #crm-dashboard-view.crm-live-root .crm-live-panel:not(.crm-live-expanded){min-height:290px}
  #crm-dashboard-view.crm-live-root .crm-live-panel-body{padding:5px}
}

#crm-dashboard-view.crm-live-root .crm-live-account-heading{
 margin-top:10px;padding-top:9px;border-top:1px solid #655274
}
#crm-dashboard-view.crm-live-root .crm-live-nav-list{border-top:0;border-bottom:1px solid #4d3f63;padding-bottom:8px}

/* CRM operations widgets v2 — legible density at 2/4/6/8-slot layouts. */
#crm-dashboard-view.crm-live-root .crm-live-preset-row{
 display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 9px
}
#crm-dashboard-view.crm-live-root .crm-live-preset-row .crm-live-grid-option{min-height:34px}
#crm-dashboard-view.crm-live-root .crm-live-insights-v2{display:grid;gap:8px;min-width:0}
#crm-dashboard-view.crm-live-root .crm-live-insight-controls{
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px
}
#crm-dashboard-view.crm-live-root .crm-live-insight-controls>strong{font-size:12px}
#crm-dashboard-view.crm-live-root .crm-live-insight-periods,
#crm-dashboard-view.crm-live-root .crm-live-capacity-phases{display:flex;gap:3px;flex-wrap:wrap}
#crm-dashboard-view.crm-live-root .crm-live-insight-periods button,
#crm-dashboard-view.crm-live-root .crm-live-capacity-phases button{
 min-height:30px!important;font-size:10px!important;padding:4px 7px!important
}
#crm-dashboard-view.crm-live-root :is(.crm-live-insight-periods,.crm-live-capacity-phases) button[aria-pressed=true]{
 border-color:#b594f6!important;background:#6341a5!important
}
#crm-dashboard-view.crm-live-root .crm-live-insight-caption,
#crm-dashboard-view.crm-live-root .crm-live-capacity-note{
 font-size:10px;color:#c1b7d9;margin:0;line-height:1.45
}
#crm-dashboard-view.crm-live-root .crm-live-insight-metrics,
#crm-dashboard-view.crm-live-root .crm-live-review-stats{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px
}
#crm-dashboard-view.crm-live-root .crm-live-review-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
#crm-dashboard-view.crm-live-root .crm-live-insight-stat{
 min-width:0;display:flex;flex-direction:column;gap:2px;padding:7px;
 border:1px solid #55456c;border-radius:8px;background:#1c2440
}
#crm-dashboard-view.crm-live-root .crm-live-insight-stat span,
#crm-dashboard-view.crm-live-root .crm-live-insight-stat small{
 color:#c8bbde;font-size:10px;line-height:1.3
}
#crm-dashboard-view.crm-live-root .crm-live-insight-stat strong{
 font-size:clamp(14px,1.4vw,20px);line-height:1.15;color:#f9f5ff;font-variant-numeric:tabular-nums
}
#crm-dashboard-view.crm-live-root .crm-live-insight-stat small{font-size:9px}
#crm-dashboard-view.crm-live-root .crm-live-insights-v2 h4,
#crm-dashboard-view.crm-live-root .crm-live-service-mix h4{font-size:11px;margin:3px 0 5px}
#crm-dashboard-view.crm-live-root .crm-live-trend-chart{
 display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);
 height:108px;align-items:end;gap:5px;padding:8px 5px 2px;
 border:1px solid #4c416a;border-radius:8px;background:#141b30
}
#crm-dashboard-view.crm-live-root .crm-live-trend-column{
 display:flex;flex-direction:column;justify-content:flex-end;
 height:100%;min-width:0;gap:3px;align-items:stretch
}
#crm-dashboard-view.crm-live-root .crm-live-trend-bar{
 display:block;width:100%;min-height:2px;max-height:75px;border-radius:4px 4px 1px 1px;
 background:linear-gradient(#a98bff,#7147bf)
}
#crm-dashboard-view.crm-live-root .crm-live-trend-column small{
 overflow:hidden;white-space:nowrap;text-overflow:clip;font-size:8px;text-align:center;color:#bdb1d4
}
#crm-dashboard-view.crm-live-root .crm-live-service-row{
 display:flex;justify-content:space-between;align-items:center;gap:10px;
 border-bottom:1px solid #453b5b;padding:5px 2px;font-size:11px
}
#crm-dashboard-view.crm-live-root .crm-live-service-row strong{font-variant-numeric:tabular-nums}
#crm-dashboard-view.crm-live-root .crm-live-insight-reports{
 margin-top:9px;padding:7px;border:1px solid #493d67;border-radius:8px
}
#crm-dashboard-view.crm-live-root .crm-live-insight-reports>summary{
 font-size:11px;font-weight:700;cursor:pointer;color:#d4baf6
}
#crm-dashboard-view.crm-live-root .crm-live-insight-reports[open]>summary{margin-bottom:8px}
#crm-dashboard-view.crm-live-root .crm-live-team-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#crm-dashboard-view.crm-live-root .crm-live-team-metric{padding:5px 3px}
#crm-dashboard-view.crm-live-root .crm-live-team-availability{
 border-left:3px solid #9d75eb;padding:5px 8px;margin:8px 0;
 font-size:11px;color:#e7ddff;background:#26223e
}
#crm-dashboard-view.crm-live-root .crm-live-member[data-active=false]{opacity:.85}
#crm-dashboard-view.crm-live-root .crm-live-member[aria-pressed=true]{
 outline:2px solid #a685e8;outline-offset:-2px
}
#crm-dashboard-view.crm-live-root .crm-live-review-controls{
 display:grid;grid-template-columns:minmax(0,1.2fr) minmax(115px,1fr);gap:5px;margin:7px 0
}
#crm-dashboard-view.crm-live-root .crm-live-review-queue{
 display:grid;gap:5px;max-height:360px;overflow-y:auto
}
#crm-dashboard-view.crm-live-root .crm-live-review-item{
 display:flex;align-items:center;justify-content:space-between;gap:9px;
 border:1px solid #52446e;border-left:3px solid #ecbc7e;
 border-radius:7px;padding:7px 8px;background:#1d233d;min-width:0
}
#crm-dashboard-view.crm-live-root .crm-live-review-item[data-reason=simulation]{border-left-color:#88bacb}
#crm-dashboard-view.crm-live-root .crm-live-review-item[data-reason=verify]{border-left-color:#b38cf2}
#crm-dashboard-view.crm-live-root .crm-live-review-description{display:grid;min-width:0;gap:2px}
#crm-dashboard-view.crm-live-root .crm-live-review-description strong{font-size:11px;overflow-wrap:anywhere}
#crm-dashboard-view.crm-live-root .crm-live-review-description small{font-size:10px;color:#c7badb}
#crm-dashboard-view.crm-live-root .crm-live-review-actions{display:flex;gap:4px;flex-wrap:wrap;flex-shrink:0}
#crm-dashboard-view.crm-live-root .crm-live-review-action{
 display:inline-flex;align-items:center;min-height:31px;padding:5px 7px!important;
 text-decoration:none!important;white-space:nowrap
}
#crm-dashboard-view.crm-live-root .crm-live-review-warning{
 border:1px solid #8d6b86;border-left:3px solid #d69c73;
 border-radius:7px;padding:6px 9px;margin:6px 0;background:#2d243c;color:#ffe8d4;font-size:11px
}
#crm-dashboard-view.crm-live-root .crm-live-review-warning p{margin:3px 0}
#crm-dashboard-view.crm-live-root .crm-live-capacity-toolbar{
 display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap
}
#crm-dashboard-view.crm-live-root .crm-live-group-capacity-list{display:grid;gap:6px;margin:7px 0}
#crm-dashboard-view.crm-live-root .crm-live-capacity-group{
 display:grid;gap:5px;padding:8px 9px;border:1px solid #53476d;
 border-left:4px solid #9168e6;border-radius:8px;background:#1d243e;min-width:0
}
#crm-dashboard-view.crm-live-root .crm-live-capacity-group.is-unassigned{border-left-color:#cbaa7b}
#crm-dashboard-view.crm-live-root .crm-live-capacity-title{
 display:flex;justify-content:space-between;align-items:center;gap:5px;flex-wrap:wrap
}
#crm-dashboard-view.crm-live-root .crm-live-capacity-title strong{font-size:12px}
#crm-dashboard-view.crm-live-root .crm-live-capacity-numbers,
#crm-dashboard-view.crm-live-root .crm-live-capacity-group small{font-size:10px;color:#c9c1dc}
#crm-dashboard-view.crm-live-root .crm-live-capacity-meter{
 height:8px;overflow:hidden;border-radius:5px;border:1px solid #5c5278;background:#302b47
}
#crm-dashboard-view.crm-live-root .crm-live-capacity-meter span{
 display:block;height:100%;background:linear-gradient(90deg,#8a66e2,#6fc2c9)
}
#crm-dashboard-view.crm-live-root .crm-live-capacity-group .crm-live-capacity-alert{color:#f7c3a4}
@media(max-width:1150px){
 #crm-dashboard-view.crm-live-root .crm-live-insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 #crm-dashboard-view.crm-live-root .crm-live-insight-stat{padding:6px}
 #crm-dashboard-view.crm-live-root .crm-live-review-item{align-items:flex-start;flex-direction:column}
 #crm-dashboard-view.crm-live-root .crm-live-review-actions{width:100%}
 #crm-dashboard-view.crm-live-root .crm-live-review-action{flex:1;justify-content:center}
 #crm-dashboard-view.crm-live-root .crm-live-trend-chart{height:90px;gap:3px}
}
