/*
 * ALEX Interface Rebuild
 * Silver Lining Consulting LLC
 *
 * Presentation layer only.
 * Existing functional IDs and application behavior remain authoritative.
 */

:root {
  --alex-bg: #f5f6f8;
  --alex-surface: #ffffff;
  --alex-surface-soft: #f9fafb;
  --alex-sidebar: #151b23;
  --alex-sidebar-soft: #202832;
  --alex-text: #172033;
  --alex-muted: #667085;
  --alex-border: #e2e6eb;
  --alex-gold: #b58a2a;
  --alex-gold-dark: #8c691c;
  --alex-success: #19704a;
  --alex-warning: #a56500;
  --alex-danger: #a63b3b;
  --alex-info: #315f91;
  --alex-radius: 10px;
  --alex-shadow: 0 1px 3px rgba(16, 24, 40, 0.06),
                 0 4px 12px rgba(16, 24, 40, 0.04);
}

html {
  background: var(--alex-bg);
}

body {
  margin: 0;
  color: var(--alex-text);
  background: var(--alex-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* Header */

.top {
  min-height: 72px;
  padding: 10px 28px;
  background: var(--alex-sidebar);
  border: 0;
  border-bottom: 1px solid #29313c;
  box-shadow: none;
}

.alex-header-brand {
  gap: 18px;
}

.alex-header-logo {
  width: 245px;
  height: 50px;
  max-width: 42vw;
  object-fit: contain;
  object-position: left center;
}

.alex-product-name {
  color: #ffffff;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.alex-product-subtitle {
  margin-top: 2px;
  color: #aeb7c2;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#user {
  color: #e8ebef;
  background: #202832;
  border: 1px solid #343e4a;
  box-shadow: none;
}

/* Main working surface */

main {
  width: auto;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 30px 48px;
}

#appBox {
  width: 100%;
}

/* Cards */

.card {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--alex-surface);
  border: 1px solid var(--alex-border);
  border-radius: var(--alex-radius);
  box-shadow: var(--alex-shadow);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--alex-text);
  font-size: 18px;
  font-weight: 700;
}

.card h3 {
  color: var(--alex-text);
  font-size: 15px;
  font-weight: 700;
}

.muted {
  color: var(--alex-muted);
}

/* Metrics */

.grid {
  gap: 16px;
}

.metric {
  color: var(--alex-text);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

/* Forms */

input,
select,
textarea {
  width: 100%;
  margin: 5px 0 12px;
  padding: 10px 12px;
  color: var(--alex-text);
  background: #ffffff;
  border: 1px solid #cfd5dd;
  border-radius: 7px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--alex-gold);
  box-shadow: 0 0 0 3px rgba(181, 138, 42, 0.12);
}

label {
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

/* Buttons */

button {
  padding: 10px 14px;
  color: #ffffff;
  background: var(--alex-sidebar);
  border: 1px solid var(--alex-sidebar);
  border-radius: 7px;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  background: var(--alex-sidebar-soft);
}

button.secondary {
  color: #344054;
  background: #ffffff;
  border-color: #cfd5dd;
}

button.secondary:hover {
  background: #f8f9fa;
}

button.danger {
  color: #ffffff;
  background: var(--alex-danger);
  border-color: var(--alex-danger);
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--alex-surface);
}

th {
  padding: 10px 12px;
  color: #475467;
  background: var(--alex-surface-soft);
  border-bottom: 1px solid var(--alex-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f3;
}

tr:last-child td {
  border-bottom: 0;
}

/* Status */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: #eef1f4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.ok {
  color: var(--alex-success);
}

.bad {
  color: var(--alex-danger);
}

.alert-critical {
  border-left: 4px solid var(--alex-danger);
}

.alert-warning {
  border-left: 4px solid var(--alex-warning);
}

/* Authentication */

#loginBox {
  max-width: 440px;
  margin: 70px auto;
  padding: 28px;
}

/* Responsive */

@media (max-width: 900px) {
  main {
    padding: 20px 18px 36px;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .alex-header-logo {
    width: 205px;
  }

  .alex-product-subtitle {
    display: none;
  }
}

@media (max-width: 600px) {
  .top {
    padding: 12px 16px;
  }

  main {
    padding: 16px 12px 30px;
  }

  .alex-product-title {
    display: none;
  }

  .card {
    padding: 16px;
  }
}

/* =========================================================
   ALEX APPLICATION SHELL
   ========================================================= */

.alex-app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 93px);
  gap: 0;
}

.alex-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - 93px);
  padding: 24px 14px 20px;
  color: #d8dee6;
  background: var(--alex-sidebar);
  border-radius: 10px;
}

.alex-sidebar-brand {
  padding: 4px 12px 22px;
  border-bottom: 1px solid #303945;
}

.alex-sidebar-name {
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.alex-sidebar-description {
  margin-top: 5px;
  color: #9faab7;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.alex-nav {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

button.alex-nav-item {
  width: 100%;
  margin: 2px 0;
  padding: 9px 12px;
  color: #cbd2da;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

button.alex-nav-item:hover {
  color: #ffffff;
  background: var(--alex-sidebar-soft);
}

button.alex-nav-item.active {
  color: #ffffff;
  background: #252e39;
  border-color: #37414d;
  box-shadow: inset 3px 0 0 var(--alex-gold);
}

.alex-nav-label {
  margin: 18px 12px 5px;
  color: #737f8d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alex-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 10px 0;
  padding-top: 16px;
  color: #929daa;
  border-top: 1px solid #303945;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.alex-sidebar-footer strong {
  color: #cbd2da;
  font-size: 10px;
}

.alex-workspace {
  min-width: 0;
  padding-left: 26px;
}

.alex-workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  padding: 5px 2px 18px;
  border-bottom: 1px solid var(--alex-border);
}

.alex-workspace-header h1 {
  margin: 2px 0 2px;
  color: var(--alex-text);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.alex-workspace-header p {
  margin: 0;
  color: var(--alex-muted);
  font-size: 13px;
}

.alex-eyebrow {
  color: var(--alex-gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.alex-workspace-content {
  min-width: 0;
}

@media (max-width: 1000px) {
  .alex-app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .alex-workspace {
    padding-left: 18px;
  }
}

@media (max-width: 760px) {
  .alex-app-shell {
    display: block;
  }

  .alex-sidebar {
    position: static;
    min-height: 0;
    margin-bottom: 18px;
  }

  .alex-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .alex-nav-label {
    grid-column: 1 / -1;
  }

  .alex-sidebar-footer {
    display: none;
  }

  .alex-workspace {
    padding-left: 0;
  }
}

/* Incremental workspace routing.
   Only explicitly mapped capabilities participate in view switching.
   Unmapped legacy capabilities remain accessible during migration. */
.alex-workspace-routed-hidden {
  display: none !important;
}

/* Incremental selected-deal routing.
   Only explicitly mapped deal capabilities participate in tab switching.
   Unmapped deal and legacy capabilities remain accessible during migration. */
.alex-deal-routed-hidden {
  display: none !important;
}

/* Selected-deal workspace navigation */

.alex-deal-workspace-nav {
  display: grid;
  gap: 14px;
}

.alex-deal-workspace-nav-header h2 {
  margin-bottom: 4px;
}

.alex-deal-workspace-nav-header p {
  margin: 0;
}

.alex-deal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

button.alex-deal-tab {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
}

button.alex-deal-tab.active {
  border-color: var(--alex-gold);
  box-shadow: inset 0 -2px 0 var(--alex-gold);
}

.alex-deal-workspace-status {
  margin: 0;
}

@media (max-width: 760px) {
  .alex-deal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  button.alex-deal-tab {
    flex: 0 0 auto;
  }
}

/* ALEX executive dashboard */
.alex-dashboard {
  display: grid;
  gap: 18px;
}

.alex-dashboard-intro,
.alex-dashboard-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.alex-dashboard-intro h2,
.alex-dashboard-section h2 {
  margin: 4px 0 6px;
}

.alex-dashboard-eyebrow {
  color: var(--alex-gold, #9b762c);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.alex-dashboard-metrics {
  margin: 0;
}

.alex-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.alex-dashboard-section {
  margin: 0;
}

.alex-dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(130px, 1fr)
  );
  gap: 10px;
  margin-top: 14px;
}

.alex-dashboard-status {
  padding: 12px;
  border: 1px solid var(--alex-border, #d8dee6);
  border-radius: 10px;
}

.alex-dashboard-status strong {
  display: block;
  font-size: 1.35rem;
}

.alex-dashboard-status span {
  display: block;
  margin-top: 3px;
  color: var(--alex-muted, #66717f);
}

.alex-dashboard-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.alex-dashboard-action,
.alex-dashboard-flow button {
  width: 100%;
  text-align: left;
}

.alex-dashboard-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.alex-dashboard-action span {
  color: var(--alex-muted, #66717f);
  font-size: 0.88rem;
  font-weight: 500;
}

.alex-dashboard-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.alex-dashboard-flow button {
  min-height: 78px;
}

.alex-dashboard-flow strong,
.alex-dashboard-flow span {
  display: block;
}

.alex-dashboard-flow span {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.78;
}

@media (max-width: 900px) {
  .alex-dashboard-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .alex-dashboard-intro,
  .alex-dashboard-section-header {
    flex-direction: column;
  }

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

  .alex-dashboard-action {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final responsive header normalization.
   Overrides legacy large-header presentation without changing behavior. */

@media (max-width: 1000px) {
  .top {
    min-height: 96px !important;
    padding: 10px 20px !important;
  }

  .alex-header-brand {
    min-width: 0;
  }

  .alex-header-logo {
    width: min(520px, 58vw) !important;
    height: 76px !important;
    max-width: 100% !important;
  }

  .alex-product-title {
    min-width: 0;
    flex-shrink: 1;
  }

  .alex-product-name {
    max-width: 100%;
  }

  #user {
    flex-shrink: 0;
    margin-left: 16px;
  }
}

@media (max-width: 600px) {
  .top {
    min-height: 78px !important;
    padding: 8px 12px !important;
  }

  .alex-header-logo {
    width: min(300px, 72vw) !important;
    height: 62px !important;
  }

  #user {
    margin-left: 8px;
  }
}


/* =========================================================
   ALEX APPROVED VISUAL SPECIFICATION — SHARED FRAME
   Recovered September 2026 design set.
   Presentation-only overrides; functional IDs remain intact.
   ========================================================= */

:root {
  --alex-navy: #071a2f;
  --alex-navy-2: #0b223d;
  --alex-navy-3: #102b49;
  --alex-canvas: #f6f8fb;
  --alex-panel: #ffffff;
  --alex-line: #dce3ea;
  --alex-ink: #13243a;
  --alex-muted-2: #6d7b8d;
  --alex-gold: #c79a2b;
  --alex-gold-2: #e0b84d;
  --alex-green: #178552;
  --alex-red: #b63c3c;
}

body {
  color: var(--alex-ink);
  background: var(--alex-canvas);
}

/* The approved mockups use the sidebar as the brand anchor and a compact
   command bar above the working canvas. */
.top.alex-command-bar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 252px;
  min-height: 64px;
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--alex-line);
  box-shadow: 0 1px 4px rgba(16, 32, 52, .04);
}

.alex-command-search {
  width: min(430px, 48vw);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  background: #f8fafc;
  border: 1px solid #d6dee7;
  border-radius: 7px;
}

.alex-command-search-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid #8190a1;
  border-radius: 50%;
  position: relative;
}
.alex-command-search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  background: #8190a1;
  transform: rotate(45deg);
  border-radius: 2px;
}

.alex-command-search input {
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.alex-command-search input:focus { box-shadow: none; }
.alex-command-shortcut {
  margin-left: auto;
  color: #8996a6;
  font-size: 11px;
  white-space: nowrap;
}

.alex-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
button.alex-command-new-deal {
  margin: 0;
  padding: 9px 15px;
  color: #fff;
  background: var(--alex-gold);
  border-color: var(--alex-gold);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(151, 109, 14, .18);
}
button.alex-command-new-deal:hover { background: #b88920; }
.top #user {
  max-width: 260px;
  color: #31445a;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
}
.top #logoutButton {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}

main {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

#loginBox {
  margin-top: 100px;
}

.alex-app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.alex-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: 252px;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 0 13px 18px;
  overflow-y: auto;
  color: #d9e1e9;
  background:
    linear-gradient(180deg, #071b30 0%, #06172a 62%, #07192c 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 5px 0 20px rgba(5, 20, 36, .08);
}

.alex-sidebar-brand {
  min-height: 116px;
  margin: 0 -13px 8px;
  padding: 17px 18px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-sizing: border-box;
}
.alex-sidebar-logo {
  width: 88px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
}
.alex-sidebar-product {
  min-width: 0;
  padding-left: 11px;
  border-left: 1px solid rgba(199,154,43,.35);
}
.alex-sidebar-name {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .12em;
}
.alex-sidebar-description {
  margin-top: 7px;
  color: #aab8c6;
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: .055em;
}

.alex-nav { padding-top: 5px; }
.alex-nav-label {
  margin: 17px 11px 5px;
  color: #718397;
  font-size: 9px;
  letter-spacing: .14em;
}
button.alex-nav-item {
  position: relative;
  min-height: 38px;
  margin: 1px 0;
  padding: 9px 12px 9px 37px;
  color: #c8d2dd;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
button.alex-nav-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: .75;
}
button.alex-nav-item:hover {
  background: rgba(255,255,255,.055);
}
button.alex-nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(199,154,43,.28), rgba(199,154,43,.12));
  border-color: rgba(224,184,77,.22);
  box-shadow: inset 3px 0 0 var(--alex-gold-2);
}
button.alex-nav-item.active::before {
  border-color: var(--alex-gold-2);
  background: var(--alex-gold-2);
  box-shadow: inset 0 0 0 2px #10253d;
}

.alex-sidebar-footer {
  margin-top: 22px;
  color: #75879a;
  border-color: rgba(255,255,255,.08);
}

.alex-workspace {
  grid-column: 2;
  min-width: 0;
  padding: 64px 0 0;
  background: var(--alex-canvas);
}
.alex-workspace-header {
  min-height: 84px;
  margin: 0;
  padding: 20px 34px 17px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--alex-line);
  box-sizing: border-box;
}
.alex-workspace-header h1 {
  margin: 2px 0 1px;
  color: #10233a;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.alex-workspace-header p {
  color: #788698;
  font-size: 12px;
}
.alex-eyebrow {
  color: var(--alex-gold-dark);
  font-size: 9px;
  letter-spacing: .14em;
}

.alex-workspace-content {
  padding: 22px 34px 48px;
}

.card {
  border-color: var(--alex-line);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(19, 36, 58, .045);
}
button {
  border-radius: 6px;
}
table {
  font-size: 12px;
}
th {
  color: #657589;
  background: #f8fafc;
  font-size: 10px;
}

@media (max-width: 980px) {
  .top.alex-command-bar { left: 210px; }
  .alex-app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .alex-sidebar { width: 210px; }
  .alex-sidebar-logo { width: 68px; }
  .alex-sidebar-description { display: none; }
  .alex-sidebar-product { border-left: 0; padding-left: 0; }
  .alex-workspace { grid-column: 2; }
}

@media (max-width: 760px) {
  .top.alex-command-bar {
    position: sticky;
    left: 0;
    min-height: 58px;
    padding: 8px 12px;
  }
  .alex-command-search { width: min(100%, 360px); }
  .alex-command-shortcut, .top #user { display: none; }
  .alex-app-shell { display: block; min-height: auto; }
  .alex-sidebar {
    position: static;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding-bottom: 10px;
  }
  .alex-sidebar-brand { min-height: 82px; }
  .alex-nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .alex-nav-label { grid-column: 1/-1; }
  .alex-workspace { padding-top: 0; }
  .alex-workspace-header { padding: 17px 18px 14px; }
  .alex-workspace-content { padding: 16px 14px 32px; }
}

@media (max-width: 520px) {
  .alex-command-search { display: none; }
  .top.alex-command-bar { justify-content: flex-end; }
  button.alex-command-new-deal { padding: 8px 11px; }
  .alex-nav { grid-template-columns: 1fr 1fr; }
}


/* =========================================================
   ALEX APPROVED VISUAL SPECIFICATION — DASHBOARD PASS 02
   ========================================================= */

/* Correct legacy luxury-theme inheritance on the executive dashboard. */
.top.alex-command-bar {
  min-height: 58px;
  height: 58px;
  padding: 8px 28px;
}
.alex-workspace { padding-top: 58px; }

.alex-workspace-header {
  min-height: 72px;
  padding: 15px 34px 13px;
}
.alex-workspace-header h1 { font-size: 21px; }
.alex-workspace-content { padding-top: 18px; }

.alex-dashboard {
  max-width: 1440px;
  margin: 0 auto;
}
.alex-dashboard-intro {
  margin-bottom: 17px;
  align-items: flex-start;
}
.alex-dashboard-intro h2 {
  margin: 3px 0 5px;
  color: #12263e;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.025em;
}
.alex-dashboard-intro p {
  max-width: 720px;
  margin: 0;
  color: #718095;
  font-size: 13px;
  line-height: 1.5;
}
.alex-dashboard-eyebrow {
  color: #b98517;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

/* KPI cards: white, compact and data-first, matching recovered screens. */
#metrics.alex-dashboard-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
#metrics.alex-dashboard-metrics .card {
  position: relative;
  min-height: 106px;
  padding: 16px 17px 14px;
  overflow: hidden;
  color: #13243a;
  background: #fff;
  border: 1px solid #dce3ea;
  border-top: 1px solid #dce3ea;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(19,36,58,.055);
}
#metrics.alex-dashboard-metrics .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 3px;
  background: #c79a2b;
  border-radius: 0 2px 2px 0;
}
#metrics.alex-dashboard-metrics .card:hover {
  border-color: #cbd5df;
  box-shadow: 0 3px 10px rgba(19,36,58,.075);
}
#metrics.alex-dashboard-metrics .muted {
  margin-left: 3px;
  color: #718095;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#metrics.alex-dashboard-metrics .metric {
  margin: 8px 0 0 3px;
  color: #102842;
  font-size: 29px;
  line-height: 1;
  font-weight: 780;
  text-shadow: none;
}

/* Main dashboard workspace panels. */
.alex-dashboard-layout {
  gap: 14px;
  margin-top: 0;
}
.card.alex-dashboard-section {
  padding: 18px;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(19,36,58,.045);
}
.card.alex-dashboard-section:hover {
  border-color: #d3dce5;
  box-shadow: 0 2px 7px rgba(19,36,58,.055);
}
.alex-dashboard-section .alex-dashboard-section-header {
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1f5;
}
.alex-dashboard-section .alex-dashboard-section-header h2,
.card.alex-dashboard-section h2 {
  margin: 2px 0 0;
  padding: 0;
  color: #172b43;
  font-size: 16px;
  font-weight: 760;
}
.card.alex-dashboard-section h2::before { display: none; }

.alex-dashboard-section button.secondary,
.alex-dashboard-intro button.secondary {
  margin: 0;
  padding: 7px 11px;
  color: #31445a;
  background: #fff;
  border: 1px solid #d4dde6;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(19,36,58,.04);
  font-size: 11px;
}
.alex-dashboard-section button.secondary:hover,
.alex-dashboard-intro button.secondary:hover {
  color: #142a43;
  background: #f8fafc;
  border-color: #bdc9d5;
}

/* Status tiles and action rows lose legacy black/gold button treatment. */
.alex-dashboard-status-grid {
  gap: 9px;
}
.alex-dashboard-status-grid > * {
  border-radius: 6px;
}
button.alex-dashboard-action {
  min-height: 58px;
  padding: 11px 13px;
  color: #172b43;
  background: #fbfcfd;
  border: 1px solid #e1e7ed;
  border-radius: 6px;
  box-shadow: none;
}
button.alex-dashboard-action:hover {
  color: #172b43;
  background: #f5f8fa;
  border-color: #cbd6e0;
  box-shadow: none;
}
button.alex-dashboard-action strong {
  color: #1a304a;
  font-size: 12px;
}
button.alex-dashboard-action span {
  color: #728095;
  font-size: 11px;
}

/* Decision-flow cards should read as navigation, not primary black actions. */
.alex-dashboard .alex-dashboard-flow button,
.alex-dashboard .alex-dashboard-decision-flow button {
  color: #172b43;
  background: #fff;
  border: 1px solid #dce3ea;
  box-shadow: none;
}
.alex-dashboard .alex-dashboard-flow button:hover,
.alex-dashboard .alex-dashboard-decision-flow button:hover {
  color: #172b43;
  background: #f8fafc;
  border-color: #c8d3de;
  box-shadow: none;
}

@media (max-width: 1200px) {
  #metrics.alex-dashboard-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 900px) {
  #metrics.alex-dashboard-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 760px) {
  .top.alex-command-bar { height: auto; min-height: 56px; }
  .alex-workspace { padding-top: 0; }
  #metrics.alex-dashboard-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  #metrics.alex-dashboard-metrics { grid-template-columns: 1fr; }
}


/* =========================================================
   ALEX RECOVERED PAGE SYSTEM — PASS 03
   Pipeline · Comparables · Data & Sources · Operations
   ========================================================= */

/* Shared page language from recovered ALEX screens. */
.alex-page-card,
#alexVerifiedCompPanel.alex-page-card {
  color: #172b43 !important;
  background: #fff !important;
  border: 1px solid #dce3ea !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(19,36,58,.045) !important;
}
.alex-page-card h2,
.alex-page-card h3,
#alexVerifiedCompPanel h2,
#alexVerifiedCompPanel h3 {
  color: #172b43 !important;
  text-shadow: none !important;
}
.alex-page-card h2::before { display: none !important; }
.alex-page-card .muted,
#alexVerifiedCompPanel .muted {
  color: #718095 !important;
}
.alex-page-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.alex-page-card th {
  padding: 10px 11px;
  color: #6b7a8d;
  background: #f7f9fb;
  border-bottom: 1px solid #dfe6ed;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.alex-page-card td {
  padding: 11px;
  color: #263a51;
  background: #fff;
  border-bottom: 1px solid #edf1f4;
  font-size: 11px;
}
.alex-page-card button,
#alexVerifiedCompPanel button {
  color: #263a51 !important;
  background: #fff !important;
  border: 1px solid #d2dce6 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
.alex-page-card button:hover,
#alexVerifiedCompPanel button:hover {
  color: #152a43 !important;
  background: #f7f9fb !important;
  border-color: #bfcbd7 !important;
}
.alex-page-card input,
.alex-page-card select,
.alex-page-card textarea,
#alexVerifiedCompPanel input,
#alexVerifiedCompPanel select,
#alexVerifiedCompPanel textarea {
  color: #263a51 !important;
  background: #fff !important;
  border: 1px solid #d3dde6 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

/* Pipeline — recovered screen is a clean acquisition workflow/table surface.
   Existing status values are shown exactly as stored; no synthetic stages. */
#dealPipelineCard.alex-pipeline-card {
  padding: 18px 18px 20px;
}
#dealPipelineCard.alex-pipeline-card > div:first-child {
  min-height: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9eef3;
}
#dealPipelineCard.alex-pipeline-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
}
#dealPipelineCard.alex-pipeline-card table {
  margin-top: 12px;
  border: 1px solid #e2e8ee;
  border-radius: 6px;
}

/* Data & Sources — evidence-forward white panels, preserving authority labels. */
#importedPropertyWorkspaceCard.alex-data-sources-card {
  padding: 20px;
}
#importedPropertyWorkspaceCard .imported-intelligence-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf2;
}
#importedPropertyWorkspaceCard .imported-intelligence-header h2 {
  margin-bottom: 5px;
  font-size: 18px;
}
#importedPropertyWorkspaceCard .imported-intelligence-grid > *,
#importedPropertyWorkspaceCard .imported-intelligence-history-panel {
  background: #fbfcfd !important;
  border-color: #e0e7ed !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

/* Operations — control surfaces remain serious but no longer inherit
   black/gold luxury-theme cards. */
#approvalWorkflowCard.alex-operations-card,
#pilotCalibrationCard.alex-operations-card {
  padding: 20px;
}
#approvalWorkflowCard.alex-operations-card > .two {
  gap: 12px;
}
#approvalWorkflowCard.alex-operations-card .card {
  color: #172b43;
  background: #fbfcfd;
  border: 1px solid #e0e7ed;
  border-radius: 7px;
  box-shadow: none;
}
#approvalWorkflowCard.alex-operations-card .card h3 {
  color: #1c334d;
}
#pilotCalibrationCard pre {
  color: #31465d;
  background: #f7f9fb;
  border: 1px solid #e0e7ed;
  border-radius: 6px;
  padding: 12px;
}

/* Comparables — override the older inline dark staging-board presentation.
   Functional verification states and safeguards are unchanged. */
#alexVerifiedCompPanel.alex-comparables-card {
  margin-top: 0 !important;
  padding: 20px !important;
}
#alexVerifiedCompPanel.alex-comparables-card > div:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf2;
}
#alexVerifiedCompPanel.alex-comparables-card [style*="font-size:22px"] {
  color: #172b43 !important;
  font-size: 18px !important;
  font-weight: 760 !important;
}
#alexVerifiedCompPanel.alex-comparables-card [style*="opacity:.82"] {
  color: #718095 !important;
  opacity: 1 !important;
}
#alexVerifiedCompPanel.alex-comparables-card [style*="border:1px solid rgba(212,175,55"] {
  color: #8c6818 !important;
  background: #fffaf0 !important;
  border-color: #ead9a8 !important;
}

/* Shared routed workspace spacing. */
.alex-workspace-content > [data-alex-view]:not(.hidden) {
  animation: alexPageReveal .12s ease-out;
}
@keyframes alexPageReveal {
  from { opacity: .72; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .alex-page-card { overflow-x: auto; }
}

/* ALEX PIPELINE CORRECTION — PASS 03A */
.top.alex-command-bar{box-sizing:border-box!important;height:58px!important;min-height:58px!important;max-height:58px!important;padding-top:8px!important;padding-bottom:8px!important}
.alex-workspace{padding-top:58px!important}
.alex-workspace-header{display:flex!important;min-height:72px!important}
.alex-workspace-content{min-height:calc(100vh - 130px)}
#dealPipelineCard.alex-pipeline-card{max-width:1440px;margin:0 auto}
#dealPipelineCard .alex-page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;min-height:48px;padding-bottom:14px;border-bottom:1px solid #e6ebf0}
#dealPipelineCard .alex-page-heading h2{margin:2px 0 3px;font-size:19px;line-height:1.25}
#dealPipelineCard .alex-page-heading p{margin:0;font-size:12px}
.alex-page-kicker{color:#a87918;font-size:9px;font-weight:800;letter-spacing:.14em}
#dealPipelineCard tbody .pill{color:#725410!important;background:#fff8e6!important;border-color:#ead9a6!important;text-transform:capitalize}
#dealPipelineCard tbody tr:hover td{background:#fafbfd}
@media(max-width:760px){.top.alex-command-bar{height:auto!important;max-height:none!important;min-height:56px!important}.alex-workspace{padding-top:0!important}}

/* ALEX COMPARABLES WORKSPACE CORRECTION — PASS 04 */
#alexVerifiedCompPanel.alex-comparables-card {
  width: auto !important;
  max-width: 1440px !important;
  margin: 18px auto 32px !important;
  overflow: hidden;
}
#alexVerifiedCompPanel.alex-comparables-card > div:first-child {
  margin: 0 !important;
}
#alexVerifiedCompPanel.alex-comparables-card details {
  color: #30465d !important;
  background: #fbfcfd !important;
  border-color: #e1e7ed !important;
}
#alexVerifiedCompPanel.alex-comparables-card #alexCompBoardEmpty {
  color: #53677d !important;
  background: #fbfcfd !important;
  border-color: #e2d7b6 !important;
}
#alexVerifiedCompPanel.alex-comparables-card #alexVerifiedCompResults {
  color: #30465d !important;
  background: #f7f9fb !important;
  border: 1px solid #e0e7ed !important;
}

/* =========================================================
   ALEX DATA & SOURCES — PASS 05
   Evidence authority hierarchy from recovered visual system.
   ========================================================= */
#importedPropertyWorkspaceCard.alex-data-sources-card {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 22px 22px;
}
#importedPropertyWorkspaceCard .imported-intelligence-status {
  margin: 18px 0 20px;
  padding: 12px 14px;
  color: #725410;
  background: #fff8df;
  border: 1px solid #e7c867;
  border-radius: 7px;
}

/* Replace legacy black provider panels with evidence-authority cards.
   Inline styles are intentionally overridden; data/status text is untouched. */
#officialPublicRecordPanel,
#nationwidePropertyPanel {
  margin: 14px 0 !important;
  padding: 18px 20px !important;
  color: #263a51 !important;
  background: #fff !important;
  border: 1px solid #dce4eb !important;
  border-left: 4px solid #d2a321 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}
#nationwidePropertyPanel {
  border-left-color: #9eabb8 !important;
}
#officialPublicRecordPanel [style*="color:#d8b54a"],
#nationwidePropertyPanel [style*="color:#aaa"] {
  color: #9b7419 !important;
}
#nationwidePropertyPanel [style*="color:#aaa"] {
  color: #748396 !important;
}
#officialPublicRecordPanel h3,
#nationwidePropertyPanel h3 {
  color: #18314c !important;
  font-size: 16px !important;
}
#officialPublicRecordPanel [style*="color:#aaa"],
#nationwidePropertyPanel [style*="color:#aaa"],
#officialPublicRecordBody,
#nationwidePropertyBody,
#officialPublicRecordBody [style],
#nationwidePropertyBody [style] {
  color: #65758a !important;
}
#officialPublicRecordPanel [style*="border:1px solid #666"],
#nationwidePropertyPanel [style*="border:1px solid #666"] {
  color: #647386 !important;
  background: #f7f9fb !important;
  border-color: #cfd8e1 !important;
}

/* History panels read as supporting evidence, not provider cards. */
#importedPropertyWorkspaceCard .imported-intelligence-history {
  gap: 14px;
  margin-top: 16px;
}
#importedPropertyWorkspaceCard .imported-intelligence-history-panel {
  min-height: 118px;
  padding: 16px 18px !important;
  background: #f9fbfc !important;
  border: 1px solid #e1e7ed !important;
}
#importedPropertyWorkspaceCard .imported-intelligence-history-panel h3 {
  margin: 0 0 12px;
  color: #1d344e !important;
  font-size: 14px;
}

/* ALEX SIDEBAR SCROLL CORRECTION — PASS 05A */
@media (min-width: 761px) {
  .alex-sidebar {
    height: 100vh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(199,154,43,.55) rgba(255,255,255,.04);
  }
  .alex-sidebar::-webkit-scrollbar { width: 7px; }
  .alex-sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,.035); }
  .alex-sidebar::-webkit-scrollbar-thumb {
    background: rgba(199,154,43,.5);
    border-radius: 999px;
  }
  .alex-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(199,154,43,.72);
  }
  .alex-nav {
    padding-bottom: 24px;
  }
}

/* =========================================================
   ALEX OPERATIONS & SETTINGS — PASS 06
   ========================================================= */
.alex-operations-summary,
#approvalWorkflowCard.alex-operations-card,
#pilotCalibrationCard.alex-operations-card {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.alex-operations-summary {
  padding: 18px 20px !important;
}
.alex-operations-summary h2,
#approvalWorkflowCard h2,
#pilotCalibrationCard h2 {
  margin-top: 0;
  font-size: 17px;
}
#approvalQueueCard #approvals {
  color: #5e7084;
}
#releaseCandidateControlsCard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#releaseCandidateControlsCard h2 {
  flex: 0 0 100%;
}
#releaseCandidateControlsCard pre {
  flex: 0 0 100%;
  min-height: 0;
  margin: 4px 0 0;
  color: #31465d;
  background: #f7f9fb;
  border: 1px solid #e0e7ed;
  border-radius: 6px;
}
#approvalWorkflowCard .two > .card {
  padding: 16px !important;
}
#approvalWorkflowCard textarea,
#approvalWorkflowCard select {
  width: 100%;
}
#pilotCalibrationCard {
  margin-bottom: 28px;
}

/* Settings contains only controls the current frontend actually supports. */
#alexSettingsWorkspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px;
}
.alex-settings-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf0;
}
.alex-settings-heading h2 {
  margin: 3px 0 5px;
  font-size: 19px;
}
.alex-settings-heading p {
  max-width: 780px;
  margin: 0;
}
.alex-settings-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}
.alex-settings-panel {
  min-height: 142px;
  padding: 18px;
  background: #f9fbfc;
  border: 1px solid #e0e7ed;
  border-radius: 7px;
}
.alex-settings-panel h3 {
  margin: 0 0 8px;
  color: #1b334d;
  font-size: 14px;
}
.alex-settings-panel p {
  min-height: 48px;
  margin: 0 0 14px;
  line-height: 1.55;
}
.alex-settings-panel button {
  color: #263a51 !important;
  background: #fff !important;
  border: 1px solid #d2dce6 !important;
  border-radius: 5px !important;
}
@media(max-width:800px){
  .alex-settings-grid{grid-template-columns:1fr}
}


/* ALEX FINAL BRAND & VISUAL POLISH — PASS 07 */
.alex-sidebar-brand {
  margin: 0 4px 12px !important;
  padding: 10px 9px 12px !important;
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.alex-sidebar-logo.alex-sidebar-logo-approved {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 104px;
  object-fit: contain;
  object-position: center;
}
.alex-sidebar-product { display: none !important; }

.alex-workspace-content {
  max-width: 1480px;
  margin-right: auto;
}
.alex-page-card,
.alex-dashboard .card,
.alex-settings-panel {
  border-color: #dfe4e8 !important;
  box-shadow: 0 1px 2px rgba(15,31,48,.04);
}
.alex-page-card h2,
.alex-page-card h3,
.alex-settings-panel h3 {
  color: var(--alex-text);
}
.alex-page-kicker {
  color: #8b6a18 !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}
button:not(.alex-nav-item):not(.secondary):not(.danger) {
  border-radius: 7px;
}
.top.alex-command-bar #user {
  color: #344454;
  font-weight: 650;
}
.alex-command-new-deal {
  box-shadow: 0 1px 2px rgba(15,31,48,.12);
}

/* Remove remaining legacy terminal treatment from operational status output. */
#offerApprovalResult {
  min-height: 42px;
  margin-top: 10px;
  padding: 11px 12px !important;
  color: #566575 !important;
  background: #f7f8f9 !important;
  border: 1px solid #e0e5e9 !important;
  border-radius: 7px;
  font-family: inherit !important;
  font-size: 12px;
  line-height: 1.5;
}

/* Keep dense evidence/analysis surfaces readable without returning to console styling. */
[data-alex-view="operations"] pre,
[data-alex-view="data-sources"] pre,
.alex-settings-workspace pre {
  color: #566575;
  background: #f7f8f9;
  border: 1px solid #e0e5e9;
  border-radius: 7px;
}
[data-alex-view="operations"] input,
[data-alex-view="operations"] select,
[data-alex-view="operations"] textarea,
[data-alex-view="data-sources"] input,
[data-alex-view="data-sources"] select,
[data-alex-view="data-sources"] textarea {
  border-color: #d8dee4;
  background: #fff;
}

@media (max-width: 980px) {
  .alex-sidebar-brand {
    margin: 0 2px 10px !important;
    padding: 7px !important;
  }
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 82px;
  }
}
@media (max-width: 760px) {
  .alex-sidebar-brand {
    width: min(230px, calc(100vw - 28px));
    margin: 4px 8px 10px !important;
  }
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 88px;
  }
}


/* ALEX FINAL FIT & FINISH — PASS 08 */
/* Preserve the approved logo artwork while reducing its visual footprint. */
.alex-sidebar-brand {
  margin: 0 8px 14px !important;
  padding: 7px 9px 8px !important;
  border-radius: 9px !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.13) !important;
}
.alex-sidebar-logo.alex-sidebar-logo-approved {
  width: 100% !important;
  max-height: 82px !important;
  object-fit: contain !important;
}

/* Refine the desktop command bar without changing behavior. */
.top.alex-command-bar {
  min-height: 66px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  gap: 14px;
}
.alex-command-search {
  max-width: 540px;
}
.alex-command-actions {
  gap: 10px;
}
.top.alex-command-bar #user {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #6f5719 !important;
  background: #fffaf0;
  border: 1px solid #ead9a8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
#logoutButton {
  min-height: 38px;
  border-radius: 7px;
}

/* Slightly tighter page rhythm, matching the recovered ALEX layouts. */
.alex-page-heading {
  margin-bottom: 18px;
}
.alex-page-heading h2,
.alex-dashboard h2 {
  letter-spacing: -.025em;
}
.alex-workspace-content > .card,
.alex-workspace-content > .alex-page-card {
  margin-bottom: 18px;
}
.alex-dashboard .card,
.alex-page-card,
.alex-settings-panel {
  border-radius: 9px !important;
}

/* Operations status should read like an application message, not a terminal. */
#offerApprovalStatus,
#offerApprovalResult {
  color: #566575 !important;
  background: #f7f8f9 !important;
  border-color: #e0e5e9 !important;
  font-family: inherit !important;
}

/* Keep sidebar navigation compact enough to expose more workspaces per viewport. */
.alex-nav-item {
  min-height: 43px !important;
}
.alex-nav-group-label {
  margin-top: 14px !important;
}

/* Responsive fit-and-finish. */
@media (max-width: 1180px) {
  .alex-command-search { max-width: 440px; }
  .top.alex-command-bar #user {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 980px) {
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 70px !important;
  }
  .top.alex-command-bar {
    min-height: 60px !important;
  }
}
@media (max-width: 760px) {
  .alex-sidebar-brand {
    margin: 4px 10px 10px !important;
    padding: 6px 8px !important;
  }
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 72px !important;
  }
  .top.alex-command-bar #user {
    max-width: 190px;
  }
}


/* ALEX INTEGRATED BLUE BRAND — PASS 09 */
/* Remove the white logo card and blend the approved artwork into the navy rail. */
.alex-sidebar-brand {
  position: relative;
  overflow: hidden;
  margin: 0 8px 14px !important;
  padding: 8px 10px 9px !important;
  background:
    radial-gradient(circle at 50% 38%,
      rgba(118,166,207,.34) 0%,
      rgba(73,124,169,.20) 42%,
      rgba(17,51,78,.05) 72%,
      rgba(5,29,49,0) 100%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.alex-sidebar-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(185,216,239,.08),
    rgba(61,113,156,.06) 58%,
    rgba(4,27,46,0)
  );
}
.alex-sidebar-logo.alex-sidebar-logo-approved {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  max-height: 78px !important;
  object-fit: contain !important;
  /* The source PNG is white-backed; blend mode removes the card-like white field
     while preserving the original artwork file. */
  mix-blend-mode: screen;
  opacity: .94;
  filter: grayscale(1) invert(1) contrast(1.12) brightness(1.12);
}

/* A quieter transition from brand to navigation. */
.alex-nav {
  border-top: 1px solid rgba(164,199,226,.08);
  padding-top: 6px;
}
.alex-nav-item {
  border-radius: 7px !important;
}
.alex-nav-item:hover {
  background: rgba(108,158,199,.09) !important;
}
.alex-nav-item.alex-nav-active,
.alex-nav-item[aria-current="page"] {
  box-shadow: inset 3px 0 0 #d2a21f;
}

/* Subtle blue depth in the rail, matching the approved visual direction. */
.alex-sidebar {
  background:
    radial-gradient(circle at 48% 10%, rgba(55,111,157,.18), transparent 26%),
    linear-gradient(180deg, #071f33 0%, #061a2b 58%, #051725 100%) !important;
}

@media (max-width: 980px) {
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 68px !important;
  }
}
@media (max-width: 760px) {
  .alex-sidebar-brand {
    padding: 7px 9px !important;
  }
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 70px !important;
  }
}


/* ALEX PROMINENT BLUE BRAND — PASS 10 */
/* Approved larger brand treatment: same original logo, stronger presence and glow. */
.alex-sidebar-brand {
  margin: 0 6px 14px !important;
  padding: 10px 8px 12px !important;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%,
      rgba(107,178,229,.46) 0%,
      rgba(65,132,184,.26) 36%,
      rgba(27,78,116,.12) 64%,
      rgba(5,29,49,0) 100%) !important;
}
.alex-sidebar-logo.alex-sidebar-logo-approved {
  width: 100% !important;
  max-height: 108px !important;
  transform: scale(1.08);
  transform-origin: center;
  opacity: .98;
  filter: grayscale(1) invert(1) contrast(1.18) brightness(1.18);
}
.alex-sidebar {
  background:
    radial-gradient(circle at 50% 8%, rgba(61,135,190,.28), transparent 25%),
    linear-gradient(180deg, #08243b 0%, #061c2f 50%, #051725 100%) !important;
}
@media (max-width: 980px) {
  .alex-sidebar-brand { min-height: 104px; }
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 90px !important;
    transform: scale(1.04);
  }
}
@media (max-width: 760px) {
  .alex-sidebar-brand { min-height: 96px; }
  .alex-sidebar-logo.alex-sidebar-logo-approved {
    max-height: 84px !important;
  }
}


/* ALEX DASHBOARD DETAIL POLISH — PASS 10B */
/* Add visual hierarchy to the existing dashboard without changing its data or behavior. */
#metrics {
  gap: 14px !important;
}
#metrics > * {
  position: relative;
  min-height: 132px !important;
  padding: 20px 22px !important;
  overflow: hidden;
  background: linear-gradient(180deg,#fff 0%,#fbfcfd 100%) !important;
}
#metrics > *::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f5f9;
  color: #416785;
  font-size: 18px;
  font-weight: 800;
  opacity: .9;
}
#metrics > *:nth-child(1)::after { content: "▦"; }
#metrics > *:nth-child(2)::after { content: "↗"; background:#edf8f1; color:#2f7b51; }
#metrics > *:nth-child(3)::after { content: "!"; background:#fff7df; color:#a97900; }
#metrics > *:nth-child(4)::after { content: "◷"; background:#fff0f0; color:#a84a4a; }
#metrics > *:nth-child(5)::after { content: "▤"; background:#f4effb; color:#71539a; }

#metrics strong,
#metrics .value {
  letter-spacing: -.035em;
}

/* Give dashboard action rows a clearer interactive affordance. */
#alexDashboard .alex-dashboard-action,
#alexDashboard [data-alex-dashboard-action] {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
#alexDashboard .alex-dashboard-action:hover,
#alexDashboard [data-alex-dashboard-action]:hover {
  border-color: #cbd6df !important;
  box-shadow: 0 3px 12px rgba(15,31,48,.06);
  transform: translateY(-1px);
}

/* Refine the primary workspace canvas and page separators. */
.alex-workspace-header {
  background: rgba(255,255,255,.96);
  border-bottom-color: #e4e9ed !important;
}
.alex-dashboard {
  background:
    radial-gradient(circle at 80% 0%, rgba(105,151,188,.055), transparent 28%);
}

/* Navigation markers become more intentional while preserving the existing HTML. */
.alex-nav-item::before {
  border-color: #9eb4c5 !important;
  background: transparent;
}
.alex-nav-item:hover::before {
  border-color: #d7e5ef !important;
}
.alex-nav-item.alex-nav-active::before,
.alex-nav-item[aria-current="page"]::before {
  border-color: #d2a21f !important;
  background: rgba(210,162,31,.18) !important;
  box-shadow: inset 0 0 0 2px rgba(210,162,31,.12);
}

/* Make secondary dashboard controls feel like the same product family. */
#alexDashboard button.secondary,
#alexDashboard .secondary {
  background: #fff !important;
  border-color: #d8e0e6 !important;
  color: #18344d !important;
  box-shadow: 0 1px 2px rgba(15,31,48,.04);
}
#alexDashboard button.secondary:hover,
#alexDashboard .secondary:hover {
  background: #f7f9fb !important;
  border-color: #c6d2db !important;
}

@media (max-width: 1180px) {
  #metrics > * { min-height: 118px !important; }
  #metrics > *::after { width: 36px; height: 36px; right: 14px; bottom: 14px; }
}


/* ALEX SLIDE-ALIGNED DASHBOARD — PASS 11 */
.alex-dashboard-slide {
  display: grid;
  gap: 20px;
}
.alex-dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 2px 2px;
}
.alex-dashboard-hero h2 {
  margin: 4px 0 6px;
  color: #102d46;
  font-size: clamp(27px,2.5vw,38px);
  line-height: 1.05;
}
.alex-dashboard-hero p { margin: 0; max-width: 720px; }
.alex-dashboard-hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.alex-dashboard-hero-actions button:not(.secondary) {
  background:#c89a25 !important;
  border-color:#c89a25 !important;
  color:#fff !important;
}
.alex-dashboard-slide-metrics {
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  margin: 0 !important;
}
.alex-dashboard-slide-metrics > * {
  min-width:0;
  border-radius:10px !important;
  border:1px solid #dfe5e9 !important;
  box-shadow:0 4px 18px rgba(15,31,48,.045) !important;
}
.alex-dashboard-slide-grid {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);
  gap:20px;
  align-items:stretch;
}
.alex-dashboard-slide-grid > .card {
  margin:0 !important;
}
.alex-dashboard-section {
  padding:22px !important;
}
.alex-dashboard-section-header {
  align-items:flex-start !important;
  margin-bottom:18px !important;
}
.alex-dashboard-section-header h2 {
  margin:3px 0 4px !important;
  color:#17344c;
}
.alex-dashboard-section-header p { margin:0; }
.alex-dashboard-pipeline-card {
  min-height:330px;
  background:
    radial-gradient(circle at 100% 0%,rgba(78,132,174,.07),transparent 35%),
    #fff !important;
}
.alex-dashboard-status-grid {
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr)) !important;
  gap:12px !important;
}
.alex-dashboard-status-grid > * {
  min-height:108px;
  padding:16px !important;
  border:1px solid #e1e6ea !important;
  border-radius:9px !important;
  background:#fbfcfd !important;
}
.alex-dashboard-review-card { min-height:330px; }
.alex-dashboard-actions {
  display:grid !important;
  gap:9px !important;
}
.alex-dashboard-action {
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) 16px;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:60px;
  padding:10px 11px !important;
  text-align:left;
  color:#18344d !important;
  background:#fff !important;
  border:1px solid #e1e6ea !important;
  border-radius:8px !important;
}
.alex-dashboard-action > span:nth-child(2) {
  display:grid;
  gap:2px;
}
.alex-dashboard-action > span:nth-child(2) > span {
  color:#6b7783;
  font-size:11px;
  font-weight:500;
}
.alex-dashboard-action-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#eef4f8;
  color:#356381;
  font-weight:800;
}
.alex-dashboard-chevron {
  color:#a7b2bb;
  font-size:22px;
}
.alex-dashboard-flow-card {
  margin:0 !important;
  background:linear-gradient(180deg,#fff,#fbfcfd) !important;
}
.alex-dashboard-flow {
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:10px !important;
}
.alex-dashboard-flow button {
  position:relative;
  display:grid !important;
  gap:4px;
  min-height:86px;
  padding:15px 13px !important;
  text-align:left;
  background:#fff !important;
  color:#18344d !important;
  border:1px solid #dde4e9 !important;
  border-radius:8px !important;
}
.alex-dashboard-flow button:not(:last-child)::after {
  content:"›";
  position:absolute;
  right:-9px;
  top:50%;
  z-index:2;
  width:16px;
  height:22px;
  margin-top:-11px;
  color:#c49a2d;
  background:#fff;
  text-align:center;
  font-size:20px;
}
.alex-dashboard-flow button span {
  color:#73808c;
  font-size:10px;
  font-weight:500;
  line-height:1.35;
}
@media (max-width:1250px) {
  .alex-dashboard-slide-metrics { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .alex-dashboard-slide-grid { grid-template-columns:1fr; }
  .alex-dashboard-flow { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .alex-dashboard-flow button::after { display:none; }
}
@media (max-width:760px) {
  .alex-dashboard-hero { align-items:flex-start; flex-direction:column; }
  .alex-dashboard-slide-metrics { grid-template-columns:1fr 1fr !important; }
  .alex-dashboard-flow { grid-template-columns:1fr 1fr !important; }
}
@media (max-width:480px) {
  .alex-dashboard-slide-metrics,
  .alex-dashboard-flow { grid-template-columns:1fr !important; }
}


/* ALEX MASTER-PREVIEW OPPORTUNITIES + PIPELINE — PASS 12 */
/* Match the uploaded 16-page master preview while retaining the existing live tables/controllers. */
.alex-slide-opportunities,
.alex-slide-pipeline {
  max-width: 1440px;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #dfe5e9 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 14px rgba(15,31,48,.045) !important;
}
.alex-slide-opportunities .executive-opportunity-header,
.alex-slide-pipeline .alex-page-heading {
  padding: 20px 22px 17px !important;
  margin: 0 !important;
  background: linear-gradient(180deg,#fff,#fbfcfd);
  border-bottom: 1px solid #e4e9ed;
}
.alex-slide-opportunities .executive-opportunity-eyebrow,
.alex-slide-pipeline .alex-page-kicker {
  color: #a97900 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}
.alex-slide-opportunities h2,
.alex-slide-pipeline h2 {
  margin: 4px 0 4px !important;
  color: #102d46 !important;
  font-size: 23px !important;
  letter-spacing: -.025em;
}
.alex-slide-opportunities .executive-opportunity-header p,
.alex-slide-pipeline .alex-page-heading p {
  margin: 0 !important;
  color: #697887 !important;
}
.alex-slide-opportunities table,
.alex-slide-pipeline table {
  width: calc(100% - 32px) !important;
  margin: 16px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border: 1px solid #e0e6ea;
  border-radius: 7px;
  background: #fff;
}
.alex-slide-opportunities thead th,
.alex-slide-pipeline thead th {
  padding: 10px 11px !important;
  color: #5c6e7e !important;
  background: #f4f7f9 !important;
  border-bottom: 1px solid #dfe5e9 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.alex-slide-opportunities tbody td,
.alex-slide-pipeline tbody td {
  padding: 11px !important;
  color: #233d53;
  background: #fff !important;
  border-bottom: 1px solid #edf0f2 !important;
  font-size: 12px;
  vertical-align: middle;
}
.alex-slide-opportunities tbody tr:hover td,
.alex-slide-pipeline tbody tr:hover td {
  background: #fbfcfd !important;
}
.alex-slide-opportunities button,
.alex-slide-pipeline button {
  border-radius: 6px !important;
}

/* Opportunities: reduce the legacy command-center weight so it reads like the master preview's property list. */
.alex-slide-opportunities .executive-opportunity-controls,
.alex-slide-opportunities .executive-opportunity-summary,
.alex-slide-opportunities .executive-opportunity-metrics {
  margin-left: 16px !important;
  margin-right: 16px !important;
}
.alex-slide-opportunities details {
  margin: 12px 16px 16px !important;
  border: 1px solid #e2e7eb !important;
  border-radius: 7px;
  background: #fbfcfd !important;
}

/* Pipeline: present the stored workflow table as a compact stage-oriented surface.
   No statuses are invented; the existing status values remain authoritative. */
.alex-slide-pipeline {
  position: relative;
}
.alex-slide-pipeline::before {
  content: "ACTIVE WORKFLOW";
  display: block;
  margin: 16px 16px 0;
  padding: 10px 12px;
  color: #8a6815;
  background: #fffaf0;
  border: 1px solid #ecdfbd;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}
.alex-slide-pipeline tbody td:nth-child(3) {
  font-weight: 750;
  text-transform: capitalize;
}
.alex-slide-pipeline tbody td:nth-child(3)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4ca86c;
  vertical-align: 1px;
}

/* Top workspace chrome: closer to the master preview's compact application header. */
.alex-workspace-header {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.alex-workspace-header h1 {
  font-size: 19px !important;
  margin-bottom: 2px !important;
}
.alex-workspace-header p {
  font-size: 11px !important;
}

@media (max-width: 760px) {
  .alex-slide-opportunities table,
  .alex-slide-pipeline table {
    width: calc(100% - 20px) !important;
    margin: 10px !important;
  }
  .alex-slide-opportunities .executive-opportunity-header,
  .alex-slide-pipeline .alex-page-heading {
    padding: 16px !important;
  }
}


/* ALEX MASTER PREVIEW NEW DEAL + DEAL ANALYSIS — PASS 13 */
.alex-slide-new-deal,.alex-slide-deal-analysis,.alex-deal-workspace-nav{max-width:1440px;margin:0 auto 16px!important;border:1px solid #dfe5e9!important;border-radius:8px!important;background:#fff!important;box-shadow:0 3px 14px rgba(15,31,48,.045)!important}
.alex-slide-page-head{display:flex;justify-content:space-between;gap:20px;padding:19px 21px 16px;margin:-16px -16px 16px;background:linear-gradient(180deg,#fff,#fbfcfd);border-bottom:1px solid #e3e8ec}
.alex-slide-page-head h2,.alex-deal-workspace-nav h2{margin:3px 0 4px!important;color:#102d46!important;font-size:24px!important;letter-spacing:-.025em}
.alex-slide-page-head p{margin:0}
.alex-import-tabs{display:flex;gap:7px;padding-bottom:14px;margin-bottom:17px;border-bottom:1px solid #e6eaed;flex-wrap:wrap}
.alex-import-tabs span{padding:7px 10px;color:#657686;background:#f6f8f9;border:1px solid #e0e5e9;border-radius:5px;font-size:10px;font-weight:750}
.alex-import-tabs span.active{color:#7a5a0d;background:#fff8e8;border-color:#e4cf98}
.alex-manual-entry-panel{max-width:820px;padding:18px;background:#fbfcfd;border:1px solid #e2e7eb;border-radius:7px}
.alex-manual-entry-panel h3{margin:0 0 14px;color:#18344d}
.alex-manual-entry-panel label{color:#526575;font-size:11px;font-weight:750}
.alex-manual-entry-panel input,.alex-manual-entry-panel textarea{width:100%;margin:5px 0 13px;background:#fff!important;border-color:#d8e0e6!important}
.alex-manual-entry-panel button{background:#c89a25!important;border-color:#c89a25!important;color:#fff!important}
.alex-slide-deal-analysis{padding:0 16px 16px!important}
.alex-slide-deal-analysis .alex-slide-page-head{margin:0 -16px 15px}
#pilotCommandCenterCard label{display:block;margin:0 0 5px;color:#627383;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
#pilotCommandCenterCard #dealSelect{width:min(100%,720px);min-height:38px;margin:0 8px 10px 0;background:#fff;border-color:#d7e0e6}
#pilotCommandCenterCard button{min-height:36px;margin:0 5px 6px 0;border-radius:6px}
#pilotCommandCenterCard #pilotResult{margin:8px 0 0;padding:9px 11px;background:#f7f9fa;border:1px solid #e3e8ec;border-radius:6px}
.alex-deal-workspace-nav{padding:0!important;overflow:hidden}
.alex-deal-workspace-nav-header{padding:17px 20px 13px;background:#fff;border-bottom:1px solid #e3e8ec}
.alex-deal-tabs{display:flex!important;gap:0!important;padding:0 12px!important;overflow-x:auto;background:#f7f9fa;border-bottom:1px solid #dde4e9}
.alex-deal-tab{flex:0 0 auto;min-height:42px!important;padding:0 11px!important;color:#5b6e7d!important;background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;font-size:10px!important;font-weight:750!important;white-space:nowrap}
.alex-deal-tab:hover{color:#17344c!important;background:#f0f4f6!important}
.alex-deal-tab.active,.alex-deal-tab[aria-selected="true"]{color:#7c5b0a!important;background:#fff!important;border-bottom-color:#c89a25!important}
[data-alex-view="new-deal"].card,[data-alex-view="new-deal"] .card{border-color:#dfe5e9!important;box-shadow:0 2px 10px rgba(15,31,48,.035)}
[data-alex-view="new-deal"] pre{color:#536574!important;background:#f7f9fa!important;border:1px solid #e1e7eb!important;border-radius:6px}
@media(max-width:760px){.alex-slide-page-head{padding:15px}.alex-manual-entry-panel{padding:14px}}


/* ALEX MASTER PREVIEW COMPARABLES MAP STRATEGY — PASS 14 */
/* Page 6: comparable-sales workspace */
[data-alex-view~="comparables"],.alex-slide-comparables{
  background:#fff!important;color:#233d53!important;
}
[data-alex-view~="comparables"] h2,[data-alex-view~="comparables"] h3,.alex-slide-comparables h2,.alex-slide-comparables h3{
  color:#102d46!important;letter-spacing:-.02em;
}
[data-alex-view~="comparables"] table,.alex-slide-comparables table{
  width:100%;border:1px solid #e0e6ea;border-radius:7px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff;
}
[data-alex-view~="comparables"] th,.alex-slide-comparables th{
  padding:9px 10px!important;background:#f4f7f9!important;color:#5d6f7e!important;font-size:10px!important;text-transform:uppercase;border-bottom:1px solid #dfe5e9!important;
}
[data-alex-view~="comparables"] td,.alex-slide-comparables td{
  padding:10px!important;background:#fff!important;color:#294359!important;border-bottom:1px solid #edf0f2!important;font-size:11px;
}
[data-alex-view~="comparables"] button,.alex-slide-comparables button{border-radius:6px!important}

/* Page 7: Map View — geographic evidence, not a fabricated external map. */
[data-alex-view~="map-view"],.alex-slide-map{
  border:1px solid #dfe5e9!important;border-radius:8px!important;background:#fff!important;box-shadow:0 3px 14px rgba(15,31,48,.045)!important;
}
[data-alex-view~="map-view"]::before,.alex-slide-map::before{
  content:"PROPERTY MAP · VERIFIED GEOGRAPHIC CONTEXT";display:block;padding:10px 14px;margin:-1px -1px 14px;color:#8a6815;background:#fffaf0;border:1px solid #ecdfbd;border-radius:8px 8px 0 0;font-size:10px;font-weight:800;letter-spacing:.09em;
}
[data-alex-view~="map-view"] h2,[data-alex-view~="map-view"] h3,.alex-slide-map h2,.alex-slide-map h3{color:#102d46!important}
[data-alex-view~="map-view"] pre,.alex-slide-map pre{background:#f7f9fa!important;color:#536574!important;border:1px solid #e1e7eb!important;border-radius:6px}

/* Page 8: Strategy & Analysis */
[data-alex-view~="strategy"],.alex-slide-strategy{
  background:#fff!important;border-color:#dfe5e9!important;color:#233d53!important;
}
[data-alex-view~="strategy"] h2,[data-alex-view~="strategy"] h3,.alex-slide-strategy h2,.alex-slide-strategy h3{color:#102d46!important}
[data-alex-view~="strategy"] label,.alex-slide-strategy label{color:#5b6e7d!important;font-size:10px;font-weight:800;letter-spacing:.025em}
[data-alex-view~="strategy"] input,[data-alex-view~="strategy"] select,[data-alex-view~="strategy"] textarea,
.alex-slide-strategy input,.alex-slide-strategy select,.alex-slide-strategy textarea{
  background:#fff!important;color:#203b51!important;border-color:#d8e0e6!important;border-radius:6px!important;
}
[data-alex-view~="strategy"] pre,.alex-slide-strategy pre{background:#f7f9fa!important;color:#536574!important;border:1px solid #e1e7eb!important;border-radius:6px}
[data-alex-view~="strategy"] button,.alex-slide-strategy button{border-radius:6px!important}


/* ALEX MASTER PREVIEW SUPPORT WORKSPACES — PASS 15 */
.alex-master-tasks,.alex-master-reports,.alex-master-alerts,.alex-master-buyers,
.alex-settings-workspace,.alex-operations-card,.alex-operations-summary{
  max-width:1440px;margin:0 auto 16px!important;background:#fff!important;color:#233d53!important;
  border:1px solid #dfe5e9!important;border-radius:8px!important;box-shadow:0 3px 14px rgba(15,31,48,.045)!important;
}
.alex-master-tasks h2,.alex-master-reports h2,.alex-master-alerts h2,.alex-master-buyers h2,
.alex-settings-workspace h2,.alex-operations-card h2,.alex-operations-summary h2{
  color:#102d46!important;font-size:23px!important;letter-spacing:-.025em;
}
.alex-master-tasks h2::before{content:"TASKS · ";color:#a97900;font-size:10px;letter-spacing:.1em;vertical-align:4px}
.alex-master-reports h2::before{content:"REPORTS · ";color:#a97900;font-size:10px;letter-spacing:.1em;vertical-align:4px}
.alex-master-alerts h2::before{content:"ALERTS · ";color:#a97900;font-size:10px;letter-spacing:.1em;vertical-align:4px}
.alex-master-buyers>h2::before,.alex-master-buyers #buyerProfileManager>h2::before{content:"BUYERS · ";color:#a97900;font-size:10px;letter-spacing:.1em;vertical-align:4px}
.alex-master-tasks table,.alex-master-reports table,.alex-master-alerts table,.alex-master-buyers table{
  width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e0e6ea;border-radius:7px;overflow:hidden;
}
.alex-master-tasks th,.alex-master-reports th,.alex-master-alerts th,.alex-master-buyers th{
  padding:9px 10px!important;background:#f4f7f9!important;color:#5c6e7e!important;font-size:10px!important;text-transform:uppercase;
}
.alex-master-tasks td,.alex-master-reports td,.alex-master-alerts td,.alex-master-buyers td{
  padding:10px!important;background:#fff!important;color:#294359!important;border-bottom:1px solid #edf0f2!important;
}
.alex-master-tasks button,.alex-master-reports button,.alex-master-alerts button,.alex-master-buyers button,
.alex-settings-workspace button,.alex-operations-card button,.alex-operations-summary button{border-radius:6px!important}
.alex-master-buyers #buyerProfileManager{margin:0 0 18px!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
.alex-master-buyers input,.alex-master-buyers select,.alex-master-buyers textarea,
.alex-operations-card input,.alex-operations-card select,.alex-operations-card textarea{
  background:#fff!important;color:#203b51!important;border-color:#d8e0e6!important;border-radius:6px!important;
}
.alex-settings-workspace{padding:0!important;overflow:hidden}
.alex-settings-heading{padding:19px 21px 16px!important;background:linear-gradient(180deg,#fff,#fbfcfd);border-bottom:1px solid #e3e8ec}
.alex-settings-workspace section{background:#fff!important;border-color:#e1e7eb!important}
.alex-operations-card>pre,.alex-operations-summary pre{background:#f7f9fa!important;color:#536574!important;border:1px solid #e1e7eb!important;border-radius:6px}
.alex-operations-card .card{background:#fbfcfd!important;border-color:#e1e7eb!important;color:#233d53!important}
.alex-operations-card h3{color:#18344d!important}

/* Help & Docs: current code has no routed help content. Keep navigation truthful and avoid invented tutorials/support. */
.alex-nav-item[data-workspace="help"]::after{content:"";}

/* Master-preview density */
.alex-master-tasks p.muted,.alex-master-reports p.muted,.alex-master-alerts p.muted,.alex-master-buyers p.muted,
.alex-operations-card p.muted{color:#6b7b88!important;font-size:11px!important;line-height:1.5}


/* ALEX PROFESSIONAL CLARITY RESET — PASS 16
   Reduce visual noise first. Preserve functionality; reveal advanced tools only in their routed workspace. */
:root{
  --alex-ink:#183247;--alex-muted:#6a7b88;--alex-line:#e2e8ec;
  --alex-surface:#ffffff;--alex-canvas:#f5f7f8;--alex-gold:#b88a1e;
}
.alex-workspace-main,.alex-main,.alex-workspace-content{background:var(--alex-canvas)!important}
.alex-workspace-content{max-width:1480px!important;margin:0 auto!important;padding:24px 28px 48px!important}

/* Stop every legacy card competing for attention. */
.alex-workspace-content>.card,.alex-workspace-content>.two>.card,
.alex-page-card,.alex-settings-workspace{
  border:1px solid var(--alex-line)!important;border-radius:8px!important;
  box-shadow:none!important;background:#fff!important;color:var(--alex-ink)!important;
}
.alex-workspace-content h1{font-size:26px!important;line-height:1.15!important;color:#102c43!important}
.alex-workspace-content h2{font-size:19px!important;line-height:1.25!important;color:#17344b!important}
.alex-workspace-content h3{font-size:14px!important;color:#29475e!important}
.alex-workspace-content p,.alex-workspace-content .muted{color:var(--alex-muted)!important;line-height:1.5!important}
.alex-page-kicker{font-size:9px!important;letter-spacing:.12em!important;color:#9a7419!important}
button{border-radius:6px!important;font-weight:700!important}
button.secondary{background:#fff!important;color:#29465c!important;border:1px solid #d8e0e5!important}
input,select,textarea{border-radius:6px!important}

/* Global page header: one title, one description, no oversized shell. */
.alex-workspace-header{min-height:auto!important;padding:17px 28px 14px!important;background:#fff!important;border-bottom:1px solid var(--alex-line)!important}
.alex-workspace-header h1{margin:1px 0 3px!important;font-size:21px!important}
.alex-workspace-header p{margin:0!important;font-size:11px!important}

/* Sidebar is navigation, not decoration. */
.alex-sidebar{box-shadow:none!important}
.alex-nav-item{min-height:35px!important;padding:7px 12px!important;font-size:11px!important;border-radius:5px!important}
.alex-nav-label{margin:14px 12px 5px!important;font-size:8px!important;letter-spacing:.14em!important}
.alex-sidebar-brand{min-height:112px!important}

/* Dashboard: make the decision layer dominant. */
#alexDashboard{gap:14px!important}
#alexDashboard .alex-dashboard-metrics{gap:10px!important}
#alexDashboard .alex-dashboard-metric{min-height:94px!important;padding:14px!important;box-shadow:none!important}
#alexDashboard .alex-dashboard-metric strong{font-size:25px!important}
#alexDashboard .alex-dashboard-grid{gap:14px!important}

/* New Deal: listing import is the primary action; advanced capture becomes visually secondary. */
[data-alex-view="new-deal"]{max-width:1180px!important}
[data-alex-view="new-deal"] h2{margin-top:0!important}
.alex-slide-new-deal{padding:0 18px 18px!important}
.alex-import-tabs{margin-top:4px!important}
.alex-manual-entry-panel{max-width:720px!important}

/* Deal analysis: compact control bar, then tabs. */
#pilotCommandCenterCard{max-width:1180px!important}
#alexDealWorkspaceNav{max-width:1180px!important}
.alex-deal-workspace-nav-header{padding:14px 18px 10px!important}
.alex-deal-tabs{scrollbar-width:thin}
.alex-deal-tab{min-height:39px!important}

/* Tables should read like professional data tables. */
table{font-variant-numeric:tabular-nums}
th{letter-spacing:.045em!important}
td,th{vertical-align:middle!important}

/* Forms: consistent spacing and quiet labels. */
label{display:block;margin:9px 0 4px!important;color:#566b7b!important;font-size:10px!important;font-weight:750!important}
input,select,textarea{min-height:36px;border:1px solid #d8e0e5!important;background:#fff!important;color:#203b50!important}

/* Advanced operational/analysis screens: eliminate black terminal-like surfaces. */
pre{
  background:#f7f9fa!important;color:#536675!important;border:1px solid #e1e7eb!important;
  border-radius:6px!important;padding:12px!important;font-size:10px!important;
}
.card .card{box-shadow:none!important}

/* Narrow the two-column legacy grids so pages scan top-to-bottom cleanly. */
.alex-workspace-content>.two{gap:14px!important}
@media(max-width:1050px){.alex-workspace-content>.two{grid-template-columns:1fr!important}}
@media(max-width:760px){
 .alex-workspace-content{padding:16px 14px 36px!important}
 .alex-workspace-header{padding:14px!important}
}


/* ALEX STRUCTURAL CLARITY — PASS 17
   Primary pages show their decision surface. Advanced engines remain routed and functional,
   but no longer visually compete with normal acquisition work. */

/* Default page composition: one readable vertical flow. */
.alex-workspace-content{display:block!important}
.alex-workspace-content>.two{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
.alex-workspace-content>.card,.alex-workspace-content>section{margin-bottom:14px!important}

/* Only the active global workspace should visually dominate. */
[data-alex-view]{transition:none!important}
[data-alex-view].alex-workspace-hidden,
[data-alex-view][hidden]{display:none!important}

/* Advanced tools are deliberately quieter and narrower. */
.alex-advanced-tool{
  max-width:1120px!important;
  border:1px solid #e4e9ec!important;
  background:#fbfcfd!important;
  box-shadow:none!important;
}
.alex-advanced-tool>h2,.alex-advanced-tool h2{
  font-size:16px!important;color:#385267!important;
}
.alex-advanced-tool>p.muted,.alex-advanced-tool p.muted{font-size:10px!important;color:#758591!important}
.alex-advanced-tool button{min-height:34px!important}

/* Opportunities is a ranking screen, not a generic form/card page. */
#executiveOpportunityBoardCard{max-width:1440px!important}
#executiveOpportunityBoardCard .alex-page-kicker{margin-bottom:4px!important}
#executiveOpportunityBoardCard table{font-size:10px!important}
#executiveOpportunityBoardCard th{white-space:nowrap!important}

/* Pipeline is a clean workflow inventory. */
#dealPipelineCard{max-width:1320px!important}
#dealPipelineCard table{font-size:11px!important}

/* Alerts: signal first. */
#activeAlertsCard,#decisionBlockersCard{max-width:1180px!important}
#activeAlertsCard:has(#alerts:empty){min-height:120px}

/* Reports: report actions grouped as a single product surface. */
#executiveReportCard{max-width:1050px!important;padding:20px!important}

/* Tasks: operational work list, not underwriting. */
#dueDiligenceTasksCard{max-width:1240px!important;padding:20px!important}

/* Buyers: buyer records first; demand analysis is subordinate. */
#buyerDemandCard{max-width:1240px!important;padding:20px!important}
#buyerProfileManager{padding-bottom:18px!important;border-bottom:1px solid #e4e9ec!important}

/* Operations can be dense, but uses clear sections rather than black console blocks. */
[data-alex-view="operations"]{max-width:1240px!important}
[data-alex-view="operations"] pre{max-height:260px;overflow:auto}

/* Strategy is where analytical engines belong; keep the form readable. */
[data-alex-view="strategy"]{max-width:1180px!important}
[data-alex-view="strategy"] .preliminary-pipeline-grid{gap:12px!important}
[data-alex-view="strategy"] input,[data-alex-view="strategy"] select{max-width:520px}

/* Data sources: evidence hierarchy, not decorative cards. */
[data-alex-view="data-sources"]{max-width:1240px!important}

/* Focused deal tabs are the progressive-disclosure mechanism. */
[data-alex-deal-view]{
  max-width:1240px!important;
}
[data-alex-deal-view].alex-deal-workspace-hidden,
[data-alex-deal-view][hidden]{display:none!important}

/* Remove decorative duplication in dense pages. */
.alex-workspace-content .card .card{border-radius:6px!important}
.alex-workspace-content .card .card h2{font-size:15px!important}


/* ALEX TRUE WORKSPACE ARCHITECTURE — PASS 18 */
.alex-workspace-stage{display:block;width:100%;max-width:1480px;margin:0 auto}
.alex-structured-page{display:block;width:100%}
.alex-structured-page[hidden]{display:none!important}
.alex-structured-page>.card,
.alex-structured-page>.two,
.alex-structured-page>section{margin-bottom:14px!important}
.alex-structured-page>.two{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}

/* Once the structured stage is installed, legacy top-level content cannot form one giant page.
   Functional routed nodes have been re-parented into the stage, not deleted. */
.alex-structured-ui .alex-workspace-content>#alexStructuredWorkspaceStage{display:block!important}
.alex-workspace-routed-hidden{display:none!important}

/* Each workspace reads as a page rather than a stack from the old console. */
.alex-structured-page[data-alex-structured-page="dashboard"]{max-width:1320px}
.alex-structured-page[data-alex-structured-page="opportunities"]{max-width:1440px}
.alex-structured-page[data-alex-structured-page="new-deal"]{max-width:1120px}
.alex-structured-page[data-alex-structured-page="pipeline"]{max-width:1320px}
.alex-structured-page[data-alex-structured-page="deals"]{max-width:1320px}
.alex-structured-page[data-alex-structured-page="tasks"]{max-width:1220px}
.alex-structured-page[data-alex-structured-page="buyers"]{max-width:1220px}
.alex-structured-page[data-alex-structured-page="alerts"]{max-width:1160px}
.alex-structured-page[data-alex-structured-page="reports"]{max-width:1080px}
.alex-structured-page[data-alex-structured-page="strategy"]{max-width:1180px}
.alex-structured-page[data-alex-structured-page="data-sources"]{max-width:1220px}
.alex-structured-page[data-alex-structured-page="operations"]{max-width:1220px}
.alex-structured-page[data-alex-structured-page="settings"]{max-width:1080px}


/* ALEX MASTER-STYLE DASHBOARD RECOMPOSITION — PASS 19 */
.alex-dashboard-v2{max-width:1320px!important;margin:0 auto!important}
.alex-dash-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 2px 18px;border-bottom:1px solid #e2e8ec;margin-bottom:16px}
.alex-dash-welcome h2{font-size:25px!important;margin:4px 0 5px!important;color:#102d43!important}
.alex-dash-welcome p{margin:0;color:#70808c;font-size:12px}
.alex-dashboard-v2-metrics{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin-bottom:14px!important}
.alex-dashboard-v2-metrics>.card{position:relative;min-height:92px!important;padding:14px 15px!important;border:1px solid #e2e8ec!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
.alex-dashboard-v2-metrics>.card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#c59a35}
.alex-dashboard-v2-metrics .muted{font-size:9px!important;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#71818d!important}
.alex-dashboard-v2-metrics .metric{font-size:27px!important;line-height:1!important;margin-top:13px!important;color:#17364d!important;font-weight:800!important}
.alex-dashboard-v2-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:14px;margin-bottom:14px}
.alex-dash-panel{background:#fff;border:1px solid #e2e8ec;border-radius:7px;padding:18px;box-shadow:none}
.alex-dash-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.alex-dash-panel h3{font-size:16px!important;margin:3px 0 0!important;color:#17364d!important}
.alex-dash-label{font-size:8px;font-weight:850;letter-spacing:.13em;color:#a57b19}
.alex-text-action{background:transparent!important;border:0!important;padding:3px!important;color:#466276!important;font-size:10px!important;min-height:auto!important}
.alex-dashboard-status-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px!important}
.alex-dashboard-status-grid>*{background:#f7f9fa!important;border:1px solid #e5eaed!important;border-radius:6px!important;padding:12px!important}
.alex-dash-action-list{display:grid;gap:8px}
.alex-dash-action-list button{display:grid!important;grid-template-columns:28px 1fr auto;align-items:center;text-align:left;gap:10px;padding:10px!important;background:#fff!important;border:1px solid #e4e9ec!important;color:#29475c!important;min-height:58px}
.alex-dash-action-list button:hover{background:#f7f9fa!important;border-color:#ccd7dd!important}
.alex-dash-action-list strong{display:block;font-size:11px;color:#25445a}
.alex-dash-action-list small{display:block;margin-top:2px;font-size:9px;line-height:1.3;color:#7b8993;font-weight:500}
.alex-action-symbol{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f4efe3;color:#9a731b;font-weight:850}
.alex-dash-flow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}
.alex-dash-flow span{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:750;color:#39566b}
.alex-dash-flow span b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#17364d;color:#fff;font-size:9px}
.alex-dash-flow i{font-style:normal;color:#b6c0c7}
@media(max-width:1050px){.alex-dashboard-v2-metrics{grid-template-columns:repeat(3,1fr)!important}.alex-dashboard-v2-main{grid-template-columns:1fr}}
@media(max-width:700px){.alex-dash-welcome{align-items:flex-start;flex-direction:column}.alex-dashboard-v2-metrics{grid-template-columns:repeat(2,1fr)!important}.alex-dash-flow{align-items:flex-start;flex-direction:column}.alex-dash-flow i{display:none}}


/* ALEX OPPORTUNITIES RECOMPOSITION — PASS 20 */
.alex-opportunities-v2{max-width:1440px;margin:0 auto}
.alex-opportunities-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:4px 2px 18px;border-bottom:1px solid #e2e8ec;margin-bottom:14px}
.alex-opportunities-header h2{font-size:25px!important;margin:4px 0 5px!important;color:#102d43!important}
.alex-opportunities-header p{margin:0;max-width:720px;color:#70808c;font-size:11px;line-height:1.45}
.alex-opportunities-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.alex-opportunities-actions select{width:auto!important;min-width:150px!important;margin:0!important}
.alex-opportunities-actions button{margin:0!important}
.alex-opportunity-status{min-height:18px;margin:0 0 10px;color:#71818d;font-size:10px}
.alex-opportunity-kpis{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;gap:9px!important;margin:0 0 12px!important}
.alex-opportunity-kpis>*{border:1px solid #e2e8ec!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;padding:12px 14px!important}
.alex-opportunity-highlights{margin:0 0 12px!important}
.alex-opportunity-table-card{background:#fff;border:1px solid #e2e8ec;border-radius:7px;overflow:hidden}
.alex-opportunity-table-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:15px 17px 12px;border-bottom:1px solid #e8edef}
.alex-opportunity-table-title span{font-size:8px;font-weight:850;letter-spacing:.13em;color:#a57b19}
.alex-opportunity-table-title h3{font-size:15px!important;margin:3px 0 0!important;color:#17364d!important}
.alex-opportunity-table-title small{font-size:9px;color:#7b8993}
.alex-opportunity-table-card .executive-opportunity-table-wrap{overflow:auto;margin:0!important}
.alex-opportunity-table{width:100%;border-collapse:collapse;font-size:9px!important}
.alex-opportunity-table th{position:sticky;top:0;background:#f7f9fa!important;color:#607381!important;padding:10px 9px!important;border-bottom:1px solid #dfe6ea!important;white-space:nowrap}
.alex-opportunity-table td{padding:11px 9px!important;border-bottom:1px solid #edf0f2!important;color:#334f63}
.alex-opportunity-table tbody tr:hover{background:#fafbfc}
.alex-opportunity-methodology{margin-top:10px!important;border:1px solid #e2e8ec!important;border-radius:6px!important;background:#fff!important;padding:10px 13px!important;color:#607381!important}
.alex-opportunity-methodology summary{font-size:10px;font-weight:750;cursor:pointer;color:#496377}
@media(max-width:900px){.alex-opportunities-header{align-items:flex-start;flex-direction:column}.alex-opportunities-actions{justify-content:flex-start}.alex-opportunity-table-title{align-items:flex-start;flex-direction:column}}


/* ALEX OPPORTUNITIES VISUAL CORRECTION — PASS 20A
   Screenshot-driven: restore compact SaaS density and remove legacy black/gold table styling. */
.alex-opportunities-v2{padding-top:0!important}
.alex-opportunities-header{
  align-items:center!important;padding:2px 0 14px!important;margin-bottom:12px!important;
}
.alex-opportunities-header h2{font-size:22px!important;margin:2px 0 3px!important}
.alex-opportunities-header p{font-size:10px!important}
.alex-opportunities-actions{display:grid!important;grid-template-columns:170px auto auto!important;gap:7px!important}
.alex-opportunities-actions select{min-height:34px!important;height:34px!important;padding:5px 28px 5px 9px!important;font-size:10px!important}
.alex-opportunities-actions button{min-height:34px!important;height:34px!important;padding:6px 11px!important;font-size:10px!important}

.alex-opportunity-status{font-size:9px!important;margin:0 0 7px!important}
.alex-opportunity-kpis{margin-bottom:10px!important}
.alex-opportunity-kpis>*{min-height:70px!important;padding:10px 12px!important}
.alex-opportunity-highlights{margin-bottom:10px!important}

.alex-opportunity-table-card{border-color:#e0e6ea!important;background:#fff!important}
.alex-opportunity-table-title{padding:11px 13px 9px!important}
.alex-opportunity-table-title h3{font-size:13px!important}
.alex-opportunity-table-title small{font-size:8px!important}

/* Override the old executive-board black/gold skin. */
.alex-opportunity-table,
.alex-opportunity-table thead,
.alex-opportunity-table tbody,
.alex-opportunity-table tr,
.alex-opportunity-table td{background:#fff!important;color:#314b5e!important}
.alex-opportunity-table th{
  background:#f4f7f8!important;color:#647683!important;
  border:0!important;border-bottom:1px solid #dce4e8!important;
  font-size:8px!important;font-weight:850!important;letter-spacing:.055em!important;
  padding:9px 8px!important;
}
.alex-opportunity-table td{
  border:0!important;border-bottom:1px solid #edf1f3!important;
  padding:10px 8px!important;font-size:9px!important;
}
.alex-opportunity-table tbody tr:hover td{background:#f8fafb!important}
.alex-opportunity-table-wrap{border:0!important;border-radius:0!important}
.alex-opportunity-methodology{
  background:#fff!important;border-color:#e0e6ea!important;color:#607381!important;
  margin-top:9px!important;padding:9px 12px!important;
}
.alex-opportunity-methodology summary{color:#496377!important;font-size:9px!important}

/* The global workspace title already identifies the route; keep page content close to it. */
[data-alex-structured-page="opportunities"]{padding-top:0!important}

@media(max-width:900px){
 .alex-opportunities-actions{display:flex!important}
}

/* ALEX SINGLE-PAGE-IDENTITY + OPPORTUNITIES COMPACT LAYOUT — PASS 20B */
[data-alex-structured-page="opportunities"] .alex-opportunities-header > div:first-child{display:none!important}
.alex-opportunities-header{justify-content:flex-end!important;padding:0!important;border-bottom:0!important;margin:0 0 10px!important;min-height:34px!important}
.alex-opportunities-actions{width:auto!important;grid-template-columns:150px auto auto!important}
.alex-opportunities-actions select{min-width:150px!important;width:150px!important}
.alex-opportunity-status{margin:0 0 8px!important;min-height:12px!important}
.alex-opportunity-kpis{gap:8px!important;margin-bottom:9px!important}
.alex-opportunity-kpis>*{min-height:62px!important;padding:9px 11px!important}
.alex-opportunity-highlights{margin-bottom:9px!important}
.alex-opportunity-table-title{padding:10px 12px 8px!important}
.alex-opportunity-table-title small{display:none!important}
.alex-opportunity-methodology{margin-top:8px!important}
.alex-workspace-header{padding-top:14px!important;padding-bottom:12px!important}
.alex-workspace-header h1{font-size:20px!important}
.alex-workspace-header p{font-size:10px!important}

/* ALEX SINGLE-OPPORTUNITY VIEW — PASS 21 */
.alex-opportunities-actions{grid-template-columns:minmax(260px,1fr) 145px auto auto!important;max-width:760px;width:100%!important}
#executiveOpportunityProperty{min-width:260px!important;width:100%!important}
#executiveOpportunitySort{min-width:145px!important;width:145px!important}
.alex-opportunity-table tbody tr{cursor:pointer}
@media(max-width:1050px){
 .alex-opportunities-actions{display:flex!important;max-width:none}
 #executiveOpportunityProperty{min-width:280px!important;flex:1}
}

/* ALEX FOCUSED OPPORTUNITY CARD — PASS 22 */
.alex-opportunity-focus-card{background:#fff;border:1px solid #e0e6ea;border-radius:7px;overflow:hidden}
.alex-opportunity-focus-body{padding:0}
.alex-selected-opportunity{padding:18px;cursor:pointer;background:#fff}
.alex-selected-opportunity:hover{background:#fafbfc}
.alex-selected-opportunity-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:15px;border-bottom:1px solid #e8edef}
.alex-selected-code{font-size:8px;font-weight:850;letter-spacing:.12em;color:#a57b19}
.alex-selected-opportunity-head h3{font-size:17px!important;margin:4px 0 0!important;color:#17364d!important}
.alex-selected-opportunity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-bottom:1px solid #e8edef}
.alex-selected-opportunity-grid>div{padding:14px 14px 14px 0}
.alex-selected-opportunity-grid small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#7b8993;margin-bottom:5px}
.alex-selected-opportunity-grid strong{font-size:13px;color:#29485e}
.alex-selected-opportunity-foot{display:flex;justify-content:space-between;gap:15px;padding-top:13px;font-size:9px;color:#74838e}
.alex-selected-opportunity-foot b{color:#405e73}
@media(max-width:850px){.alex-selected-opportunity-grid{grid-template-columns:repeat(2,1fr)}}

/* ALEX DASHBOARD REFINEMENT — PASS 23 */
[data-alex-structured-page="dashboard"] .alex-dash-command-row{display:flex!important;justify-content:flex-end!important;min-height:0!important;margin:0 0 10px!important;padding:0!important;border:0!important}
.alex-dashboard-v2-metrics{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:0 0 10px!important}
.alex-dashboard-v2-metrics>*{min-height:68px!important;padding:11px 12px!important;border-radius:6px!important}
.alex-dashboard-v2-main{gap:10px!important;margin-bottom:10px!important}
.alex-dash-panel{border-radius:7px!important;padding:14px!important}
.alex-dash-panel-head{margin-bottom:10px!important}
.alex-dash-panel-head h3{font-size:14px!important;margin-top:2px!important}
.alex-dashboard-status-grid{gap:7px!important}
.alex-dashboard-status-grid>*{padding:10px!important}
.alex-dash-action-list{gap:6px!important}
.alex-dash-action-list button{min-height:48px!important;padding:8px 10px!important}
.alex-dash-flow{padding:9px 0 0!important;gap:7px!important}
.alex-dash-flow span{padding:8px 10px!important}
@media(max-width:1100px){.alex-dashboard-v2-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.alex-dashboard-v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* ALEX NEW DEAL RECOMPOSITION — PASS 24 */
[data-alex-structured-page="new-deal"]{max-width:980px}
[data-alex-structured-page="new-deal"]>.two{display:block!important}
.alex-new-deal-import-card,.alex-new-deal-manual-card{border:1px solid #dfe6ea!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;padding:18px!important;margin-bottom:12px!important}
.alex-new-deal-intro,.alex-new-deal-manual-card .alex-slide-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #e8edef;padding-bottom:14px;margin-bottom:16px}
.alex-new-deal-intro h2,.alex-new-deal-manual-card h2{font-size:18px!important;margin:3px 0 4px!important;color:#17364d!important}
.alex-new-deal-intro p,.alex-new-deal-manual-card p{font-size:10px!important;max-width:620px;margin:0!important}
.alex-intake-mode-tabs{display:flex;gap:4px;background:#f3f5f6;padding:3px;border-radius:6px;white-space:nowrap}
.alex-intake-mode-tabs button{border:0!important;background:transparent!important;color:#536876!important;font-size:9px!important;padding:7px 10px!important;box-shadow:none!important}
.alex-intake-mode-tabs button.active{background:#fff!important;color:#17364d!important;box-shadow:0 1px 3px rgba(16,35,48,.12)!important}
#propertyImportCard>label{font-size:9px!important;text-transform:uppercase;letter-spacing:.06em}
.property-import-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:7px!important;align-items:center}
.property-import-toolbar input{margin:0!important}
.property-import-status{padding:8px 0!important;font-size:9px!important}
.alex-browser-capture-details{margin-top:14px!important;border:1px solid #e5e9ec!important;border-radius:6px!important;background:#fafbfc!important;padding:0!important}
.alex-browser-capture-details>summary{cursor:pointer;padding:11px 13px;font-size:10px;font-weight:750;color:#405e73}
.alex-browser-capture-inner{padding:0 13px 13px}
.alex-new-deal-manual-card.alex-intake-secondary{opacity:.72}
.alex-new-deal-import-card.alex-intake-secondary{opacity:.72}
.alex-manual-entry-panel{max-width:680px}
.alex-manual-entry-panel label{font-size:9px!important;text-transform:uppercase;letter-spacing:.06em}
.alex-manual-entry-panel input,.alex-manual-entry-panel textarea{margin-bottom:10px!important}
@media(max-width:760px){
 .alex-new-deal-intro,.alex-new-deal-manual-card .alex-slide-page-head{display:block}
 .alex-intake-mode-tabs{margin-top:12px}
 .property-import-toolbar{grid-template-columns:1fr!important}
}

/* ALEX NEW DEAL MODE FOCUS — PASS 24A */
[data-alex-structured-page="new-deal"] [hidden]{display:none!important}
.alex-import-source-note{display:flex;gap:10px;align-items:center;margin:2px 0 12px;padding:9px 11px;background:#f7f9fa;border:1px solid #e5eaed;border-radius:6px;font-size:9px;color:#6d7c86}
.alex-import-source-note strong{color:#405e73}
.alex-browser-capture-details:not([open]) .alex-browser-capture-inner{display:none!important}

/* ALEX DEAL ANALYSIS RECOMPOSITION — PASS 25 */
[data-alex-structured-page="deals"]{max-width:1180px}
.alex-deal-command-card{padding:14px 16px!important;border:1px solid #dfe6ea!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;margin-bottom:8px!important}
.alex-deal-command-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}
.alex-deal-command-card label{display:block;margin:4px 0 5px!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.06em;color:#607784}
.alex-deal-command-card select{min-width:420px;max-width:720px;margin:0!important}
.alex-deal-command-card #pilotResult{margin:5px 0 0!important;font-size:9px!important}
.alex-deal-command-actions{display:flex;gap:6px;align-items:center;padding-bottom:18px}
.alex-deal-workspace-nav{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0 0 10px!important;overflow:hidden}
.alex-deal-tabs{display:flex!important;gap:0!important;overflow-x:auto;padding:0!important;border:1px solid #dfe6ea;border-radius:7px;background:#f7f9fa}
.alex-deal-tab{flex:0 0 auto!important;border:0!important;border-right:1px solid #e5eaed!important;border-radius:0!important;background:transparent!important;color:#5c7180!important;padding:9px 11px!important;font-size:9px!important;box-shadow:none!important}
.alex-deal-tab.active{background:#17364d!important;color:#fff!important}
.alex-deal-workspace-status{margin:6px 2px 0!important;font-size:9px!important}
.alex-deal-overview-card{padding:16px!important;border:1px solid #dfe6ea!important;border-radius:8px!important;box-shadow:none!important}
.alex-deal-overview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid #e8edef;padding-bottom:12px;margin-bottom:12px}
.alex-deal-overview-head h2{font-size:17px!important;margin:3px 0!important;color:#17364d!important}
.alex-deal-overview-head p{font-size:9px!important;margin:0!important}
#decisionSummary.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
#decisionSummary>.card{padding:10px!important;min-height:68px!important;border:1px solid #e2e8eb!important;border-radius:6px!important;box-shadow:none!important;background:#fff!important}
#decisionSummary>.card .muted{font-size:8px!important;text-transform:uppercase;letter-spacing:.04em}
#decisionSummary>.card div[style*="font-size:24px"]{font-size:16px!important;margin-top:4px!important;color:#17364d!important}
#decisionExplanation{border:1px solid #e2e8eb!important;border-radius:7px!important;background:#fafbfc!important;box-shadow:none!important;padding:14px!important}
#decisionExplanation h3{font-size:14px!important;color:#17364d!important}
@media(max-width:900px){
 .alex-deal-command-main{grid-template-columns:1fr}
 .alex-deal-command-actions{padding-bottom:0;flex-wrap:wrap}
 .alex-deal-command-card select{min-width:0;width:100%}
 #decisionSummary.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ALEX DEAL SELECTION CONTINUITY — PASS 25C */
.alex-deal-command-card select:valid{font-weight:650;color:#17364d}

/* ALEX DEAL PICKER — PASS 25D */
.alex-deal-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.alex-deal-picker-row select{min-width:0!important;width:100%;max-width:none!important}
.alex-deal-picker-row button{white-space:nowrap}
@media(max-width:760px){.alex-deal-picker-row{grid-template-columns:1fr}.alex-deal-picker-row button{width:100%}}

/* PASS 27 — authoritative Deals tab routing for shared capability panels */
[data-alex-structured-page="deals"] [data-alex-deal-view]:not(.alex-deal-routed-hidden):not(.alex-workspace-routed-hidden){
  display:block;
}

/* PASS 28 — shared Deals capability panels must live inside the visible Deals page */
[data-alex-structured-page="deals"] > [data-alex-deal-view]:not(.alex-deal-routed-hidden){
  display:block !important;
  width:100%;
}


/* ============================================================
   PASS 31 — MASTER DESIGN DEAL WORKSPACE REFINEMENT
   Appearance only; preserves routed capabilities and live data.
   ============================================================ */

:root{
  --alex-p31-navy:#0b2940;
  --alex-p31-navy-2:#12364f;
  --alex-p31-gold:#c89518;
  --alex-p31-ink:#17354c;
  --alex-p31-muted:#6f8291;
  --alex-p31-line:#dfe6eb;
  --alex-p31-canvas:#f4f7f8;
}

/* Remove the legacy pseudo-icon boxes that visually collide with labels. */
button.alex-nav-item,
.alex-nav-item{
  padding-left:16px !important;
}
button.alex-nav-item::before,
.alex-nav-item::before{
  content:none !important;
  display:none !important;
}

/* Tighter command shell, closer to the recovered master composition. */
.alex-sidebar{
  width:290px !important;
  padding-left:15px !important;
  padding-right:15px !important;
}
.alex-sidebar-brand{
  min-height:166px !important;
  padding:12px 8px 18px !important;
}
.alex-sidebar-logo-approved{
  width:100% !important;
  max-width:238px !important;
}
.alex-nav-label{
  margin:17px 13px 7px !important;
  font-size:9px !important;
  letter-spacing:.18em !important;
}
button.alex-nav-item{
  min-height:40px !important;
  margin:1px 0 !important;
  font-size:13px !important;
}
button.alex-nav-item.active,
button.alex-nav-item.alex-nav-active,
button.alex-nav-item[aria-current="page"]{
  background:linear-gradient(90deg,rgba(200,149,24,.24),rgba(200,149,24,.07)) !important;
  box-shadow:inset 3px 0 0 var(--alex-p31-gold) !important;
}

/* Deal command panel becomes a compact acquisition toolbar rather than a hero card. */
#pilotCommandCenterCard.alex-deal-command-card{
  padding:17px 18px !important;
  margin-bottom:12px !important;
  border:1px solid var(--alex-p31-line) !important;
  border-radius:9px !important;
  box-shadow:0 1px 3px rgba(17,42,60,.04) !important;
}
#pilotCommandCenterCard .alex-deal-command-main{
  grid-template-columns:minmax(420px,1.35fr) minmax(390px,.9fr) !important;
  gap:20px !important;
  align-items:end !important;
}
#pilotCommandCenterCard .alex-page-kicker{
  margin-bottom:7px !important;
  font-size:9px !important;
}
#pilotCommandCenterCard label{
  margin:0 0 6px !important;
  font-size:9px !important;
  letter-spacing:.05em !important;
}
#pilotCommandCenterCard .alex-deal-picker-row select{
  height:42px !important;
  font-size:13px !important;
  padding:0 13px !important;
}
#pilotCommandCenterCard .alex-deal-picker-row button,
#pilotCommandCenterCard .alex-deal-command-actions button{
  min-height:42px !important;
  padding:0 17px !important;
  font-size:12px !important;
}
#pilotCommandCenterCard #pilotResult{
  min-height:30px !important;
  margin:7px 0 0 !important;
  padding:7px 11px !important;
  font-size:9px !important;
}
#pilotCommandCenterCard .alex-deal-command-actions{
  gap:8px !important;
  justify-content:flex-end !important;
  padding:0 !important;
}

/* Deal tabs: denser, calm, no spreadsheet-like oversized band. */
#alexDealWorkspaceNav{
  margin:0 0 12px !important;
  padding:0 !important;
  border-radius:8px !important;
  overflow:hidden !important;
}
.alex-deal-tabs{
  min-height:43px !important;
  background:#fff !important;
}
.alex-deal-tab{
  min-height:43px !important;
  padding:0 12px !important;
  font-size:10px !important;
  font-weight:650 !important;
}
.alex-deal-tab.active{
  background:var(--alex-p31-navy-2) !important;
  color:#fff !important;
}

/* Deal identity line behaves like breadcrumb metadata. */
.alex-deal-workspace-status{
  margin:0 2px 10px !important;
  color:#708391 !important;
  font-size:10px !important;
}

/* Shared deal capability cards. */
[data-alex-structured-page="deals"] > .card[data-alex-deal-view],
[data-alex-structured-page="deals"] .alex-master-tasks{
  padding:22px !important;
  border:1px solid var(--alex-p31-line) !important;
  border-radius:9px !important;
  box-shadow:0 1px 3px rgba(17,42,60,.035) !important;
  background:#fff !important;
}
[data-alex-structured-page="deals"] > .card[data-alex-deal-view] h2,
[data-alex-structured-page="deals"] .alex-master-tasks h2{
  margin:0 0 7px !important;
  color:var(--alex-p31-ink) !important;
  font-size:19px !important;
  line-height:1.2 !important;
}
[data-alex-structured-page="deals"] > .card[data-alex-deal-view] > p.muted,
[data-alex-structured-page="deals"] .alex-master-tasks > p.muted{
  margin:0 0 16px !important;
  max-width:820px !important;
  color:var(--alex-p31-muted) !important;
  font-size:11px !important;
  line-height:1.55 !important;
}

/* Blocked offer becomes a deliberate decision-state panel instead of console output. */
#offerRecommendationCard pre{
  margin:14px 0 0 !important;
  padding:18px 20px !important;
  border:1px solid #ead8a6 !important;
  border-left:4px solid var(--alex-p31-gold) !important;
  border-radius:8px !important;
  background:#fffaf0 !important;
  color:#29475c !important;
  font-family:inherit !important;
  font-size:12px !important;
  line-height:1.7 !important;
  white-space:pre-wrap !important;
}

/* Tasks read like an action queue, not raw form output. */
#dueDiligenceTasksCard #taskSummary{
  margin:10px 0 13px !important;
  font-size:11px !important;
  font-weight:650 !important;
  color:#405c70 !important;
}
#dueDiligenceTasksCard #taskList > .card{
  margin:9px 0 !important;
  padding:15px 17px !important;
  border:1px solid var(--alex-p31-line) !important;
  border-left:3px solid #c89518 !important;
  border-radius:7px !important;
  box-shadow:none !important;
}
#dueDiligenceTasksCard button{
  min-height:38px !important;
  padding:0 14px !important;
  font-size:11px !important;
}

/* History timeline hierarchy + quiet audit details. */
#alexDealHistoryList > .card{
  position:relative !important;
  margin:0 0 10px !important;
  padding:15px 18px 15px 20px !important;
  border:1px solid var(--alex-p31-line) !important;
  border-left:3px solid #9eb2c0 !important;
  border-radius:7px !important;
  box-shadow:none !important;
}
#alexDealHistoryList > .card > div:first-child strong{
  color:var(--alex-p31-ink) !important;
  font-size:13px !important;
}
.alex-history-readiness-summary{
  margin-top:9px;
  padding:9px 11px;
  border-radius:6px;
  background:#f2f7f4;
  color:#365847;
  font-size:11px;
}
.alex-audit-details{
  margin-top:9px !important;
  padding-top:8px !important;
  border-top:1px solid #edf1f3 !important;
  font-size:10px !important;
}
.alex-audit-details summary{
  cursor:pointer;
  color:#657c8d;
  font-weight:650;
}

/* More usable density at laptop widths. */
@media(max-width:1180px){
  #pilotCommandCenterCard .alex-deal-command-main{
    grid-template-columns:1fr !important;
  }
  #pilotCommandCenterCard .alex-deal-command-actions{
    justify-content:flex-start !important;
  }
}
@media(max-width:760px){
  .alex-sidebar{width:100% !important}
  [data-alex-structured-page="deals"] > .card[data-alex-deal-view],
  [data-alex-structured-page="deals"] .alex-master-tasks{padding:16px !important}
}


/* ============================================================
   PASS 32 — DEAL DECISION WORKSPACE / MASTER DESIGN COMPOSITION
   ============================================================ */

/* Sidebar: neutralize any remaining icon/glyph containers regardless of implementation. */
.alex-sidebar button > [class*="icon"],
.alex-sidebar a > [class*="icon"],
.alex-sidebar [aria-hidden="true"]:not(.alex-sidebar-logo-approved),
.alex-sidebar .nav-icon,
.alex-sidebar .sidebar-icon{
  display:none !important;
}
.alex-sidebar button.alex-nav-item,
.alex-sidebar .alex-nav-item{
  gap:0 !important;
  padding-left:14px !important;
  text-indent:0 !important;
}
.alex-sidebar button.alex-nav-item > span:not([class*="icon"]){
  margin-left:0 !important;
}

/* Compact page identity. */
[data-alex-structured-page="deals"] > .alex-page-header,
[data-alex-structured-page="deals"] .alex-page-header{
  padding-top:8px !important;
  padding-bottom:10px !important;
}
[data-alex-structured-page="deals"] .alex-page-header h1{
  font-size:22px !important;
  margin:2px 0 3px !important;
}
[data-alex-structured-page="deals"] .alex-page-header p{
  font-size:10px !important;
  margin:0 !important;
}

/* Selected acquisition becomes a command strip. */
#pilotCommandCenterCard.alex-deal-command-card{
  padding:12px 15px !important;
  border-radius:8px !important;
  background:#fff !important;
}
#pilotCommandCenterCard .alex-page-kicker{
  display:inline-block !important;
  margin:0 0 5px !important;
}
#pilotCommandCenterCard .alex-deal-command-main{
  grid-template-columns:minmax(500px,1fr) auto !important;
  gap:14px !important;
}
#pilotCommandCenterCard .alex-deal-picker-row{
  display:grid !important;
  grid-template-columns:minmax(350px,1fr) auto !important;
  gap:8px !important;
}
#pilotCommandCenterCard #pilotResult{
  border:0 !important;
  background:transparent !important;
  padding:5px 1px 0 !important;
  min-height:18px !important;
}
#pilotCommandCenterCard .alex-deal-command-actions{
  align-self:center !important;
  white-space:nowrap !important;
}
#pilotCommandCenterCard .alex-deal-command-actions button{
  min-height:38px !important;
  padding:0 13px !important;
}

/* Tabs sit directly beneath command strip like the master design. */
#alexDealWorkspaceNav{
  border:1px solid #dfe6eb !important;
  box-shadow:none !important;
}
.alex-deal-tabs{
  overflow-x:auto !important;
  scrollbar-width:thin;
}
.alex-deal-tab{
  flex:0 0 auto !important;
  min-width:auto !important;
  border-right:1px solid #edf1f3 !important;
}
.alex-deal-tab.active{
  box-shadow:inset 0 -3px 0 #c89518 !important;
}

/* Breadcrumb identity is metadata, not a heading. */
.alex-deal-workspace-status{
  padding:0 2px !important;
  font-size:9px !important;
  letter-spacing:.01em !important;
}

/* Offer / Decision: authoritative decision card. */
#offerRecommendationCard{
  position:relative !important;
  overflow:hidden !important;
  padding:0 !important;
  border:1px solid #dfe6eb !important;
  border-radius:9px !important;
  background:#fff !important;
}
#offerRecommendationCard > h2,
#offerRecommendationCard > p.muted{
  margin-left:22px !important;
  margin-right:22px !important;
}
#offerRecommendationCard > h2{
  margin-top:20px !important;
  font-size:17px !important;
  letter-spacing:-.01em !important;
}
#offerRecommendationCard > p.muted{
  margin-bottom:14px !important;
  font-size:10px !important;
}
#offerRecommendationCard pre{
  position:relative !important;
  margin:0 !important;
  padding:22px 24px 23px 28px !important;
  border:0 !important;
  border-top:1px solid #eadfbe !important;
  border-left:5px solid #c89518 !important;
  border-radius:0 !important;
  background:linear-gradient(90deg,#fff9e9 0,#fffdf8 58%,#fff 100%) !important;
  color:#254258 !important;
  font-family:inherit !important;
  font-size:12px !important;
  line-height:1.85 !important;
  letter-spacing:0 !important;
}
#offerRecommendationCard pre::first-line{
  color:#8a6100 !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
}

/* Tasks: compact acquisition action queue. */
#dueDiligenceTasksCard{
  padding:20px 22px !important;
}
#dueDiligenceTasksCard > h2{
  font-size:18px !important;
}
#dueDiligenceTasksCard > div:first-of-type,
#dueDiligenceTasksCard .row{
  gap:8px !important;
}
#dueDiligenceTasksCard #taskList{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  margin-top:12px !important;
}
#dueDiligenceTasksCard #taskList > .card{
  display:flex !important;
  flex-direction:column !important;
  min-height:210px !important;
  margin:0 !important;
  padding:16px !important;
  border-left:3px solid #c89518 !important;
  background:#fff !important;
}
#dueDiligenceTasksCard #taskList > .card strong:first-child{
  color:#18384f !important;
  font-size:13px !important;
  line-height:1.3 !important;
}
#dueDiligenceTasksCard #taskList select{
  height:34px !important;
  font-size:10px !important;
}
#dueDiligenceTasksCard #taskList button{
  min-height:34px !important;
  margin-top:6px !important;
  align-self:flex-start !important;
}

/* History: timeline-like scan pattern. */
#alexDealHistoryList{
  position:relative !important;
  padding-left:15px !important;
}
#alexDealHistoryList::before{
  content:"";
  position:absolute;
  left:3px;
  top:8px;
  bottom:8px;
  width:1px;
  background:#d9e2e8;
}
#alexDealHistoryList > .card::before{
  content:"";
  position:absolute;
  left:-18px;
  top:20px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#c89518;
  box-shadow:0 0 0 3px #f4f7f8;
}
#alexDealHistoryList > .card{
  overflow:visible !important;
}

/* Less dead space on the live 1536-wide Chromebook viewport. */
[data-alex-structured-page="deals"]{
  padding-bottom:24px !important;
}
.alex-main,
.alex-content,
.alex-workspace-main{
  background:#f4f7f8 !important;
}

@media(max-width:1250px){
  #pilotCommandCenterCard .alex-deal-command-main{
    grid-template-columns:1fr !important;
  }
  #pilotCommandCenterCard .alex-deal-command-actions{
    justify-content:flex-start !important;
  }
  #dueDiligenceTasksCard #taskList{
    grid-template-columns:1fr !important;
  }
  #dueDiligenceTasksCard #taskList > .card{
    min-height:0 !important;
  }
}


/* ============================================================
   PASS 33 — MASTER DEAL ANALYSIS / DECISION COMPOSITION
   ============================================================ */

/* Fixed command bar must reserve real vertical space for workspace identity. */
.alex-workspace{
  padding-top:64px !important;
}
.alex-workspace-header{
  min-height:72px !important;
  padding:11px 32px 10px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
.alex-workspace-header .alex-page-kicker{
  margin:0 0 2px !important;
  font-size:8px !important;
}
.alex-workspace-header h1{
  margin:0 0 2px !important;
  font-size:20px !important;
  line-height:1.12 !important;
}
.alex-workspace-header p{
  margin:0 !important;
  font-size:10px !important;
}

/* The sidebar nav intentionally has no decorative pseudo-glyphs. */
.alex-sidebar .alex-nav-item::before,
.alex-sidebar button.alex-nav-item::before,
.alex-sidebar .alex-nav-item::after,
.alex-sidebar button.alex-nav-item::after{
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  border:0 !important;
  box-shadow:none !important;
}
.alex-sidebar .alex-nav-item{
  padding-left:14px !important;
}

/* Selected acquisition is a compact deal command header. */
#pilotCommandCenterCard.alex-deal-command-card{
  margin-top:0 !important;
  margin-bottom:10px !important;
  padding:10px 14px !important;
}
#pilotCommandCenterCard .alex-page-kicker{
  margin-bottom:3px !important;
}
#pilotCommandCenterCard label{
  margin-bottom:4px !important;
}
#pilotCommandCenterCard .alex-deal-picker-row select{
  height:38px !important;
}
#pilotCommandCenterCard .alex-deal-picker-row button,
#pilotCommandCenterCard .alex-deal-command-actions button{
  min-height:38px !important;
}
#pilotCommandCenterCard #pilotResult{
  display:none !important;
}

/* Offer page now behaves as a decision surface, not a terminal. */
#offerRecommendationCard{
  padding:0 !important;
  border:1px solid #dfe6eb !important;
}
#offerRecommendationCard > h2{
  margin:18px 22px 4px !important;
  font-size:17px !important;
}
#offerRecommendationCard > p.muted{
  margin:0 22px 14px !important;
  font-size:10px !important;
}
.alex-offer-decision-panel{
  display:grid;
  grid-template-columns:minmax(300px,1.35fr) minmax(430px,1fr);
  border-top:1px solid #eadfbe;
  background:linear-gradient(110deg,#fff8e6 0%,#fffdf8 44%,#fff 74%);
}
.alex-offer-decision-main{
  padding:23px 25px 25px 28px;
  border-left:5px solid #c89518;
}
.alex-offer-decision-kicker{
  margin-bottom:5px;
  color:#9a7010;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
}
.alex-offer-decision-title{
  color:#17354c;
  font-size:27px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.025em;
}
.alex-offer-decision-guidance{
  max-width:610px;
  margin-top:9px;
  color:#647987;
  font-size:11px;
  line-height:1.55;
}
.alex-offer-decision-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  padding:17px 18px;
  gap:8px;
}
.alex-offer-decision-metrics > div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:13px 12px;
  border:1px solid #e2e8ec;
  border-radius:7px;
  background:rgba(255,255,255,.82);
}
.alex-offer-decision-metrics span{
  color:#7b8d99;
  font-size:8px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.alex-offer-decision-metrics strong{
  margin-top:5px;
  color:#18384f;
  font-size:15px;
  line-height:1.25;
}
.alex-offer-result-fallback{
  margin:0 !important;
}
.alex-offer-result-fallback.hidden{
  display:none !important;
}

/* Keep the content width deliberate and reduce nested-card dead space. */
[data-alex-structured-page="deals"]{
  padding-top:14px !important;
}
[data-alex-structured-page="deals"] #alexDealWorkspaceNav{
  margin-bottom:8px !important;
}
[data-alex-structured-page="deals"] .alex-deal-workspace-status{
  margin-bottom:8px !important;
}

/* Task cards read as actionable diligence units at wide laptop/desktop sizes. */
#dueDiligenceTasksCard #taskList > .card{
  border-top:1px solid #dfe6eb !important;
}
#dueDiligenceTasksCard #taskList > .card .bad,
#dueDiligenceTasksCard #taskList > .card .warn,
#dueDiligenceTasksCard #taskList > .card [class*="priority"]{
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
}

/* Responsive decision panel. */
@media(max-width:1320px){
  .alex-offer-decision-panel{
    grid-template-columns:1fr !important;
  }
  .alex-offer-decision-metrics{
    padding-top:0 !important;
  }
}
@media(max-width:760px){
  .alex-workspace{padding-top:60px !important}
  .alex-workspace-header{padding-left:16px !important;padding-right:16px !important}
  .alex-offer-decision-metrics{grid-template-columns:1fr !important}
}


/* ============================================================
   PASS 34 — MASTER DASHBOARD + GLOBAL WORKSPACE SHELL
   Deals remains the locked reference direction.
   ============================================================ */

/* Global workspace identity: compact, visible, never hidden under command bar. */
.alex-workspace{
  padding-top:64px !important;
}
.alex-workspace-header{
  display:flex !important;
  min-height:70px !important;
  padding:10px 30px 9px !important;
  background:#fff !important;
  border-bottom:1px solid #e2e8ec !important;
}
.alex-workspace-header h1{
  display:block !important;
  margin:0 0 2px !important;
  color:#15364d !important;
  font-size:20px !important;
  line-height:1.12 !important;
}
.alex-workspace-header p{
  display:block !important;
  margin:0 !important;
  color:#718391 !important;
  font-size:10px !important;
}
.alex-workspace-header .alex-page-kicker{
  display:block !important;
  margin:0 0 2px !important;
  color:#a47508 !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.14em !important;
}

/* Deal tabs stay on one line at the target desktop viewport. */
#alexDealWorkspaceNav{
  display:flex !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:thin;
}
#alexDealWorkspaceNav button{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  padding-left:13px !important;
  padding-right:13px !important;
  font-size:9px !important;
}

/* Dashboard: recovered-master information hierarchy, existing live values only. */
#alexDashboard.alex-master-dashboard{
  display:block !important;
}
#alexDashboard .alex-dashboard-hero{
  margin-bottom:10px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#alexDashboard .alex-dashboard-hero h2{
  margin:0 0 3px !important;
  color:#15364d !important;
  font-size:21px !important;
  line-height:1.15 !important;
}
#alexDashboard .alex-dashboard-hero p{
  margin:0 !important;
  color:#718391 !important;
  font-size:10px !important;
}

/* Live KPI strip. */
#alexDashboard #metrics,
#alexDashboard .alex-dashboard-metrics,
#alexDashboard .metrics{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  margin:0 0 12px !important;
}
#alexDashboard #metrics > *,
#alexDashboard .alex-dashboard-metrics > *,
#alexDashboard .metrics > *{
  min-width:0 !important;
  padding:13px 14px !important;
  border:1px solid #dfe6eb !important;
  border-radius:8px !important;
  background:#fff !important;
  box-shadow:0 4px 14px rgba(21,54,77,.035) !important;
}
#alexDashboard #metrics strong,
#alexDashboard .alex-dashboard-metrics strong,
#alexDashboard .metrics strong{
  color:#15364d !important;
  font-size:20px !important;
  line-height:1.1 !important;
}
#alexDashboard #metrics .muted,
#alexDashboard .alex-dashboard-metrics .muted,
#alexDashboard .metrics .muted{
  color:#758894 !important;
  font-size:8px !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
}

/* Dashboard primary analysis grid: pipeline + action center. */
#alexDashboard .alex-dashboard-grid,
#alexDashboard .alex-dashboard-primary-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr) !important;
  gap:12px !important;
  align-items:start !important;
}
#alexDashboard .card{
  border:1px solid #dfe6eb !important;
  border-radius:8px !important;
  background:#fff !important;
  box-shadow:0 4px 14px rgba(21,54,77,.03) !important;
}
#alexDashboard .card h2,
#alexDashboard .card h3{
  color:#17384f !important;
}
#alexDashboard .card h2{
  font-size:15px !important;
}
#alexDashboard .card h3{
  font-size:12px !important;
}

/* Status and attention surfaces use the same compact language as Deal Analysis. */
#alexDashboardDealStatus,
#alexDashboardBlockerAction,
#alexDashboardTaskAction,
#alexDashboardOverrideAction{
  border-color:#dfe6eb !important;
}
#alexDashboardBlockerAction,
#alexDashboardTaskAction,
#alexDashboardOverrideAction{
  padding:11px 12px !important;
}

/* Workflow reads as a horizontal acquisition sequence, not stacked console cards. */
#alexDashboard .alex-dashboard-workflow{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:8px !important;
  margin-top:12px !important;
}
#alexDashboard .alex-dashboard-workflow > *{
  min-width:0 !important;
  padding:10px 11px !important;
  border:1px solid #e1e7eb !important;
  border-radius:7px !important;
  background:#fff !important;
}

/* Eliminate legacy black/gold table skins inside the executive dashboard. */
#alexDashboard table{
  width:100% !important;
  border-collapse:collapse !important;
  background:#fff !important;
}
#alexDashboard th{
  padding:8px 9px !important;
  border-bottom:1px solid #dfe6eb !important;
  background:#f7f9fa !important;
  color:#687d8a !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
}
#alexDashboard td{
  padding:9px !important;
  border-bottom:1px solid #edf1f3 !important;
  color:#29485d !important;
  font-size:10px !important;
}

/* Preserve the clean sidebar established in 33A. */
.alex-sidebar .alex-nav-item::before,
.alex-sidebar .alex-nav-item::after{
  content:none !important;
  display:none !important;
}

/* Target laptop/desktop behavior. */
@media(max-width:1280px){
  #alexDashboard #metrics,
  #alexDashboard .alex-dashboard-metrics,
  #alexDashboard .metrics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #alexDashboard .alex-dashboard-grid,
  #alexDashboard .alex-dashboard-primary-grid{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:760px){
  #alexDashboard #metrics,
  #alexDashboard .alex-dashboard-metrics,
  #alexDashboard .metrics,
  #alexDashboard .alex-dashboard-workflow{
    grid-template-columns:1fr !important;
  }
}


/* ============================================================
   PASS 34B — DASHBOARD CORRECTION
   Exact DOM selectors; master-preview density and hierarchy.
   ============================================================ */

[data-alex-structured-page="dashboard"]{
  max-width:none !important;
  padding:18px 22px 28px !important;
  background:#f4f7f8 !important;
}
[data-alex-structured-page="dashboard"] #alexDashboard{
  max-width:1380px !important;
  margin:0 auto !important;
}

/* Do not let a retained scroll position make Dashboard appear headless. */
#alexDashboard .alex-dash-command-row{
  display:flex !important;
  justify-content:flex-end !important;
  min-height:0 !important;
  margin:0 0 10px !important;
}
#alexDashboard .alex-dashboard-hero-actions{
  display:flex !important;
  gap:7px !important;
}
#alexDashboard .alex-dashboard-hero-actions button{
  min-height:32px !important;
  padding:6px 11px !important;
  font-size:9px !important;
  border-radius:6px !important;
}

/* Five real dashboard values: one compact executive strip. */
#alexDashboard #metrics.alex-dashboard-v2-metrics{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:9px !important;
  margin:0 0 11px !important;
}
#alexDashboard #metrics.alex-dashboard-v2-metrics>.card{
  min-height:76px !important;
  padding:12px 14px !important;
  border:1px solid #dde5e9 !important;
  border-radius:7px !important;
  background:#fff !important;
  box-shadow:none !important;
}
#alexDashboard #metrics .muted{
  color:#71828e !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
#alexDashboard #metrics .metric{
  margin-top:9px !important;
  color:#17384f !important;
  font-size:25px !important;
  font-weight:800 !important;
  line-height:1 !important;
}

/* This is the actual two-column dashboard DOM. */
#alexDashboard .alex-dashboard-v2-main{
  display:grid !important;
  grid-template-columns:minmax(0,1.6fr) minmax(310px,.72fr) !important;
  gap:11px !important;
  margin:0 0 11px !important;
  align-items:stretch !important;
}
#alexDashboard .alex-dash-panel{
  padding:15px 16px !important;
  border:1px solid #dde5e9 !important;
  border-radius:7px !important;
  background:#fff !important;
  box-shadow:none !important;
}
#alexDashboard .alex-dash-panel-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin:0 0 11px !important;
}
#alexDashboard .alex-dash-label{
  color:#a27408 !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
}
#alexDashboard .alex-dash-panel-head h3{
  margin:3px 0 0 !important;
  color:#17384f !important;
  font-size:14px !important;
  line-height:1.15 !important;
}
#alexDashboard .alex-text-action{
  min-height:26px !important;
  padding:4px 7px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#315a72 !important;
  font-size:8px !important;
}

/* Pipeline status is a compact status row, never a giant empty tile. */
#alexDashboard #alexDashboardDealStatus{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr)) !important;
  gap:8px !important;
  min-height:0 !important;
}
#alexDashboard #alexDashboardDealStatus .alex-dashboard-status{
  min-height:70px !important;
  padding:12px 13px !important;
  border:1px solid #e1e7ea !important;
  border-radius:6px !important;
  background:#f8fafb !important;
}
#alexDashboard #alexDashboardDealStatus .alex-dashboard-status strong{
  display:block !important;
  color:#17384f !important;
  font-size:24px !important;
  line-height:1 !important;
}
#alexDashboard #alexDashboardDealStatus .alex-dashboard-status span{
  display:block !important;
  margin-top:7px !important;
  color:#71828e !important;
  font-size:10px !important;
  text-transform:capitalize !important;
}

/* Action center = three clean horizontal actions, not tall text boxes. */
#alexDashboard .alex-dash-action-list{
  display:grid !important;
  gap:7px !important;
}
#alexDashboard .alex-dash-action-list>button{
  display:grid !important;
  grid-template-columns:26px 1fr 14px !important;
  align-items:center !important;
  gap:9px !important;
  width:100% !important;
  min-height:54px !important;
  padding:8px 10px !important;
  border:1px solid #e1e7ea !important;
  border-radius:6px !important;
  background:#fff !important;
  box-shadow:none !important;
  color:#17384f !important;
  text-align:left !important;
}
#alexDashboard .alex-action-symbol{
  display:grid !important;
  place-items:center !important;
  width:25px !important;
  height:25px !important;
  border-radius:50% !important;
  background:#17384f !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:800 !important;
}
#alexDashboard .alex-dash-action-list strong{
  display:block !important;
  color:#17384f !important;
  font-size:10px !important;
}
#alexDashboard .alex-dash-action-list small{
  display:block !important;
  margin-top:2px !important;
  color:#7a8c97 !important;
  font-size:8px !important;
  font-weight:500 !important;
}
#alexDashboard .alex-dash-action-list>button>b{
  color:#a27408 !important;
  font-size:12px !important;
}

/* Workflow: compact horizontal process band like the recovered master. */
#alexDashboard .alex-dash-opportunity{
  padding:14px 16px 15px !important;
}
#alexDashboard .alex-dash-flow{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:7px !important;
  padding:4px 0 0 !important;
}
#alexDashboard .alex-dash-flow span{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  padding:6px 8px !important;
  color:#294b60 !important;
  font-size:9px !important;
  font-weight:700 !important;
}
#alexDashboard .alex-dash-flow span b{
  display:grid !important;
  place-items:center !important;
  width:24px !important;
  height:24px !important;
  flex:0 0 24px !important;
  border-radius:50% !important;
  background:#17384f !important;
  color:#fff !important;
  font-size:8px !important;
}
#alexDashboard .alex-dash-flow i{
  color:#b2bec5 !important;
  font-style:normal !important;
}

/* Workspace identity must exist above Dashboard content. */
.alex-workspace-header{
  position:relative !important;
  z-index:2 !important;
  min-height:68px !important;
}
.alex-workspace-header .alex-eyebrow{
  display:block !important;
  margin-bottom:2px !important;
  color:#a27408 !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
}

/* Deal navigation global correction from the prior screenshot. */
#alexDealWorkspaceNav{
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}
#alexDealWorkspaceNav button{
  padding-left:10px !important;
  padding-right:10px !important;
  font-size:8px !important;
}

@media(max-width:1180px){
  #alexDashboard #metrics.alex-dashboard-v2-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #alexDashboard .alex-dashboard-v2-main{grid-template-columns:1fr!important}
}

/* ============================================================
   PASS 35 — DASHBOARD MASTER FINISH
   Real-data executive composition; no backend/data changes.
   ============================================================ */
[data-alex-structured-page="dashboard"]{padding-top:14px!important}
#alexDashboard .alex-dash-command-row{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:18px!important;margin:0 0 13px!important;padding:0 1px!important}
#alexDashboard .alex-dashboard-hero-copy{min-width:0!important}
#alexDashboard .alex-dashboard-hero-copy h2{margin:3px 0 4px!important;color:#15364d!important;font-size:23px!important;line-height:1.08!important;letter-spacing:-.025em!important}
#alexDashboard .alex-dashboard-hero-copy p{margin:0!important;color:#718391!important;font-size:10px!important}
#alexDashboard .alex-dashboard-hero-actions{align-self:center!important}
#alexDashboard .alex-dashboard-hero-actions button{min-height:31px!important}
#alexDashboard #metrics.alex-dashboard-v2-metrics>.card{position:relative!important;min-height:72px!important;padding:11px 14px 10px!important;overflow:hidden!important}
#alexDashboard #metrics.alex-dashboard-v2-metrics>.card::before{content:""!important;position:absolute!important;left:0!important;top:13px!important;bottom:13px!important;width:2px!important;background:#c99513!important}
#alexDashboard #metrics .metric{margin-top:7px!important;font-size:24px!important}
#alexDashboard .alex-dash-pipeline{min-height:0!important}
#alexDashboard #alexDashboardDealStatus{display:block!important}
#alexDashboard .alex-status-summary{display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;gap:20px!important;align-items:center!important;min-height:88px!important;padding:12px 14px!important;border:1px solid #e1e7ea!important;border-radius:7px!important;background:#f8fafb!important}
#alexDashboard .alex-status-total{padding-right:18px!important;border-right:1px solid #e1e7ea!important}
#alexDashboard .alex-status-total strong{display:block!important;color:#15364d!important;font-size:30px!important;line-height:1!important}
#alexDashboard .alex-status-total span{display:block!important;margin-top:6px!important;color:#718391!important;font-size:9px!important;font-weight:700!important}
#alexDashboard .alex-status-distribution{min-width:0!important}
#alexDashboard .alex-status-bar{display:flex!important;width:100%!important;height:9px!important;overflow:hidden!important;border-radius:999px!important;background:#e5ebee!important}
#alexDashboard .alex-status-bar>span{display:block!important;min-width:2px!important;height:100%!important;border-right:1px solid rgba(255,255,255,.8)!important;background:#1d526e!important}
#alexDashboard .alex-status-bar>span:nth-child(even){background:#c99513!important}
#alexDashboard .alex-status-legend{display:flex!important;flex-wrap:wrap!important;gap:6px 14px!important;margin-top:10px!important}
#alexDashboard #alexDashboardDealStatus .alex-status-legend .alex-dashboard-status{display:flex!important;align-items:baseline!important;gap:6px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important}
#alexDashboard #alexDashboardDealStatus .alex-status-legend .alex-dashboard-status span{margin:0!important;color:#718391!important;font-size:9px!important;font-weight:700!important;text-transform:capitalize!important}
#alexDashboard #alexDashboardDealStatus .alex-status-legend .alex-dashboard-status strong{display:inline!important;color:#15364d!important;font-size:11px!important;line-height:1!important}
#alexDashboard .alex-dashboard-v2-main{grid-template-columns:minmax(0,1.75fr) minmax(300px,.72fr)!important}
#alexDashboard .alex-dash-panel{padding:14px 15px!important}
#alexDashboard .alex-dash-action-list>button{min-height:48px!important}
#alexDashboard .alex-dash-opportunity{padding-top:12px!important;padding-bottom:12px!important}
#alexDashboard .alex-dash-opportunity .alex-dash-panel-head{margin-bottom:5px!important}
@media(max-width:900px){
 #alexDashboard .alex-dash-command-row{align-items:flex-start!important;flex-direction:column!important}
 #alexDashboard .alex-status-summary{grid-template-columns:1fr!important}
 #alexDashboard .alex-status-total{padding-right:0!important;padding-bottom:10px!important;border-right:0!important;border-bottom:1px solid #e1e7ea!important}
}


/* ============================================================
   PASS 36 — OPPORTUNITIES MASTER RECOMPOSITION
   Recovered ALEX hierarchy + existing real opportunity data.
   ============================================================ */
[data-alex-structured-page="opportunities"]{padding-top:14px!important}
#executiveOpportunityBoardCard.alex-opportunities-v3{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.alex-opportunities-v3 .alex-opportunities-header{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin:0 0 14px!important;
  padding:0 1px!important;
  border:0!important;
  background:transparent!important;
}
.alex-opportunities-v3 .alex-opportunities-title h2{
  margin:3px 0 4px!important;
  color:#15364d!important;
  font-size:23px!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
}
.alex-opportunities-v3 .alex-opportunities-title p{
  max-width:690px!important;
  margin:0!important;
  color:#718391!important;
  font-size:10px!important;
  line-height:1.45!important;
}
.alex-opportunities-v3 .alex-opportunities-primary-actions{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  flex:0 0 auto!important;
}
.alex-opportunities-v3 .alex-opportunities-primary-actions button{
  min-height:32px!important;
  padding:7px 14px!important;
}
.alex-opportunities-v3 .alex-opportunities-filterbar{
  display:grid!important;
  grid-template-columns:minmax(320px,1.5fr) minmax(160px,.55fr) minmax(250px,.85fr)!important;
  gap:10px!important;
  align-items:end!important;
  margin:0 0 12px!important;
  padding:11px 13px!important;
  border:1px solid #dfe6ea!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 7px 18px rgba(21,54,77,.035)!important;
}
.alex-opportunities-v3 .alex-opportunity-field label{
  display:block!important;
  margin:0 0 5px!important;
  color:#6f8290!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.alex-opportunities-v3 .alex-opportunity-field select{
  width:100%!important;
  min-height:34px!important;
  margin:0!important;
  padding:6px 30px 6px 10px!important;
  border:1px solid #d8e1e6!important;
  border-radius:5px!important;
  background:#fbfcfd!important;
  color:#17364d!important;
  font-size:10px!important;
  font-weight:700!important;
}
.alex-opportunities-v3 .alex-opportunity-status{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  margin:0!important;
  padding:7px 10px!important;
  border:0!important;
  border-left:2px solid #c99513!important;
  border-radius:0!important;
  background:#f7f9fa!important;
  color:#718391!important;
  font-size:9px!important;
  line-height:1.35!important;
}
.alex-opportunities-v3 .alex-opportunity-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0 0 10px!important;
}
.alex-opportunities-v3 .executive-opportunity-metric{
  position:relative!important;
  min-height:68px!important;
  padding:11px 13px!important;
  border:1px solid #dfe6ea!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 7px 18px rgba(21,54,77,.035)!important;
}
.alex-opportunities-v3 .executive-opportunity-metric::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:12px!important;
  bottom:12px!important;
  width:2px!important;
  background:#c99513!important;
}
.alex-opportunities-v3 .executive-opportunity-metric-label{
  color:#718391!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
}
.alex-opportunities-v3 .executive-opportunity-metric-value{
  margin-top:7px!important;
  color:#15364d!important;
  font-size:20px!important;
  font-weight:800!important;
  line-height:1!important;
}
.alex-opportunities-v3 .alex-opportunity-highlights{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0 0 12px!important;
}
.alex-opportunities-v3 .executive-opportunity-highlight{
  min-height:49px!important;
  padding:9px 11px!important;
  border:1px solid #e2e8eb!important;
  border-radius:6px!important;
  background:#f8fafb!important;
}
.alex-opportunities-v3 .executive-opportunity-highlight-label{
  color:#81919c!important;
  font-size:7.5px!important;
  font-weight:800!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.alex-opportunities-v3 .executive-opportunity-highlight-value{
  margin-top:5px!important;
  color:#17364d!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
.alex-opportunities-v3 .alex-opportunity-focus-card{
  margin:0 0 10px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #dce4e8!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(21,54,77,.045)!important;
}
.alex-opportunities-v3 .alex-opportunity-table-title{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:15px!important;
  padding:12px 15px!important;
  border-bottom:1px solid #e5eaed!important;
  background:#fff!important;
}
.alex-opportunities-v3 .alex-opportunity-table-title span{
  color:#b27d00!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
}
.alex-opportunities-v3 .alex-opportunity-table-title h3{
  margin:3px 0 0!important;
  color:#15364d!important;
  font-size:15px!important;
}
.alex-opportunities-v3 .alex-opportunity-table-title small{
  color:#82919b!important;
  font-size:8.5px!important;
}
.alex-opportunities-v3 .alex-opportunity-focus-body{padding:0!important}
.alex-opportunities-v3 .alex-selected-opportunity{
  cursor:pointer!important;
  padding:15px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  transition:background .15s ease!important;
}
.alex-opportunities-v3 .alex-selected-opportunity:hover{background:#fbfcfc!important}
.alex-opportunities-v3 .alex-selected-opportunity-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:15px!important;
  margin-bottom:13px!important;
}
.alex-opportunities-v3 .alex-selected-code{
  color:#b27d00!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-head h3{
  margin:3px 0 0!important;
  color:#15364d!important;
  font-size:17px!important;
  line-height:1.2!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-head .pill{
  padding:5px 9px!important;
  border:1px solid #ead79f!important;
  border-radius:999px!important;
  background:#fff9e9!important;
  color:#805d05!important;
  font-size:8px!important;
  font-weight:800!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  overflow:hidden!important;
  border:1px solid #e2e8eb!important;
  border-radius:6px!important;
  background:#f9fbfb!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-grid>div{
  min-height:58px!important;
  padding:10px 12px!important;
  border-right:1px solid #e2e8eb!important;
  border-bottom:1px solid #e2e8eb!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-grid>div:nth-child(4n){border-right:0!important}
.alex-opportunities-v3 .alex-selected-opportunity-grid>div:nth-last-child(-n+4){border-bottom:0!important}
.alex-opportunities-v3 .alex-selected-opportunity-grid small{
  display:block!important;
  margin-bottom:5px!important;
  color:#81919c!important;
  font-size:7.5px!important;
  font-weight:800!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-grid strong{
  color:#15364d!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:11px!important;
  padding:9px 11px!important;
  border-left:2px solid #c99513!important;
  background:#f8fafb!important;
  color:#718391!important;
  font-size:9px!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-foot b{
  flex:0 0 auto!important;
  color:#15364d!important;
  font-size:9px!important;
}
.alex-opportunities-v3 .alex-opportunity-methodology{
  margin:0!important;
  padding:0!important;
  border:1px solid #e1e7ea!important;
  border-radius:6px!important;
  background:#fff!important;
}
.alex-opportunities-v3 .alex-opportunity-methodology summary{
  cursor:pointer!important;
  padding:10px 13px!important;
  color:#536d7e!important;
  font-size:9px!important;
  font-weight:800!important;
}
.alex-opportunities-v3 #executiveOpportunityMethodology{
  padding:0 13px 12px!important;
  color:#718391!important;
  font-size:9px!important;
  line-height:1.45!important;
}
.alex-opportunities-v3 .alex-opportunity-error{
  padding:15px!important;
  color:#8b3f3f!important;
  font-size:10px!important;
}
@media(max-width:1050px){
 .alex-opportunities-v3 .alex-opportunities-filterbar{grid-template-columns:1fr 1fr!important}
 .alex-opportunities-v3 .alex-opportunity-status{grid-column:1/-1!important}
 .alex-opportunities-v3 .alex-opportunity-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .alex-opportunities-v3 .alex-opportunity-highlights{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
 .alex-opportunities-v3 .alex-opportunities-header{align-items:flex-start!important;flex-direction:column!important}
 .alex-opportunities-v3 .alex-opportunities-filterbar{grid-template-columns:1fr!important}
 .alex-opportunities-v3 .alex-opportunity-status{grid-column:auto!important}
 .alex-opportunities-v3 .alex-opportunity-kpis,.alex-opportunities-v3 .alex-opportunity-highlights{grid-template-columns:1fr!important}
 .alex-opportunities-v3 .alex-selected-opportunity-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .alex-opportunities-v3 .alex-selected-opportunity-grid>div{border-right:1px solid #e2e8eb!important;border-bottom:1px solid #e2e8eb!important}
 .alex-opportunities-v3 .alex-selected-opportunity-grid>div:nth-child(2n){border-right:0!important}
 .alex-opportunities-v3 .alex-selected-opportunity-grid>div:nth-last-child(-n+2){border-bottom:0!important}
}


/* PASS 37 — OPPORTUNITY CONTROL + DECISION POLISH */
.alex-opportunities-v3 .alex-opportunity-select-shell{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
}
.alex-opportunities-v3 .alex-opportunity-select-shell::after{
  content:"⌄"!important;
  position:absolute!important;
  right:10px!important;
  top:50%!important;
  transform:translateY(-54%)!important;
  pointer-events:none!important;
  color:#6f8290!important;
  font-size:13px!important;
  font-weight:800!important;
}
.alex-opportunities-v3 .alex-opportunity-field select{
  display:block!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  max-width:100%!important;
  height:34px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.alex-opportunities-v3 .alex-opportunity-kpis{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
}
.alex-opportunities-v3 .executive-opportunity-metric{
  min-width:0!important;
  min-height:74px!important;
}
.alex-opportunities-v3 .executive-opportunity-metric-value{
  overflow-wrap:anywhere!important;
  font-size:18px!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-head .pill{
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
}
.alex-opportunities-v3 .alex-selected-opportunity-grid strong{
  display:block!important;
  margin-top:1px!important;
}
@media(max-width:1250px){
 .alex-opportunities-v3 .alex-opportunity-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:1050px){
 .alex-opportunities-v3 .alex-opportunity-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* PASS 38 — COMPACT OPPORTUNITY PICKERS */
.alex-opportunities-v3 .alex-opportunity-select-shell{
  position:relative!important;
  height:36px!important;
  overflow:hidden!important;
  border:1px solid #d7e0e7!important;
  border-radius:7px!important;
  background:#fff!important;
}
.alex-opportunities-v3 .alex-opportunity-select-display{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0 32px 0 11px!important;
  border:0!important;
  background:#fff!important;
  color:#102f46!important;
  text-align:left!important;
  font:700 12px/34px Arial,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:none!important;
}
.alex-opportunities-v3 .alex-opportunity-select-shell select{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  width:100%!important;
  height:100%!important;
  opacity:0!important;
  cursor:pointer!important;
  display:block!important;
}
.alex-opportunities-v3 .alex-opportunity-select-shell::after{
  z-index:3!important;
}

/* ============================================================
   PASS 40 — NEW DEAL MASTER RECOMPOSITION
   ============================================================ */
.alex-new-deal-v4{padding:0!important;overflow:hidden!important;border:1px solid #dce4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 5px 18px rgba(14,43,62,.045)!important}
.alex-new-deal-master-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:20px!important;padding:22px 24px 18px!important;border-bottom:1px solid #e5ebef!important;background:#fff!important}
.alex-new-deal-master-head h2{margin:3px 0 4px!important;color:#0d3049!important;font-size:25px!important;line-height:1.1!important}
.alex-new-deal-master-head p{margin:0!important;color:#637887!important;font-size:12px!important}
.alex-new-deal-v4 .alex-page-kicker,.alex-new-deal-step{color:#b77d00!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important}
.alex-new-deal-v4 .alex-new-deal-intro{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:22px!important;padding:22px 24px 14px!important;border:0!important}
.alex-new-deal-v4 .alex-new-deal-intro h3,.alex-new-deal-v4 .alex-slide-page-head h3{margin:5px 0 4px!important;color:#102f46!important;font-size:18px!important}
.alex-new-deal-v4 .alex-new-deal-intro p{margin:0!important;max-width:650px!important;color:#687d8c!important;font-size:11px!important}
.alex-new-deal-v4 .alex-intake-mode-tabs{display:flex!important;gap:4px!important;padding:3px!important;border:1px solid #dce4e9!important;border-radius:7px!important;background:#f5f8fa!important}
.alex-new-deal-v4 .alex-intake-mode-tabs button{min-height:30px!important;padding:5px 13px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#617685!important;font-size:10px!important;box-shadow:none!important}
.alex-new-deal-v4 .alex-intake-mode-tabs button.active{background:#fff!important;color:#0d3049!important;box-shadow:0 1px 4px rgba(12,44,64,.09)!important}
.alex-new-deal-workflow{display:flex!important;align-items:center!important;gap:10px!important;margin:0 24px 18px!important;padding:11px 14px!important;border:1px solid #e1e8ed!important;border-radius:7px!important;background:#f8fafb!important;color:#718593!important;font-size:10px!important;font-weight:800!important}
.alex-new-deal-workflow span{display:flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.alex-new-deal-workflow span b{display:grid!important;place-items:center!important;width:20px!important;height:20px!important;border-radius:50%!important;background:#e8eef2!important;color:#466172!important;font-size:9px!important}
.alex-new-deal-workflow span.active{color:#0d3049!important}.alex-new-deal-workflow span.active b{background:#c58b08!important;color:#fff!important}.alex-new-deal-workflow i{color:#aebbc4!important;font-style:normal!important}
.alex-new-deal-v4 .alex-import-entry-panel{margin:0 24px 22px!important;padding:18px!important;border:1px solid #dfe7ec!important;border-radius:8px!important;background:#fff!important}
.alex-new-deal-v4 .alex-import-entry-panel>label{display:block!important;margin:0 0 7px!important;color:#334f62!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important}
.alex-new-deal-v4 .property-import-toolbar{display:grid!important;grid-template-columns:minmax(260px,1fr) auto auto!important;gap:8px!important;align-items:center!important}
.alex-new-deal-v4 .property-import-toolbar input{height:38px!important;margin:0!important;border:1px solid #ccd8e0!important;border-radius:6px!important;background:#fbfcfd!important;font-size:12px!important}
.alex-new-deal-v4 .property-import-toolbar button{height:38px!important;margin:0!important;white-space:nowrap!important}
.alex-new-deal-v4 .property-import-status{margin:10px 0 0!important;padding:9px 11px!important;border-left:2px solid #c58b08!important;background:#f7f9fa!important;font-size:10px!important}
.alex-new-deal-v4 .alex-import-source-note{display:flex!important;align-items:center!important;gap:9px!important;margin-top:10px!important;color:#657a88!important;font-size:10px!important}
.alex-new-deal-v4 .alex-import-source-note strong{color:#344f61!important;text-transform:uppercase!important;font-size:9px!important;letter-spacing:.05em!important}
.alex-new-deal-v4 .alex-import-source-note span{padding:3px 7px!important;border:1px solid #e0c36d!important;border-radius:10px!important;background:#fffaf0!important;color:#805d00!important;font-weight:900!important}
.alex-new-deal-v4 .alex-import-source-note em{font-style:normal!important}
.alex-new-deal-v4 #propertyImportPreview,.alex-new-deal-v4 #propertyImportExtendedPreview,.alex-new-deal-v4 details{margin-left:24px!important;margin-right:24px!important}
.alex-new-deal-manual-card .alex-slide-page-head{display:flex!important;justify-content:space-between!important;gap:20px!important;padding:22px 24px 14px!important;border:0!important}
.alex-new-deal-manual-card .alex-manual-entry-panel{margin:0 24px 24px!important;padding:18px!important;border:1px solid #dfe7ec!important;border-radius:8px!important;background:#fff!important}
.alex-new-deal-manual-card .alex-manual-entry-panel h3{margin-top:0!important;color:#102f46!important}
@media(max-width:900px){.alex-new-deal-master-head,.alex-new-deal-v4 .alex-new-deal-intro,.alex-new-deal-manual-card .alex-slide-page-head{flex-direction:column!important}.alex-new-deal-v4 .property-import-toolbar{grid-template-columns:1fr!important}.alex-new-deal-workflow{overflow-x:auto!important}}

/* ============================================================
   PASS 41 — PIPELINE MASTER RECOMPOSITION
   ============================================================ */
.alex-pipeline-v4{display:flex!important;flex-direction:column!important;gap:14px!important}
.alex-pipeline-master-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:22px!important;padding:20px 22px!important;border:1px solid #dce4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 16px rgba(14,43,62,.04)!important}
.alex-pipeline-master-head h2{margin:3px 0 4px!important;color:#0d3049!important;font-size:24px!important;line-height:1.1!important}
.alex-pipeline-master-head p{margin:0!important;color:#637887!important;font-size:11px!important}
.alex-pipeline-master-head .alex-page-kicker{color:#b77d00!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important}
.alex-pipeline-actions{display:flex!important;gap:8px!important}
.alex-pipeline-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border:1px solid #dce4ea!important;border-radius:9px!important;overflow:hidden!important;background:#fff!important}
.alex-pipeline-summary>div{min-height:72px!important;padding:14px 17px!important;border-right:1px solid #e4eaee!important}
.alex-pipeline-summary>div:last-child{border-right:0!important}
.alex-pipeline-summary span{display:block!important;margin-bottom:5px!important;color:#758997!important;font-size:8px!important;font-weight:900!important;letter-spacing:.08em!important}
.alex-pipeline-summary strong{display:block!important;color:#102f46!important;font-size:20px!important;line-height:1.1!important}
.alex-pipeline-list-card{overflow:hidden!important;border:1px solid #dce4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 16px rgba(14,43,62,.04)!important}
.alex-pipeline-list-head{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:20px!important;padding:17px 20px 13px!important;border-bottom:1px solid #e5ebef!important}
.alex-pipeline-list-head span{color:#b77d00!important;font-size:8px!important;font-weight:900!important;letter-spacing:.1em!important}
.alex-pipeline-list-head h3{margin:3px 0 0!important;color:#102f46!important;font-size:15px!important}
.alex-pipeline-list-head small{color:#7a8d99!important;font-size:9px!important}
.alex-pipeline-table-wrap{overflow-x:auto!important}
.alex-pipeline-table{width:100%!important;margin:0!important;border-collapse:collapse!important}
.alex-pipeline-table th{padding:10px 14px!important;border-bottom:1px solid #dfe7ec!important;background:#f7f9fa!important;color:#718593!important;font-size:8px!important;font-weight:900!important;letter-spacing:.07em!important;text-align:left!important;text-transform:uppercase!important}
.alex-pipeline-table td{padding:12px 14px!important;border-bottom:1px solid #e8edf0!important;color:#314d60!important;font-size:10px!important;vertical-align:middle!important}
.alex-pipeline-table tbody tr:last-child td{border-bottom:0!important}
.alex-pipeline-table td strong{color:#0e3149!important;font-size:10px!important}
.alex-pipeline-table .pill{display:inline-block!important;padding:4px 8px!important;border:1px solid #e0c36d!important;border-radius:12px!important;background:#fffaf0!important;color:#795900!important;font-size:8px!important;font-weight:900!important;text-transform:uppercase!important}
.alex-pipeline-open{padding:5px 8px!important;border:0!important;background:transparent!important;color:#0d3049!important;font-size:9px!important;font-weight:900!important;box-shadow:none!important;white-space:nowrap!important}
@media(max-width:850px){.alex-pipeline-master-head,.alex-pipeline-list-head{flex-direction:column!important;align-items:flex-start!important}.alex-pipeline-summary{grid-template-columns:1fr!important}.alex-pipeline-summary>div{border-right:0!important;border-bottom:1px solid #e4eaee!important}.alex-pipeline-summary>div:last-child{border-bottom:0!important}}

/* ============================================================
   PASS 42 — DEALS MASTER WORKSPACE
   ============================================================ */
.alex-deals-v4{overflow:hidden!important;border:1px solid #dce4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 16px rgba(14,43,62,.04)!important}
.alex-deals-master-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:20px!important;padding:19px 21px 16px!important;border-bottom:1px solid #e4eaee!important}
.alex-deals-master-head h2{margin:3px 0 4px!important;color:#0d3049!important;font-size:24px!important;line-height:1.1!important}
.alex-deals-master-head p{margin:0!important;color:#637887!important;font-size:11px!important}
.alex-deals-master-head .alex-page-kicker{color:#b77d00!important;font-size:9px!important;font-weight:900!important;letter-spacing:.11em!important}
.alex-deals-v4 .alex-deal-command-card{padding:17px 20px!important;border:0!important;background:#fff!important;box-shadow:none!important}
.alex-deals-v4 .alex-deal-command-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:24px!important;align-items:end!important}
.alex-deals-v4 .alex-deal-command-main label{display:block!important;margin:4px 0 6px!important;color:#647a89!important;font-size:9px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important}
.alex-deals-v4 .alex-deal-picker-row{display:grid!important;grid-template-columns:minmax(300px,1fr) auto!important;gap:8px!important}
.alex-deals-v4 .alex-deal-picker-row select{height:37px!important;margin:0!important;border:1px solid #ccd8e0!important;border-radius:6px!important;background:#fbfcfd!important;color:#17384f!important;font-size:11px!important}
.alex-deals-v4 #pilotResult{margin:8px 0 0!important;font-size:9px!important}
.alex-deals-v4 .alex-deal-command-actions{display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important}
.alex-deals-v4 .alex-deal-command-actions button{min-height:36px!important;white-space:nowrap!important}
.alex-deal-workspace-nav-v4{margin-top:12px!important;padding:0!important;overflow:hidden!important;border:1px solid #dce4ea!important;border-radius:9px!important;background:#fff!important;box-shadow:0 3px 12px rgba(14,43,62,.035)!important}
.alex-deal-workspace-nav-v4 .alex-deal-tabs{display:flex!important;gap:0!important;overflow-x:auto!important;padding:0 8px!important;border-bottom:1px solid #e4eaee!important;background:#f8fafb!important;scrollbar-width:thin!important}
.alex-deal-workspace-nav-v4 .alex-deal-tab{flex:0 0 auto!important;margin:0!important;padding:11px 10px 9px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#687d8b!important;font-size:9px!important;font-weight:800!important;box-shadow:none!important;white-space:nowrap!important}
.alex-deal-workspace-nav-v4 .alex-deal-tab.active{border-bottom-color:#c58b08!important;background:#fff!important;color:#102f46!important}
.alex-deal-workspace-nav-v4 .alex-deal-workspace-status{margin:0!important;padding:9px 13px!important;background:#fff!important;color:#718593!important;font-size:9px!important}
#decisionSummaryCard.alex-deal-overview-card{margin-top:12px!important;padding:0!important;overflow:hidden!important;border:1px solid #dce4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 16px rgba(14,43,62,.04)!important}
#decisionSummaryCard .alex-deal-overview-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;padding:17px 19px 13px!important;border-bottom:1px solid #e5ebef!important}
#decisionSummaryCard .alex-deal-overview-head h2{margin:3px 0!important;color:#102f46!important;font-size:17px!important}
#decisionSummaryCard .alex-deal-overview-head p{margin:3px 0 0!important;font-size:10px!important}
#decisionSummaryCard #decisionSummary{margin:0!important;padding:16px 18px!important}
#decisionSummaryCard #decisionExplanation{margin:0 18px 18px!important}
@media(max-width:1000px){.alex-deals-master-head,.alex-deals-v4 .alex-deal-command-main{grid-template-columns:1fr!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}.alex-deals-v4 .alex-deal-picker-row{grid-template-columns:1fr!important}}

/* ============================================================
   PASS 42A — DEAL NAVIGATION RAIL POLISH
   Visual-only. Preserve all deal routing/controller elements.
   ============================================================ */
.alex-deal-workspace-nav-v4{
  display:block!important;
  overflow:hidden!important;
}
.alex-deal-workspace-nav-v4 .alex-deal-tabs{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0 8px!important;
  white-space:nowrap!important;
  scrollbar-width:thin!important;
  -webkit-overflow-scrolling:touch!important;
}
.alex-deal-workspace-nav-v4 .alex-deal-tab{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.alex-deal-workspace-nav-v4 .alex-deal-workspace-status{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  border-top:0!important;
  background:#fff!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* ============================================================
   PASS 43 — TASKS MASTER RECOMPOSITION
   ============================================================ */
.alex-tasks-v4{padding:0!important;overflow:hidden!important;border:1px solid #dce4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 16px rgba(14,43,62,.04)!important}
.alex-tasks-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:22px!important;padding:19px 21px 16px!important;border-bottom:1px solid #e4eaee!important}
.alex-tasks-head h2{margin:3px 0 4px!important;color:#0d3049!important;font-size:24px!important;line-height:1.1!important}
.alex-tasks-head p{max-width:720px!important;margin:0!important;color:#637887!important;font-size:11px!important;line-height:1.5!important}
.alex-tasks-head .alex-page-kicker{color:#b77d00!important;font-size:9px!important;font-weight:900!important;letter-spacing:.11em!important}
.alex-tasks-actions{display:flex!important;gap:8px!important;flex:0 0 auto!important}
.alex-task-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border-bottom:1px solid #e4eaee!important;background:#fbfcfd!important}
.alex-task-kpis>div{min-height:76px!important;padding:15px 18px!important;border-right:1px solid #e4eaee!important}
.alex-task-kpis>div:last-child{border-right:0!important}
.alex-task-kpis span{display:block!important;color:#738795!important;font-size:8px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.07em!important}
.alex-task-kpis strong{display:block!important;margin-top:5px!important;color:#0d3049!important;font-size:22px!important}
.alex-task-summary{margin:0!important;padding:10px 14px!important;border-bottom:1px solid #e4eaee!important;background:#fff!important;font-size:9px!important}
.alex-task-table-head,.alex-task-row{display:grid!important;grid-template-columns:minmax(340px,1fr) 90px 170px 145px 72px!important;gap:12px!important;align-items:center!important}
.alex-task-table-head{padding:9px 14px!important;border-bottom:1px solid #dfe7ec!important;background:#f5f8fa!important;color:#718593!important;font-size:8px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important}
.alex-task-row{margin:0!important;padding:13px 14px!important;border:0!important;border-bottom:1px solid #e5ebef!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.alex-task-row:last-child{border-bottom:0!important}
.alex-task-row.is-critical{border-left:3px solid #c58b08!important}
.alex-task-copy strong{display:block!important;color:#102f46!important;font-size:11px!important}
.alex-task-copy p{margin:4px 0!important;color:#617684!important;font-size:10px!important;line-height:1.4!important}
.alex-task-copy small{color:#8798a3!important;font-size:8px!important}
.alex-task-priority{display:inline-block!important;padding:5px 8px!important;border:1px solid #dcc784!important;border-radius:999px!important;background:#fffaf0!important;color:#765400!important;font-size:9px!important;font-weight:800!important;text-transform:lowercase!important}
.alex-task-priority.critical{background:#fff6e5!important;color:#6d4800!important}
.alex-task-due{color:#38566a!important;font-size:9px!important;line-height:1.35!important}
.alex-task-status-control select{width:100%!important;height:34px!important;margin:0!important;padding:0 9px!important;border:1px solid #d1dce3!important;border-radius:6px!important;background:#fff!important;color:#17384f!important;font-size:9px!important}
.alex-task-row button{min-height:34px!important;padding:0 13px!important;font-size:9px!important;white-space:nowrap!important}
.alex-task-empty{padding:20px!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1050px){.alex-task-table-head{display:none!important}.alex-task-row{grid-template-columns:1fr 90px!important}.alex-task-due,.alex-task-status-control{grid-column:1/2!important}.alex-task-row>div:last-child{grid-column:2!important;grid-row:2!important}.alex-task-kpis{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:700px){.alex-tasks-head{flex-direction:column!important}.alex-tasks-actions{width:100%!important;flex-wrap:wrap!important}.alex-task-kpis{grid-template-columns:1fr 1fr!important}.alex-task-row{grid-template-columns:1fr!important}.alex-task-row>div,.alex-task-due,.alex-task-status-control,.alex-task-row>div:last-child{grid-column:1!important;grid-row:auto!important}}

/* ============================================================
   PASS 43A — TASK ROW LAYOUT CORRECTION
   Visual-only correction on Pass 43.
   ============================================================ */

/* Legacy route label is redundant inside the recomposed Tasks workspace. */
.alex-tasks-v4 > .alex-route-label,
.alex-tasks-v4 .alex-route-label[data-alex-route-label],
.alex-tasks-v4 h2 > .alex-route-label {
  display:none!important;
}

/* taskList must stack records; each article owns the five-column row grid */
.alex-tasks-v4 #taskList.alex-task-list{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
.alex-tasks-v4 #taskList.alex-task-list > .alex-task-row{
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(0,1fr) 90px 180px 145px 72px!important;
  gap:14px!important;
  align-items:center!important;
}
.alex-tasks-v4 .alex-task-copy{
  min-width:0!important;
}
.alex-tasks-v4 .alex-task-copy p{
  max-width:720px!important;
}
.alex-tasks-v4 .alex-task-due{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.alex-tasks-v4 .alex-task-status-control{
  min-width:0!important;
}
.alex-tasks-v4 .alex-task-status-control select{
  max-width:100%!important;
}
.alex-tasks-v4 .alex-task-row > div:last-child{
  justify-self:end!important;
}

/* Hide the old text-node-like TASKS marker produced by legacy heading decoration. */
.alex-tasks-v4 .alex-page-kicker + h2::before{
  content:none!important;
}

@media(max-width:1150px){
  .alex-tasks-v4 #taskList.alex-task-list > .alex-task-row{
    grid-template-columns:minmax(260px,1fr) 80px 150px 130px 68px!important;
    gap:9px!important;
  }
}
@media(max-width:900px){
  .alex-tasks-v4 .alex-task-table-head{display:none!important}
  .alex-tasks-v4 #taskList.alex-task-list > .alex-task-row{
    grid-template-columns:minmax(0,1fr) 100px!important;
    gap:10px!important;
  }
  .alex-tasks-v4 .alex-task-copy{grid-column:1 / -1!important}
  .alex-tasks-v4 .alex-task-due,
  .alex-tasks-v4 .alex-task-status-control{grid-column:1!important}
  .alex-tasks-v4 .alex-task-row > div:last-child{
    grid-column:2!important;
    grid-row:auto!important;
    justify-self:stretch!important;
  }
}
@media(max-width:620px){
  .alex-tasks-v4 #taskList.alex-task-list > .alex-task-row{
    grid-template-columns:1fr!important;
  }
  .alex-tasks-v4 .alex-task-copy,
  .alex-tasks-v4 .alex-task-due,
  .alex-tasks-v4 .alex-task-status-control,
  .alex-tasks-v4 .alex-task-row > div:last-child{
    grid-column:1!important;
  }
  .alex-tasks-v4 .alex-task-row > div:last-child{justify-self:start!important}
}

/* ============================================================
   PASS 43B — TASK LIST ROOT LAYOUT FIX
   Root-cause correction: force taskList itself to one-column rows.
   ============================================================ */
#dueDiligenceTasksCard.alex-tasks-v4 #taskList.alex-task-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  gap:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 #taskList.alex-task-list > article.alex-task-row{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:minmax(420px,1fr) 90px 175px 145px 72px!important;
  gap:14px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:14px 16px!important;
  box-sizing:border-box!important;
  border-radius:0!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy strong,
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy p,
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy small{
  width:auto!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy p{
  margin:4px 0!important;
  line-height:1.45!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-priority{
  white-space:nowrap!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-due{
  white-space:normal!important;
  word-break:normal!important;
}
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-status-control,
#dueDiligenceTasksCard.alex-tasks-v4 .alex-task-status-control select{
  width:100%!important;
  min-width:0!important;
}
@media(max-width:1200px){
  #dueDiligenceTasksCard.alex-tasks-v4 #taskList.alex-task-list > article.alex-task-row{
    grid-template-columns:minmax(300px,1fr) 82px 150px 125px 68px!important;
    gap:9px!important;
  }
}
@media(max-width:950px){
  #dueDiligenceTasksCard.alex-tasks-v4 #taskList.alex-task-list > article.alex-task-row{
    grid-template-columns:minmax(0,1fr) 100px!important;
  }
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy{grid-column:1 / -1!important}
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-due,
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-status-control{grid-column:1!important}
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-row > div:last-child{
    grid-column:2!important;
    grid-row:auto!important;
  }
}
@media(max-width:620px){
  #dueDiligenceTasksCard.alex-tasks-v4 #taskList.alex-task-list > article.alex-task-row{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-copy,
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-due,
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-status-control,
  #dueDiligenceTasksCard.alex-tasks-v4 .alex-task-row > div:last-child{
    grid-column:1!important;
  }
}

/* ============================================================
   PASS 44 — BUYERS MASTER RECOMPOSITION
   Existing buyer profile + buyer-demand capabilities preserved.
   ============================================================ */
.alex-buyers-v4{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.alex-buyer-profile-manager,.alex-buyer-demand-section{margin:0 0 16px!important;padding:20px!important;border:1px solid #dce5ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 16px rgba(14,43,62,.04)!important}
.alex-buyer-section-kicker{color:#b67d00!important;font-size:9px!important;font-weight:900!important;letter-spacing:.11em!important}
.alex-buyers-v4 h2{margin:4px 0 5px!important;color:#0d3049!important;font-size:23px!important}
.alex-buyers-v4 p.muted{font-size:10px!important;line-height:1.5!important;color:#647b8b!important}
.alex-buyer-profile-manager>.grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px 12px!important;margin-top:15px!important}
.alex-buyer-profile-manager label,.alex-buyer-demand-section label{color:#496579!important;font-size:8px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.alex-buyer-profile-manager input,.alex-buyer-demand-section input{height:36px!important;margin-top:4px!important;padding:0 9px!important;font-size:10px!important}
#buyerProfileResult{min-height:0!important;margin:12px 0!important;padding:9px 11px!important;border-left:2px solid #c99516!important;background:#f8fafb!important;font-size:9px!important}
.alex-buyer-kpis{display:grid!important;grid-template-columns:repeat(3,1fr)!important;margin:15px -20px 0!important;border-top:1px solid #e3e9ed!important;border-bottom:1px solid #e3e9ed!important;background:#fafcfd!important}
.alex-buyer-kpis>div{padding:12px 18px!important;border-right:1px solid #e3e9ed!important}.alex-buyer-kpis>div:last-child{border-right:0!important}
.alex-buyer-kpis span,.alex-buyer-label{display:block!important;color:#788b98!important;font-size:7px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important}
.alex-buyer-kpis strong{display:block!important;margin-top:4px!important;color:#0d3049!important;font-size:19px!important}
.alex-buyer-list-head,.alex-buyer-row{display:grid!important;grid-template-columns:1.25fr .65fr .8fr 1fr 1.45fr 145px!important;gap:10px!important;align-items:center!important}
.alex-buyer-list-head{margin:0 -20px!important;padding:9px 18px!important;background:#f3f7f9!important;border-bottom:1px solid #dfe7ec!important;color:#718693!important;font-size:7px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.alex-buyer-profile-list{margin:0 -20px -20px!important}
.alex-buyer-row{padding:12px 18px!important;border-bottom:1px solid #e4eaee!important;background:#fff!important}
.alex-buyer-row:last-child{border-bottom:0!important}
.alex-buyer-row.is-inactive{opacity:.62!important}
.alex-buyer-identity strong,.alex-buyer-row>div>strong{display:block!important;color:#12344c!important;font-size:10px!important}
.alex-buyer-identity span{display:inline-block!important;margin-top:4px!important;padding:3px 6px!important;border:1px solid #d9c784!important;border-radius:999px!important;color:#735400!important;font-size:7px!important;font-weight:800!important}
.alex-buyer-criteria small{display:block!important;margin-top:3px!important;color:#718592!important;font-size:8px!important}
.alex-buyer-row-actions{display:flex!important;gap:5px!important;justify-content:flex-end!important}
.alex-buyer-row-actions button{min-height:31px!important;padding:0 9px!important;font-size:8px!important}
.alex-buyer-demand-section{display:block!important}
.alex-buyer-demand-section>.two{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;max-width:650px!important}
#buyerProfileSummary,#buyerDemandResult{margin-top:12px!important;padding:10px 12px!important;background:#f8fafb!important;border:1px solid #e1e8ec!important;border-radius:6px!important;font-size:9px!important}
#buyerDemandResult{white-space:pre-wrap!important}
.alex-buyer-empty{padding:18px!important}
@media(max-width:1150px){.alex-buyer-profile-manager>.grid{grid-template-columns:repeat(3,1fr)!important}.alex-buyer-list-head,.alex-buyer-row{grid-template-columns:1.2fr .65fr .8fr 1fr 1.4fr!important}.alex-buyer-list-head span:last-child{display:none!important}.alex-buyer-row-actions{grid-column:1/-1!important;justify-content:flex-start!important}}
@media(max-width:760px){.alex-buyer-profile-manager>.grid{grid-template-columns:1fr 1fr!important}.alex-buyer-kpis{grid-template-columns:1fr!important}.alex-buyer-list-head{display:none!important}.alex-buyer-row{grid-template-columns:1fr 1fr!important}.alex-buyer-identity,.alex-buyer-criteria,.alex-buyer-row-actions{grid-column:1/-1!important}.alex-buyer-demand-section>.two{grid-template-columns:1fr!important}}


/* PASS 44A — BUYERS VISUAL / LOAD FINISH */
.alex-buyers-v4 input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
  appearance: auto;
}
.alex-buyers-v4 label:has(input[type="checkbox"]),
.alex-buyers-v4 .checkbox-label,
.alex-buyers-v4 .alex-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  min-height: 32px;
}


/* PASS 45 — ALERTS MASTER RECOMPOSITION */
.alex-alerts-v5{padding:0!important;overflow:hidden}
.alex-alerts-master-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 30px 22px;border-bottom:1px solid var(--alex-border,#dbe3ea)}
.alex-alerts-master-head h2{margin:4px 0 4px;font-size:28px;line-height:1.1}
.alex-alerts-master-head p{margin:0;color:#61768a}
.alex-alerts-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.alex-alerts-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #dbe3ea;background:#fbfcfd}
.alex-alerts-summary>div{padding:18px 24px;border-right:1px solid #dbe3ea}
.alex-alerts-summary>div:last-child{border-right:0}
.alex-alerts-summary span{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#6e8295}
.alex-alerts-summary strong{display:block;margin-top:7px;font-size:24px;color:#092b45}
.alex-alerts-list{padding:0 0 12px}
.alex-alerts-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:22px 24px 14px;border-bottom:1px solid #dbe3ea}
.alex-alerts-list-head span{font-size:10px;font-weight:800;letter-spacing:.09em;color:#b77b00}
.alex-alerts-list-head h3{margin:4px 0 0;font-size:18px}
.alex-alerts-list-head small{max-width:560px;text-align:right;color:#718497;line-height:1.45}
.alex-alert-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:18px;margin:0!important;padding:18px 24px!important;border:0!important;border-bottom:1px solid #e3e9ee!important;border-radius:0!important;box-shadow:none!important;background:#fff}
.alex-alert-row:last-child{border-bottom:0!important}
.alex-alert-severity{justify-self:start;padding:5px 10px;border:1px solid #dfbd62;border-radius:999px;background:#fff9e9;color:#7a5700;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.alex-alert-copy strong{font-size:14px;color:#0b2c45}
.alex-alert-copy p{margin:4px 0 0;color:#5f7488;line-height:1.45}
.alex-alert-action button{white-space:nowrap}
.alex-alerts-empty{padding:30px 24px;display:flex;flex-direction:column;gap:5px;color:#657b8f}
.alex-alerts-empty strong{color:#0b2c45;font-size:15px}
@media(max-width:900px){
  .alex-alerts-master-head,.alex-alerts-list-head{flex-direction:column;align-items:flex-start}
  .alex-alerts-list-head small{text-align:left}
  .alex-alerts-summary{grid-template-columns:1fr}
  .alex-alerts-summary>div{border-right:0;border-bottom:1px solid #dbe3ea}
  .alex-alerts-summary>div:last-child{border-bottom:0}
  .alex-alert-row{grid-template-columns:1fr}
  .alex-alert-action{justify-self:start}
}


/* PASS 46 — REPORTS EXECUTIVE WORKSPACE */
.alex-reports-v46{padding:0!important;overflow:hidden}
.alex-reports-v46 .alex-reports-head{display:flex;justify-content:space-between;gap:28px;align-items:flex-start;padding:28px 28px 22px;border-bottom:1px solid #dfe6ec}
.alex-reports-v46 .alex-reports-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#b47a00;margin-bottom:7px}
.alex-reports-v46 h2{margin:0 0 7px;font-size:25px;color:#082b49}
.alex-reports-v46 .alex-reports-head p{margin:0;max-width:720px}
.alex-reports-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.alex-report-summary{padding:0 28px 24px}
.alex-report-summary-empty{padding:30px 28px}
.alex-report-empty-title{font-weight:800;color:#082b49;margin-bottom:5px}
.alex-report-meta,.alex-report-decision,.alex-report-metrics{display:grid;border-bottom:1px solid #dfe6ec}
.alex-report-meta{grid-template-columns:2fr .6fr .7fr}
.alex-report-decision{grid-template-columns:1.35fr .65fr .7fr 1fr}
.alex-report-metrics{grid-template-columns:repeat(4,1fr)}
.alex-report-meta>div,.alex-report-decision>div,.alex-report-metrics>div{padding:18px 16px;border-right:1px solid #dfe6ec;min-width:0}
.alex-report-meta>div:first-child,.alex-report-decision>div:first-child,.alex-report-metrics>div:first-child{padding-left:0}
.alex-report-meta>div:last-child,.alex-report-decision>div:last-child,.alex-report-metrics>div:last-child{border-right:0}
.alex-report-summary span{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#62788b;margin-bottom:6px}
.alex-report-summary strong{display:block;color:#082b49;font-size:17px;overflow-wrap:anywhere}
.alex-report-decision>div:first-child strong{font-size:21px}
.alex-report-control-note{margin-top:18px;padding:11px 13px;background:#f7f9fb;border-left:3px solid #c79316;color:#526b80;font-size:12px}
.alex-report-control-note strong{display:inline;font-size:12px}
.alex-report-integrity{margin:0 28px 22px;padding:13px 15px;background:#fbf7eb;border:1px solid #ead9a8;border-radius:8px;color:#526577;font-size:12px}
.alex-report-integrity strong{color:#7a5700;margin-right:8px}
.alex-report-audit{margin:0 28px 28px;border:1px solid #dfe6ec;border-radius:8px;background:#fff}
.alex-report-audit summary{cursor:pointer;padding:13px 15px;font-weight:700;color:#294963}
.alex-report-audit pre{margin:0;padding:16px;border-top:1px solid #dfe6ec;max-height:420px;overflow:auto;background:#f8fafb;font-size:11px}
@media(max-width:1000px){
  .alex-reports-v46 .alex-reports-head{display:block}
  .alex-reports-actions{justify-content:flex-start;margin-top:18px}
  .alex-report-meta,.alex-report-decision,.alex-report-metrics{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .alex-report-meta,.alex-report-decision,.alex-report-metrics{grid-template-columns:1fr}
  .alex-report-meta>div,.alex-report-decision>div,.alex-report-metrics>div{border-right:0;padding-left:0}
}


/* PASS 47 — STRATEGY & ANALYSIS DECISION INTELLIGENCE */
.alex-structured-page[data-alex-structured-page="strategy"]{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.alex-structured-page[data-alex-structured-page="strategy"][hidden]{display:none!important}
.alex-strategy-workspace-nav{
  background:#fff;
  border:1px solid #dfe6ec;
  border-radius:12px;
  padding:18px 20px 0;
  box-shadow:0 6px 18px rgba(15,42,62,.05);
}
.alex-strategy-nav-copy{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:12px;
  align-items:baseline;
  color:#173b57;
}
.alex-strategy-nav-copy strong{font-size:20px;color:#0c2f49}
.alex-strategy-nav-copy>span:last-child{
  grid-column:1/-1;
  margin:6px 0 16px;
  color:#60778a;
  font-size:14px;
}
.alex-strategy-nav-tabs{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  border-top:1px solid #e7edf2;
  padding-top:10px;
}
.alex-strategy-nav-tabs button{
  background:transparent;
  color:#49657a;
  border:0;
  border-bottom:3px solid transparent;
  border-radius:0;
  box-shadow:none;
  padding:10px 13px 11px;
  font-weight:700;
}
.alex-strategy-nav-tabs button:hover{background:#f6f8fa;color:#123b59}
.alex-strategy-nav-tabs button.active{
  color:#0c2f49;
  border-bottom-color:#c99613;
  background:#fffaf0;
}
.alex-structured-page[data-alex-structured-page="strategy"] > #alexStrategyScoreCard,
.alex-structured-page[data-alex-structured-page="strategy"] > #preliminaryUnderwritingCard,
.alex-structured-page[data-alex-structured-page="strategy"] > #hcvScenarioInputsCard,
.alex-structured-page[data-alex-structured-page="strategy"] > #capitalAssessmentCard,
.alex-structured-page[data-alex-structured-page="strategy"] > #riskManagementCard,
.alex-structured-page[data-alex-structured-page="strategy"] > #guidedUnderwritingCard{
  display:none!important;
  margin:0;
}
.alex-structured-page[data-alex-structured-page="strategy"][data-strategy-panel="decision"] > #alexStrategyScoreCard,
.alex-structured-page[data-alex-structured-page="strategy"][data-strategy-panel="underwriting"] > #preliminaryUnderwritingCard,
.alex-structured-page[data-alex-structured-page="strategy"][data-strategy-panel="hcv"] > #hcvScenarioInputsCard,
.alex-structured-page[data-alex-structured-page="strategy"][data-strategy-panel="capital"] > #capitalAssessmentCard,
.alex-structured-page[data-alex-structured-page="strategy"][data-strategy-panel="risk"] > #riskManagementCard,
.alex-structured-page[data-alex-structured-page="strategy"][data-strategy-panel="advanced"] > #guidedUnderwritingCard{
  display:block!important;
}
#alexStrategyScoreCard{
  border:1px solid #dfe6ec;
  box-shadow:0 6px 18px rgba(15,42,62,.05);
}
#alexStrategyScoreCard .alex-strategy-score-header{
  border-bottom:1px solid #e5ebf0;
  padding-bottom:16px;
  margin-bottom:16px;
}
#alexStrategyScoreCard .alex-strategy-score-eyebrow{
  color:#a87300;
  font-size:11px;
  letter-spacing:.12em;
  font-weight:800;
  text-transform:uppercase;
}
#alexStrategyScoreCard .alex-strategy-score-status{
  margin:0 0 18px;
}
#alexStrategyScoreCard section{margin-top:18px}
#alexStrategyScoreCard .alex-strategy-score-grid{
  gap:10px;
}
#riskManagementCard > .card{
  border:1px solid #e2e8ed;
  box-shadow:none;
  background:#f8fafb;
}
@media(max-width:900px){
  .alex-strategy-nav-copy{grid-template-columns:1fr}
  .alex-strategy-nav-copy>span:last-child{grid-column:auto}
  .alex-strategy-nav-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .alex-strategy-nav-tabs button{text-align:left}
}


/* PASS 48A — STRATEGY REFINED VISUAL LAYER
   Built on the structurally correct Pass 47 package. Navy / white / restrained gold. */
#alexStrategyScoreCard.alex-strategy-score-card{
  padding:0!important; overflow:hidden; border:1px solid #dce5eb!important;
  border-top:1px solid #dce5eb!important; border-radius:10px!important;
  background:#fff!important; box-shadow:0 8px 24px rgba(15,43,65,.055)!important;
}
#alexStrategyScoreCard .alex-strategy-score-header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:24px;
  padding:25px 28px 21px; border-bottom:1px solid #e1e8ed; background:#fff;
}
#alexStrategyScoreCard .alex-strategy-score-eyebrow{
  margin:0 0 6px; color:#b47a00; font-size:10px; font-weight:850;
  letter-spacing:.13em; text-transform:uppercase;
}
#alexStrategyScoreCard .alex-strategy-score-header h2{margin:0 0 6px;color:#092d49;font-size:25px;line-height:1.15}
#alexStrategyScoreCard .alex-strategy-score-header p{margin:0;color:#61788b;font-size:13px}
#alexStrategyScoreCard .alex-strategy-score-header button{
  min-height:40px;padding:0 16px;border:1px solid #d8e1e7;border-radius:7px;
  background:#fff;color:#173b56;box-shadow:0 5px 14px rgba(15,43,65,.08);
}
#alexStrategyScoreCard .alex-strategy-score-status{
  margin:0;padding:11px 28px;border:0;border-bottom:1px solid #ead9a7;border-radius:0;
  background:#fff9e9;color:#6c571c;font-size:12px;
}
#alexStrategyScoreCard > section{padding:21px 28px 0}
#alexStrategyScoreCard > section.alex-strategy-score-section{margin:0}
#alexStrategyScoreCard > section h3{margin:0 0 12px;color:#173b56;font-size:15px;font-weight:800}
#alexStrategyScoreCard .alex-strategy-score-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;
}
#alexStrategyScoreCard .alex-strategy-score-box{
  min-height:132px;padding:15px 15px 14px;color:#173b56;background:#fff;
  border:1px solid #dce5eb;border-radius:8px;box-shadow:none;
}
#alexStrategyScoreCard .alex-strategy-score-box.primary{
  border:1px solid #c89518;background:#fffcf4;box-shadow:inset 0 3px 0 #c89518;
}
#alexStrategyScoreCard .alex-strategy-score-box.pass-score{border-color:#dce5eb}
#alexStrategyScoreCard .alex-strategy-score-label{color:#6b8091;font-size:9px;font-weight:850;letter-spacing:.09em}
#alexStrategyScoreCard .alex-strategy-score-value{margin-top:8px;color:#092d49;font-size:27px;line-height:1;font-weight:850}
#alexStrategyScoreCard .alex-strategy-score-box.primary .alex-strategy-score-value{color:#9a6b00}
#alexStrategyScoreCard .alex-strategy-score-description{min-height:31px;margin-top:8px;color:#61778a;font-size:10.5px;line-height:1.4}
#alexStrategyScoreCard .alex-strategy-score-progress{height:5px;margin-top:12px;background:#e8edf1;border-radius:999px}
#alexStrategyScoreCard .alex-strategy-score-progress > div{background:#c89518;border-radius:999px}
#alexStrategyScoreCard .alex-strategy-context-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden;
  border:1px solid #dce5eb;border-radius:8px;background:#fff;
}
#alexStrategyScoreCard .alex-strategy-context-box{
  min-width:0;padding:14px 15px;background:#fff;border:0;border-right:1px solid #e2e8ed;
  border-bottom:1px solid #e2e8ed;border-radius:0;
}
#alexStrategyScoreCard .alex-strategy-context-box:nth-child(4n){border-right:0}
#alexStrategyScoreCard .alex-strategy-context-box:nth-last-child(-n+4){border-bottom:0}
#alexStrategyScoreCard .alex-strategy-context-label{color:#718596;font-size:9px;font-weight:850;letter-spacing:.08em}
#alexStrategyScoreCard .alex-strategy-context-value{margin-top:6px;color:#123650;font-size:14px;line-height:1.3;font-weight:800}
#alexStrategyScoreCard .alex-strategy-score-note{
  margin:20px 28px 26px;padding:11px 13px;color:#5f7180;background:#f8fafb;
  border:1px solid #e0e7ec;border-left:3px solid #c89518;border-radius:6px;font-size:11px;line-height:1.45;
}
[data-alex-workspace-page="strategy"] .card{border-color:#dce5eb}
[data-alex-workspace-page="strategy"] .card h2{color:#0b304c}
[data-alex-workspace-page="strategy"] .card h3{color:#173b56}
[data-alex-workspace-page="strategy"] input,
[data-alex-workspace-page="strategy"] select,
[data-alex-workspace-page="strategy"] textarea{border-color:#d6e0e7;border-radius:7px;background:#fff}
@media(max-width:1050px){
 #alexStrategyScoreCard .alex-strategy-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 #alexStrategyScoreCard .alex-strategy-score-header{flex-direction:column;padding:21px 20px 18px}
 #alexStrategyScoreCard .alex-strategy-score-status{padding:11px 20px}
 #alexStrategyScoreCard > section{padding:18px 20px 0}
 #alexStrategyScoreCard .alex-strategy-score-grid,#alexStrategyScoreCard .alex-strategy-context-grid{grid-template-columns:1fr}
 #alexStrategyScoreCard .alex-strategy-score-note{margin:18px 20px 22px}
}


/* PASS 49 — STRATEGY MASTER FINISH */
[data-alex-structured-page="strategy"]{
  --alex-strategy-navy:#0b304c;
  --alex-strategy-ink:#173b56;
  --alex-strategy-muted:#667d8f;
  --alex-strategy-line:#dce5eb;
  --alex-strategy-gold:#c89518;
  --alex-strategy-gold-soft:#fffaf0;
}
[data-alex-structured-page="strategy"] .alex-strategy-workspace-nav{
  border:1px solid var(--alex-strategy-line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,43,65,.05);
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-copy{
  padding:20px 24px 16px;
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-copy strong{
  color:var(--alex-strategy-navy);
  font-size:22px;
  letter-spacing:-.02em;
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-copy > span:last-child{
  color:var(--alex-strategy-muted);
  font-size:13px;
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-tabs{
  padding:0 14px;
  border-top:1px solid #edf1f4;
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-tabs button{
  min-height:50px;
  padding:0 16px;
  border:0;
  border-bottom:3px solid transparent;
  border-radius:0;
  background:transparent;
  color:#3e5b70;
  box-shadow:none;
  font-weight:750;
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-tabs button:hover{
  background:#fafbfd;
  color:var(--alex-strategy-navy);
}
[data-alex-structured-page="strategy"] .alex-strategy-nav-tabs button.active{
  border-bottom-color:var(--alex-strategy-gold);
  background:linear-gradient(180deg,#fff 0%,#fffbf1 100%);
  color:var(--alex-strategy-navy);
}
[data-alex-structured-page="strategy"] > .card,
[data-alex-structured-page="strategy"] [data-alex-view="strategy"].card{
  border:1px solid var(--alex-strategy-line);
  border-radius:10px;
  box-shadow:0 8px 24px rgba(15,43,65,.045);
}
[data-alex-structured-page="strategy"] label{
  color:#4f687b;
  font-size:11px;
  font-weight:800;
}
[data-alex-structured-page="strategy"] input,
[data-alex-structured-page="strategy"] select,
[data-alex-structured-page="strategy"] textarea{
  min-height:42px;
  border:1px solid #d6e0e7;
  border-radius:7px;
  box-shadow:none;
}
[data-alex-structured-page="strategy"] textarea{min-height:100px}
[data-alex-structured-page="strategy"] button{
  border-radius:7px;
}
[data-alex-structured-page="strategy"] .alex-score-regeneration-card{
  margin-top:18px;
  padding:20px 22px;
  border:1px solid #dce5eb;
  background:#fafcfd;
  box-shadow:none;
}
[data-alex-structured-page="strategy"] .alex-score-regeneration-card h3{
  margin:5px 0 5px;
  font-size:17px;
}
[data-alex-structured-page="strategy"] .alex-score-regeneration-note{
  max-width:820px;
  margin:0 0 16px;
  font-size:12px;
  line-height:1.5;
}
[data-alex-structured-page="strategy"] #riskSummary{
  margin:14px 0 18px;
  padding:12px 14px;
  border:1px solid #e0e7ec;
  border-left:3px solid var(--alex-strategy-gold);
  border-radius:6px;
  background:#f8fafb;
  color:#536c7e;
}
[data-alex-structured-page="strategy"] #riskList > .card{
  border-color:#dce5eb;
  box-shadow:none;
}
@media(max-width:760px){
 [data-alex-structured-page="strategy"] .alex-strategy-nav-tabs{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
 [data-alex-structured-page="strategy"] .alex-strategy-nav-tabs button{padding:0 8px}
}


/* PASS 50 — COMPARABLES MASTER RECOMPOSITION
   Existing comp staging, persistence, verification and analysis behavior preserved. */
#alexVerifiedCompPanel.alex-comparables-card{
  margin-top:0!important;
  padding:0!important;
  overflow:hidden;
  border:1px solid #dce5eb!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,43,65,.05)!important;
  color:#173b56;
}
#alexVerifiedCompPanel .alex-comps-master-head{
  margin:0!important;
  padding:24px 26px 18px;
  border-bottom:1px solid #e3e9ee;
}
#alexVerifiedCompPanel .alex-comps-master-head > div:first-child > div:first-child{
  color:#0b304c;
  font-size:24px!important;
  line-height:1.15;
  letter-spacing:-.02em;
}
#alexVerifiedCompPanel .alex-comps-master-head > div:first-child > div:nth-child(2){
  max-width:780px!important;
  color:#637a8c;
  font-size:13px;
}
#alexVerifiedCompPanel .alex-comps-counter{
  padding:8px 12px!important;
  border:1px solid #d9c17e!important;
  background:#fffaf0;
  color:#76570a;
  font-size:11px;
  letter-spacing:.02em;
}
#alexVerifiedCompPanel .alex-comps-actions{
  margin:0!important;
  padding:16px 26px;
  border-bottom:1px solid #edf1f4;
  background:#fafcfd;
}
#alexVerifiedCompPanel .alex-comps-add-button{
  padding:10px 16px!important;
  border:1px solid #c89518!important;
  border-radius:7px!important;
  background:#c89518!important;
  color:#fff!important;
  font-size:12px;
  font-weight:800!important;
  box-shadow:0 4px 12px rgba(139,99,0,.12);
}
#alexVerifiedCompPanel .alex-comps-clear-button{
  padding:10px 16px!important;
  border:1px solid #d7e0e7!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#294a62!important;
  font-size:12px;
}
#alexVerifiedCompPanel .alex-comps-board{
  padding:20px 26px 4px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
  gap:12px!important;
}
#alexVerifiedCompPanel .alex-comps-board > *{
  border-color:#dce5eb!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
}
#alexVerifiedCompPanel .alex-comps-board label{
  color:#506a7d;
  font-size:10px;
  font-weight:800;
}
#alexVerifiedCompPanel .alex-comps-board input,
#alexVerifiedCompPanel .alex-comps-board select,
#alexVerifiedCompPanel .alex-comps-board textarea{
  border:1px solid #d7e1e8!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#173b56!important;
}
#alexVerifiedCompPanel #alexPreliminaryCompResults,
#alexVerifiedCompPanel .alex-comps-results{
  margin:18px 26px 0!important;
  padding:18px!important;
  border:1px solid #dce5eb!important;
  border-radius:8px!important;
  background:#f8fafb!important;
  color:#173b56!important;
}
#alexVerifiedCompPanel .alex-comps-status{
  margin:18px 26px 0!important;
  padding:11px 13px;
  border:1px solid #e1e7ec;
  border-left:3px solid #c89518;
  border-radius:6px;
  background:#fafcfd;
  color:#536d80;
  font-size:12px;
  font-weight:650!important;
}
#alexVerifiedCompPanel .alex-comps-analyze-secondary,
#alexVerifiedCompPanel .alex-comps-analyze-primary{
  margin-top:14px!important;
  padding:10px 15px!important;
  border-radius:7px!important;
  font-size:12px;
  font-weight:800!important;
}
#alexVerifiedCompPanel .alex-comps-analyze-secondary{
  margin-left:26px;
  border:1px solid #d3dde5!important;
  background:#fff!important;
  color:#294a62!important;
}
#alexVerifiedCompPanel .alex-comps-analyze-primary{
  border:1px solid #c89518!important;
  background:#c89518!important;
  color:#fff!important;
}
#alexVerifiedCompPanel .alex-comps-analyze-secondary:disabled,
#alexVerifiedCompPanel .alex-comps-analyze-primary:disabled{
  opacity:.45;
  cursor:not-allowed!important;
}
#alexVerifiedCompPanel .alex-comps-advanced{
  margin:18px 26px 0!important;
  padding:14px 0 0!important;
  border-top:1px solid #e3e9ee!important;
  color:#526c7f;
  font-size:12px;
}
#alexVerifiedCompPanel .alex-comps-advanced summary{
  color:#294a62;
}
#alexVerifiedCompPanel .alex-comps-results{
  margin-bottom:24px!important;
}
@media(max-width:720px){
  #alexVerifiedCompPanel .alex-comps-master-head,
  #alexVerifiedCompPanel .alex-comps-actions{padding-left:18px;padding-right:18px}
  #alexVerifiedCompPanel .alex-comps-board{padding-left:18px;padding-right:18px;grid-template-columns:1fr!important}
  #alexVerifiedCompPanel .alex-comps-status,
  #alexVerifiedCompPanel #alexPreliminaryCompResults,
  #alexVerifiedCompPanel .alex-comps-results,
  #alexVerifiedCompPanel .alex-comps-advanced{margin-left:18px!important;margin-right:18px!important}
  #alexVerifiedCompPanel .alex-comps-analyze-secondary{margin-left:18px}
}


/* PASS 50A — COMPARABLES EVIDENCE REVIEW FINISH */
#alexCompVerificationReview.alex-comps-verification-review{
  margin:24px 26px 0!important;
  padding:20px 0 0!important;
  border-top:1px solid #e2e8ed!important;
  color:#173b56;
}
#alexCompVerificationReview .alex-comps-verification-head{
  align-items:center!important;
}
#alexCompVerificationReview .alex-comps-verification-head > div:first-child > div:first-child{
  margin-bottom:5px!important;
  color:#0b304c;
  font-size:18px!important;
  line-height:1.2;
  letter-spacing:-.01em;
}
#alexCompVerificationReview .alex-comps-verification-head > div:first-child > div:nth-child(2){
  max-width:800px!important;
  color:#647b8d;
  font-size:12px;
  line-height:1.5!important;
  opacity:1!important;
}
#alexCompVerificationReview .alex-comps-verification-refresh{
  padding:9px 13px!important;
  border:1px solid #d8c382!important;
  border-radius:7px!important;
  background:#fffaf0!important;
  color:#76570a!important;
  font-size:11px;
  font-weight:800!important;
  box-shadow:none!important;
}
#alexCompVerificationReview .alex-comps-verification-status{
  margin-top:14px!important;
  padding:11px 13px;
  border:1px solid #e0e7ec;
  border-radius:6px;
  background:#f8fafb;
  color:#536d80;
  font-size:12px;
  font-weight:650!important;
}
#alexCompVerificationReview .alex-comps-verification-cards{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
  gap:12px!important;
  margin-top:12px!important;
}
#alexCompVerificationReview .alex-comps-verification-cards > *{
  border-color:#dce5eb!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
}

/* Normalize legacy comparable/ARV cards that share the Comparables route,
   without changing their controls, calculations, or governance behavior. */
[data-alex-structured-page="comparables"] .card,
[data-alex-workspace-page="comparables"] .card{
  border-color:#dce5eb!important;
  border-radius:10px!important;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,43,65,.045);
}
[data-alex-structured-page="comparables"] .card h2,
[data-alex-structured-page="comparables"] .card h3,
[data-alex-workspace-page="comparables"] .card h2,
[data-alex-workspace-page="comparables"] .card h3{
  color:#0b304c;
}
[data-alex-structured-page="comparables"] button,
[data-alex-workspace-page="comparables"] button{
  border-radius:7px;
}
[data-alex-structured-page="comparables"] input[type="checkbox"],
[data-alex-workspace-page="comparables"] input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:#c89518;
}
@media(max-width:720px){
 #alexCompVerificationReview.alex-comps-verification-review{
   margin-left:18px!important;margin-right:18px!important;
 }
 #alexCompVerificationReview .alex-comps-verification-cards{grid-template-columns:1fr!important}
}


/* PASS 50B — COMPARABLES MASTER FINISH
   Final visual hierarchy: build evidence -> verify evidence -> rank / ARV.
   No calculation, persistence, or approval behavior is changed. */
[data-alex-structured-page="comparables"]{
  --comp-navy:#0b304c;
  --comp-ink:#173b56;
  --comp-muted:#637a8c;
  --comp-line:#dce5eb;
  --comp-gold:#c89518;
  --comp-gold-soft:#fffaf0;
}
#alexVerifiedCompPanel{
  counter-reset:alex-comp-stage;
}
#alexVerifiedCompPanel .alex-comps-master-head,
#alexCompVerificationReview .alex-comps-verification-head{
  position:relative;
}
#alexVerifiedCompPanel .alex-comps-master-head:before,
#alexCompVerificationReview .alex-comps-verification-head:before{
  counter-increment:alex-comp-stage;
  content:"0" counter(alex-comp-stage);
  display:inline-grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;height:28px;
  border:1px solid #d8c382;
  border-radius:999px;
  background:var(--comp-gold-soft);
  color:#76570a;
  font-size:11px;
  font-weight:900;
}
#alexVerifiedCompPanel .alex-comps-master-head{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:start!important;
}
#alexVerifiedCompPanel .alex-comps-counter{
  grid-column:3;
}
#alexCompVerificationReview .alex-comps-verification-head{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:start!important;
}
#alexCompVerificationReview .alex-comps-verification-refresh{
  grid-column:3;
}

/* The remaining routed Comparables decision-support card is visually treated
   as stage 03 without changing its existing controls or button semantics. */
[data-alex-structured-page="comparables"] > .card:not(#alexVerifiedCompPanel),
[data-alex-workspace-page="comparables"] > .card:not(#alexVerifiedCompPanel){
  position:relative;
  margin-top:18px!important;
  padding:22px 24px!important;
  border:1px solid var(--comp-line)!important;
  border-top:2px solid #d8c382!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,43,65,.045)!important;
}
[data-alex-structured-page="comparables"] > .card:not(#alexVerifiedCompPanel) h2,
[data-alex-structured-page="comparables"] > .card:not(#alexVerifiedCompPanel) h3,
[data-alex-workspace-page="comparables"] > .card:not(#alexVerifiedCompPanel) h2,
[data-alex-workspace-page="comparables"] > .card:not(#alexVerifiedCompPanel) h3{
  margin-top:0!important;
  margin-bottom:7px!important;
  color:var(--comp-navy)!important;
  font-size:19px!important;
  letter-spacing:-.01em;
}
[data-alex-structured-page="comparables"] > .card:not(#alexVerifiedCompPanel) p,
[data-alex-workspace-page="comparables"] > .card:not(#alexVerifiedCompPanel) p{
  max-width:820px;
  color:var(--comp-muted);
  font-size:12px;
  line-height:1.55;
}
[data-alex-structured-page="comparables"] > .card:not(#alexVerifiedCompPanel) button,
[data-alex-workspace-page="comparables"] > .card:not(#alexVerifiedCompPanel) button{
  min-height:40px;
  padding:0 15px;
  border:1px solid #d5dfe6;
  border-radius:7px;
  background:#fff;
  color:#173b56;
  font-weight:800;
  box-shadow:none;
}
[data-alex-structured-page="comparables"] > .card:not(#alexVerifiedCompPanel) button:hover,
[data-alex-workspace-page="comparables"] > .card:not(#alexVerifiedCompPanel) button:hover{
  border-color:#c89518;
}
[data-alex-structured-page="comparables"] input[type="checkbox"],
[data-alex-workspace-page="comparables"] input[type="checkbox"]{
  width:18px!important;height:18px!important;
  accent-color:var(--comp-gold);
}
[data-alex-structured-page="comparables"] pre,
[data-alex-workspace-page="comparables"] pre{
  border:1px solid #e0e7ec;
  border-radius:7px;
  background:#f8fafb;
  color:#415d72;
}
@media(max-width:720px){
 #alexVerifiedCompPanel .alex-comps-master-head,
 #alexCompVerificationReview .alex-comps-verification-head{
   grid-template-columns:28px minmax(0,1fr);
 }
 #alexVerifiedCompPanel .alex-comps-counter,
 #alexCompVerificationReview .alex-comps-verification-refresh{
   grid-column:2;
   justify-self:start;
 }
}


/* PASS 51 — MAP VIEW / GEOGRAPHIC INTELLIGENCE */
[data-alex-structured-page="map"]{
  --map-navy:#0b304c;
  --map-ink:#173b56;
  --map-muted:#637a8c;
  --map-line:#dce5eb;
  --map-gold:#c89518;
  --map-gold-soft:#fffaf0;
}
#alexMapViewPanel.alex-map-intelligence{
  margin:28px 18px!important;
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--map-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,43,65,.05)!important;
  color:var(--map-ink);
}
#alexMapViewPanel .alex-map-head{
  margin:0!important;
  padding:24px 26px 20px;
  border-bottom:1px solid #e3e9ee;
}
#alexMapViewPanel .alex-map-kicker{
  margin-bottom:6px;
  color:#9a6d00;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
}
#alexMapViewPanel .alex-map-head > div:nth-child(2){
  color:var(--map-navy);
  font-size:24px!important;
  line-height:1.15;
  letter-spacing:-.02em;
}
#alexMapViewPanel .alex-map-head > div:nth-child(3){
  max-width:820px!important;
  color:var(--map-muted);
  font-size:13px;
}
#alexMapViewContent{
  padding:22px 26px 26px;
}
#alexMapViewContent .alex-map-subject{
  position:relative;
  margin-bottom:22px!important;
  padding:20px 22px!important;
  border:1px solid var(--map-line)!important;
  border-left:3px solid var(--map-gold)!important;
  border-radius:8px!important;
  background:#fafcfd!important;
}
#alexMapViewContent .alex-map-subject > div:first-child{
  color:#8a670f;
  font-size:10px!important;
  font-weight:900;
  letter-spacing:.11em;
  opacity:1!important;
}
#alexMapViewContent .alex-map-subject > div:nth-child(2){
  color:var(--map-navy);
  font-size:19px!important;
}
#alexMapViewContent .alex-map-subject > div:nth-child(3){
  color:#4f697c;
  font-size:12px!important;
}
#alexMapViewContent .alex-map-section-title{
  padding-top:2px;
  color:var(--map-navy);
  font-size:16px!important;
}
#alexMapViewContent .alex-map-comp-grid{
  gap:12px!important;
}
#alexMapViewContent .alex-map-comp-grid > article{
  border:1px solid var(--map-line)!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:var(--map-ink);
}
#alexMapViewContent .alex-map-comp-grid > div{
  padding:28px 22px!important;
  border:1px dashed #cfdbe3!important;
  border-radius:8px!important;
  background:#fafcfd;
  color:#5d7486;
  text-align:center;
}
@media(max-width:720px){
 #alexMapViewPanel.alex-map-intelligence{margin:18px 10px!important}
 #alexMapViewPanel .alex-map-head,#alexMapViewContent{padding-left:18px;padding-right:18px}
 .alex-map-comp-grid{grid-template-columns:1fr!important}
}


/* PASS 51A — MAP VIEW SELECTED-DEAL IDENTITY SYNC */
#alexMapViewContent .alex-map-deal-identity{
  display:inline-flex;
  margin:-2px 0 10px;
  padding:5px 9px;
  border:1px solid #e4d7ae;
  border-radius:999px;
  background:#fffaf0;
  color:#75570b;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}


/* PASS 52A — DATA & SOURCES SELECTED-DEAL SYNC
   Read-only workspace activation; verification remains operator initiated. */


/* =========================================================
   PASS 52C — DATA & SOURCES VISUAL FINISH
   Compact evidence register; data and verification behavior unchanged.
   ========================================================= */
#importedPropertyWorkspaceCard.alex-data-sources-card{
  max-width:1440px!important;margin:0 auto!important;padding:22px 24px 28px!important;
  background:#fff!important;border:1px solid #dfe6ec!important;border-radius:10px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  padding:0 0 18px!important;border-bottom:1px solid #e7ecf1!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-header h2{
  margin:0 0 7px!important;color:#15314d!important;font-size:22px!important;line-height:1.15!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-header p{max-width:820px;margin:0!important;font-size:13px!important;line-height:1.55!important}
#importedPropertyWorkspaceCard .imported-intelligence-status{
  margin:16px 0!important;padding:10px 13px!important;font-size:12px!important;font-weight:700!important;
  color:#765816!important;background:#fffaf0!important;border:1px solid #ead8a4!important;border-left:3px solid #c89517!important;border-radius:6px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;margin:0 0 18px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary-card{
  min-height:76px!important;padding:12px 13px!important;background:#f8fafc!important;border:1px solid #e1e7ed!important;
  border-radius:7px!important;box-shadow:none!important;color:#18314c!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary-label{
  margin-bottom:8px!important;color:#728196!important;font-size:9px!important;font-weight:800!important;letter-spacing:.1em!important;text-transform:uppercase!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary-value{
  color:#172f49!important;font-size:16px!important;font-weight:780!important;line-height:1.2!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-categories{display:grid!important;gap:9px!important}
#importedPropertyWorkspaceCard .alex-evidence-group{
  margin:0!important;padding:0!important;background:#fff!important;border:1px solid #dfe6ec!important;border-radius:7px!important;overflow:hidden!important;
}
#importedPropertyWorkspaceCard .alex-evidence-group summary{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;
  padding:12px 14px!important;cursor:pointer!important;list-style:none!important;color:#203a55!important;background:#fbfcfd!important;
  font-size:13px!important;font-weight:750!important;
}
#importedPropertyWorkspaceCard .alex-evidence-group summary::-webkit-details-marker{display:none!important}
#importedPropertyWorkspaceCard .alex-evidence-group summary:before{content:"›";font-size:19px;line-height:1;color:#8b6a1e;transition:transform .12s ease}
#importedPropertyWorkspaceCard .alex-evidence-group[open] summary:before{transform:rotate(90deg)}
#importedPropertyWorkspaceCard .alex-evidence-group summary span:first-of-type{margin-right:auto}
#importedPropertyWorkspaceCard .alex-evidence-count{
  padding:3px 8px!important;border:1px solid #d9e1e8!important;border-radius:999px!important;background:#fff!important;
  color:#718095!important;font-size:10px!important;font-weight:750!important;white-space:nowrap!important;
}
#importedPropertyWorkspaceCard .alex-evidence-group[open] summary{background:#fff!important;border-bottom:1px solid #e7ecf1!important}
#importedPropertyWorkspaceCard .imported-intelligence-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;background:#fff!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-grid > *{
  min-height:92px!important;padding:12px 13px!important;background:#f9fbfc!important;border:1px solid #e2e8ee!important;
  border-radius:6px!important;box-shadow:none!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-grid [style*="text-transform:uppercase"],
#importedPropertyWorkspaceCard .imported-intelligence-grid > * > div:first-child{
  color:#718095!important;font-size:9px!important;letter-spacing:.08em!important;font-weight:800!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-grid [style*="font-size:18px"],
#importedPropertyWorkspaceCard .imported-intelligence-grid [style*="font-size:20px"]{color:#17314c!important;font-size:15px!important}
#officialPublicRecordPanel,#nationwidePropertyPanel{
  margin:16px 0 0!important;padding:16px 18px!important;background:#fff!important;border:1px solid #dfe6ec!important;border-radius:7px!important;box-shadow:none!important;
}
#officialPublicRecordPanel{border-left:3px solid #c89517!important}
#nationwidePropertyPanel{border-left:3px solid #aab5c0!important}
#importedPropertyWorkspaceCard .imported-intelligence-history{margin-top:10px!important}
@media(max-width:1100px){
  #importedPropertyWorkspaceCard .imported-intelligence-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #importedPropertyWorkspaceCard .imported-intelligence-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  #importedPropertyWorkspaceCard.alex-data-sources-card{padding:16px!important}
  #importedPropertyWorkspaceCard .imported-intelligence-header{flex-direction:column}
  #importedPropertyWorkspaceCard .imported-intelligence-summary,
  #importedPropertyWorkspaceCard .imported-intelligence-grid{grid-template-columns:1fr!important}
}


/* =========================================================
   PASS 52D — DATA & SOURCES FINAL REFINEMENT
   Presentation-only evidence hierarchy; source data unchanged.
   ========================================================= */
#importedPropertyWorkspaceCard.alex-data-sources-card{
  padding:20px 22px 24px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-header{
  padding-bottom:14px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-header h2{
  font-size:21px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-status{
  margin:13px 0!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:8px!important;margin-bottom:14px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary-card{
  min-height:68px!important;padding:10px 12px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary-label{
  margin-bottom:6px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-summary-value{
  font-size:15px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-categories{
  gap:6px!important;
}
#importedPropertyWorkspaceCard .alex-evidence-group summary{
  min-height:42px!important;padding:9px 12px!important;
}
#importedPropertyWorkspaceCard .alex-evidence-count{
  padding:2px 7px!important;font-size:9px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;padding:8px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-grid > *{
  min-height:76px!important;padding:10px 11px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-value{
  font-size:14px!important;line-height:1.3!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-meta{
  margin-top:8px!important;font-size:9px!important;line-height:1.25!important;
  color:#7b8795!important;text-transform:uppercase!important;letter-spacing:.035em!important;
}
#officialPublicRecordPanel,#nationwidePropertyPanel{
  margin-top:12px!important;margin-bottom:0!important;padding:14px 16px!important;
}
#officialPublicRecordPanel h3,#nationwidePropertyPanel h3{
  margin:4px 0!important;font-size:17px!important;color:#18314c!important;
}
#officialPublicRecordAuthority,#nationwidePropertyAuthority{
  max-width:880px!important;font-size:12px!important;line-height:1.45!important;color:#748296!important;
}
#officialPublicRecordBody,#nationwidePropertyBody{
  margin-top:11px!important;font-size:12px!important;
}
#officialPublicRecordBadge,#nationwidePropertyBadge{
  padding:4px 8px!important;font-size:10px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-history{
  gap:10px!important;margin-top:12px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-history-panel{
  padding:14px!important;border:1px solid #dfe6ec!important;border-radius:7px!important;
  background:#fff!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-history-panel h3{
  margin:0 0 9px!important;font-size:15px!important;color:#203a55!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-table{
  width:100%!important;border-collapse:collapse!important;font-size:11px!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-table th{
  padding:7px 8px!important;background:#f7f9fb!important;color:#718095!important;
  font-size:9px!important;text-transform:uppercase!important;letter-spacing:.06em!important;text-align:left!important;
}
#importedPropertyWorkspaceCard .imported-intelligence-table td{
  padding:8px!important;border-top:1px solid #e7ecf1!important;color:#29435e!important;
}
@media(max-width:1100px){
  #importedPropertyWorkspaceCard .imported-intelligence-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #importedPropertyWorkspaceCard .imported-intelligence-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  #importedPropertyWorkspaceCard .imported-intelligence-summary,
  #importedPropertyWorkspaceCard .imported-intelligence-grid{grid-template-columns:1fr!important}
}


/* =========================================================
   PASS 53 — MAP VIEW GEOGRAPHIC INTELLIGENCE UPGRADE
   Uses retained coordinate evidence; no external map provider.
   ========================================================= */
#alexMapViewPanel.alex-map-intelligence{
  max-width:1440px!important;margin:0 auto 30px!important;padding:22px 24px 26px!important;
  color:#263b52!important;background:#fff!important;border:1px solid #dfe6ec!important;
  border-radius:10px!important;box-shadow:none!important;
}
#alexMapViewPanel .alex-map-head{
  margin-bottom:16px!important;padding-bottom:15px!important;border-bottom:1px solid #e7ecf1!important;
}
#alexMapViewPanel .alex-map-kicker{
  margin-bottom:5px;color:#9a7319!important;font-size:9px!important;font-weight:850!important;letter-spacing:.14em!important;
}
#alexMapViewPanel .alex-map-head > div:nth-child(2){
  color:#17314c!important;font-size:21px!important;
}
#alexMapViewPanel .alex-map-head > div:nth-child(3){
  color:#718095!important;font-size:12px!important;
}
#alexMapViewPanel .alex-map-subject{
  margin-bottom:16px!important;padding:17px 18px!important;background:#fbfcfd!important;
  border:1px solid #dfe6ec!important;border-left:3px solid #c89517!important;border-radius:7px!important;
}
#alexMapViewPanel .alex-map-subject > div:first-child{
  color:#8b6a1e!important;opacity:1!important;font-size:9px!important;font-weight:850!important;letter-spacing:.12em!important;
}
#alexMapViewPanel .alex-map-subject > div:nth-child(2){
  color:#17314c!important;font-size:18px!important;
}
#alexMapViewPanel .alex-map-deal-identity{
  display:inline-flex!important;margin:0 0 12px!important;padding:4px 8px!important;color:#53677d!important;
  background:#fff!important;border:1px solid #dce4eb!important;border-radius:999px!important;font-size:10px!important;font-weight:700!important;
}
#alexMapViewPanel .alex-map-subject-metrics{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:2px;
}
#alexMapViewPanel .alex-map-metric{
  min-height:68px;padding:10px 11px;background:#fff;border:1px solid #e0e7ed;border-radius:6px;
}
#alexMapViewPanel .alex-map-metric span{
  display:block;margin-bottom:6px;color:#7a8899;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
#alexMapViewPanel .alex-map-metric strong{
  display:block;color:#203a55;font-size:12px;line-height:1.35;overflow-wrap:anywhere;
}
#alexMapViewPanel .alex-map-evidence-note{
  margin-top:9px;padding:9px 11px;color:#68788b;background:#fffaf0;border:1px solid #ead9a8;border-radius:6px;font-size:11px;line-height:1.45;
}
#alexMapViewPanel .alex-map-section-title{
  color:#203a55!important;font-size:15px!important;
}
#alexMapViewPanel .alex-map-comp-grid > article,
#alexMapViewPanel .alex-map-comp-grid > div{
  color:#30465d!important;background:#fbfcfd!important;border:1px solid #dfe6ec!important;border-radius:7px!important;
}
#alexMapViewPanel .alex-map-comp-grid > div{
  padding:16px!important;color:#68788b!important;border-style:dashed!important;
}
@media(max-width:950px){
  #alexMapViewPanel .alex-map-subject-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  #alexMapViewPanel.alex-map-intelligence{padding:16px!important}
  #alexMapViewPanel .alex-map-subject-metrics{grid-template-columns:1fr}
}


/* =========================================================
   PASS 54 — OPERATIONS MASTER FINISH
   Real controls only; no invented telemetry or services.
   ========================================================= */
#approvalQueueCard.alex-operations-summary,
#releaseCandidateControlsCard.alex-operations-summary,
#approvalWorkflowCard.alex-operations-card{
  max-width:1440px!important;margin:0 auto 12px!important;padding:18px 20px!important;
  background:#fff!important;border:1px solid #dfe6ec!important;border-radius:9px!important;box-shadow:none!important;
}
#approvalQueueCard h2,
#releaseCandidateControlsCard h2,
#approvalWorkflowCard > h2{
  margin:0 0 8px!important;color:#193650!important;font-size:17px!important;line-height:1.25!important;
}
#approvalQueueCard #approvals{
  min-height:0!important;padding:7px 0 2px!important;color:#6c7d90!important;font-size:12px!important;
}
#approvalQueueCard #approvals p{margin:0!important}
#releaseCandidateControlsCard{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;
}
#releaseCandidateControlsCard h2{
  width:100%!important;margin-bottom:4px!important;
}
#releaseCandidateControlsCard button{
  min-height:36px!important;margin:0!important;padding:8px 13px!important;border-radius:6px!important;
  font-size:11px!important;font-weight:800!important;
}
#releaseCandidateControlsCard #rcResult{
  width:100%!important;min-height:0!important;margin:5px 0 0!important;padding:0!important;
  color:#68798b!important;background:transparent!important;border:0!important;font-size:10px!important;line-height:1.45!important;
}
#releaseCandidateControlsCard #rcResult:empty{display:none!important}
#approvalWorkflowCard > p.muted{
  max-width:900px!important;margin:0 0 13px!important;color:#758497!important;font-size:11px!important;line-height:1.45!important;
}
#approvalWorkflowCard > .two{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;
}
#approvalWorkflowCard > .two > .card{
  margin:0!important;padding:15px 16px!important;background:#fbfcfd!important;border:1px solid #e0e7ed!important;border-radius:7px!important;
}
#approvalWorkflowCard h3{
  margin:0 0 12px!important;color:#29445e!important;font-size:14px!important;
}
#approvalWorkflowCard label{
  margin:8px 0 4px!important;color:#617388!important;font-size:9px!important;font-weight:800!important;
  letter-spacing:.06em!important;text-transform:uppercase!important;
}
#approvalWorkflowCard select,
#approvalWorkflowCard textarea{
  margin:0 0 7px!important;border:1px solid #d8e1e8!important;border-radius:6px!important;background:#fff!important;font-size:11px!important;
}
#approvalWorkflowCard textarea{min-height:76px!important;resize:vertical!important}
#approvalWorkflowCard button{
  min-height:35px!important;margin:4px 5px 4px 0!important;padding:8px 12px!important;border-radius:6px!important;font-size:10px!important;font-weight:800!important;
}
#approvalWorkflowCard #offerApprovalResult{
  max-height:120px!important;overflow:auto!important;margin:9px 0 0!important;padding:9px 10px!important;
  background:#f6f8fa!important;border:1px solid #e1e7ec!important;border-radius:6px!important;font-size:9px!important;line-height:1.45!important;
}
#approvalWorkflowCard #workflowGateList{
  margin-top:9px!important;padding:10px!important;background:#fff!important;border:1px solid #e1e7ec!important;border-radius:6px!important;
  color:#617388!important;font-size:10px!important;line-height:1.45!important;
}
#approvalWorkflowCard #workflowGateList p{margin:0!important}
@media(max-width:900px){
  #approvalWorkflowCard > .two{grid-template-columns:1fr!important}
}


/* =========================================================
   PASS 54A — OPERATIONS COMPACT WORKFLOW FINISH
   Presentation-only refinement. No workflow actions/data changes.
   ========================================================= */

/* Keep the Operations control surface compact and readable. */
#approvalWorkflowCard{
  overflow:visible!important;
}
#approvalWorkflowCard > .two{
  align-items:start!important;
}
#approvalWorkflowCard > .two > .card{
  min-width:0!important;
}

/* Offer details remain available but read as supporting audit context. */
#approvalWorkflowCard #offerApprovalResult{
  max-height:92px!important;
  overflow:auto!important;
  padding:8px 10px!important;
  color:#65768a!important;
  background:#f8fafb!important;
  border-color:#e3e9ee!important;
  font-size:9px!important;
  line-height:1.4!important;
}

/* Workflow gate stack becomes a compact operational progression. */
#approvalWorkflowCard #workflowGateList{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  max-height:430px!important;
  overflow:auto!important;
  padding:9px!important;
  background:#f7f9fb!important;
  border:1px solid #e0e7ed!important;
  border-radius:7px!important;
}
#approvalWorkflowCard #workflowGateList > *{
  min-width:0!important;
  margin:0!important;
}
#approvalWorkflowCard #workflowGateList .card,
#approvalWorkflowCard #workflowGateList > div{
  padding:11px!important;
  background:#fff!important;
  border:1px solid #dfe6ec!important;
  border-radius:7px!important;
  box-shadow:none!important;
}
#approvalWorkflowCard #workflowGateList h3,
#approvalWorkflowCard #workflowGateList h4,
#approvalWorkflowCard #workflowGateList strong{
  font-size:10px!important;
  line-height:1.3!important;
}
#approvalWorkflowCard #workflowGateList p{
  margin:4px 0!important;
  font-size:9px!important;
  line-height:1.4!important;
}
#approvalWorkflowCard #workflowGateList button{
  min-height:29px!important;
  margin:5px 3px 0 0!important;
  padding:6px 8px!important;
  font-size:8px!important;
  white-space:normal!important;
}

/* Pilot release controls are secondary operational controls, not a giant form. */
#pilotCalibrationCard,
#pilotCalibrationReleaseCard{
  max-width:1440px!important;
  margin:0 auto 12px!important;
  padding:16px 20px!important;
  background:#fff!important;
  border:1px solid #dfe6ec!important;
  border-radius:9px!important;
  box-shadow:none!important;
}
#pilotCalibrationCard h2,
#pilotCalibrationReleaseCard h2{
  margin:0 0 6px!important;
  color:#29445e!important;
  font-size:16px!important;
}
#pilotCalibrationCard p,
#pilotCalibrationReleaseCard p{
  margin:0 0 10px!important;
  color:#748598!important;
  font-size:10px!important;
  line-height:1.45!important;
}
#pilotCalibrationCard button,
#pilotCalibrationReleaseCard button{
  min-height:34px!important;
  margin:0 5px 4px 0!important;
  padding:8px 12px!important;
  border-radius:6px!important;
  font-size:10px!important;
  font-weight:800!important;
}

/* Generic fallback for the current Pilot Calibration card if it has no dedicated id. */
[data-alex-structured-page="operations"] .alex-operations-card + .card{
  max-width:1440px!important;
  margin:0 auto 12px!important;
}

/* Smaller screens retain a usable progression without hiding controls. */
@media(max-width:1180px){
  #approvalWorkflowCard #workflowGateList{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  #approvalWorkflowCard #workflowGateList{
    grid-template-columns:1fr!important;
    max-height:none!important;
  }
}


/* =========================================================
   PASS 55 — SETTINGS MASTER FINISH
   Supported workspace guidance only; no invented preferences.
   ========================================================= */
#alexSettingsWorkspace{
  max-width:1440px!important;margin:0 auto!important;padding:20px!important;
  background:#fff!important;border:1px solid #dfe6ec!important;border-radius:9px!important;box-shadow:none!important;
}
#alexSettingsWorkspace .alex-settings-heading{
  display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;
  padding:0 0 15px!important;border-bottom:1px solid #e5ebef!important;
}
#alexSettingsWorkspace .alex-settings-heading h2{
  margin:3px 0 5px!important;color:#173650!important;font-size:20px!important;
}
#alexSettingsWorkspace .alex-settings-heading p{
  max-width:760px!important;margin:0!important;color:#75869a!important;font-size:11px!important;line-height:1.5!important;
}
.alex-settings-scope{
  flex:0 0 auto;padding:6px 9px;border:1px solid #e4d39b;border-radius:999px;
  color:#896515;background:#fffaf0;font-size:8px;font-weight:900;letter-spacing:.1em;
}
.alex-settings-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 0;
}
.alex-settings-summary > div{
  min-width:0;padding:10px 11px;background:#f8fafb;border:1px solid #e2e8ed;border-radius:6px;
}
.alex-settings-summary span{
  display:block;margin-bottom:4px;color:#8795a5;font-size:7px;font-weight:900;letter-spacing:.1em;
}
.alex-settings-summary strong{
  display:block;overflow:hidden;color:#29445e;font-size:10px;white-space:nowrap;text-overflow:ellipsis;
}
#alexSettingsWorkspace .alex-settings-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:10px!important;
}
#alexSettingsWorkspace .alex-settings-panel{
  min-height:0!important;padding:15px 16px!important;background:#fbfcfd!important;
  border:1px solid #e0e7ed!important;border-radius:7px!important;box-shadow:none!important;
}
.alex-settings-panel-kicker{
  margin-bottom:5px;color:#9a741b;font-size:7px;font-weight:900;letter-spacing:.1em;
}
#alexSettingsWorkspace .alex-settings-panel h3{
  margin:0 0 6px!important;color:#233f59!important;font-size:14px!important;
}
#alexSettingsWorkspace .alex-settings-panel p{
  min-height:43px!important;margin:0 0 10px!important;color:#718397!important;font-size:10px!important;line-height:1.5!important;
}
#alexSettingsWorkspace .alex-settings-panel button{
  min-height:33px!important;margin:0!important;padding:7px 11px!important;color:#263f58!important;background:#fff!important;
  border:1px solid #d7e0e7!important;border-radius:6px!important;font-size:9px!important;font-weight:800!important;
}
.alex-settings-readonly{
  padding:8px 9px;color:#748497;background:#f5f7f9;border:1px solid #e3e8ed;border-radius:6px;font-size:9px;line-height:1.4;
}
.alex-settings-integrity-note{
  display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;
  background:#fffaf0;border:1px solid #eadba9;border-radius:6px;color:#6e5a24;font-size:9px;line-height:1.4;
}
.alex-settings-integrity-note strong{flex:0 0 auto;color:#765a14;font-size:9px}
@media(max-width:900px){
  .alex-settings-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #alexSettingsWorkspace .alex-settings-grid{grid-template-columns:1fr!important}
}
@media(max-width:600px){
  #alexSettingsWorkspace .alex-settings-heading{display:block!important}
  .alex-settings-scope{display:inline-block;margin-top:10px}
  .alex-settings-summary{grid-template-columns:1fr}
  .alex-settings-integrity-note{display:block}
  .alex-settings-integrity-note strong{display:block;margin-bottom:4px}
}


/* =========================================================
   PASS 56 — HELP & DOCS MASTER FINISH
   In-app operating guidance using supported ALEX workspaces only.
   ========================================================= */
#alexHelpWorkspace{
  max-width:1440px!important;margin:0 auto!important;padding:20px!important;background:#fff!important;
  border:1px solid #dfe6ec!important;border-radius:9px!important;box-shadow:none!important;
}
.alex-help-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-bottom:15px;border-bottom:1px solid #e5ebef}
.alex-help-heading h2{margin:3px 0 5px;color:#173650;font-size:20px}
.alex-help-heading p{max-width:820px;margin:0;color:#74869a;font-size:11px;line-height:1.5}
.alex-help-scope{flex:0 0 auto;padding:6px 9px;border:1px solid #e4d39b;border-radius:999px;color:#896515;background:#fffaf0;font-size:8px;font-weight:900;letter-spacing:.1em}
.alex-help-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:14px 0 10px}
.alex-help-path>div{position:relative;padding:10px 11px;background:#f8fafb;border:1px solid #e1e7ec;border-radius:6px}
.alex-help-path span{display:block;margin-bottom:4px;color:#a47a17;font-size:7px;font-weight:900;letter-spacing:.1em}
.alex-help-path strong{display:block;color:#29445e;font-size:10px}
.alex-help-path small{display:block;margin-top:2px;color:#8291a2;font-size:8px}
.alex-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.alex-help-panel{padding:15px 16px;background:#fbfcfd;border:1px solid #e0e7ed;border-radius:7px}
.alex-help-kicker{margin-bottom:5px;color:#9a741b;font-size:7px;font-weight:900;letter-spacing:.1em}
.alex-help-panel h3{margin:0 0 6px;color:#233f59;font-size:14px}
.alex-help-panel p{min-height:58px;margin:0 0 10px;color:#718397;font-size:10px;line-height:1.5}
.alex-help-actions{display:flex;flex-wrap:wrap;gap:6px}
.alex-help-actions button{min-height:33px!important;margin:0!important;padding:7px 11px!important;background:#fff!important;border:1px solid #d7e0e7!important;border-radius:6px!important;color:#263f58!important;font-size:9px!important;font-weight:800!important}
.alex-help-integrity{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;background:#fffaf0;border:1px solid #eadba9;border-radius:6px;color:#6e5a24;font-size:9px;line-height:1.4}
.alex-help-integrity strong{flex:0 0 auto;color:#765a14}
@media(max-width:950px){.alex-help-path{grid-template-columns:repeat(2,minmax(0,1fr))}.alex-help-grid{grid-template-columns:1fr}}
@media(max-width:600px){.alex-help-heading{display:block}.alex-help-scope{display:inline-block;margin-top:10px}.alex-help-path{grid-template-columns:1fr}.alex-help-integrity{display:block}.alex-help-integrity strong{display:block;margin-bottom:4px}}

/* ============================================================
   DEAL NAV VISIBILITY — keep every governed deal area visible.
   Desktop wraps all deal tabs; narrow screens retain scrolling.
   ============================================================ */
@media (min-width: 901px) {
  .alex-deal-workspace-nav-v4 .alex-deal-tabs {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
  }
}

@media (max-width: 900px) {
  .alex-deal-workspace-nav-v4 .alex-deal-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
  }
}
