:root {
  --sidebar-width: 196px;
  --topbar-height: 68px;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;

  --border: #e4e8f1;
  --border-soft: #edf0f5;

  --text: #182033;
  --muted: #687287;
  --faint: #9ba3b3;

  --primary: #5c58dc;

  --purple: #765bd9;
  --blue: #3b7fe9;
  --cyan: #27a9c8;
  --orange: #f09a39;
  --green: #2da66f;

  --radius: 14px;

  --shadow:
    0 1px 2px rgba(20,25,40,.025),
    0 8px 24px rgba(37,45,80,.045);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}


/* ==========================================================
   SHELL
   ========================================================== */

.ms-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;

  display: grid;

  grid-template-columns:
    var(--sidebar-width)
    minmax(0,1fr);
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.ms-sidebar {
  height: 100vh;
  min-height: 0;

  position: sticky;
  top: 0;

  padding: 17px 13px;

  display: flex;
  flex-direction: column;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;

  background:
    linear-gradient(
      180deg,
      #f1f1ff,
      #f8f9ff
    );

  border-right:
    1px solid #dedff0;
}


.ms-brand {
  min-height: 55px;

  padding:
    0 5px 14px;

  display: flex;
  align-items: center;

  gap: 10px;

  border-bottom:
    1px solid rgba(72,75,130,.10);
}


.ms-logo {
  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  border-radius: 11px;

  display: grid;
  place-items: center;

  color: white;

  font-size: 17px;
  font-weight: 800;

  background:
    linear-gradient(
      145deg,
      #8a78f5,
      #5857d7
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 6px 13px rgba(72,67,190,.21);
}


.ms-brand-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
}


.ms-brand-copy strong {
  font-size: 12.5px;
}


.ms-brand-copy span {
  margin-top: 2px;

  color: #788094;

  font-size: 10px;
}


.ms-collapse {
  width: 27px;
  height: 27px;

  margin-left: auto;

  border:
    1px solid #dfe2ed;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background:
    rgba(255,255,255,.70);

  color: #697188;

  font-size: 17px;
}


.ms-nav {
  flex: 1;

  padding-top: 15px;

  display: flex;
  flex-direction: column;

  gap: 3px;
}


.ms-nav-item {
  width: 100%;

  min-height: 45px;

  padding:
    4px 10px;

  border: 0;
  border-radius: 11px;

  display: flex;
  align-items: center;

  gap: 10px;

  background: transparent;

  color: #565f73;

  font-size: 12.5px;
  font-weight: 610;

  text-align: left;

  transition:
    background .13s ease,
    color .13s ease,
    box-shadow .13s ease;
}


.ms-nav-item:hover {
  background:
    rgba(255,255,255,.58);

  color: #34384c;
}


.ms-nav-item.active {
  background:
    rgba(255,255,255,.91);

  color: #4a47bc;

  box-shadow:
    0 2px 5px rgba(50,50,90,.035),
    0 7px 17px rgba(75,70,140,.045);
}

.ms-nav-group {
  width: 100%;

  display: grid;

  gap: 2px;
}

.ms-nav-caret {
  margin-left: auto;

  color: #7b8296;

  font-size: 17px;
  font-weight: 700;
  line-height: 1;

  transform: rotate(0deg);

  transition: transform .15s ease;
}

.ms-nav-group.expanded .ms-nav-caret {
  transform: rotate(90deg);
}

.ms-nav-submenu {
  margin: 0 5px 2px 48px;

  padding-left: 10px;

  display: grid;

  gap: 2px;

  border-left: 1px solid rgba(91,88,181,.18);
}

.ms-nav-submenu[hidden] {
  display: none !important;
}

.ms-nav-subitem {
  width: 100%;
  min-height: 30px;

  padding: 5px 8px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: #687087;

  font: inherit;
  font-size: 11.5px;
  font-weight: 590;
  line-height: 1.25;
  text-align: left;

  transition:
    background .13s ease,
    color .13s ease;
}

.ms-nav-subitem:hover {
  background: rgba(255,255,255,.58);

  color: #34384c;
}

.ms-nav-subitem.active {
  background: rgba(255,255,255,.76);

  color: #4a47bc;

  font-weight: 700;
}


.ms-nav-icon {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: grid;
  place-items: center;
}


.ms-nav-icon img {
  width: 25px;
  height: 25px;

  display: block;

  object-fit: contain;

  filter:
    drop-shadow(
      0 2px 2px
      rgba(35,40,75,.10)
    );
}


.ms-nav-spacer {
  flex: 1;
}


/* ==========================================================
   TOPBAR
   ========================================================== */

.ms-main {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}


.ms-topbar {
  height: var(--topbar-height);

  position: sticky;
  top: 0;

  z-index: 30;

  padding:
    0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background:
    rgba(255,255,255,.95);

  backdrop-filter:
    blur(12px);

  border-bottom:
    1px solid var(--border);
}


.ms-topbar-title {
  display: flex;
  flex-direction: column;

  gap: 2px;
}


.ms-topbar-title small,
.ms-card-header small {
  color: #929aac;

  font-size: 9px;
  font-weight: 760;

  letter-spacing: .105em;
}


.ms-topbar-title strong {
  font-size: 17px;
}


.ms-topbar-tools {
  display: flex;
  align-items: center;

  gap: 8px;
}


.ms-search {
  width: 285px;
  height: 39px;

  padding:
    0 11px;

  display: flex;
  align-items: center;

  gap: 8px;

  border:
    1px solid var(--border);

  border-radius: 11px;

  background: #f8f9fc;

  color: #9ba4b6;
}


.ms-search input {
  width: 100%;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 11.5px;
}


.ms-search input::placeholder {
  color: #a2a9b8;
}

.ms-global-search{position:relative;min-width:0}.ms-global-search-results{position:absolute;z-index:1000;top:calc(100% + 7px);right:0;width:min(520px,calc(100vw - 24px));max-height:min(65vh,520px);overflow:auto;padding:8px;border:1px solid var(--ms-border-color,var(--border));border-radius:12px;background:var(--ms-surface-primary,#fff);box-shadow:0 18px 42px rgba(3,15,24,.22)}.ms-global-search-results section+section{border-top:1px solid var(--ms-border-color,var(--border))}.ms-global-search-results h3{margin:8px 10px 4px;font-size:11px;text-transform:uppercase;color:var(--ms-text-secondary,#68758c)}.ms-global-search-results button{display:grid;width:100%;gap:2px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left}.ms-global-search-results button:is(:hover,:focus,[aria-selected=true]){background:var(--ms-surface-secondary,#eef3fb)}.ms-global-search-results small{color:var(--ms-text-secondary,#68758c)}
@media(max-width:767px){.ms-global-search{flex:1;max-width:220px}.ms-global-search .ms-search{display:flex;width:100%}.ms-global-search-results{position:fixed;top:58px;left:8px;right:8px;width:auto}}


/* ==========================================================
   LANGUAGE
   ========================================================== */

.ms-language-wrap {
  position: relative;
}


.ms-language-button,
.ms-tool-button,
.ms-notification,
.ms-user-button {
  height: 39px;

  border:
    1px solid var(--border);

  border-radius: 11px;

  background: white;

  color: #4f586c;
}


.ms-language-button {
  min-width: 91px;

  padding:
    0 11px;

  display: flex;
  align-items: center;

  gap: 8px;

  font-size: 11px;
}


.flag {
  width: 22px;
  height: 15px;

  flex: 0 0 22px;

  border:
    1px solid rgba(0,0,0,.08);

  border-radius: 2px;
}


.flag-it {
  background:
    linear-gradient(
      90deg,
      #159447 0 33.33%,
      #fff 33.33% 66.66%,
      #d72d32 66.66%
    );
}


.flag-fr {
  background:
    linear-gradient(
      90deg,
      #234c9a 0 33.33%,
      #fff 33.33% 66.66%,
      #e2363b 66.66%
    );
}


.flag-pl {
  background:
    linear-gradient(
      180deg,
      #fff 0 50%,
      #dc143c 50%
    );
}


.flag-es {
  background:
    linear-gradient(
      180deg,
      #aa151b 0 25%,
      #f1bf00 25% 75%,
      #aa151b 75%
    );
}


.flag-gb {
  background:
    linear-gradient(
      135deg,
      #21468b 0 42%,
      #fff 42% 47%,
      #c8102e 47% 53%,
      #fff 53% 58%,
      #21468b 58%
    );
}


.flag-rs {
  background:
    linear-gradient(
      180deg,
      #c6363c 0 33.33%,
      #244b91 33.33% 66.66%,
      #fff 66.66%
    );
}


.flag-br {
  background:
    radial-gradient(
      circle at center,
      #244aa5 0 24%,
      transparent 25%
    ),
    linear-gradient(
      33deg,
      transparent 0 37%,
      #f7da35 38% 62%,
      transparent 63%
    ),
    #229447;
}


.ms-language-menu {
  width: 170px;

  position: absolute;

  top:
    calc(100% + 7px);

  right: 0;

  z-index: 100;

  padding: 6px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background: white;

  box-shadow:
    0 14px 34px
    rgba(39,46,80,.12);
}


.ms-language-menu button {
  width: 100%;
  min-height: 37px;

  padding:
    5px 7px;

  border: 0;
  border-radius: 8px;

  display: flex;
  align-items: center;

  gap: 9px;

  background: transparent;

  color: #535d70;

  font-size: 11px;

  text-align: left;
}


.ms-language-menu button:hover {
  background: #f4f5fb;
}


/* ==========================================================
   TOPBAR BUTTONS
   ========================================================== */

.ms-tool-button {
  padding:
    0 13px;

  display: flex;
  align-items: center;

  gap: 7px;

  font-size: 11px;
  font-weight: 650;
}


.ms-notification {
  width: 39px;

  display: grid;
  place-items: center;
}


.ms-user-button {
  min-width: 55px;
  max-width: 100%;

  padding:
    0 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;
}


.ms-user-button .ms-user-avatar {
  flex: 0 0 27px;
  background-position: center;
  width: 27px;
  height: 27px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background:
    linear-gradient(
      145deg,
      #a992fb,
      #7068e6
    );

  color: white;

  font-size: 10px;
  font-weight: 760;
}

.ms-user-button .ms-user-name{flex:0 1 auto;min-width:0;width:auto;height:auto;border-radius:0;background:transparent;color:inherit;font-size:12px;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis}


.ms-user-button b {
  flex: 0 0 auto;
  color: #8c94a6;
}


/* ==========================================================
   CONTENT
   ========================================================== */

.ms-content {
  width:
    min(1680px,100%);

  margin:
    0 auto;

  padding:
    22px 24px 38px;
}

/* The router's hidden attribute is the single view-visibility authority. */
.ms-route-view[hidden] {
  display: none !important;
}


/* ==========================================================
   CARDS
   ========================================================== */

.ms-card {
  border:
    1px solid var(--border);

  border-radius:
    var(--radius);

  background:
    var(--surface);

  box-shadow:
    var(--shadow);
}


/* ==========================================================
   KPI — FLUID GRID
   ========================================================== */

.ms-kpi-grid {
  width: 100%;

  margin-bottom: 13px;

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(150px,1fr)
    );

  gap: 10px;
}


.ms-kpi {
  min-width: 0;
  min-height: 105px;

  padding:
    14px;

  display: flex;
  align-items: center;

  gap: 11px;
}


.ms-kpi-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border-radius: 12px;

  display: grid;
  place-items: center;

  box-shadow:
    inset 0 1px 1px
    rgba(255,255,255,.55),
    0 5px 10px
    rgba(40,45,80,.12);
}


.ms-kpi-icon img {
  width: 28px;
  height: 28px;

  object-fit: contain;
}


.ms-kpi-icon.purple {
  background:
    linear-gradient(
      145deg,
      #aa96ff,
      #765bd9
    );
}


.ms-kpi-icon.blue {
  background:
    linear-gradient(
      145deg,
      #82b6ff,
      #3b7fe9
    );
}


.ms-kpi-icon.orange {
  background:
    linear-gradient(
      145deg,
      #ffc77a,
      #f09a39
    );
}


.ms-kpi-icon.green {
  background:
    linear-gradient(
      145deg,
      #77d8aa,
      #2da66f
    );
}


.ms-kpi-icon.cyan {
  background:
    linear-gradient(
      145deg,
      #7bd8e6,
      #28a9c8
    );
}


.ms-kpi-icon.violet {
  background:
    linear-gradient(
      145deg,
      #a68df5,
      #6955ce
    );
}


.ms-kpi-icon.emerald {
  background:
    linear-gradient(
      145deg,
      #76d7a4,
      #259b67
    );
}


.ms-kpi-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
}


.ms-kpi-copy > span {
  overflow: hidden;

  color: var(--muted);

  font-size: 10.8px;

  white-space: nowrap;

  text-overflow: ellipsis;
}


.ms-kpi-copy strong {
  margin-top: 2px;

  font-size: 20px;
}


.ms-kpi-copy small {
  margin-top: 5px;

  color: var(--faint);

  font-size: 8.5px;

  line-height: 1.2;
}


/* ==========================================================
   DASHBOARD GRID
   ========================================================== */

.ms-dashboard-grid {
  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    clamp(275px,21vw,330px);

  gap: 13px;

  align-items: start;
}


.ms-dashboard-main,
.ms-dashboard-side {
  min-width: 0;

  display: grid;

  gap: 13px;
}


/* ==========================================================
   COMMON CARD HEADER
   ========================================================== */

.ms-card-header {
  min-height: 39px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}


.ms-card-header h2 {
  margin:
    3px 0 0;

  font-size: 15px;
}


.ms-card-link,
.ms-map-open,
.ms-email-expand {
  border: 0;

  background: transparent;

  color: #5553c2;

  font-size: 10.5px;

  font-weight: 700;
}


/* ==========================================================
   PIPELINE
   ========================================================== */

.ms-pipeline-card {
  padding: 16px;
}

.ms-opportunity-intelligence{padding:16px}.ms-opportunity-kpis{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));gap:8px;margin-top:13px}.ms-opportunity-kpis button{display:grid;gap:5px;padding:10px;border:1px solid var(--line,#e7eaf1);border-radius:10px;background:var(--card,#fff);text-align:left;cursor:pointer}.ms-opportunity-kpis span{color:var(--muted);font-size:10px}.ms-opportunity-kpis strong{font-size:15px}.ms-opportunity-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.ms-opportunity-charts>section{padding:11px;border:1px solid var(--line,#e7eaf1);border-radius:11px;background:var(--surface,#f8f9fc)}.ms-opportunity-charts h3{margin:0 0 9px;font-size:11px}.ms-oi-bars{display:grid;gap:7px}.ms-oi-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(90px,2fr) auto;align-items:center;gap:8px;border:0;background:transparent;color:inherit;text-align:left;font:inherit}.ms-oi-row[data-company-route]{cursor:pointer}.ms-oi-row-label{overflow:hidden;font-size:10px;white-space:nowrap;text-overflow:ellipsis}.ms-oi-track{height:7px;overflow:hidden;border-radius:999px;background:#e7eaf1}.ms-oi-fill{display:block;height:100%;border-radius:inherit;background:var(--oi-color,#5553c2)}.ms-oi-value{font-size:10px;font-weight:750}.ms-oi-empty{margin:0;color:var(--muted);font-size:10px}


.ms-pipeline {
  margin-top: 13px;

  display: grid;

  grid-template-columns:
    repeat(
      5,
      minmax(140px,1fr)
    );

  gap: 8px;

  overflow-x: auto;
}


.ms-stage {
  min-height: 300px;

  padding: 9px;

  border:
    1px solid #e7eaf1;

  border-radius: 11px;

  display: flex;
  flex-direction: column;

  background: #f8f9fc;
}


.ms-stage header {
  height: 29px;

  display: flex;
  align-items: center;

  gap: 7px;
}


.ms-stage header i {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}


.ms-stage i.blue {
  background: var(--blue);
}

.ms-stage i.purple {
  background: var(--purple);
}

.ms-stage i.cyan {
  background: var(--cyan);
}

.ms-stage i.orange {
  background: var(--orange);
}

.ms-stage i.green {
  background: var(--green);
}


.ms-stage header strong {
  font-size: 10.5px;
}


.ms-stage header span {
  margin-left: auto;

  color: #a3a9b5;

  font-size: 10px;
}


.ms-stage-empty {
  min-height: 65px;

  margin-top: 8px;

  border:
    1px dashed #dce1e9;

  border-radius: 9px;

  display: grid;
  place-items: center;

  background:
    rgba(255,255,255,.62);

  color: #a0a7b5;

  font-size: 9.5px;
}


.ms-stage footer {
  margin-top: auto;

  padding-top: 10px;

  display: flex;
  flex-direction: column;

  gap: 3px;
}


.ms-stage footer span {
  color: #9aa2b1;

  font-size: 8.5px;
}


.ms-stage footer strong {
  font-size: 11px;
}


/* ==========================================================
   EMAIL
   ========================================================== */

.ms-email-card {
  min-height: 292px;

  padding: 15px;

  display: flex;
  flex-direction: column;
}


.ms-email-title {
  display: flex;
  align-items: center;

  gap: 8px;
}


.ms-email-title > span {
  color: #6e77a0;

  font-size: 15px;
}


.ms-email-title h2 {
  margin: 0;

  font-size: 13px;

  text-transform: uppercase;
}


.ms-email-expand {
  width: 29px;
  height: 29px;

  border:
    1px solid #e7e9ef;

  border-radius: 8px;

  background: #fff;
}


.ms-email-list {
  flex: 1;

  margin-top: 8px;
}


.ms-email-empty {
  min-height: 190px;

  padding: 20px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 6px;

  text-align: center;

  background: #f8f9fc;

  border-radius: 10px;
}


.ms-email-empty-icon {
  width: 37px;
  height: 37px;

  margin-bottom: 3px;

  border-radius: 10px;

  display: grid;
  place-items: center;

  background: #eeefff;

  color: #6863d9;

  font-size: 18px;
}


.ms-email-empty strong {
  color: #6b7487;

  font-size: 10.5px;
}


.ms-email-empty span {
  max-width: 220px;

  color: #979faf;

  font-size: 9px;

  line-height: 1.45;
}


.ms-email-footer {
  min-height: 34px;

  margin-top: 7px;

  padding: 0;

  border: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;

  color: #5552c4;

  font-size: 10px;

  font-weight: 700;
}


/* ==========================================================
   MAP
   ========================================================== */

.ms-map-card {
  padding: 13px;
}


.ms-map-header {
  align-items: center;
}


.ms-map-heading {
  display: flex;
  align-items: center;

  gap: 7px;
}


.ms-map-heading > span:last-child {
  color: #7d8699;

  font-size: 9px;
}


.ms-map-pin {
  width: 20px;
  height: 20px;

  border-radius: 7px;

  display: grid;
  place-items: center;

  background: #f0efff;

  color: #6762dc;
}


.ms-map-open {
  height: 31px;

  padding:
    0 12px;

  border:
    1px solid #e1e4ee;

  border-radius: 9px;

  background: white;
}


.ms-map {
  height: 225px;

  margin-top: 9px;

  position: relative;

  overflow: hidden;

  border:
    1px solid #e7eaf0;

  border-radius: 11px;

  background: #edf3f1;
}

.ms-map-data-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  padding: 6px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
  box-shadow: 0 2px 8px rgba(20, 30, 50, .14);
  font-size: 11px;
}


.ms-map-placeholder {
  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 5px;

  background:
    radial-gradient(
      circle at 22% 42%,
      rgba(98,155,108,.15),
      transparent 35%
    ),
    radial-gradient(
      circle at 72% 31%,
      rgba(76,139,184,.14),
      transparent 38%
    ),
    #eef3f2;

  color: #8c95a4;
}


.ms-map-orb {
  width: 42px;
  height: 42px;

  margin-bottom: 4px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #7773e7 0 15%,
      rgba(119,115,231,.14) 16% 42%,
      transparent 43%
    );
}


.ms-map-placeholder strong {
  color: #687182;

  font-size: 10.5px;
}


.ms-map-placeholder span {
  font-size: 8.8px;
}


/* ==========================================================
   FLOATING ASTRA
   ========================================================== */

.ms-floating-astra {
  --ms-astra-launcher-width: clamp(92px, 8.5vw, 116px);
  --ms-astra-portrait-width: clamp(76px, 7vw, 98px);
  --ms-astra-portrait-height: clamp(96px, 9vw, 126px);

  width: var(--ms-astra-launcher-width);

  position: fixed;

  left: 20px;
  bottom: 22px;

  z-index: 1000;

  padding: 0;

  border: 0;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 3px;

  background: transparent;

  touch-action: none;

  user-select: none;

  cursor: grab;

  filter:
    drop-shadow(
      0 10px 18px
      rgba(88,79,205,.20)
    );
}


.ms-floating-astra:active {
  cursor: grabbing;
}


.ms-astra-halo {
  width: var(--ms-astra-portrait-width);
  height: var(--ms-astra-portrait-height);

  border-radius: 46% 46% 42% 42%;

  display: grid;
  place-items: center;

  background: transparent;

  box-shadow:
    0 0 0 1px
      rgba(124,113,225,.08),
    0 7px 24px
      rgba(91,79,200,.18);
}


.ms-astra-halo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;

  pointer-events: none;

  transition: opacity 140ms ease, transform 180ms ease;
}

.ms-floating-astra[data-astra-state="processing"] .ms-astra-halo img,
.ms-floating-astra[data-astra-state="thinking"] .ms-astra-halo img {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .ms-astra-halo img {
    transition: none;
  }
}


.ms-floating-astra strong {
  margin-top: -6px;

  padding:
    3px 9px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #7e70ec,
      #5d57d9
    );

  color: white;

  font-size: 9px;

  letter-spacing: .025em;

  box-shadow:
    0 4px 10px
    rgba(74,67,183,.17);
}

.ms-astra-conversation { position:fixed; left:24px; right:auto; bottom:132px; z-index:1240; width:min(440px,calc(100vw - 32px)); max-height:min(680px,calc(100dvh - 156px)); background:var(--ms-surface,#fff); color:var(--ms-text,#172033); border:1px solid rgba(100,116,139,.25); border-radius:18px; box-shadow:0 22px 60px rgba(15,23,42,.24); overflow:hidden; }
.ms-astra-conversation[hidden] { display:none; }
.ms-astra-conversation header{
  position:relative;
  min-height:154px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  padding:10px 12px 8px;
  border-bottom:1px solid rgba(100,116,139,.18);
  overflow:hidden;
}
.ms-astra-conversation header>strong{
  align-self:start;
  padding:8px 0 0 4px;
  font-size:11px;
  letter-spacing:.14em;
}
.ms-astra-conversation .ms-astra-panel-avatar{
  grid-column:2;
  position:relative;
  align-self:end;
  width:118px;
  height:142px;
  margin:-2px auto -8px;
  display:grid;
  place-items:end center;
  pointer-events:none;
}
.ms-astra-conversation .ms-astra-panel-avatar::before{
  content:"";
  position:absolute;
  inset:30% 3% 2%;
  border-radius:50%;
  background:
    radial-gradient(
      circle,
      rgba(80,188,255,.20),
      transparent 68%
    );
}
.ms-astra-conversation .ms-astra-panel-avatar img{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
}
.ms-astra-conversation header>[data-astra-close]{
  grid-column:3;
  justify-self:end;
}
.ms-astra-conversation header button { border:0; background:transparent; font-size:24px; cursor:pointer; }
.ms-astra-messages { min-height:180px; max-height:390px; overflow:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.ms-astra-message { margin:0; padding:10px 12px; border-radius:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.ms-astra-message-user { align-self:flex-end; background:#2563eb; color:#fff; }
.ms-astra-message-assistant { align-self:flex-start; background:rgba(100,116,139,.12); }
.ms-astra-message-status { align-self:center; color:#b45309; font-size:13px; }
.ms-astra-action-confirmation { padding:12px; border:1px solid rgba(37,99,235,.3); border-radius:12px; background:rgba(37,99,235,.06); }
.ms-astra-action-confirmation p { margin:0 0 6px; font-weight:600; overflow-wrap:anywhere; }
.ms-astra-action-confirmation small { display:block; margin-bottom:10px; }
.ms-astra-action-confirmation div { display:flex; gap:8px; }
.ms-astra-action-confirmation button { padding:7px 12px; border:1px solid rgba(100,116,139,.35); border-radius:8px; background:var(--ms-surface,#fff); color:inherit; cursor:pointer; }
.ms-astra-action-confirmation button:disabled { cursor:not-allowed; opacity:.55; }
.ms-astra-conversation form { padding:12px; border-top:1px solid rgba(100,116,139,.18); }
.ms-astra-conversation textarea { box-sizing:border-box; width:100%; resize:vertical; padding:10px; border:1px solid rgba(100,116,139,.35); border-radius:10px; font:inherit; }
.ms-astra-conversation form div { display:flex; justify-content:space-between; margin-top:8px; }
.ms-astra-conversation form button { padding:8px 14px; border:0; border-radius:9px; cursor:pointer; }



@media(max-width:767px){
  .ms-astra-conversation{
    left:10px;
    right:10px;
    bottom:max(138px,calc(env(safe-area-inset-bottom) + 128px));
    width:auto;
    max-height:calc(100dvh - 164px);
    border-radius:15px;
  }
  .ms-astra-conversation header{
    min-height:124px;
  }
  .ms-astra-conversation .ms-astra-panel-avatar{
    width:96px;
    height:116px;
    margin-bottom:-7px;
  }
  .ms-astra-messages{
    min-height:140px;
    max-height:min(42dvh,330px);
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

.ms-record-subnav {
  margin: 0 0 12px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ms-border-color,#e1e5ed);
}

.ms-record-subnav button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ms-text-secondary,#748096);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ms-record-subnav button.active {
  border-bottom-color: var(--ms-accent,#5b55d9);
  color: var(--ms-text-primary,#283247);
}

.ms-record-subnav button:disabled { opacity: .62; cursor: default; }

@media (max-width: 1280px) {

  .ms-dashboard-grid {
    grid-template-columns:
      minmax(0,1fr)
      285px;
  }

  .ms-search {
    width: 220px;
  }

}


@media (max-width: 1050px) {

  :root {
    --sidebar-width: 78px;
  }

  .ms-brand-copy,
  .ms-nav-label,
  .ms-nav-caret,
  .ms-nav-submenu,
  .ms-collapse {
    display: none;
  }

  .ms-brand {
    justify-content: center;
  }

  .ms-nav-item {
    justify-content: center;

    padding-left: 0;
    padding-right: 0;
  }

  .ms-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ms-dashboard-side {
    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }

  .ms-opportunity-kpis {
    grid-template-columns: repeat(3,minmax(100px,1fr));
  }

  .ms-search {
    display: none;
  }

}


@media (max-width: 720px) {

  .ms-shell {
    grid-template-columns: 1fr;
  }

  .ms-sidebar {
    display: none;
  }

  .ms-content {
    padding:
      14px 12px 30px;
  }

  .ms-topbar {
    padding:
      0 12px;
  }

  .ms-tool-button,
  .ms-notification {
    display: none;
  }

  .ms-dashboard-side {
    grid-template-columns: 1fr;
  }

  .ms-kpi-grid {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(135px,1fr)
      );
  }

  .ms-opportunity-kpis,
  .ms-opportunity-charts {
    grid-template-columns: 1fr;
  }

}

/* === FOUNDATION V3-009E GLOBAL TYPOGRAPHY START === */

:root{
  --ms-font-scale:1;

  --ms-font-xs:
    calc(11.5px * var(--ms-font-scale));

  --ms-font-sm:
    calc(12px * var(--ms-font-scale));

  --ms-font-base:
    calc(13px * var(--ms-font-scale));

  --ms-font-control:
    calc(13px * var(--ms-font-scale));

  --ms-font-card-title:
    calc(14px * var(--ms-font-scale));

  --ms-font-section-title:
    calc(16px * var(--ms-font-scale));

  --ms-font-page-title:
    calc(22px * var(--ms-font-scale));

  --ms-line-base:1.35;
}


/* FOUNDATION */

html,
body{
  font-size:
    var(--ms-font-base);

  line-height:
    var(--ms-line-base);
}


/* OPERATIONAL TEXT */

body :where(
  p,
  label,
  a,
  span,
  td,
  th
){
  font-size:
    var(--ms-font-base);
}


/* FORM CONTROLS */

button,
input,
select,
textarea{
  font-family:inherit;

  font-size:
    var(--ms-font-control) !important;

  line-height:1.3;
}

input::placeholder,
textarea::placeholder{
  font-size:
    var(--ms-font-control);
}


/* TABLES / EXPLORERS */

table,
table th,
table td,
[role="grid"],
[role="gridcell"],
[role="columnheader"]{
  font-size:
    var(--ms-font-base);
}

table th,
[role="columnheader"]{
  font-weight:700;
}


/* SIDEBAR / TOPBAR / TOOLBARS */

.ms-sidebar,
.ms-sidebar *,
.ms-topbar,
.ms-topbar *,
.ms-toolbar,
.ms-toolbar *,
.ms-company-toolbar,
.ms-company-toolbar *,
.ms-explorer-toolbar,
.ms-explorer-toolbar *{
  font-size:
    var(--ms-font-base);
}


/* COMPANY / GENERAL CARDS */

.ms-card,
.ms-card *,
.ms-company-panel,
.ms-company-panel *,
.ms-v3-detail-section,
.ms-v3-detail-section *,
.ms-v3-company-extended,
.ms-v3-company-extended *{
  font-size:
    var(--ms-font-base);
}

.ms-v3-detail-label,
.ms-v3-detail-value,
.ms-v3-country-cell,
.ms-v3-country-cell-label{
  font-size:
    var(--ms-font-base) !important;
}


/* SECONDARY */

small,
.ms-meta,
.ms-muted,
.ms-secondary-text,
.ms-caption,
.ms-eyebrow,
.ms-v3-company-extended-eyebrow{
  font-size:
    var(--ms-font-xs) !important;
}


/* HEADINGS */

h1{
  font-size:
    var(--ms-font-page-title);

  line-height:1.18;
}

h2{
  font-size:
    var(--ms-font-section-title);

  line-height:1.2;
}

h3{
  font-size:
    var(--ms-font-card-title);

  line-height:1.22;
}

.ms-card h3,
.ms-company-panel h3,
.ms-v3-detail-section h3{
  font-size:
    var(--ms-font-card-title) !important;

  font-weight:800;
}

.ms-v3-company-extended-header h2{
  font-size:
    18px !important;
}


/* IMPORT / EXPORT REFERENCE */

.ms-import-export,
.ms-import-export *,
[data-import-export],
[data-import-export] *{
  font-size:
    var(--ms-font-base);
}


/* FUTURE SETTINGS PRESETS */

.ms-font-size-small{
  --ms-font-scale:.92;
}

.ms-font-size-standard{
  --ms-font-scale:1;
}

.ms-font-size-large{
  --ms-font-scale:1.10;
}


/* RESPONSIVE */

@media(max-width:760px){

  :root{
    --ms-font-scale:1;
  }

}

/* === FOUNDATION V3-009E GLOBAL TYPOGRAPHY END === */

/* === V3-009F APPEARANCE VARIABLE BRIDGE START === */

:root{

  --ms-font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  --ms-space-1:4px;
  --ms-space-2:8px;
  --ms-space-3:12px;
  --ms-space-4:16px;
  --ms-space-5:20px;
  --ms-space-6:24px;

  --ms-radius-sm:6px;
  --ms-radius-md:9px;
  --ms-radius-lg:12px;
  --ms-radius-xl:16px;

  --ms-control-height:40px;
  --ms-icon-sm:16px;
  --ms-icon-md:20px;
  --ms-icon-lg:24px;
  --ms-icon-xl:32px;
  /* OMNIA semantic icon and spacing standard R1. Shared across themes. */
  --ms-space-8:32px;
  --omnia-space-1:var(--ms-space-1);
  --omnia-space-2:var(--ms-space-2);
  --omnia-space-3:var(--ms-space-3);
  --omnia-space-4:var(--ms-space-4);
  --omnia-space-6:var(--ms-space-6);
  --omnia-space-8:var(--ms-space-8);
  --omnia-icon-sidebar:22px;
  --omnia-icon-submenu:18px;
  --omnia-icon-topbar:20px;
  --omnia-icon-quick-action:32px;
  --omnia-icon-quick-action-container:46px;
  --omnia-icon-kpi:28px;
  --omnia-icon-kpi-container:40px;
  --omnia-icon-widget:24px;
  --omnia-icon-widget-container:36px;
  --omnia-icon-button:18px;
  --omnia-icon-primary-button:20px;
  --omnia-icon-status:16px;
  --omnia-icon-travel:36px;
  --omnia-icon-travel-container:52px;
  --omnia-touch-target:44px;

  --ms-bg-app:#f3f6fa;
  --ms-bg-sidebar:#091729;

  --ms-surface-primary:#ffffff;
  --ms-surface-secondary:#f7f9fc;
  --ms-surface-tertiary:#eef3f8;

  --ms-text-primary:#142238;
  --ms-text-secondary:#526176;
  --ms-text-muted:#7b889b;

  --ms-border-color:#dce4ed;

  --ms-accent:#087ddd;
  --ms-accent-hover:#0569bd;
  --ms-accent-soft:#e8f4ff;
  --ms-focus:#15aeea;

  --ms-success:#16845b;
  --ms-warning:#a86508;
  --ms-danger:#bf3542;
  --ms-info:#087ddd;

  --ms-shadow:
    0 8px 24px
    rgba(30,36,58,.06);
  --ms-shadow-xs:0 1px 2px rgba(12,32,56,.05);
  --ms-shadow-sm:0 6px 18px rgba(12,32,56,.07);
  --ms-shadow-lg:0 18px 45px rgba(12,32,56,.13);

  --bg:var(--ms-bg-app);
  --surface:var(--ms-surface-primary);
  --surface-soft:var(--ms-surface-secondary);
  --border:var(--ms-border-color);
  --text:var(--ms-text-primary);
  --muted:var(--ms-text-secondary);
  --primary:var(--ms-accent);
  --radius:var(--ms-radius-lg);
  --shadow:var(--ms-shadow-sm);

}

/* === V3-009F APPEARANCE VARIABLE BRIDGE END === */





/* ==========================================================================
   FOUNDATION V3 — CANONICAL EXPLORER TOOLBAR V1
   Authority strutturale: MasterSuiteCRMExplorer
   ========================================================================== */

:is(
    .ms-crm-explorer-toolbar,
    .crm-explorer-toolbar,
    [data-crm-explorer-toolbar]
){
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:7px !important;

    width:100% !important;
    min-width:0 !important;

    overflow:hidden !important;
}

:is(
    .ms-crm-explorer-toolbar,
    .crm-explorer-toolbar,
    [data-crm-explorer-toolbar]
) button{
    flex:0 0 auto !important;

    min-width:0 !important;
    width:auto !important;
    min-height:40px !important;

    padding:0 11px !important;

    white-space:nowrap !important;

    font-size:13px !important;
}

/*
 * Simbologia:
 * non generiamo alcuna seconda icona via pseudo-elementi.
 */

:is(
    .ms-crm-explorer-toolbar,
    .crm-explorer-toolbar,
    [data-crm-explorer-toolbar]
) button::before,
:is(
    .ms-crm-explorer-toolbar,
    .crm-explorer-toolbar,
    [data-crm-explorer-toolbar]
) button::after{
    content:none !important;
}

/*
 * Campo ricerca:
 * ultimo elemento, usa lo spazio residuo.
 */

:is(
    .ms-crm-explorer-toolbar,
    .crm-explorer-toolbar,
    [data-crm-explorer-toolbar]
)
:is(
    .ms-crm-explorer-search,
    .crm-explorer-search,
    [data-crm-explorer-search],
    label:has(input[type="search"])
){
    order:999 !important;

    margin-left:auto !important;

    flex:1 1 260px !important;

    min-width:170px !important;
    max-width:420px !important;
}

:is(
    .ms-crm-explorer-toolbar,
    .crm-explorer-toolbar,
    [data-crm-explorer-toolbar]
)
input[type="search"]{
    width:100% !important;
    min-width:0 !important;
}

/*
 * Firefox 100% — baseline canonica.
 */

@media (max-width:1500px){

    :is(
        .ms-crm-explorer-toolbar,
        .crm-explorer-toolbar,
        [data-crm-explorer-toolbar]
    ){
        gap:5px !important;
    }

    :is(
        .ms-crm-explorer-toolbar,
        .crm-explorer-toolbar,
        [data-crm-explorer-toolbar]
    ) button{
        min-height:38px !important;
        padding:0 8px !important;
        font-size:12px !important;
    }

    :is(
        .ms-crm-explorer-toolbar,
        .crm-explorer-toolbar,
        [data-crm-explorer-toolbar]
    )
    :is(
        .ms-crm-explorer-search,
        .crm-explorer-search,
        [data-crm-explorer-search],
        label:has(input[type="search"])
    ){
        min-width:150px !important;
        max-width:320px !important;
    }
}

/* ========================================================================== */

/* OMNIA MASTER FOUNDATION R2 — canonical shell */
.ms-theme-dark{--ms-bg-app:#0c1624;--ms-bg-sidebar:#07111f;--ms-surface-primary:#142235;--ms-surface-secondary:#18293d;--ms-surface-tertiary:#1c3046;--ms-text-primary:#edf5fc;--ms-text-secondary:#afbed0;--ms-text-muted:#7f93a9;--ms-border-color:#2a3d53;--ms-accent:#38bdf8;--ms-accent-hover:#72d5ff;--ms-accent-soft:#143a51;--ms-focus:#56d7ff}
html,body{max-width:100%;overflow-x:hidden;font-family:var(--ms-font-family)}
:where(button,input,select,textarea):focus-visible{outline:2px solid var(--ms-focus);outline-offset:2px}
.ms-sidebar{padding:14px 12px;background:radial-gradient(circle at 20% 0,rgba(31,169,232,.12),transparent 28%),linear-gradient(180deg,var(--ms-bg-sidebar),#07111f);border-right:1px solid rgba(132,187,226,.16);color:#dbe9f5}
.ms-brand{min-height:58px;border-color:rgba(153,197,228,.14)}
.ms-logo{border:1px solid rgba(213,235,251,.45);background:linear-gradient(145deg,#f3f9fd 0%,#91bddf 36%,#377fbc 60%,#a5eaff 100%);box-shadow:inset 0 1px 1px #fff,0 0 22px rgba(39,181,245,.2);color:#071523}
.ms-brand-copy strong{color:#f2f7fb;letter-spacing:.13em}.ms-brand-copy span{color:#8298ac}.ms-collapse{border-color:rgba(153,197,228,.18);background:rgba(255,255,255,.06);color:#b4c8da}
.ms-nav-item{min-height:42px;border-radius:var(--ms-radius-md);color:#aabccd}.ms-nav-item:hover{background:rgba(78,170,224,.09);color:#f4f9fc}.ms-nav-item.active{background:linear-gradient(90deg,rgba(18,150,222,.24),rgba(18,150,222,.08));box-shadow:inset 3px 0 #35c4fa;color:#fff}.ms-nav-subitem{color:#91a8bb}.ms-nav-subitem.active{color:#56d7ff}.ms-nav-icon{width:28px;height:28px}.ms-nav-icon img{width:28px;height:28px}
.ms-nav-subitem-pending,.ms-nav-leaf{display:flex;align-items:center;min-height:30px;padding:5px 10px;color:#71879a;font-size:11px;line-height:1.25;cursor:default}.ms-nav-subitem-pending::after,.ms-nav-leaf::after{content:"";width:5px;height:5px;margin-left:auto;border-radius:50%;background:currentColor;opacity:.55}.ms-nav-nested-parent{width:100%;justify-content:space-between;border:0;background:transparent;text-align:left}.ms-nav-nested-group.expanded>.ms-nav-nested-parent{color:#c4d5e3}.ms-nav-nested-parent[aria-expanded="true"] .ms-nav-caret{transform:rotate(90deg)}.ms-nav-nested-menu{margin:1px 0 4px 12px;padding-left:8px;border-left:1px solid rgba(132,187,226,.18)}.ms-nav-leaf{min-height:26px;padding-block:3px}
.ms-topbar{height:60px;border-bottom:1px solid var(--ms-border-color);background:color-mix(in srgb,var(--ms-surface-primary) 94%,transparent);box-shadow:var(--ms-shadow-xs)}
.ms-content{padding:var(--ms-space-5);background:var(--ms-bg-app)}
.ms-card,.panel{border:1px solid var(--ms-border-color);border-radius:var(--ms-radius-lg);background:var(--ms-surface-primary);box-shadow:var(--ms-shadow-xs)}
.ms-users-foundation-mount{min-width:0;padding:var(--ms-space-5)}
@media(max-width:1199px){:root{--sidebar-width:78px}.ms-sidebar{padding-inline:9px}.ms-brand-copy,.ms-nav-label,.ms-nav-caret{display:none}.ms-brand{justify-content:center}.ms-collapse{display:none}.ms-nav-item{justify-content:center;padding-inline:6px}.ms-nav-submenu{display:none!important}}
@media(max-width:767px){.ms-shell{display:block;height:auto;min-height:100dvh;overflow:visible}.ms-sidebar{position:fixed;z-index:900;inset:auto 0 0;height:64px;padding:7px 10px;overflow-x:auto;overflow-y:hidden;border:0;border-top:1px solid rgba(132,187,226,.2)}.ms-brand,.ms-nav-spacer,.ms-nav-group[data-nav-group="offer-compiler"]{display:none}.ms-nav{display:flex;flex-direction:row;align-items:center;gap:4px;padding:0}.ms-nav-item{flex:0 0 52px;min-height:49px}.ms-nav-group{display:contents}.ms-main{min-height:100dvh;padding-bottom:64px}.ms-topbar{position:sticky;top:0;z-index:800;height:56px;padding-inline:14px}.ms-topbar-title small,.ms-search,.ms-tool-button,.ms-notification{display:none}.ms-topbar-tools{gap:7px}.ms-language-button,.ms-user-button{min-width:40px;min-height:40px}.ms-content,.ms-users-foundation-mount{padding:var(--ms-space-3)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* OMNIA DASHBOARD MASTER MIGRATION R1 — Foundation R2 composition */
#dashboardView{min-width:0}
#dashboardView .ms-dashboard-toolbar{display:flex;justify-content:flex-end;min-width:0;margin-bottom:var(--ms-space-2)}
#dashboardView .ms-dashboard-toolbar .ms-canonical-toolbar{width:auto}
#dashboardView .ms-dashboard-toolbar .ms-canonical-toolbar-button{min-height:34px;border-color:var(--ms-border-color);background:var(--ms-surface-primary);color:var(--ms-text-secondary)}
#dashboardView .ms-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--ms-space-2);margin-bottom:var(--ms-space-3)}
#dashboardView .ms-kpi{min-width:0;min-height:88px;padding:var(--ms-space-3);gap:var(--ms-space-3);overflow:hidden}
#dashboardView .ms-kpi-icon{width:36px;height:36px;flex-basis:36px;border-radius:var(--ms-radius-md);background:var(--ms-accent-soft);box-shadow:none}
#dashboardView .ms-kpi-icon img{width:24px;height:24px}
#dashboardView .ms-kpi-copy{min-width:0;overflow:hidden}
#dashboardView .ms-kpi-copy>span{color:var(--ms-text-secondary);font-size:10px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
#dashboardView .ms-kpi-copy strong{max-width:100%;overflow-wrap:anywhere;color:var(--ms-text-primary);font-size:clamp(16px,1.35vw,21px);line-height:1.12;font-variant-numeric:tabular-nums}
#dashboardView .ms-kpi-copy small{max-width:100%;overflow-wrap:anywhere;color:var(--ms-text-muted);font-size:9px;line-height:1.3}
#dashboardView .ms-dashboard-grid{grid-template-columns:minmax(0,1fr) clamp(240px,19vw,290px);gap:var(--ms-space-3)}
#dashboardView .ms-dashboard-main,#dashboardView .ms-dashboard-side{min-width:0;gap:var(--ms-space-3)}
#dashboardView .ms-card-header{min-width:0;min-height:34px;align-items:center}
#dashboardView .ms-card-header>div{min-width:0}
#dashboardView .ms-card-header small{color:var(--ms-accent);font-size:9px;font-weight:800;letter-spacing:.1em}
#dashboardView .ms-card-header h2{overflow-wrap:anywhere;color:var(--ms-text-primary);font-size:14px}
#dashboardView .ms-card-link,#dashboardView .ms-map-open{min-height:34px;padding:0 9px;color:var(--ms-accent);font-size:10px;white-space:normal;text-align:right}
#dashboardView .ms-pipeline-card,#dashboardView .ms-opportunity-intelligence,#dashboardView .ms-map-card{min-width:0;padding:var(--ms-space-3);overflow:hidden}
#dashboardView .ms-opportunity-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--ms-space-2);margin-top:var(--ms-space-3)}
#dashboardView .ms-opportunity-kpis button{min-width:0;min-height:64px;padding:9px;border-color:var(--ms-border-color);border-radius:var(--ms-radius-md);background:var(--ms-surface-secondary);color:var(--ms-text-primary);overflow:hidden}
#dashboardView .ms-opportunity-kpis span{overflow-wrap:anywhere;color:var(--ms-text-secondary)}
#dashboardView .ms-opportunity-kpis strong{max-width:100%;overflow-wrap:anywhere;font-size:clamp(12px,1.1vw,16px);font-variant-numeric:tabular-nums}
#dashboardView .ms-opportunity-charts{gap:var(--ms-space-2);margin-top:var(--ms-space-3)}
#dashboardView .ms-opportunity-charts>section{min-width:0;padding:10px;border-color:var(--ms-border-color);border-radius:var(--ms-radius-md);background:var(--ms-surface-secondary);overflow:hidden}
#dashboardView .ms-oi-row{min-width:0;grid-template-columns:minmax(72px,1fr) minmax(60px,1.4fr) minmax(54px,auto);gap:6px}
#dashboardView .ms-oi-row-label,#dashboardView .ms-oi-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dashboardView .ms-oi-track{min-width:0;background:var(--ms-surface-tertiary)}
#dashboardView .ms-map{max-width:100%;height:210px;border-color:var(--ms-border-color);background:var(--ms-surface-secondary)}
#dashboardView .ms-map-heading{min-width:0;flex-wrap:wrap}
#dashboardView .ms-map-heading>span:last-child{min-width:0;overflow-wrap:anywhere;color:var(--ms-text-secondary)}
#dashboardView .ms-map-data-status{max-width:calc(100% - 24px);overflow-wrap:anywhere}
#dashboardView .ms-quick-card{min-width:0;padding:var(--ms-space-3)}
#dashboardView .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ms-space-2);margin-top:4px}
#dashboardView .ms-quick-grid button{min-width:0;min-height:64px;padding:5px 2px;border-radius:var(--ms-radius-md)}
#dashboardView .ms-quick-grid b{overflow-wrap:anywhere;color:var(--ms-text-secondary);font-size:9px}

@media(max-width:1199px){#dashboardView .ms-dashboard-grid{grid-template-columns:minmax(0,1fr) 240px}#dashboardView .ms-opportunity-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1023px){#dashboardView .ms-dashboard-grid{grid-template-columns:1fr}#dashboardView .ms-dashboard-side{grid-template-columns:1fr}#dashboardView .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:834px){#dashboardView .ms-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#dashboardView .ms-kpi:last-child{grid-column:auto}#dashboardView .ms-opportunity-charts{grid-template-columns:1fr}}
@media(max-width:767px){.ms-sidebar{display:flex}#dashboardView .ms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboardView .ms-kpi{min-height:82px}#dashboardView .ms-kpi:last-child{grid-column:1/-1}#dashboardView .ms-card-header{align-items:flex-start}#dashboardView .ms-opportunity-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboardView .ms-oi-row{grid-template-columns:minmax(68px,1fr) minmax(52px,1fr) minmax(48px,auto)}#dashboardView .ms-map-header{display:grid}#dashboardView .ms-map-open{justify-self:start;text-align:left}}
@media(max-width:430px){#dashboardView .ms-kpi{padding:10px;gap:9px}#dashboardView .ms-kpi-icon{width:32px;height:32px;flex-basis:32px}#dashboardView .ms-kpi-icon img{width:21px;height:21px}#dashboardView .ms-kpi-copy strong{font-size:15px}#dashboardView .ms-opportunity-kpis{grid-template-columns:1fr 1fr}#dashboardView .ms-opportunity-kpis button{min-height:60px}#dashboardView .ms-oi-row{grid-template-columns:minmax(0,1fr) minmax(46px,.8fr);gap:5px}#dashboardView .ms-oi-track{display:none}#dashboardView .ms-oi-value{text-align:right}#dashboardView .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ==========================================================================
   OMNIA DASHBOARD VISUAL NEXUS R2
   Premium dark command-center presentation built on Foundation R2 tokens.
   ========================================================================== */
.ms-dashboard-nexus{
  --ms-bg-app:#050d19;--ms-surface-primary:#0b1929;--ms-surface-secondary:#0e2033;--ms-surface-tertiary:#132a40;
  --ms-text-primary:#f3f9ff;--ms-text-secondary:#a9bfd2;--ms-text-muted:#7791a8;--ms-border-color:#1c3c58;
  --ms-accent:#209cff;--ms-accent-hover:#55c8ff;--ms-accent-soft:#0e3453;--ms-focus:#46d8ff;
  --ms-shadow-xs:0 1px 0 rgba(108,201,255,.08),0 7px 22px rgba(0,8,20,.2);
  --ms-shadow-sm:0 12px 30px rgba(0,7,18,.3);--ms-success:#2dd39a;--ms-warning:#ffad47;
  position:relative;color:var(--ms-text-primary);
  background:radial-gradient(circle at 22% -5%,rgba(25,130,235,.17),transparent 31%),radial-gradient(circle at 88% 16%,rgba(18,205,237,.08),transparent 24%),linear-gradient(145deg,#040b15 0%,var(--ms-bg-app) 48%,#071423 100%);
}
.ms-dashboard-nexus::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(77,156,210,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(77,156,210,.07) 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(to bottom,black,transparent 70%)}
.ms-dashboard-nexus>*{position:relative;z-index:1}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar{height:56px;border-color:#173650;background:linear-gradient(110deg,rgba(6,18,32,.98),rgba(10,31,50,.98));box-shadow:0 8px 28px rgba(0,6,15,.24);color:#eef8ff}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar-title small{color:#68c9f2}html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar-title strong{color:#fff}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar :is(.ms-search,.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button){border-color:#244962;background:#0b2135;color:#c7dbea;box-shadow:inset 0 1px rgba(255,255,255,.025)}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar .ms-search input{color:#f1f8fd}html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar .ms-search input::placeholder{color:#7691a9}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-sidebar{background:radial-gradient(circle at 50% 0,rgba(35,160,237,.16),transparent 27%),linear-gradient(180deg,#061425,#040d19);border-color:#173650;box-shadow:8px 0 30px rgba(0,6,15,.18)}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-nav-item{color:#b2c8d9}html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(20,147,239,.32),rgba(15,72,119,.14));box-shadow:inset 3px 0 #36caff,0 0 20px rgba(26,154,240,.1)}
.ms-dashboard-nexus .ms-dashboard-toolbar{position:absolute;right:20px;top:16px;margin:0;z-index:3}.ms-dashboard-nexus .ms-dashboard-toolbar .ms-canonical-toolbar-button{border-color:#24506e;background:#0b2135;color:#9edcf7}
.ms-dashboard-nexus .ms-card{border-color:var(--ms-border-color);border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--ms-surface-primary) 96%,#178fda),var(--ms-surface-primary) 58%,#081522);box-shadow:inset 0 1px rgba(129,211,255,.045),var(--ms-shadow-xs)}
.ms-dashboard-nexus .ms-card::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(110deg,rgba(44,173,255,.06),transparent 27%)}
.ms-dashboard-nexus :is(.ms-kpi,.ms-pipeline-card,.ms-opportunity-intelligence,.ms-map-card,.ms-quick-card){position:relative}
.ms-dashboard-nexus .ms-kpi-grid{padding-right:48px;gap:10px;margin-bottom:12px}
.ms-dashboard-nexus .ms-kpi{min-height:94px;padding:13px 14px;border-top-color:color-mix(in srgb,var(--ms-kpi-accent,var(--ms-accent)) 54%,var(--ms-border-color));transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.ms-dashboard-nexus .ms-kpi:hover{z-index:2;transform:translateY(-2px);border-color:color-mix(in srgb,var(--ms-kpi-accent,var(--ms-accent)) 72%,var(--ms-border-color));box-shadow:0 12px 28px rgba(0,8,20,.34),inset 0 1px rgba(129,211,255,.06)}
.ms-dashboard-nexus .ms-kpi:nth-child(1){--ms-kpi-accent:#268fff}.ms-dashboard-nexus .ms-kpi:nth-child(2){--ms-kpi-accent:#29c5ec}.ms-dashboard-nexus .ms-kpi:nth-child(3){--ms-kpi-accent:#8f7dff}.ms-dashboard-nexus .ms-kpi:nth-child(4){--ms-kpi-accent:#25d2d2}.ms-dashboard-nexus .ms-kpi:nth-child(5){--ms-kpi-accent:#2dd39a}
.ms-dashboard-nexus .ms-kpi::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:2px;background:var(--ms-kpi-accent);box-shadow:0 0 10px var(--ms-kpi-accent)}
.ms-dashboard-nexus .ms-kpi-icon{width:38px;height:38px;flex-basis:38px;border:1px solid color-mix(in srgb,var(--ms-kpi-accent) 42%,transparent);background:color-mix(in srgb,var(--ms-kpi-accent) 14%,var(--ms-surface-secondary));box-shadow:inset 0 0 12px color-mix(in srgb,var(--ms-kpi-accent) 10%,transparent)}
.ms-dashboard-nexus .ms-kpi-copy>span{color:#8da9be;font-size:9px;letter-spacing:.09em}.ms-dashboard-nexus .ms-kpi-copy strong{color:#fff;font-size:clamp(18px,1.45vw,24px);letter-spacing:-.025em}.ms-dashboard-nexus .ms-kpi-copy small{color:#708ba1}
.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.ms-dashboard-nexus .ms-dashboard-main,.ms-dashboard-nexus .ms-dashboard-side{gap:12px}
.ms-dashboard-nexus .ms-card-header{padding-bottom:9px;border-bottom:1px solid rgba(80,151,198,.12)}.ms-dashboard-nexus .ms-card-header small{color:#55cfff;letter-spacing:.14em}.ms-dashboard-nexus .ms-card-header h2{color:#f5faff;font-size:15px;letter-spacing:.015em}.ms-dashboard-nexus .ms-card-link{border:1px solid #214663;border-radius:7px;background:#0b2135;color:#76d9ff}
.ms-dashboard-nexus .ms-opportunity-command{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.8fr);gap:12px;margin-top:12px}
.ms-dashboard-nexus .ms-opportunity-donut-panel{display:grid;grid-template-columns:minmax(120px,160px) 1fr;align-items:center;gap:10px;padding:12px;border:1px solid var(--ms-border-color);border-radius:var(--ms-radius-md);background:var(--ms-surface-secondary)}
.ms-dashboard-nexus .ms-opportunity-donut{position:relative;display:grid;place-items:center;max-width:160px;aspect-ratio:1}.ms-dashboard-nexus .ms-opportunity-donut svg{width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}
.ms-dashboard-nexus .ms-donut-track,.ms-dashboard-nexus .ms-donut-segment{fill:none;stroke-width:15}.ms-dashboard-nexus .ms-donut-track{stroke:var(--ms-surface-tertiary)}.ms-dashboard-nexus .ms-donut-segment{stroke-linecap:round;filter:drop-shadow(0 0 3px color-mix(in srgb,currentColor 35%,transparent))}
.ms-dashboard-nexus .ms-donut-center{position:absolute;display:grid;text-align:center}.ms-dashboard-nexus .ms-donut-center strong{font-size:28px;line-height:1;color:#fff}.ms-dashboard-nexus .ms-donut-center span{margin-top:3px;color:#73cdef;font-size:8px;font-weight:800;letter-spacing:.18em}
.ms-dashboard-nexus .ms-opportunity-legend{display:grid;gap:6px}.ms-dashboard-nexus .ms-donut-legend-item{display:flex;align-items:center;gap:7px;color:var(--ms-text-secondary);font-size:9px}.ms-dashboard-nexus .ms-donut-legend-item::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--stage-color);box-shadow:0 0 7px color-mix(in srgb,var(--stage-color) 65%,transparent)}
.ms-dashboard-nexus .ms-opportunity-kpis{grid-template-columns:repeat(3,minmax(0,1fr));align-content:stretch;gap:8px;margin-top:0}.ms-dashboard-nexus .ms-opportunity-kpis button{min-height:70px;border-color:#1e405c;background:linear-gradient(145deg,#10263a,#0b1c2d)}.ms-dashboard-nexus .ms-opportunity-kpis button:hover{border-color:#2d7aaa;background:#112b43}.ms-dashboard-nexus .ms-opportunity-kpis span{color:#88a5bb;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.ms-dashboard-nexus .ms-opportunity-kpis strong{color:#effaff;font-size:clamp(13px,1.1vw,17px)}
.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ms-dashboard-nexus .ms-opportunity-charts>section{min-height:184px;padding:12px;border-color:#1c3c58;background:linear-gradient(145deg,#0d2134,#091827)}.ms-dashboard-nexus .ms-opportunity-charts h3{margin:0 0 12px;color:#bad1e1;font-size:10px;letter-spacing:.055em;text-transform:uppercase}
.ms-dashboard-nexus .ms-oi-row{min-height:27px}.ms-dashboard-nexus .ms-oi-row-label{color:#a9bfd2;font-size:9px}.ms-dashboard-nexus .ms-oi-track{height:6px;border-radius:2px;background:#142d43;overflow:visible}.ms-dashboard-nexus .ms-oi-fill{border-radius:2px;background:linear-gradient(90deg,color-mix(in srgb,var(--oi-color,var(--ms-accent)) 72%,#147cca),var(--oi-color,var(--ms-focus)));box-shadow:0 0 8px color-mix(in srgb,var(--oi-color,var(--ms-focus)) 32%,transparent)}.ms-dashboard-nexus .ms-oi-value{color:#d9ebf6;font-size:9px;font-variant-numeric:tabular-nums}
.ms-dashboard-nexus .ms-oi-ranked-row{grid-template-columns:20px minmax(65px,1fr) minmax(55px,1.2fr) minmax(54px,auto)}.ms-dashboard-nexus .ms-oi-ranked-row::before{content:var(--oi-rank);display:grid;place-items:center;width:18px;height:18px;border:1px solid #255777;border-radius:5px;background:#0c2b43;color:#67d5ff;font-size:8px;font-weight:800}
.ms-dashboard-nexus [data-oi-chart="close_timeline"] svg{display:block;width:100%;height:125px;overflow:visible}.ms-dashboard-nexus .ms-timeline-area{fill:color-mix(in srgb,var(--ms-accent) 17%,transparent)}.ms-dashboard-nexus .ms-timeline-line{fill:none;stroke:var(--ms-focus);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(70,216,255,.35))}.ms-dashboard-nexus .ms-timeline-point{fill:#071522;stroke:var(--ms-focus);stroke-width:2}.ms-dashboard-nexus .ms-timeline-labels{display:flex;justify-content:space-between;gap:4px;color:#6f8ba1;font-size:8px;overflow:hidden}.ms-dashboard-nexus .ms-timeline-labels span{flex:1;min-width:0;overflow:visible;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:9px}
.ms-dashboard-nexus .ms-quick-card{padding:12px}.ms-dashboard-nexus .ms-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ms-dashboard-nexus .ms-quick-grid button{min-height:72px;border:1px solid transparent;background:#0b1d2e;color:#9db6c9;transition:border-color .16s ease,background .16s ease}.ms-dashboard-nexus .ms-quick-grid button:hover{border-color:#245675;background:#0e2940}.ms-dashboard-nexus .quick-icon{border-color:#23455f;background:linear-gradient(145deg,#13324b,#0b2033);box-shadow:none}.ms-dashboard-nexus .ms-quick-grid b{color:#a9bfd2;font-size:8px}
@media(max-width:1199px){.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:minmax(0,1fr) 220px}.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(230px,.8fr) minmax(0,1.5fr)}}
@media(max-width:1023px){.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:1fr}.ms-dashboard-nexus .ms-dashboard-side{order:2}.ms-dashboard-nexus .ms-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.ms-dashboard-nexus .ms-quick-grid button{min-height:66px}}
@media(max-width:834px){.ms-dashboard-nexus .ms-kpi-grid{padding-right:0}.ms-dashboard-nexus .ms-dashboard-toolbar{position:static;margin-bottom:8px}.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:1fr}.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-template-columns:160px 1fr}.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.ms-dashboard-nexus{padding-bottom:18px}.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:1fr}.ms-dashboard-nexus .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ms-dashboard-nexus .ms-dashboard-side{order:3}}
@media(max-width:430px){.ms-dashboard-nexus::before{background-size:28px 28px}.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:1fr 1fr}.ms-dashboard-nexus .ms-kpi{min-height:88px;padding:10px}.ms-dashboard-nexus .ms-kpi:last-child{grid-column:1/-1}.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-template-columns:126px 1fr;padding:9px}.ms-dashboard-nexus .ms-opportunity-kpis{grid-template-columns:1fr 1fr}.ms-dashboard-nexus .ms-opportunity-kpis button:last-child{grid-column:1/-1}.ms-dashboard-nexus .ms-oi-ranked-row{grid-template-columns:20px minmax(55px,1fr) minmax(48px,1fr);}.ms-dashboard-nexus .ms-oi-ranked-row .ms-oi-track{display:none}}
@media(max-width:390px){.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-template-columns:1fr}.ms-dashboard-nexus .ms-opportunity-donut{margin:auto}.ms-dashboard-nexus .ms-opportunity-legend{grid-template-columns:1fr 1fr}.ms-dashboard-nexus .ms-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ==========================================================================
   OMNIA BUILDER — DUAL MASTER SINGLE SHELL UI R1B
   One Foundation shell, two optimized masters, no parallel theme authority.
   ========================================================================== */
html.ms-theme-dark{--topbar-height:56px;--ms-bg-app:#06111e;--ms-bg-sidebar:#040d18;--ms-surface-primary:#091827;--ms-surface-secondary:#0d1c2c;--ms-surface-tertiary:#12283c;--ms-text-primary:#f2f7fb;--ms-text-secondary:#a8bbcb;--ms-text-muted:#71899d;--ms-border-color:#1a3852;--ms-accent:#25a7ff;--ms-accent-hover:#55ccff;--ms-accent-soft:#0d3552;--ms-focus:#43d6ff;--ms-radius-lg:10px;--ms-radius-md:7px}
html.ms-theme-light{--topbar-height:56px;--ms-bg-app:#f4f6f8;--ms-bg-sidebar:#f8fafc;--ms-surface-primary:#fff;--ms-surface-secondary:#f7f9fb;--ms-surface-tertiary:#edf1f5;--ms-text-primary:#13243a;--ms-text-secondary:#526277;--ms-text-muted:#7c8998;--ms-border-color:#d9e0e7;--ms-accent:#b98512;--ms-accent-hover:#956b0b;--ms-accent-soft:#fff2c7;--ms-focus:#d4a526;--ms-radius-lg:9px;--ms-radius-md:7px;--ms-structural-accent:#e2aa2b}
html:is(.ms-theme-dark,.ms-theme-light) .ms-sidebar{padding:12px 9px;background:var(--ms-bg-sidebar);border-color:color-mix(in srgb,var(--ms-bg-sidebar) 70%,#42607c);box-shadow:none}
html:is(.ms-theme-dark,.ms-theme-light) .ms-brand{min-height:48px;padding:0 5px 10px;border-color:rgba(255,255,255,.09)}
html:is(.ms-theme-dark,.ms-theme-light) .ms-brand-copy strong{color:#fff}html:is(.ms-theme-dark,.ms-theme-light) .ms-brand-copy span{color:#88a0b6}
html:is(.ms-theme-dark,.ms-theme-light) .ms-nav{padding-top:10px;gap:2px}html:is(.ms-theme-dark,.ms-theme-light) .ms-nav-item{min-height:39px;padding:3px 8px;border-radius:7px;color:#aabccd;font-size:12px}
html:is(.ms-theme-dark,.ms-theme-light) .ms-nav-item.active{color:#fff;background:rgba(39,151,224,.18);box-shadow:inset 3px 0 var(--ms-accent)}
html.ms-theme-light .ms-nav-item.active{background:rgba(218,169,44,.18);box-shadow:inset 3px 0 #e0b33b}
html:is(.ms-theme-dark,.ms-theme-light) .ms-topbar{height:var(--topbar-height);background:#081a2d;border-color:#1d3850;color:#f3f7fb;box-shadow:none}
html.ms-theme-light .ms-sidebar{background:var(--ms-bg-sidebar);border-color:var(--ms-border-color);color:var(--ms-text-primary)}
html.ms-theme-light .ms-brand{border-color:var(--ms-border-color)}
html.ms-theme-light .ms-brand-copy strong{color:var(--ms-text-primary)}html.ms-theme-light .ms-brand-copy span{color:var(--ms-text-muted)}
html.ms-theme-light .ms-collapse{border-color:var(--ms-border-color);background:var(--ms-surface-primary);color:var(--ms-text-secondary)}
html.ms-theme-light .ms-nav-item{color:var(--ms-text-secondary)}html.ms-theme-light .ms-nav-item:hover{background:var(--ms-surface-tertiary);color:var(--ms-text-primary)}
html.ms-theme-light .ms-nav-item.active{color:#6f500c;background:var(--ms-accent-soft);box-shadow:inset 3px 0 var(--ms-structural-accent)}
html.ms-theme-light .ms-nav-subitem{color:var(--ms-text-secondary)}html.ms-theme-light .ms-nav-subitem:hover,html.ms-theme-light .ms-nav-subitem.active{color:#75550d}
html.ms-theme-light .ms-nav-nested-menu{border-color:var(--ms-border-color)}html.ms-theme-light .ms-nav-leaf,html.ms-theme-light .ms-nav-subitem-pending{color:var(--ms-text-muted)}
html.ms-theme-light .ms-topbar{background:var(--ms-surface-primary);border-color:var(--ms-border-color);color:var(--ms-text-primary);box-shadow:0 1px 4px rgba(12,30,50,.05)}
html:is(.ms-theme-dark,.ms-theme-light) .ms-content{background:var(--ms-bg-app)}
html.ms-theme-light .ms-content{color:var(--ms-text-primary)}
html:is(.ms-theme-dark,.ms-theme-light) :is(.ms-card,.panel){border-radius:var(--ms-radius-lg);box-shadow:0 2px 10px rgba(12,30,50,.06)}

#dashboardView .ms-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.ms-dashboard-nexus .ms-kpi-grid{padding-right:48px}
.ms-dashboard-nexus .ms-dashboard-side>.ms-kpi-secondary{min-height:86px;margin:0;padding:12px}
.ms-dashboard-nexus .ms-dashboard-side>.ms-kpi-secondary::before{top:15px;bottom:15px}
.ms-dashboard-nexus .ms-dashboard-side>.ms-kpi-secondary .ms-kpi-copy strong{font-size:20px}
.ms-dashboard-nexus .ms-pipeline-card{max-height:250px}.ms-dashboard-nexus #dashboardPipeline{max-height:178px;overflow:auto}

html.ms-theme-light .ms-dashboard-nexus{--ms-bg-app:#f4f6f8;--ms-surface-primary:#fff;--ms-surface-secondary:#f7f9fb;--ms-surface-tertiary:#edf1f5;--ms-text-primary:#14253a;--ms-text-secondary:#526277;--ms-text-muted:#7a8797;--ms-border-color:#d9e0e7;--ms-accent:#b98512;--ms-accent-hover:#956b0b;--ms-accent-soft:#fff1c2;--ms-focus:#d6a62a;--ms-success:#24835c;--ms-warning:#c77b16;background:#f4f6f8;color:var(--ms-text-primary)}
html.ms-theme-light .ms-dashboard-nexus::before{display:none}
html.ms-theme-light .ms-dashboard-nexus .ms-card{border-color:var(--ms-border-color);background:#fff;box-shadow:0 2px 10px rgba(12,30,50,.06)}
html.ms-theme-light .ms-dashboard-nexus .ms-card::after{display:none}
html.ms-theme-light .ms-dashboard-nexus .ms-kpi-copy strong,html.ms-theme-light .ms-dashboard-nexus .ms-card-header h2,html.ms-theme-light .ms-dashboard-nexus .ms-donut-center strong{color:var(--ms-text-primary)}
html.ms-theme-light .ms-dashboard-nexus .ms-opportunity-donut-panel,html.ms-theme-light .ms-dashboard-nexus .ms-opportunity-charts>section,html.ms-theme-light .ms-dashboard-nexus .ms-opportunity-kpis button{border-color:var(--ms-border-color);background:var(--ms-surface-secondary)}
html.ms-theme-light .ms-dashboard-nexus .ms-opportunity-kpis strong,html.ms-theme-light .ms-dashboard-nexus .ms-oi-value{color:var(--ms-text-primary)}
html.ms-theme-light .ms-dashboard-nexus .ms-card-link,html.ms-theme-light .ms-dashboard-nexus .ms-dashboard-toolbar .ms-canonical-toolbar-button{border-color:#ddc57e;background:#fff9e8;color:#75550d}

@media(max-width:1023px){#dashboardView .ms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-dashboard-nexus .ms-dashboard-side>.ms-kpi-secondary{max-width:none}}
@media(max-width:767px){html:is(.ms-theme-dark,.ms-theme-light){--sidebar-width:72px}html:is(.ms-theme-dark,.ms-theme-light) .ms-brand-copy,html:is(.ms-theme-dark,.ms-theme-light) .ms-nav-label{display:none}.ms-dashboard-nexus .ms-kpi-grid{padding-right:0}}

/* ==========================================================================
   OMNIA DARK DASHBOARD MASTER R1C — dense single-shell cockpit
   ========================================================================== */
html.ms-theme-dark .ms-dashboard-nexus{
  --ms-bg-app:#06111e;--ms-surface-primary:#091827;--ms-surface-secondary:#0d1c2c;--ms-surface-tertiary:#12283c;
  min-height:calc(100dvh - var(--topbar-height));padding:14px 16px 18px;
  background:radial-gradient(circle at 18% -8%,rgba(37,167,255,.12),transparent 28%),linear-gradient(145deg,#050e19,var(--ms-bg-app) 58%,#071523);
}
html.ms-theme-dark .ms-dashboard-nexus .ms-card{background:linear-gradient(145deg,var(--ms-surface-primary),#081522);border-color:var(--ms-border-color);box-shadow:inset 0 1px rgba(96,201,255,.035)}
.ms-dashboard-nexus .ms-dashboard-main{display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
.ms-dashboard-nexus .ms-opportunity-intelligence{grid-row:1;padding:13px}
.ms-dashboard-nexus .ms-pipeline-card{max-height:none;padding:12px 13px}
.ms-dashboard-nexus #dashboardPipeline{max-height:none;overflow:hidden}
.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(230px,.72fr) minmax(360px,1.65fr);gap:10px;margin-top:10px}
.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-template-columns:minmax(108px,138px) minmax(105px,1fr);padding:10px}
.ms-dashboard-nexus .ms-opportunity-donut{max-width:138px}
.ms-dashboard-nexus .ms-opportunity-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.ms-dashboard-nexus .ms-opportunity-kpis button{min-height:62px;padding:8px}
.ms-dashboard-nexus .ms-opportunity-kpis strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(11px,.95vw,15px)}
.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.ms-dashboard-nexus .ms-opportunity-charts>section{min-height:156px;padding:10px}
.ms-dashboard-nexus [data-oi-chart="close_timeline"] svg{height:98px}
.ms-dashboard-nexus .ms-oi-row{grid-template-columns:minmax(54px,.85fr) minmax(35px,1fr) minmax(48px,auto)}
.ms-dashboard-nexus .ms-oi-ranked-row{grid-template-columns:18px minmax(50px,.9fr) minmax(30px,.8fr) minmax(48px,auto)}
.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:minmax(0,3fr) minmax(220px,1fr)}
.ms-dashboard-nexus .ms-dashboard-side{align-content:start}
.ms-dashboard-nexus .ms-quick-grid{grid-template-columns:1fr;gap:6px}
.ms-dashboard-nexus .ms-quick-grid button{min-height:54px;grid-template-columns:34px 1fr;text-align:left}
@media(max-width:1399px){.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-dashboard-nexus .ms-opportunity-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1199px){.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:minmax(0,3fr) minmax(210px,1fr)}.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(210px,.75fr) minmax(0,1.5fr)}}
@media(max-width:1023px){.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:1fr}.ms-dashboard-nexus .ms-dashboard-side{grid-template-columns:minmax(180px,.35fr) minmax(0,1fr)}.ms-dashboard-nexus .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:834px){.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:1fr}.ms-dashboard-nexus .ms-opportunity-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){html.ms-theme-dark .ms-dashboard-nexus{padding:12px}.ms-dashboard-nexus .ms-dashboard-side{grid-template-columns:1fr}.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:1fr}}

/* ==========================================================================
   OMNIA BUILDER — DARK MASTER R1D — approved petroleum dashboard
   Single Foundation V3 dashboard, canonical data and routing only.
   ========================================================================== */
.ms-dashboard-gold-separator{display:block;position:relative;z-index:799;width:100%;height:4px;flex:0 0 4px;background:var(--ms-structural-accent,#e2aa2b);box-shadow:0 1px 0 rgba(255,226,129,.18)}
html.ms-theme-dark{--ms-bg-app:#17364d;--ms-bg-sidebar:#0b2235;--ms-surface-primary:#203f54;--ms-surface-secondary:#294a60;--ms-surface-tertiary:#2c5066;--ms-text-primary:#f2f8fc;--ms-text-secondary:#c2d4df;--ms-text-muted:#91adbd;--ms-border-color:#41647a;--ms-accent:#43bff4;--ms-accent-hover:#79d7ff;--ms-accent-soft:#23536c;--ms-focus:#64d8ff;--ms-structural-accent:#e2aa2b}
html.ms-theme-dark .ms-dashboard-nexus{--ms-bg-app:#17364d;--ms-surface-primary:#203f54;--ms-surface-secondary:#294a60;--ms-surface-tertiary:#2c5066;min-height:calc(100dvh - var(--topbar-height) - 4px);padding:12px 14px 16px;background:linear-gradient(145deg,#17364d,#1d4058 62%,#17364d)}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar{background:#102d43;border-color:#36576c;box-shadow:none}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-sidebar{background:#0b2235;border-color:#36576c;box-shadow:none}
html.ms-theme-dark .ms-dashboard-nexus .ms-card{border-color:var(--ms-border-color);background:linear-gradient(145deg,var(--ms-surface-primary),#1d3b50);box-shadow:inset 0 1px rgba(255,255,255,.035),0 3px 10px rgba(5,20,31,.14)}
html.ms-theme-dark .ms-dashboard-nexus .ms-card::after{background:linear-gradient(110deg,rgba(80,191,240,.045),transparent 28%)}
.ms-dashboard-nexus .ms-dashboard-toolbar-row{position:absolute;right:14px;top:12px;z-index:4;display:flex;gap:6px}.ms-dashboard-nexus .ms-dashboard-toolbar-row .ms-dashboard-toolbar{position:static;margin:0}.ms-dashboard-nexus .ms-widget-catalog-open{min-height:34px;padding:0 10px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-primary);color:var(--ms-accent);font:700 10px/1 inherit;cursor:pointer}
.ms-widget-catalog{width:min(430px,calc(100vw - 28px));padding:0;border:1px solid var(--ms-border-color);border-radius:12px;background:var(--ms-surface-primary);color:var(--ms-text-primary);box-shadow:0 22px 60px rgba(3,15,24,.42)}.ms-widget-catalog::backdrop{background:rgba(3,15,24,.62)}.ms-widget-catalog form{display:grid;gap:10px;padding:16px}.ms-widget-catalog header,.ms-widget-catalog footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.ms-widget-catalog h2,.ms-widget-catalog p{margin:0}.ms-widget-catalog small{color:var(--ms-structural-accent);font-size:9px;font-weight:800;letter-spacing:.12em}.ms-widget-catalog label{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-secondary);font-size:12px}.ms-widget-catalog button{min-height:34px;padding:0 11px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-secondary);color:inherit;cursor:pointer}.ms-widget-catalog footer{justify-content:flex-end;margin-top:4px}.ms-widget-catalog [data-widget-catalog-save]{border-color:var(--ms-accent);background:var(--ms-accent-soft);color:var(--ms-text-primary)}
.ms-dashboard-nexus .ms-dashboard-side:not(:has([data-dashboard-widget]:not([hidden]))){display:none}
.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));padding-right:46px;gap:8px;margin-bottom:10px}
.ms-dashboard-nexus .ms-kpi{min-height:82px;padding:10px 11px;gap:9px;cursor:pointer}
.ms-dashboard-nexus .ms-kpi-icon{width:34px;height:34px;flex-basis:34px}.ms-dashboard-nexus .ms-kpi-icon img{width:23px;height:23px}
.ms-dashboard-nexus .ms-kpi-copy>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-dashboard-nexus .ms-kpi-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(15px,1.15vw,20px)}
.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(210px,230px);gap:10px}
.ms-dashboard-nexus .ms-dashboard-main,.ms-dashboard-nexus .ms-dashboard-side{gap:10px}
.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(220px,.8fr) repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
.ms-dashboard-nexus .ms-opportunity-donut-panel,.ms-dashboard-nexus .ms-opportunity-chart-panel{min-width:0;min-height:164px;padding:9px;border:1px solid var(--ms-border-color);border-radius:var(--ms-radius-md);background:var(--ms-surface-secondary);overflow:hidden}
.ms-dashboard-nexus .ms-opportunity-chart-panel h3{margin:0 0 10px;color:var(--ms-text-secondary);font-size:9px;letter-spacing:.06em;text-transform:uppercase}
.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-template-columns:minmax(100px,130px) minmax(88px,1fr)}
.ms-dashboard-nexus .ms-secondary-analytics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.ms-dashboard-nexus .ms-analytics-card,.ms-dashboard-nexus .ms-map-card{min-width:0;min-height:228px;padding:11px;overflow:hidden}
.ms-dashboard-nexus .ms-secondary-analytics [data-oi-chart]{margin-top:12px}
.ms-dashboard-nexus .ms-secondary-analytics [data-oi-chart="close_timeline"] svg{height:116px}
.ms-dashboard-nexus .ms-map{height:158px;background:var(--ms-surface-secondary)}
.ms-dashboard-nexus .ms-map-header{gap:6px}.ms-dashboard-nexus .ms-map-heading>span:last-child{display:none}
.ms-dashboard-nexus .ms-pipeline-card{padding:10px 11px}
.ms-dashboard-nexus .ms-dashboard-side .ms-quick-grid{grid-template-columns:1fr;gap:6px}
.ms-dashboard-nexus .ms-dashboard-side .ms-quick-grid button{min-height:50px;grid-template-columns:32px 1fr;text-align:left}
@media(max-width:1399px){.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding-right:0}.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(210px,.72fr) repeat(2,minmax(0,1fr))}}
@media(max-width:1199px){.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:minmax(0,1fr) 210px}.ms-dashboard-nexus .ms-secondary-analytics{grid-template-columns:1fr 1fr}.ms-dashboard-nexus .ms-map-card{grid-column:1/-1}.ms-dashboard-nexus .ms-map{height:190px}}
@media(max-width:1023px){.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:1fr}.ms-dashboard-nexus .ms-dashboard-side .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:834px){.ms-dashboard-nexus .ms-dashboard-toolbar-row{position:static;justify-content:flex-end;margin-bottom:8px}.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:1fr 1fr}.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-column:1/-1}.ms-dashboard-nexus .ms-secondary-analytics{grid-template-columns:1fr}}
@media(max-width:767px){body:has(.ms-dashboard-nexus:not([hidden])) .ms-dashboard-gold-separator{position:sticky;top:56px;z-index:799}.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-dashboard-nexus .ms-secondary-analytics .ms-map-card{grid-column:auto}.ms-dashboard-nexus .ms-dashboard-side .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:430px){.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:1fr}.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-column:auto}.ms-dashboard-nexus .ms-dashboard-side .ms-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* OMNIA BUILDER — DARK MASTER R1E — owner-approved composition */
html.ms-theme-dark .ms-dashboard-nexus{
  --ms-bg-app:#17364d;--ms-surface-primary:#1d3d52;--ms-surface-secondary:#24485d;--ms-surface-tertiary:#294f64;
  --ms-text-primary:#f3f7fa;--ms-text-secondary:#b5c8d4;--ms-text-muted:#829dad;--ms-border-color:rgba(160,195,215,.16);
  --ms-structural-accent:#e3a42b;background:#17364d;
}
html.ms-theme-dark .ms-dashboard-nexus :is(.ms-card,.ms-opportunity-donut-panel,.ms-opportunity-chart-panel,.ms-stage,.ms-stage-empty,.ms-map,.ms-map-placeholder,.ms-quick-grid button,.ms-card-link,.ms-map-open,.ms-widget-catalog-panel label,.ms-widget-catalog-panel button){
  border-color:var(--ms-border-color);background-color:var(--ms-surface-primary);color:var(--ms-text-primary);
}
html.ms-theme-dark .ms-dashboard-nexus :is(.ms-opportunity-donut-panel,.ms-opportunity-chart-panel,.ms-stage,.ms-map,.ms-widget-catalog-panel label){background:var(--ms-surface-secondary)}
html.ms-theme-dark .ms-dashboard-nexus :is(.ms-stage-empty,.ms-map-placeholder,.ms-oi-track){background:var(--ms-surface-tertiary);color:var(--ms-text-secondary)}
.ms-dashboard-nexus .ms-kpi:nth-child(1){order:1}.ms-dashboard-nexus .ms-kpi:nth-child(2){order:2}.ms-dashboard-nexus .ms-kpi:nth-child(5){order:3}.ms-dashboard-nexus .ms-kpi:nth-child(6){order:4}.ms-dashboard-nexus .ms-kpi:nth-child(3){order:5}.ms-dashboard-nexus .ms-kpi:nth-child(4){order:6}
.ms-dashboard-nexus .ms-widget-catalog-panel{min-width:0;padding:12px}.ms-dashboard-nexus .ms-widget-catalog-panel>p{margin:9px 0;color:var(--ms-text-secondary);font-size:10px;line-height:1.45}.ms-dashboard-nexus .ms-widget-catalog-options{display:grid;gap:6px}.ms-dashboard-nexus .ms-widget-catalog-panel label{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 8px;border:1px solid var(--ms-border-color);border-radius:7px;font-size:10px}.ms-dashboard-nexus .ms-widget-catalog-panel footer{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}.ms-dashboard-nexus .ms-widget-catalog-panel button{min-height:32px;padding:0 9px;border:1px solid var(--ms-border-color);border-radius:7px}.ms-dashboard-nexus .ms-widget-catalog-panel [data-widget-catalog-save]{background:var(--ms-accent-soft);color:var(--ms-text-primary)}
.ms-dashboard-nexus .ms-stage{min-height:96px}.ms-dashboard-nexus .ms-stage footer strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-dashboard-nexus .ms-stage header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-dashboard-nexus .ms-dashboard-lower-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ms-dashboard-nexus .ms-dashboard-lower-slots article{display:grid;gap:7px;min-width:0;min-height:72px;padding:11px}.ms-dashboard-nexus .ms-dashboard-lower-slots small{color:var(--ms-structural-accent);font-size:9px;font-weight:800;letter-spacing:.11em}.ms-dashboard-nexus .ms-dashboard-lower-slots span{color:var(--ms-text-muted);font-size:10px}
@media(min-width:1280px){.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));padding-right:0}}
@media(max-width:767px){.ms-dashboard-nexus .ms-dashboard-lower-slots{grid-template-columns:1fr}}

/* ==========================================================================
   OMNIA BUILDER — DARK MASTER R1F — true dark owner layout
   R1F presentation inherits the canonical shell dark preference.
   ========================================================================== */
html.ms-theme-dark #dashboardView.ms-dashboard-nexus{
  --ms-bg-app:#102f45;--ms-surface-primary:#14384f;--ms-surface-secondary:#183f57;--ms-surface-tertiary:#1d485f;
  --ms-text-primary:#f4f8fb;--ms-text-secondary:#bfd0db;--ms-text-muted:#8fa9b9;--ms-border-color:#315a70;
  --ms-accent:#49bce9;--ms-accent-hover:#72d0f2;--ms-accent-soft:#1a5069;--ms-focus:#70d8f5;--ms-structural-accent:#e2aa2b;
  min-height:calc(100dvh - var(--topbar-height) - 4px);padding:12px 14px 18px;background:#102f45;color:var(--ms-text-primary);
}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus::before{display:none}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus .ms-card{
  border-color:var(--ms-border-color);background:#14384f;color:var(--ms-text-primary);
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 3px 10px rgba(5,20,31,.13);
}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus .ms-card::after{display:none}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus :is(.ms-opportunity-donut-panel,.ms-opportunity-chart-panel,#dashboardPipeline .ms-opportunity-stage>header,.ms-map,.ms-quick-grid button){border-color:var(--ms-border-color);background:#183f57;color:var(--ms-text-primary)}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus :is(.ms-stage-empty,.ms-map-placeholder,.ms-oi-track){background:#1d485f;color:var(--ms-text-secondary)}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus :is(.ms-kpi-copy strong,.ms-card-header h2,.ms-donut-center strong,#dashboardPipeline strong,#dashboardPipeline b){color:var(--ms-text-primary)}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus :is(.ms-kpi-copy>span,.ms-kpi-copy small,.ms-oi-row-label,.ms-oi-value,#dashboardPipeline span,#dashboardPipeline small){color:var(--ms-text-secondary)}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus :is(.ms-card-link,.ms-map-open){border-color:#3a667c;background:#183f57;color:#8edbf5}

#dashboardView .ms-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));padding-right:0}
#dashboardView .ms-dashboard-grid{grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:10px}
#dashboardView .ms-secondary-analytics{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);align-items:stretch}
#dashboardView .ms-secondary-analytics>:is(.ms-analytics-card,.ms-map-card){height:100%;min-height:236px}
#dashboardView .ms-secondary-analytics .ms-map{height:166px}
#dashboardView .ms-pipeline-card{max-height:none}
#dashboardView #dashboardPipeline{max-height:none;overflow:hidden}
#dashboardView [data-dashboard-widget][draggable="true"]{cursor:grab}
#dashboardView [data-dashboard-widget].is-dragging{opacity:.52;outline:1px dashed var(--ms-accent)}
#dashboardView .ms-widget-catalog-open{width:100%;min-height:38px;padding:0 10px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-primary);color:var(--ms-text-primary);font:700 10px/1 inherit;cursor:pointer}

.ms-widget-catalog{width:min(440px,calc(100vw - 28px));padding:0;border:1px solid var(--ms-border-color);border-radius:12px;background:var(--ms-surface-primary);color:var(--ms-text-primary);box-shadow:0 22px 60px rgba(3,15,24,.32)}
.ms-widget-catalog::backdrop{background:rgba(3,15,24,.68)}
.ms-widget-catalog form{display:grid;gap:11px;padding:16px}.ms-widget-catalog header,.ms-widget-catalog footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ms-widget-catalog h2,.ms-widget-catalog p{margin:0}.ms-widget-catalog p{color:var(--ms-text-secondary);font-size:11px;line-height:1.5}.ms-widget-catalog small{color:var(--ms-structural-accent);font-size:9px;font-weight:800;letter-spacing:.12em}
.ms-widget-catalog-options{display:grid;gap:7px}.ms-widget-catalog label{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-secondary);color:var(--ms-text-primary);font-size:12px;cursor:grab}
.ms-widget-catalog label.is-dragging{opacity:.5}.ms-widget-catalog button{min-height:34px;padding:0 11px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-secondary);color:var(--ms-text-primary);cursor:pointer}.ms-widget-catalog footer{justify-content:flex-end}.ms-widget-catalog [data-widget-catalog-save]{border-color:var(--ms-accent);background:var(--ms-accent-soft)}
.ms-widget-unavailable{padding:9px;border:1px dashed var(--ms-border-color);border-radius:7px;color:var(--ms-text-muted);font-size:10px}

/* ==========================================================================
   OMNIA BUILDER — GLOBAL LIGHT/DARK SINGLE SHELL R1G
   Appearance is owned exclusively by MasterSuiteAppearance on <html>.
   Legacy component aliases resolve to the same semantic shell tokens.
   ========================================================================== */
html:is(.ms-theme-light,.ms-theme-dark){
  --bg:var(--ms-bg-app);--surface:var(--ms-surface-primary);--surface-soft:var(--ms-surface-secondary);
  --border:var(--ms-border-color);--border-soft:var(--ms-border-color);--text:var(--ms-text-primary);
  --muted:var(--ms-text-secondary);--faint:var(--ms-text-muted);--primary:var(--ms-accent);
  --ms-surface:var(--ms-surface-primary);--ms-surface-raised:var(--ms-surface-primary);--ms-surface-subtle:var(--ms-surface-secondary);
  --ms-input-background:var(--ms-surface-secondary);--ms-table-row:var(--ms-surface-primary);--ms-modal-background:var(--ms-surface-primary);
  --ms-accent-gold:var(--ms-structural-accent,#e2aa2b);color-scheme:light;
}
html.ms-theme-dark{color-scheme:dark}
html:is(.ms-theme-light,.ms-theme-dark) body{background:var(--ms-bg-app);color:var(--ms-text-primary)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-route-view{color:var(--ms-text-primary)}
html:is(.ms-theme-light,.ms-theme-dark) :is(input,select,textarea){border-color:var(--ms-border-color);background:var(--ms-input-background);color:var(--ms-text-primary)}
html:is(.ms-theme-light,.ms-theme-dark) :is(input,textarea)::placeholder{color:var(--ms-text-muted)}
html:is(.ms-theme-light,.ms-theme-dark) :is(.ms-card,.panel,dialog,.modal-content){border-color:var(--ms-border-color);background-color:var(--ms-surface-primary);color:var(--ms-text-primary)}
html:is(.ms-theme-light,.ms-theme-dark) :is(table,thead,tbody,tr,th,td){border-color:var(--ms-border-color);color:var(--ms-text-primary)}
html:is(.ms-theme-light,.ms-theme-dark) thead{background:var(--ms-surface-secondary)}
html:is(.ms-theme-light,.ms-theme-dark) tbody tr{background:var(--ms-table-row)}
html:is(.ms-theme-light,.ms-theme-dark) tbody tr:hover{background:var(--ms-surface-tertiary)}
html:is(.ms-theme-light,.ms-theme-dark) :is(.ms-toolbar,.ms-tabs,[role="tablist"]){border-color:var(--ms-border-color);background:var(--ms-surface-primary);color:var(--ms-text-primary)}
html.ms-theme-light #dashboardView.ms-dashboard-nexus .ms-widget-catalog-open{background:var(--ms-surface-primary)}

@media(max-width:1199px){#dashboardView .ms-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#dashboardView .ms-dashboard-grid{grid-template-columns:minmax(0,3fr) minmax(210px,1fr)}#dashboardView .ms-secondary-analytics{grid-template-columns:1fr 1fr}#dashboardView .ms-secondary-analytics .ms-map-card{grid-column:1/-1}#dashboardView .ms-secondary-analytics .ms-map{height:210px}}
@media(max-width:1023px){#dashboardView .ms-dashboard-grid{grid-template-columns:1fr}#dashboardView .ms-dashboard-side{grid-template-columns:1fr}#dashboardView .ms-dashboard-side .ms-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:834px){#dashboardView .ms-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#dashboardView .ms-opportunity-command{grid-template-columns:1fr 1fr}#dashboardView .ms-opportunity-donut-panel{grid-column:1/-1}}
@media(max-width:767px){#dashboardView.ms-dashboard-nexus{padding:12px}#dashboardView .ms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboardView .ms-secondary-analytics{grid-template-columns:1fr}#dashboardView .ms-secondary-analytics .ms-map-card{grid-column:auto}#dashboardView .ms-opportunity-command{grid-template-columns:1fr}#dashboardView .ms-opportunity-donut-panel{grid-column:auto}}
@media(max-width:430px){#dashboardView .ms-dashboard-grid,#dashboardView .ms-secondary-analytics{grid-template-columns:minmax(0,1fr)}#dashboardView .ms-dashboard-side .ms-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* OMNIA DARK VISUAL REFINEMENT R1I — shared semantic contrast and icon shell */
html.ms-theme-dark{--ms-text-primary:#f4f8fb;--ms-text-secondary:#c1d1dc;--ms-text-muted:#9ab0bf}
html.ms-theme-dark :is(h1,h2,h3,h4,.ms-card-title,strong,th){color:var(--ms-text-primary)}
html.ms-theme-dark :is(.ms-subtitle,.ms-metadata,time,caption){color:var(--ms-text-secondary)}
html:is(.ms-theme-light,.ms-theme-dark) :is(.ms-nav-icon,.ms-nav-icon img,.ms-tool-icon,.ms-tool-icon img,.ms-data-cell-icon,.ms-data-cell-icon img,.ms-company-field-icon,.ms-company-field-icon img){background:transparent;box-shadow:none}
html:is(.ms-theme-light,.ms-theme-dark) :is(.ms-nav-icon,.ms-tool-icon,.ms-data-cell-icon,.ms-company-field-icon) img{object-fit:contain}

/* OMNIA DARK VISUAL REFINEMENT R1J — single semantic foreground authority. */
html.ms-theme-dark{
  --ms-text-primary:#f7fafc;
  --ms-text-secondary:#d2dee7;
  --ms-text-muted:#a9bdca;
}
html.ms-theme-dark body :is(.ms-route-view,.ms-card,.panel,dialog,.modal-content,.ms-tabs,[role="tablist"]){color:var(--ms-text-primary)}
html.ms-theme-dark body :is(.ms-card-title,.ms-page-title,.ms-entity-name,.ms-field-value,.ms-value,.ms-amount,.ms-kpi-value,.ms-timeline-title,.ms-quick-action-label){color:var(--ms-text-primary)}
html.ms-theme-dark body :is(.ms-subtitle,.ms-metadata,.ms-field-label,.ms-label,.ms-helper,.ms-description,.ms-relationship,.ms-tab,caption,time){color:var(--ms-text-secondary)}
html.ms-theme-dark body :is(.ms-muted,.muted,.ms-empty-state,.ms-disabled-copy){color:var(--ms-text-muted)}
html.ms-theme-dark body :is(button,input,select,textarea){color:var(--ms-text-primary)}
html.ms-theme-dark body :is(button,input,select,textarea):disabled{color:var(--ms-text-muted);opacity:.72}
html.ms-theme-dark body :is(input,textarea)::placeholder{color:var(--ms-text-muted);opacity:1}
html:is(.ms-theme-light,.ms-theme-dark) body :is(.ms-nav-icon,.ms-nav-icon img,.ms-tool-icon,.ms-tool-icon img,.ms-data-cell-icon,.ms-data-cell-icon img,.ms-company-field-icon,.ms-company-field-icon img,.ms-company-record-icon,.ms-company-record-icon img,.ms-company-row-icon,.ms-company-row-icon img,.ms-company-mini-icon,.ms-company-mini-icon img){background:transparent;box-shadow:none}

/* OMNIA MASTER SHELL VISUAL CONSOLIDATION R1K */
html.ms-theme-dark{
  --ms-shell-control-surface:color-mix(in srgb,var(--ms-surface-secondary) 88%,#06111e);
  --ms-shell-control-hover:var(--ms-surface-tertiary);
  --ms-shell-control-border:color-mix(in srgb,var(--ms-border-color) 82%,var(--ms-accent));
  --ms-shell-control-text:var(--ms-text-primary);
  --ms-link-subtle:color-mix(in srgb,var(--ms-accent) 68%,var(--ms-text-primary));
}
html.ms-theme-light{
  --ms-shell-control-surface:var(--ms-surface-secondary);
  --ms-shell-control-hover:var(--ms-surface-tertiary);
  --ms-shell-control-border:var(--ms-border-color);
  --ms-shell-control-text:var(--ms-text-primary);
  --ms-link-subtle:color-mix(in srgb,var(--ms-accent) 82%,var(--ms-text-primary));
}

html:is(.ms-theme-light,.ms-theme-dark) .ms-sidebar{overflow:hidden}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav-spacer{min-height:8px}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav-item{gap:8px;line-height:1.25}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav-item:hover{background:color-mix(in srgb,var(--ms-accent-soft) 52%,transparent)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav-item.active{
  background:color-mix(in srgb,var(--ms-accent-soft) 72%,transparent);
  color:var(--ms-text-primary);
  box-shadow:inset 2px 0 var(--ms-accent);
}
html.ms-theme-light .ms-nav-item.active{color:#6f500c;box-shadow:inset 2px 0 var(--ms-structural-accent)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav-icon{width:var(--omnia-icon-sidebar);height:var(--omnia-icon-sidebar);flex:0 0 var(--omnia-icon-sidebar)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-nav-icon img{width:var(--omnia-icon-sidebar);height:var(--omnia-icon-sidebar);object-fit:contain;filter:none}
.ms-nav-subitem,.ms-nav-leaf{--omnia-icon-sidebar:var(--omnia-icon-submenu)}
.ms-tool-icon{width:var(--omnia-icon-topbar);height:var(--omnia-icon-topbar)}
.ms-widget-title-icon{display:grid;place-items:center;width:var(--omnia-icon-widget-container);height:var(--omnia-icon-widget-container)}
.ms-widget-title-icon img{width:var(--omnia-icon-widget);height:var(--omnia-icon-widget);object-fit:contain}
.ms-button-icon{width:var(--omnia-icon-button);height:var(--omnia-icon-button);object-fit:contain}
.is-primary .ms-button-icon{width:var(--omnia-icon-primary-button);height:var(--omnia-icon-primary-button)}
.ms-status-icon{width:var(--omnia-icon-status);height:var(--omnia-icon-status);object-fit:contain}
.ms-travel-icon{display:grid;place-items:center;width:var(--omnia-icon-travel-container);height:var(--omnia-icon-travel-container)}
.ms-travel-icon img{width:var(--omnia-icon-travel);height:var(--omnia-icon-travel);object-fit:contain}

/* OMNIA ASTRA R4A — CANONICAL PERSISTENT FLOATING ASSISTANT */
.ms-astra-shell-region{
  position:fixed;
  left:0;
  top:0;
  z-index:1250;
  flex:0 0 0;
  width:0;
  height:0;
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
  pointer-events:none;
}
.ms-floating-astra{
  --ms-astra-launcher-width:clamp(88px,8vw,108px);
  --ms-astra-portrait-width:clamp(72px,6.8vw,92px);
  --ms-astra-portrait-height:clamp(92px,8.6vw,118px);
  position:fixed;
  left:calc(
    (var(--sidebar-width) - var(--ms-astra-launcher-width)) / 2
  );
  bottom:76px;
  z-index:1250;
  width:var(--ms-astra-launcher-width);
  padding:0;
  gap:3px;
  border:0;
  background:transparent;
  touch-action:none;
  user-select:none;
  cursor:grab;
  pointer-events:auto;
  filter:drop-shadow(0 10px 18px rgba(3,15,24,.28));
}
.ms-floating-astra:active{
  cursor:pointer;
  transform:translateY(1px);
}
.ms-astra-halo{
  width:var(--ms-astra-portrait-width);
  height:var(--ms-astra-portrait-height);
  box-shadow:none;
}
.ms-astra-halo img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
}
.ms-floating-astra strong{
  max-width:100%;
  margin-top:-5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html.ms-theme-dark .ms-topbar :is(.ms-search,.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button){
  border-color:var(--ms-shell-control-border);
  background:var(--ms-shell-control-surface);
  color:var(--ms-shell-control-text);
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button):hover{background:var(--ms-shell-control-hover);border-color:var(--ms-accent)}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button):focus-visible{border-color:var(--ms-focus)}
html.ms-theme-dark .ms-topbar .ms-search input{color:var(--ms-shell-control-text)}
html.ms-theme-dark .ms-topbar .ms-search input::placeholder{color:var(--ms-text-muted)}
html.ms-theme-dark .ms-language-menu{border-color:var(--ms-shell-control-border);background:var(--ms-surface-primary);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-language-menu button{color:var(--ms-text-secondary)}
html.ms-theme-dark .ms-language-menu button:hover{background:var(--ms-shell-control-hover);color:var(--ms-text-primary)}
.ms-topbar-title{min-width:0}.ms-topbar-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-topbar-tools{min-width:0}

@media(max-width:1199px){
  html:is(.ms-theme-light,.ms-theme-dark) body .ms-astra-shell-region .ms-floating-astra{
    --ms-astra-launcher-width:80px;
    --ms-astra-portrait-width:64px;
    --ms-astra-portrait-height:82px;
  }
  .ms-floating-astra strong{font-size:8px;padding:2px 6px}
}
@media(max-height:720px) and (min-width:768px){
  .ms-floating-astra{
    --ms-astra-launcher-width:74px;
    --ms-astra-portrait-width:58px;
    --ms-astra-portrait-height:72px;
  }
}
@media(max-width:767px){
  .ms-sidebar{display:flex;flex-direction:row;align-items:stretch}
  .ms-sidebar .ms-nav{flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden}
  .ms-astra-shell-region{flex:0 0 0;width:0;height:0;min-height:0;padding:0;border:0}
  html:is(.ms-theme-light,.ms-theme-dark) body .ms-astra-shell-region .ms-floating-astra{
    --ms-astra-launcher-width:66px;
    --ms-astra-portrait-width:52px;
    --ms-astra-portrait-height:66px;
    display:flex;
    height:auto;
    left:max(10px,env(safe-area-inset-left));
    bottom:max(78px,calc(env(safe-area-inset-bottom) + 70px));
    padding:0;
    gap:1px;
    filter:drop-shadow(0 7px 14px rgba(3,15,24,.26));
  }
  .ms-floating-astra strong{
    margin-top:-5px;
    padding:2px 5px;
    font-size:7px;
  }
  .ms-topbar{gap:8px}
  .ms-topbar-title{flex:1 1 auto}
  .ms-topbar-tools{flex:0 0 auto;overflow:visible}
  .ms-topbar-tools .ms-global-search{display:none}
}

/* OMNIA SIDEBAR ACTIVE STATE HARMONIZATION R1N */
html.ms-theme-dark .ms-sidebar{
  --ms-sidebar-item-hover:color-mix(in srgb,var(--ms-focus) 10%,var(--ms-bg-sidebar));
  --ms-sidebar-item-selected:color-mix(in srgb,var(--ms-focus) 18%,var(--ms-surface-secondary));
}
html.ms-theme-dark .ms-sidebar .ms-nav-item:hover:not(.active){
  background:var(--ms-sidebar-item-hover);
  color:var(--ms-text-primary);
  box-shadow:none;
}
html.ms-theme-dark .ms-sidebar .ms-nav-item.active,
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-sidebar .ms-nav-item.active{
  background:var(--ms-sidebar-item-selected);
  color:var(--ms-text-primary);
  box-shadow:inset 2px 0 var(--ms-focus);
}
html.ms-theme-dark .ms-sidebar .ms-nav-item:focus-visible{
  outline:2px solid var(--ms-focus);
  outline-offset:-2px;
}
html.ms-theme-dark .ms-sidebar .ms-nav-item :is(.ms-nav-label,.ms-nav-caret){color:inherit}
html.ms-theme-dark .ms-sidebar .ms-nav-item .ms-nav-icon,
html.ms-theme-dark .ms-sidebar .ms-nav-item .ms-nav-icon img{background:transparent;box-shadow:none;filter:none;opacity:1}
html.ms-theme-dark .ms-sidebar .ms-nav-subitem:hover:not(.active){background:var(--ms-sidebar-item-hover);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-sidebar .ms-nav-subitem.active{background:var(--ms-sidebar-item-selected);color:var(--ms-text-primary)}

/* OMNIA TOPBAR & APP HEADER VISUAL HARMONIZATION R1P */
html.ms-theme-dark .ms-topbar{
  --ms-topbar-control-rest:var(--ms-shell-control-surface);
  --ms-topbar-control-hover:color-mix(in srgb,var(--ms-focus) 10%,var(--ms-surface-secondary));
  --ms-topbar-control-active:color-mix(in srgb,var(--ms-focus) 18%,var(--ms-surface-secondary));
  --ms-topbar-control-border:color-mix(in srgb,var(--ms-border-color) 88%,var(--ms-focus));
  border-color:var(--ms-border-color);
  background:var(--ms-bg-app);
  color:var(--ms-text-primary);
  box-shadow:none;
}
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar{
  border-color:var(--ms-border-color);
  background:var(--ms-bg-app);
  color:var(--ms-text-primary);
  box-shadow:none;
}
html.ms-theme-dark .ms-topbar-title strong,
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar-title strong{color:var(--ms-text-primary)}
html.ms-theme-dark .ms-topbar-title small,
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar-title small{color:var(--ms-text-secondary)}
html.ms-theme-dark .ms-topbar :is(.ms-search,.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button),
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-topbar :is(.ms-search,.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button){
  min-height:39px;
  border-color:var(--ms-topbar-control-border);
  border-radius:7px;
  background:var(--ms-topbar-control-rest);
  color:var(--ms-text-primary);
  box-shadow:none;
}
html.ms-theme-dark .ms-topbar .ms-search:hover{border-color:var(--ms-accent);background:var(--ms-topbar-control-hover)}
html.ms-theme-dark .ms-topbar .ms-search:focus-within{
  border-color:var(--ms-focus);
  background:var(--ms-topbar-control-active);
  outline:2px solid color-mix(in srgb,var(--ms-focus) 72%,transparent);
  outline-offset:1px;
}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button):not(:disabled):hover{
  border-color:var(--ms-accent);
  background:var(--ms-topbar-control-hover);
}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button):not(:disabled):active,
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button)[aria-pressed="true"],
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button)[aria-expanded="true"],
html.ms-theme-dark .ms-language-wrap:has(.ms-language-menu:not([hidden])) .ms-language-button{
  border-color:var(--ms-focus);
  background:var(--ms-topbar-control-active);
}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button):focus-visible{
  border-color:var(--ms-focus);
  outline:2px solid color-mix(in srgb,var(--ms-focus) 72%,transparent);
  outline-offset:1px;
  box-shadow:none;
}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button):disabled{
  border-color:var(--ms-border-color);
  background:var(--ms-topbar-control-rest);
  color:var(--ms-text-muted);
  opacity:.68;
}
html.ms-theme-dark .ms-topbar .ms-search>span{color:var(--ms-text-secondary)}
html.ms-theme-dark .ms-topbar .ms-search:focus-within>span{color:var(--ms-focus)}
html.ms-theme-dark .ms-topbar .ms-search input{color:var(--ms-text-primary)}
html.ms-theme-dark .ms-topbar .ms-search input::placeholder{color:var(--ms-text-muted);opacity:1}
html.ms-theme-dark .ms-language-menu{border-color:var(--ms-topbar-control-border);background:var(--ms-surface-primary);box-shadow:0 10px 24px rgba(3,15,24,.22)}
html.ms-theme-dark .ms-language-menu button{color:var(--ms-text-secondary)}
html.ms-theme-dark .ms-language-menu button:hover{background:var(--ms-topbar-control-hover);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-language-menu button:active{background:var(--ms-topbar-control-active);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-language-menu button:focus-visible{outline:2px solid var(--ms-focus);outline-offset:-2px}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification,.ms-user-button){align-items:center}
html.ms-theme-dark .ms-topbar :is(.ms-language-button,.ms-tool-button,.ms-notification) :is(svg,img){display:block;flex:0 0 auto}
html.ms-theme-dark .ms-user-button b{color:var(--ms-text-secondary)}
html.ms-theme-dark .ms-brand{border-color:var(--ms-border-color);background:var(--ms-bg-sidebar)}
html.ms-theme-dark .ms-logo{box-shadow:inset 0 1px rgba(255,255,255,.12)}

/* OMNIA ASTRA SHELL VISUAL HARMONIZATION R1R */
html.ms-theme-dark .ms-astra-shell-region{
  --ms-astra-hover:color-mix(in srgb,var(--ms-focus) 10%,var(--ms-bg-sidebar));
  --ms-astra-open:color-mix(in srgb,var(--ms-focus) 18%,var(--ms-surface-secondary));
  border-color:var(--ms-border-color);
  background:var(--ms-bg-sidebar);
}
html.ms-theme-dark .ms-astra-shell-region .ms-floating-astra{
  border:1px solid transparent !important;
  border-radius:var(--ms-radius-md) !important;
  background:transparent !important;
  filter:none !important;
  box-shadow:none !important;
}
html.ms-theme-dark .ms-astra-shell-region .ms-floating-astra:hover{
  border-color:color-mix(in srgb,var(--ms-focus) 34%,transparent) !important;
  background:var(--ms-astra-hover) !important;
}
/* OMNIA ASTRA SINGLE AVATAR — hide floating launcher while conversation panel is open */
body:has(.ms-astra-conversation:not([hidden])) .ms-astra-shell-region .ms-floating-astra{
  display:none !important;
}

html.ms-theme-dark body:has(.ms-astra-conversation:not([hidden])) .ms-astra-shell-region .ms-floating-astra{
  border-color:color-mix(in srgb,var(--ms-focus) 54%,var(--ms-border-color)) !important;
  background:var(--ms-astra-open) !important;
}
html.ms-theme-dark .ms-astra-shell-region .ms-floating-astra:focus-visible{
  border-color:var(--ms-focus) !important;
  outline:2px solid color-mix(in srgb,var(--ms-focus) 76%,transparent);
  outline-offset:1px;
}
html.ms-theme-dark .ms-astra-shell-region .ms-astra-halo{
  background:transparent;
  box-shadow:none;
}
html.ms-theme-dark .ms-astra-shell-region .ms-floating-astra strong,
html.ms-theme-dark body:has(.ms-dashboard-nexus:not([hidden])) .ms-astra-shell-region .ms-floating-astra strong{
  border:0 !important;
  background:transparent !important;
  color:var(--ms-text-secondary) !important;
  box-shadow:none !important;
}
html.ms-theme-dark .ms-astra-shell-region .ms-floating-astra:hover strong,
html.ms-theme-dark body:has(.ms-astra-conversation:not([hidden])) .ms-astra-shell-region .ms-floating-astra strong{
  color:var(--ms-text-primary) !important;
}

.ms-astra-conversation:not([hidden]){
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
}
html.ms-theme-dark .ms-astra-conversation{
  --ms-astra-panel-hover:color-mix(in srgb,var(--ms-focus) 10%,var(--ms-surface-secondary));
  --ms-astra-panel-active:color-mix(in srgb,var(--ms-focus) 18%,var(--ms-surface-secondary));
  border-color:var(--ms-border-color);
  background:var(--ms-surface-primary);
  color:var(--ms-text-primary);
  box-shadow:0 16px 38px rgba(3,15,24,.28);
}
html.ms-theme-dark .ms-astra-conversation header{
  border-color:var(--ms-border-color);
  background:var(--ms-surface-secondary);
}
html.ms-theme-dark .ms-astra-conversation header strong{color:var(--ms-text-primary)}
html.ms-theme-dark .ms-astra-conversation header button{
  width:36px;
  height:36px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--ms-text-secondary);
  line-height:1;
}
html.ms-theme-dark .ms-astra-conversation header button:hover{background:var(--ms-astra-panel-hover);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-astra-conversation header button:active{background:var(--ms-astra-panel-active);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-astra-conversation :is(button,textarea):focus-visible{
  border-color:var(--ms-focus);
  outline:2px solid color-mix(in srgb,var(--ms-focus) 76%,transparent);
  outline-offset:1px;
}
html.ms-theme-dark .ms-astra-messages{background:var(--ms-surface-primary);scrollbar-color:var(--ms-border-color) transparent}
html.ms-theme-dark .ms-astra-message{color:var(--ms-text-primary)}
html.ms-theme-dark .ms-astra-message-user{background:var(--ms-accent-soft);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-astra-message-assistant{background:var(--ms-surface-secondary);color:var(--ms-text-primary)}
html.ms-theme-dark .ms-astra-message-status{color:var(--ms-warning)}
html.ms-theme-dark .ms-astra-action-confirmation{
  border-color:color-mix(in srgb,var(--ms-focus) 34%,var(--ms-border-color));
  background:var(--ms-surface-secondary);
}
html.ms-theme-dark .ms-astra-action-confirmation small{color:var(--ms-text-secondary)}
html.ms-theme-dark .ms-astra-action-confirmation button,
html.ms-theme-dark .ms-astra-conversation form button{
  border:1px solid var(--ms-border-color);
  background:var(--ms-surface-secondary);
  color:var(--ms-text-primary);
}
html.ms-theme-dark .ms-astra-action-confirmation button:not(:disabled):hover,
html.ms-theme-dark .ms-astra-conversation form button:not(:disabled):hover{border-color:var(--ms-accent);background:var(--ms-astra-panel-hover)}
html.ms-theme-dark .ms-astra-action-confirmation button:not(:disabled):active,
html.ms-theme-dark .ms-astra-conversation form button:not(:disabled):active{border-color:var(--ms-focus);background:var(--ms-astra-panel-active)}
html.ms-theme-dark .ms-astra-action-confirmation button:disabled,
html.ms-theme-dark .ms-astra-conversation form button:disabled{color:var(--ms-text-muted);opacity:.62}
html.ms-theme-dark .ms-astra-conversation form{border-color:var(--ms-border-color);background:var(--ms-surface-secondary)}
html.ms-theme-dark .ms-astra-conversation textarea{
  border-color:var(--ms-border-color);
  background:var(--ms-surface-primary);
  color:var(--ms-text-primary);
}
html.ms-theme-dark .ms-astra-conversation textarea::placeholder{color:var(--ms-text-muted);opacity:1}
html.ms-theme-dark .ms-astra-conversation form button[type="submit"]{border-color:color-mix(in srgb,var(--ms-focus) 48%,var(--ms-border-color));background:var(--ms-accent-soft)}

@media(max-width:767px){
  .ms-astra-conversation{
    right:12px;
    bottom:76px;
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 96px);
    border-radius:12px;
  }
  .ms-astra-conversation header{padding:10px 12px}
  .ms-astra-messages{min-height:120px;max-height:none;padding:12px}
  .ms-astra-conversation form{padding:10px}
  .ms-astra-conversation textarea{max-height:30dvh;resize:none}
}

/* ==========================================================================
   R1S — CANONICAL DASHBOARD VISUAL HARMONIZATION
   Presentation-only overrides. Data bindings and renderers remain unchanged.
   ========================================================================== */
#dashboardView.ms-dashboard-nexus{width:100%;max-width:100%;overflow:hidden}
#dashboardView.ms-dashboard-nexus :is(.ms-dashboard-grid,.ms-dashboard-main,.ms-dashboard-side){min-width:0;max-width:100%}
#dashboardView.ms-dashboard-nexus .ms-card{border:1px solid var(--ms-border-color);border-radius:var(--ms-radius-lg);background:var(--ms-surface-primary);box-shadow:0 1px 2px rgba(0,8,18,.18)}
#dashboardView.ms-dashboard-nexus .ms-card::after{display:none}
#dashboardView.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr)) minmax(0,1.15fr) repeat(2,minmax(0,1fr));padding-right:0;gap:10px}
#dashboardView.ms-dashboard-nexus .ms-kpi{min-height:116px;height:auto;padding:var(--omnia-space-3);gap:var(--omnia-space-1);display:block;position:relative;border-top-color:var(--ms-border-color);overflow:hidden;transform:none;box-shadow:none}
#dashboardView.ms-dashboard-nexus .ms-kpi:hover{transform:none;border-color:var(--ms-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--ms-accent) 24%,transparent)}
#dashboardView.ms-dashboard-nexus .ms-kpi::before{top:14px;bottom:14px;width:2px;box-shadow:none}
#dashboardView.ms-dashboard-nexus .ms-kpi:nth-child(3){--ms-kpi-accent:#2aaee8}
#dashboardView.ms-dashboard-nexus .ms-kpi-icon{width:var(--omnia-icon-kpi-container);height:var(--omnia-icon-kpi-container);position:absolute;right:var(--omnia-space-3);top:var(--omnia-space-3);border:0;border-radius:0;background:transparent;box-shadow:none}
#dashboardView.ms-dashboard-nexus .ms-kpi-icon img{width:var(--omnia-icon-kpi);height:var(--omnia-icon-kpi);object-fit:contain}
#dashboardView.ms-dashboard-nexus .ms-kpi-copy{width:100%;overflow:visible}
#dashboardView.ms-dashboard-nexus .ms-kpi-copy>span{color:var(--ms-text-secondary);font-size:10px;line-height:1.25;white-space:normal;text-overflow:clip;padding-right:44px;min-height:32px}
#dashboardView.ms-dashboard-nexus .ms-kpi-copy strong{display:block;margin-top:4px;color:var(--ms-text-primary);font-size:clamp(22px,1.5vw,27px);line-height:1.08;overflow:visible;overflow-wrap:anywhere;word-break:normal;white-space:normal}
#dashboardView.ms-dashboard-nexus .ms-kpi-copy small{margin-top:var(--omnia-space-1);color:var(--ms-text-muted);font-size:9px;line-height:1.3;overflow-wrap:anywhere}
#dashboardView.ms-dashboard-nexus .ms-card-header{min-height:42px;padding-bottom:10px;border-bottom:1px solid var(--ms-border-color)}
#dashboardView.ms-dashboard-nexus .ms-card-header h2{margin-top:3px;color:var(--ms-text-primary);font-size:15px;line-height:1.25}
#dashboardView.ms-dashboard-nexus .ms-card-header small{color:var(--ms-accent);font-size:9px;letter-spacing:.1em}
#dashboardView.ms-dashboard-nexus :is(.ms-card-link,.ms-map-open){border:0;background:transparent;color:var(--ms-accent);box-shadow:none}
#dashboardView.ms-dashboard-nexus :is(.ms-pipeline-card,.ms-opportunity-intelligence,.ms-map-card,.ms-analytics-card){padding:14px;overflow:hidden}
#dashboardView.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(220px,.72fr) minmax(0,1.7fr);gap:12px}
#dashboardView.ms-dashboard-nexus :is(.ms-opportunity-donut-panel,.ms-opportunity-chart-panel,.ms-opportunity-charts>section){min-width:0;border-color:var(--ms-border-color);background:transparent;box-shadow:none;overflow:hidden}
#dashboardView.ms-dashboard-nexus .ms-opportunity-kpis button{border-color:var(--ms-border-color);background:var(--ms-surface-secondary);box-shadow:none}
#dashboardView.ms-dashboard-nexus .ms-opportunity-kpis :is(span,strong){white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere}
#dashboardView.ms-dashboard-nexus .ms-oi-empty{min-height:76px;display:grid;place-items:center;color:var(--ms-text-secondary);text-align:center}
#dashboardView.ms-dashboard-nexus [data-oi-chart] svg{max-width:100%;overflow:hidden}
#dashboardView.ms-dashboard-nexus .ms-timeline-labels{color:var(--ms-text-secondary)}
#dashboardView.ms-dashboard-nexus .ms-map-pin{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center}
#dashboardView.ms-dashboard-nexus .ms-map-pin img{display:block;width:20px;height:20px;object-fit:contain}
#dashboardView.ms-dashboard-nexus .quick-icon{border:0;border-radius:0;background:transparent;box-shadow:none}

#dashboardView.ms-dashboard-nexus .ms-quick-grid button{border-color:transparent;background:transparent;box-shadow:none}
#dashboardView.ms-dashboard-nexus .ms-quick-grid button:hover{border-color:var(--ms-border-color);background:var(--ms-surface-secondary)}
#dashboardView.ms-dashboard-nexus #dashboardPipeline,#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-kanban{max-width:100%;overflow:hidden;padding-top:0}
#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-stage>header,#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-stage:not(:first-child)>header{height:auto;min-height:96px;padding:11px;overflow:hidden}
#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-stage>header :is(strong,span,b,small){white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere;line-height:1.25}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus .ms-card{background:var(--ms-surface-primary)}
html.ms-theme-dark #dashboardView.ms-dashboard-nexus :is(.ms-opportunity-donut-panel,.ms-opportunity-chart-panel,.ms-opportunity-charts>section){background:color-mix(in srgb,var(--ms-surface-secondary) 52%,transparent)}
html.ms-theme-light #dashboardView.ms-dashboard-nexus .ms-card{background:#fff}
html.ms-theme-light #dashboardView.ms-dashboard-nexus :is(.ms-opportunity-donut-panel,.ms-opportunity-chart-panel,.ms-opportunity-charts>section){background:var(--ms-surface-secondary)}
@media(max-width:1199px){#dashboardView.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1023px){#dashboardView.ms-dashboard-nexus .ms-dashboard-grid{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus .ms-opportunity-command{grid-template-columns:minmax(210px,.65fr) minmax(0,1.35fr)}}
@media(max-width:834px){#dashboardView.ms-dashboard-nexus .ms-opportunity-command,#dashboardView.ms-dashboard-nexus .ms-secondary-analytics{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus .ms-opportunity-charts{grid-template-columns:1fr}}
@media(max-width:600px){#dashboardView.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboardView.ms-dashboard-nexus .ms-kpi{min-height:96px;padding:12px}#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-kanban{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-stage>header,#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-stage:not(:first-child)>header{min-height:82px}}
@media(max-width:390px){#dashboardView.ms-dashboard-nexus .ms-kpi-grid{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus .ms-kpi{min-height:88px}#dashboardView.ms-dashboard-nexus .ms-opportunity-donut-panel{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus .ms-opportunity-legend{grid-template-columns:1fr}}

/* R1U — OMNIA EXECUTIVE COMMAND CENTER MASTER */
#dashboardView.ms-dashboard-nexus{display:flex;flex-direction:column;gap:12px}
#dashboardView.ms-dashboard-nexus>.ms-kpi-grid{order:1;margin:0}
#dashboardView.ms-dashboard-nexus>#dashboardQuickActionsMount{order:2}
#dashboardView.ms-dashboard-nexus>.ms-pipeline-card{order:3}
#dashboardView.ms-dashboard-nexus>.ms-executive-intelligence{order:4}
#dashboardView.ms-dashboard-nexus>#mapWidget{order:5}
#dashboardView.ms-dashboard-nexus>.ms-widget-catalog-open{order:6;align-self:flex-end}
#dashboardView.ms-dashboard-nexus .ms-dashboard-full-width{width:100%;max-width:100%}
#dashboardView.ms-dashboard-nexus>.ms-pipeline-card{max-height:none;padding:var(--omnia-space-3)}
#dashboardView.ms-dashboard-nexus #dashboardPipeline{max-height:none;overflow:hidden;margin-top:var(--omnia-space-2)}
#dashboardView.ms-dashboard-nexus .ms-pipeline-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 0}
#dashboardView.ms-dashboard-nexus .ms-pipeline-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;padding:7px 9px;border:1px solid var(--ms-border-color);border-radius:var(--ms-radius-md);background:var(--ms-surface-secondary)}
#dashboardView.ms-dashboard-nexus .ms-pipeline-totals :is(dt,dd){margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dashboardView.ms-dashboard-nexus .ms-pipeline-totals dt{color:var(--ms-text-muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
#dashboardView.ms-dashboard-nexus .ms-pipeline-totals dd{color:var(--ms-text-primary);font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
#dashboardView.ms-dashboard-nexus .ms-executive-intelligence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0}
#dashboardView.ms-dashboard-nexus .ms-executive-intelligence>.ms-card{min-width:0;height:224px;min-height:0;padding:var(--omnia-space-3);overflow:hidden}
#dashboardView.ms-dashboard-nexus .ms-opportunity-donut-panel{display:grid;grid-template-columns:minmax(100px,128px) minmax(0,1fr);gap:var(--omnia-space-2);margin-top:var(--omnia-space-2);padding:0;border:0}
#dashboardView.ms-dashboard-nexus .ms-distribution-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#dashboardView.ms-dashboard-nexus .is-dashboard-expanded .ms-distribution-details{display:grid}
#dashboardView.ms-dashboard-nexus .ms-distribution-details .ms-opportunity-chart-panel{min-width:0;padding:10px;border:1px solid var(--ms-border-color);border-radius:var(--ms-radius-md)}
#dashboardView.ms-dashboard-nexus .ms-distribution-details h3{margin:0 0 10px;color:var(--ms-text-secondary);font-size:10px;text-transform:uppercase}
#dashboardView.ms-dashboard-nexus .ms-truthful-empty{display:grid;gap:var(--omnia-space-2);margin-top:var(--omnia-space-2)}
#dashboardView.ms-dashboard-nexus .ms-truthful-empty p{display:grid;gap:var(--omnia-space-1);margin:0;padding:var(--omnia-space-1) 0;border:0;background:transparent}
#dashboardView.ms-dashboard-nexus .ms-truthful-empty strong{color:var(--ms-text-primary);font-size:12px}
#dashboardView.ms-dashboard-nexus .ms-truthful-empty span{color:var(--ms-text-muted);font-size:10px;line-height:1.45}
#dashboardView.ms-dashboard-nexus .ms-module-actions{display:flex;gap:8px;margin-top:12px}
#dashboardView.ms-dashboard-nexus .ms-module-actions button{min-height:34px;padding:0 10px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-secondary);color:var(--ms-text-muted)}
#dashboardView.ms-dashboard-nexus .ms-card-actions{display:flex;align-items:center;gap:8px}
#dashboardView.ms-dashboard-nexus .ms-expanded-only{display:none;margin-top:14px}
#dashboardView.ms-dashboard-nexus .is-dashboard-expanded .ms-expanded-only{display:block}
#dashboardView.ms-dashboard-nexus .ms-expanded-only h3{color:var(--ms-text-secondary);font-size:11px;text-transform:uppercase}
#dashboardView.ms-dashboard-nexus>#mapWidget{min-height:330px}
#dashboardView.ms-dashboard-nexus>#mapWidget .ms-map{height:280px;min-height:260px}
#dashboardView.ms-dashboard-nexus [data-dashboard-expandable].is-dashboard-expanded,
#dashboardView.ms-dashboard-nexus>.ms-pipeline-card.is-dashboard-expanded{position:fixed;z-index:780;inset:calc(var(--topbar-height) + 16px) 16px 16px calc(var(--sidebar-width) + 16px);width:auto;max-width:none;max-height:none;overflow:auto;background:var(--ms-surface-primary)}
.ms-map-card{position:relative}.ms-map-area-panel{position:absolute;z-index:450;right:24px;top:62px;width:min(220px,calc(100% - 48px));max-height:calc(100% - 82px);overflow:auto;padding:12px;border:1px solid var(--ms-border-color);border-radius:10px;background:color-mix(in srgb,#081426 92%,transparent);color:var(--ms-text-primary);box-shadow:0 12px 30px rgba(0,0,0,.3)}.ms-map-area-panel>strong{font-size:11px;letter-spacing:.08em}.ms-map-area-panel dl{margin:8px 0 0}.ms-map-area-panel dl div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-top:1px solid color-mix(in srgb,var(--ms-border-color) 65%,transparent)}.ms-map-area-panel dt,.ms-map-area-panel dd{margin:0;font-size:12px}.ms-map-area-panel dd{font-weight:800}
.ms-map-filter-label{display:flex;align-items:center;gap:6px;color:var(--ms-text-muted);font-size:10px}.ms-map-filter{max-width:170px;min-height:30px;border:1px solid var(--ms-border-color);border-radius:7px;background:var(--ms-surface-secondary);color:var(--ms-text-primary);font:inherit}
@media(max-width:600px){.ms-map-header{align-items:flex-start}.ms-map-header .ms-card-actions{flex-wrap:wrap;justify-content:flex-end}.ms-map-filter-label{width:100%;justify-content:flex-end}.ms-map-filter{max-width:150px}.ms-map-area-panel{position:relative;inset:auto;width:auto;max-height:180px;margin-top:10px}.ms-map-card.is-dashboard-expanded .ms-map-area-panel{margin-bottom:10px}}
#dashboardView.ms-dashboard-nexus [data-dashboard-expandable].is-dashboard-expanded .ms-map{height:calc(100dvh - var(--topbar-height) - 110px)}
@media(max-width:1023px){#dashboardView.ms-dashboard-nexus .ms-executive-intelligence{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){#dashboardView.ms-dashboard-nexus .ms-executive-intelligence{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus .ms-executive-intelligence>.ms-card{height:auto;min-height:220px}#dashboardView.ms-dashboard-nexus .ms-pipeline-totals{grid-template-columns:1fr}#dashboardView.ms-dashboard-nexus [data-dashboard-expandable].is-dashboard-expanded,#dashboardView.ms-dashboard-nexus>.ms-pipeline-card.is-dashboard-expanded{inset:calc(var(--topbar-height) + 8px) 8px 8px calc(var(--sidebar-width) + 8px)}}
@media(max-width:430px){#dashboardView.ms-dashboard-nexus>#mapWidget{min-height:340px}#dashboardView.ms-dashboard-nexus>#mapWidget .ms-map{height:300px;min-height:280px}}

/* OMNIA_UI_MAIL_ASTRA_R4_BEGIN */

/*
 * Mail icon:
 * same visual footprint as the canonical 64x64 sidebar assets,
 * explicitly centered in both axes.
 */
.ms-sidebar .ms-nav-icon.ms-nav-icon-mail{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  overflow:visible;
}

.ms-sidebar .ms-nav-icon.ms-nav-icon-mail svg{
  display:block;
  width:25px;
  height:25px;
  flex:0 0 25px;
  margin:0;
  transform:none;
}

/* ASTRA has its own fixed shell layer; navigation no longer reserves its dock. */
.ms-astra-shell-region { padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.ms-floating-astra[data-dragging="true"] { cursor:grabbing; transform:none; }

/* OMNIA_UI_MAIL_ASTRA_R4_END */

/* OMNIA_SIDEBAR_BRAND_R14_START */
/*
 * Canonical OMNIA sidebar identity.
 * One transparent official asset for light and dark themes.
 * Desktop: complete horizontal identity.
 * Compact sidebar: proportional scaling only — never crop the artwork.
 * Mobile: canonical bottom navigation continues to suppress .ms-brand.
 */
.ms-sidebar .ms-brand.ms-brand-r13 {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:70px;
  padding:4px 0 12px;
  overflow:visible;
}

.ms-sidebar .ms-brand.ms-brand-r13 .ms-brand-official-logo {
  display:block;
  width:184px;
  max-width:100%;
  height:auto;
  object-fit:contain;
  object-position:center center;
  flex:0 1 auto;
}

/*
 * R14.3 integrated brand presentation.
 * The sidebar remains visually continuous: no plate, card or boxed
 * background is introduced around the official OMNIA identity.
 */
html.ms-theme-light
.ms-sidebar
.ms-brand.ms-brand-r13
.ms-brand-official-logo {
  filter:
    drop-shadow(0 1px 0 rgba(11,34,53,.24))
    drop-shadow(0 1px 1px rgba(11,34,53,.16));
}

html.ms-theme-dark
.ms-sidebar
.ms-brand.ms-brand-r13
.ms-brand-official-logo {
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.28));
}

/* Canonical compact sidebar.
   The complete 3:1 logo is fitted inside the available 78px rail.
   No object-fit:cover and therefore no destructive crop. */
@media (min-width:768px) and (max-width:1199px) {
  .ms-sidebar .ms-brand.ms-brand-r13 {
    justify-content:center;
    min-height:54px;
    height:auto;
    padding:4px 0 10px;
    overflow:visible;
  }

  .ms-sidebar .ms-brand.ms-brand-r13 .ms-brand-official-logo {
    width:58px;
    max-width:58px;
    height:auto;
    max-height:28px;
    object-fit:contain;
    object-position:center center;
  }
}

/* Mobile canonical navigation suppresses .ms-brand. */
/* OMNIA_SIDEBAR_BRAND_R14_END */

/* R6.2: compact submenus retain their canonical DOM but live outside the
   scrolling sidebar while open, avoiding Mobile Safari overflow clipping. */
@media (max-width:1199px) {
  .ms-sidebar:has(.ms-nav-group.expanded) { z-index:900; }
  .ms-nav-submenu.ms-compact-submenu:not([hidden]) {
    display:grid !important;
    position:fixed;
    z-index:901;
    left:var(--sidebar-width);
    top:var(--topbar-height);
    bottom:auto;
    width:min(300px, calc(100vw - var(--sidebar-width) - 12px));
    height:max-content;
    max-height:calc(100dvh - var(--topbar-height) - 24px);
    margin:0;
    padding:10px;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    background:var(--ms-bg-sidebar);
  }
}
@media (max-width:767px) {
  html:is(.ms-theme-light,.ms-theme-dark) .ms-sidebar .ms-nav {
    overflow-x:auto;
    overflow-y:hidden;
  }
  .ms-nav-submenu.ms-compact-submenu:not([hidden]) {
    inset:auto 10px var(--ms-master-mobile-nav-height,64px);
    width:auto;
    max-height:calc(100dvh - 132px);
  }
}

/* Canonical wide-short density: geometry only; ordinary tablet heights unchanged. */
@media screen and (min-width:700px) and (max-height:500px) {
  html {
    --ms-wide-short-active:1;
    --ms-density-section-gap:8px;
    --ms-density-panel-padding:8px 14px;
  }
  html:is(.ms-theme-light,.ms-theme-dark) .ms-content {
    padding-block:8px;
  }
}
/* Preserve the shell authentication visibility boundary after lifting the launcher. */
body:has([data-foundation-shell][data-auth-pending="true"]) > .ms-astra-shell-region { visibility:hidden; }
.ms-floating-astra[data-position-owner="shell"]:active { transform:none; }

/* ======================================================================
   OMNIA GENERAL DIRECTORY R2.10 — CANONICAL VERTICAL SCROLL
   The Foundation shell owns the viewport. General Directory therefore
   owns one internal vertical scrolling region below its fixed controls.
   ====================================================================== */

html:is(.ms-theme-light,.ms-theme-dark) .gd-shell{
  display:flex;
  flex-direction:column;
  width:100%;
  height:calc(100dvh - var(--topbar-height));
  min-height:0;
  max-height:calc(100dvh - var(--topbar-height));
  overflow:hidden;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-fixed-header{
  flex:0 0 auto;
  min-width:0;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-scroll-region{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow-x:auto;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-list{
  min-width:100%;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-table-shell{
  min-width:100%;
}

/*
 * Mobile Foundation does not use the desktop fixed-height shell.
 * Preserve natural document flow and let the page itself scroll.
 */
@media(max-width:767px){
  html:is(.ms-theme-light,.ms-theme-dark) .gd-shell{
    height:auto;
    min-height:0;
    max-height:none;
    overflow:visible;
  }

  html:is(.ms-theme-light,.ms-theme-dark) .gd-scroll-region{
    flex:none;
    min-height:0;
    overflow-x:auto;
    overflow-y:visible;
  }
}


/* OMNIA GENERAL DIRECTORY R2.11 — CANONICAL TOOLBAR ALIGNMENT */
[data-gd-toolbar]{
  position:relative;
  min-width:0;
}

[data-gd-toolbar] .ms-canonical-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}

[data-gd-toolbar] .ms-canonical-toolbar-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:38px;
  min-height:38px;
  margin:0;
  padding:0 11px;
  line-height:1;
  white-space:nowrap;
  vertical-align:middle;
}

[data-gd-toolbar] .ms-canonical-toolbar-button img,
[data-gd-toolbar] .ms-canonical-toolbar-button svg{
  flex:0 0 auto;
  vertical-align:middle;
}

[data-gd-toolbar] .ms-canonical-toolbar-search,
[data-gd-toolbar] [data-search]{
  height:38px;
  min-height:38px;
  align-self:center;
}

[data-gd-toolbar] .gd-toolbar-menu{
  position:absolute;
  z-index:1200;
  top:calc(100% + 6px);
  width:min(
    320px,
    calc(100vw - 32px)
  );
  padding:12px;
  border:
    1px solid
    var(--ms-border-color);
  border-radius:
    var(--ms-radius-md);
  background:
    var(--ms-surface-primary);
  color:
    var(--ms-text-primary);
  box-shadow:
    var(--ms-shadow-md);
}

[data-gd-toolbar] .gd-toolbar-menu>strong{
  display:block;
  margin-bottom:10px;
}

[data-gd-toolbar] .gd-toolbar-menu label{
  display:grid;
  gap:5px;
  margin:8px 0;
  font-size:12px;
}

[data-gd-toolbar] .gd-toolbar-column-list{
  display:grid;
  grid-template-columns:
    1fr 1fr;
  gap:4px 10px;
}

[data-gd-toolbar]
.gd-toolbar-column-list label{
  display:flex;
  align-items:center;
  gap:7px;
  margin:2px 0;
}

[data-gd-toolbar]
.gd-toolbar-menu-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:12px;
}

[data-gd-toolbar]
.gd-toolbar-menu-actions button{
  min-height:34px;
  padding:0 10px;
}

@media(max-width:767px){
  [data-gd-toolbar]
  .ms-canonical-toolbar{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
  }

  [data-gd-toolbar]
  .ms-canonical-toolbar-button{
    flex:0 0 auto;
  }

  [data-gd-toolbar]
  .gd-toolbar-column-list{
    grid-template-columns:1fr;
  }
}

/* ======================================================================
   OMNIA GENERAL DIRECTORY R2.15 — SINGLE SCROLL OWNERSHIP
   Desktop/tablet:
   - gd-scroll-region owns vertical scrolling.
   - gd-table-scroll owns horizontal table scrolling.
   Mobile:
   - document owns vertical scrolling.
   ====================================================================== */

html:is(.ms-theme-light,.ms-theme-dark) .gd-shell{
  display:flex;
  flex-direction:column;
  width:100%;
  height:calc(100dvh - var(--topbar-height));
  min-height:0;
  max-height:calc(100dvh - var(--topbar-height));
  overflow:hidden;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-fixed-header{
  flex:0 0 auto;
  min-width:0;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-scroll-region{
  flex:1 1 0;
  width:100%;
  min-width:0;
  min-height:0;
  max-width:100%;
  overflow-x:hidden;
  overflow-y:scroll;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scrollbar-width:auto;
  -webkit-overflow-scrolling:touch;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-list,
html:is(.ms-theme-light,.ms-theme-dark) .gd-table-shell{
  width:100%;
  min-width:0;
  max-width:100%;
}

html:is(.ms-theme-light,.ms-theme-dark) .gd-table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:scroll;
  overflow-y:hidden;
  scrollbar-gutter:stable;
  scrollbar-width:auto;
  -webkit-overflow-scrolling:touch;
}

@media(max-width:767px){
  html:is(.ms-theme-light,.ms-theme-dark) .gd-shell{
    height:auto;
    min-height:0;
    max-height:none;
    overflow:visible;
  }

  html:is(.ms-theme-light,.ms-theme-dark) .gd-scroll-region{
    flex:0 0 auto;
    width:100%;
    min-height:0;
    max-height:none;
    overflow:visible;
    overscroll-behavior:auto;
  }

  html:is(.ms-theme-light,.ms-theme-dark) .gd-table-scroll{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
}
