:root {
  color-scheme: only light;
  --bg: #fbfcfd;
  --panel: #ffffff;
  --panel-2: #f1f5f3;
  --ink: #18201d;
  --muted: #68716d;
  --line: #cbd8d2;
  --green: #246b4d;
  --green-2: #e5f4ed;
  --blue: #295f98;
  --blue-2: #e7f0fb;
  --red: #a33c35;
  --red-2: #fae9e7;
  --gold: #8a6816;
  --gold-2: #fff5d8;
  --teal: #177478;
  --teal-2: #e4f5f4;
  --app-teal: #06647c;
  --app-teal-dark: #03526a;
  --app-teal-soft: #e7f5f7;
  --violet: #6653a6;
  --violet-2: #f0edfb;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(29, 43, 37, 0.1);
}

html {
  background: var(--bg);
  color-scheme: only light;
  forced-color-adjust: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  forced-color-adjust: none;
}

body.clean-mlo-review .sidebar-note,
body.clean-mlo-review .build-badge,
body.clean-mlo-review .dashboard-disclosure,
body.clean-mlo-review .gate-one-strip,
body.clean-mlo-review #reviewer-access-status,
body.clean-mlo-review #beta-demo-path,
body.clean-mlo-review #beta-readiness-gate,
body.clean-mlo-review #command-center-workflow,
body.clean-mlo-review .stage-panel,
body.clean-mlo-review #section-menu {
  display: none !important;
}

button,
input,
select,
textarea {
  color-scheme: only light;
  font: inherit;
}

input,
select,
textarea {
  background-color: white !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  -webkit-text-fill-color: var(--ink) !important;
}

@media (prefers-color-scheme: dark) {
  :root,
  html,
  body {
    color-scheme: only light;
    background: var(--bg) !important;
    color: var(--ink) !important;
    forced-color-adjust: none;
  }

  .app-shell,
  .main {
    background: var(--bg) !important;
    color: var(--ink) !important;
  }

  .panel,
  .metric-card,
  .alert-card,
  .profile-card,
  .validation-card,
  .client-table tr,
  .profile-client-button,
  .action-center,
  .client-summary,
  .converter-panel,
  .input-with-unit {
    background-color: var(--panel) !important;
    color: var(--ink) !important;
  }

  .stage-count,
  .subtle-badge,
  .input-with-unit span,
  .unit-chip,
  .summary-card,
  .assumption-grid > div,
  .doc-row-detailed,
  .missing-edit-row,
  .followup-edit-row,
  .activity-row,
  .requirement-card,
  .loan-option {
    background-color: var(--panel-2) !important;
    color: var(--ink) !important;
  }

  input,
  select,
  textarea,
  .secondary-button,
  .danger-button,
  .mini-button {
    background-color: white !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
    -webkit-text-fill-color: var(--ink) !important;
  }

  .nav-button {
    background-color: transparent !important;
    color: #2d3934 !important;
    border-color: transparent !important;
    -webkit-text-fill-color: #2d3934 !important;
  }

  .primary-button {
    background-color: var(--green) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
  }

  .badge.green,
  .nav-button.active,
  .metric-card.ready {
    background-color: var(--green-2) !important;
    color: var(--green) !important;
  }

  .badge.blue,
  .metric-card.crm {
    background-color: var(--blue-2) !important;
    color: var(--blue) !important;
  }

  .badge.red,
  .metric-card.hot {
    background-color: var(--red-2) !important;
    color: var(--red) !important;
  }

  .badge.gold,
  .metric-card.missing {
    background-color: var(--gold-2) !important;
    color: var(--gold) !important;
  }
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.input-with-unit input {
  border: 0;
  border-radius: 0;
}

.input-with-unit span,
.unit-chip {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--muted);
  background: var(--panel-2);
  border-left: 1px solid var(--line);
  font-weight: 800;
}

.unit-chip {
  width: 34px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: 0;
}

.unit-chip:hover,
.unit-chip.active {
  color: white;
  background: var(--green);
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--ink);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 8px;
  font-weight: 800;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.panel p {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
}

.brand p,
.sidebar-note span {
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-tree {
  gap: 14px;
}

.nav-group {
  display: grid;
  gap: 7px;
}

.nav-submenu {
  display: none;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}

.nav-group.open .nav-submenu {
  display: grid;
}

.nav-group > .nav-button-primary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--muted);
}

.nav-group > .nav-button-primary {
  position: relative;
  padding-right: 32px;
}

.nav-group.open > .nav-button-primary::after {
  content: "-";
}

body.clean-mlo-review .nav-group > .nav-button-primary::after {
  content: "+";
}

body.clean-mlo-review .nav-group.open > .nav-button-primary::after {
  content: "-";
}

.nav-submenu button {
  border: 0;
  background: transparent;
  color: #5c6d65;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
}

.nav-submenu button:hover,
.nav-submenu button:focus-visible,
.nav-submenu button.active {
  background: #f2f7f4;
  color: var(--green);
}

.nav-secondary {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.nav-secondary > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-work-tabs {
  display: none;
}

.mobile-next-action-bar {
  display: none;
}

.nav-button {
  border: 1px solid transparent;
  color: #2d3934;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 750;
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 48px;
}

.nav-button span {
  display: block;
  line-height: 1.15;
}

.nav-button small {
  display: block;
  color: #74847f;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.nav-button.active small,
.nav-button:hover small {
  color: #416154;
}

.nav-button:hover,
.nav-button.active {
  background: var(--green-2);
  border-color: #b7d6c6;
}

.nav-button.active {
  outline: 0;
  color: var(--green);
  font-weight: 800;
}

.nav-button-action {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.nav-button-action:hover,
.nav-button-action.active {
  background: #0f6d49;
  border-color: #0f6d49;
  color: white;
}

.nav-button-action small,
.nav-button-action:hover small,
.nav-button-action.active small {
  color: rgba(255, 255, 255, 0.82);
}

.sidebar-note {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.main {
  min-width: 0;
  padding: 22px 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(29, 43, 37, 0.06);
}

.section-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(29, 43, 37, 0.08);
  overflow-x: auto;
}

.section-menu[hidden] {
  display: none;
}

.section-menu span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-menu button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f2f6f6;
  color: #32413d;
  font-size: 13px;
  font-weight: 800;
}

.section-menu button.active,
.section-menu button:hover {
  border-color: #b6d6d2;
  background: var(--app-teal-soft);
  color: var(--app-teal-dark);
}

.work-area-context {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.work-area-context[hidden] {
  display: none;
}

.work-area-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.work-area-breadcrumb span::after {
  content: "/";
  margin-left: 8px;
  color: #91aaa2;
}

.work-area-breadcrumb strong {
  color: var(--green);
}

.work-area-title h3,
.work-area-title p {
  margin: 0;
}

.work-area-title h3 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}

.work-area-title p:not(.eyebrow) {
  margin-top: 6px;
  color: #50635d;
  line-height: 1.45;
}

.active-client-switcher {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #d9e4e0;
  border-radius: 8px;
  background: #ffffff;
}

.active-client-switcher[hidden],
.active-file-context[hidden] {
  display: none;
}

.active-client-switcher-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 12px;
  align-items: end;
}

.active-client-switcher-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.active-client-switcher-head label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.active-client-switcher-head input {
  width: 100%;
  border: 1px solid #cfdcd7;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
}

.active-client-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.client-switch-button {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d6e1dd;
  border-radius: 8px;
  padding: 10px;
  background: #f9fbfa;
  text-align: left;
}

.client-switch-button strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.client-switch-button span,
.client-switch-button small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.client-switch-button.active {
  border-color: #80b89b;
  background: #eff8f3;
  box-shadow: inset 4px 0 0 var(--green);
}

.active-file-context {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 0 14px;
}

.work-area-file-card {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #d7e7e2;
  border-radius: 8px;
  background: #ffffff;
}

.work-area-file-card span,
.work-area-file-card small,
.work-area-meta {
  color: var(--muted);
  font-size: 12px;
}

.work-area-file-card strong {
  color: var(--ink);
  font-size: 16px;
}

.work-area-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-area-meta span {
  padding: 6px 9px;
  border: 1px solid #dbe9e5;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
}

@media (max-width: 900px) {
  .active-client-switcher-head {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  color: var(--green);
  font-weight: 750;
  font-size: 12px;
  text-transform: uppercase;
}

.topbar h2 {
  font-size: 28px;
}

.build-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid #b7d6c6;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-2);
  font-size: 12px;
  font-weight: 850;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-toggle {
  min-width: 92px;
}

input,
select {
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

#search-input {
  width: min(360px, 35vw);
}

body.intake-context #search-input {
  display: none;
}

body.client-portal-context #search-input,
body.client-portal-context [data-view-jump="intake"],
body.client-portal-context .sidebar-note,
body.client-portal-context .summary-client-picker,
body.client-portal-context .client-session-tools {
  display: none;
}

body.client-portal-context .nav-button:not(.client-portal-nav) {
  display: none;
}

body.client-portal-context .client-portal-nav {
  pointer-events: none;
}

body.forced-mobile-preview {
  background: #dbe5e7;
  display: block;
  justify-items: stretch;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

body.forced-mobile-preview .app-shell {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow: visible;
  background: #eef2f3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.forced-mobile-preview .sidebar,
body.forced-mobile-preview .topbar,
body.forced-mobile-preview .mobile-next-action-bar {
  display: none;
}

body.forced-mobile-preview .main {
  width: 100%;
  max-width: 100%;
  padding: 12px 12px 98px;
  overflow-x: hidden;
  background: #eef2f3;
}

body.forced-mobile-preview .mobile-work-tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  transform: none;
  gap: 0;
  margin: 0;
  padding: 7px max(8px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  border: 1px solid #d6e2dd;
  border-width: 1px 0 0;
  border-radius: 18px 18px 0 0;
  background: rgba(248, 250, 251, 0.98);
  box-shadow: 0 -10px 24px rgba(18, 28, 24, 0.12);
  backdrop-filter: blur(10px);
}

body.forced-mobile-preview .mobile-work-tabs button {
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #4c5659;
  font-size: 11px;
  font-weight: 850;
}

body.forced-mobile-preview .mobile-work-tabs button.active {
  color: var(--app-teal);
}

body.forced-mobile-preview .work-area-context {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #ffffff;
}

body.forced-mobile-preview .work-area-breadcrumb {
  overflow-wrap: anywhere;
  font-size: 11px;
}

body.forced-mobile-preview .work-area-title h3 {
  font-size: 23px;
}

body.forced-mobile-preview .work-area-title p:not(.eyebrow) {
  font-size: 14px;
}

body.forced-mobile-preview .active-client-switcher {
  margin-bottom: 8px;
  padding: 10px;
}

body.forced-mobile-preview .active-client-switcher-head,
body.forced-mobile-preview .active-client-results {
  grid-template-columns: 1fr;
}

body.forced-mobile-preview .active-file-context {
  position: sticky;
  top: 8px;
  z-index: 35;
  margin-bottom: 10px;
}

body.forced-mobile-preview .profile-client-identity {
  border: 1px solid #bcd9d2;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(20, 62, 44, 0.12);
}

body.forced-mobile-preview .profile-area,
body.forced-mobile-preview .panel,
body.forced-mobile-preview .mlo-command-hero,
body.forced-mobile-preview .mobile-active-file-overview,
body.forced-mobile-preview .mobile-numbers-overview,
body.forced-mobile-preview .mobile-docs-overview,
body.forced-mobile-preview .mobile-property-hub-overview,
body.forced-mobile-preview .mobile-task-overview,
body.forced-mobile-preview .mobile-client-task-overview {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.forced-mobile-preview .profile-area {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #ffffff;
}

body.forced-mobile-preview .profile-area-heading {
  margin: -2px 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e0ebe7;
}

body.forced-mobile-preview .profile-area-heading span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body.forced-mobile-preview .profile-area-heading h3 {
  margin: 2px 0 4px;
  font-size: 22px;
}

body.forced-mobile-preview .profile-area-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

body.forced-mobile-preview .client-portal-layout {
  gap: 0;
}

body.forced-mobile-preview .client-portal-layout > .panel {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

body.forced-mobile-preview .panel-heading {
  display: block;
}

body.forced-mobile-preview .panel-heading p {
  white-space: normal;
}

body.forced-mobile-preview .client-portal-hero {
  background: var(--app-teal);
  color: white;
  border: 0;
}

body.forced-mobile-preview .client-portal-hero .panel-heading p,
body.forced-mobile-preview .client-portal-hero .guardrail-note,
body.forced-mobile-preview .client-portal-hero .subtle-badge {
  color: rgba(255, 255, 255, 0.82);
}

body.forced-mobile-preview .client-portal-hero .guardrail-note,
body.forced-mobile-preview .client-portal-hero .subtle-badge,
body.forced-mobile-preview .client-portal-trust-strip > div {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
}

body.forced-mobile-preview .client-portal-trust-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.forced-mobile-preview .client-file-id-card {
  grid-template-columns: 1fr;
}

body.forced-mobile-preview .client-file-id-card > div {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
}

body.forced-mobile-preview .client-file-id-card span,
body.forced-mobile-preview .client-file-id-card small {
  color: rgba(255, 255, 255, 0.78);
}

body.forced-mobile-preview .client-file-id-card strong {
  color: white;
}

body.forced-mobile-preview .client-portal-trust-strip span,
body.forced-mobile-preview .client-portal-trust-strip small {
  color: rgba(255, 255, 255, 0.78);
}

body.forced-mobile-preview .client-portal-trust-strip strong {
  color: white;
}

body.forced-mobile-preview .portal-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.forced-mobile-preview .client-portal-progress,
body.forced-mobile-preview .client-portal-criteria,
body.forced-mobile-preview .client-portal-review-flow,
body.forced-mobile-preview .client-portal-timeline,
body.forced-mobile-preview .client-portal-receipts {
  display: none;
}

body.forced-mobile-preview .client-portal-submit,
body.forced-mobile-preview .client-portal-saved {
  margin-top: 10px;
}

body.forced-mobile-preview[data-mobile-work="numbers"] #profile-view.active-view .mobile-work-section,
body.forced-mobile-preview[data-mobile-work="client"] #profile-view.active-view .mobile-work-section,
body.forced-mobile-preview[data-mobile-work="docs"] #profile-view.active-view .mobile-work-section,
body.forced-mobile-preview[data-mobile-work="property"] #profile-view.active-view .mobile-work-section,
body.forced-mobile-preview[data-mobile-work="followup"] #profile-view.active-view .mobile-work-section {
  display: none;
}

body.forced-mobile-preview[data-mobile-work="numbers"] #profile-view.active-view .mobile-numbers-section,
body.forced-mobile-preview[data-mobile-work="client"] #profile-view.active-view .mobile-client-section,
body.forced-mobile-preview[data-mobile-work="docs"] #profile-view.active-view .mobile-docs-section,
body.forced-mobile-preview[data-mobile-work="property"] #profile-view.active-view .mobile-property-section,
body.forced-mobile-preview[data-mobile-work="followup"] #profile-view.active-view .mobile-followup-section {
  display: block;
}

body.forced-mobile-preview[data-mobile-work="numbers"] #profile-view.active-view .mobile-active-file-overview,
body.forced-mobile-preview[data-mobile-work="client"] #profile-view.active-view .mobile-active-file-overview,
body.forced-mobile-preview[data-mobile-work="followup"] #profile-view.active-view .mobile-active-file-overview {
  display: grid;
}

body.forced-mobile-preview[data-mobile-work="property"] #profile-view.active-view .mobile-active-file-overview {
  display: none;
}

body.forced-mobile-preview[data-mobile-work="docs"] #profile-view.active-view .mobile-docs-overview {
  display: grid;
}

body.forced-mobile-preview[data-mobile-work="followup"] #profile-view.active-view .mobile-client-task-overview {
  display: grid;
}

body.forced-mobile-preview[data-mobile-work="client"] #profile-view.active-view .mobile-numbers-overview,
body.forced-mobile-preview[data-mobile-work="numbers"] #profile-view.active-view .mobile-numbers-overview {
  display: grid;
}

body.forced-mobile-preview[data-mobile-work="property"] #propertyHub-view.active-view .mobile-property-hub-overview,
body.forced-mobile-preview[data-mobile-work="property"] #profile-view.active-view .mobile-client-property-overview {
  display: grid;
}

.primary-button,
.secondary-button,
.danger-button,
.mini-button {
  border-radius: 8px;
  border: 1px solid transparent;
  min-height: 40px;
  padding: 0 13px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(16, 45, 41, 0.18);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.primary-button {
  background: var(--green);
  color: white;
  border-color: rgba(16, 94, 78, 0.35);
}

.secondary-button,
.mini-button {
  background: white;
  border-color: rgba(16, 94, 78, 0.35);
  color: var(--ink);
}

.danger-button {
  background: white;
  border-color: rgba(200, 61, 61, 0.45);
  color: var(--red);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 45, 41, 0.14);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.danger-button:focus-visible,
.mini-button:focus-visible,
.nav-button:focus-visible {
  outline: 3px solid rgba(27, 147, 116, 0.28);
  outline-offset: 2px;
}

.mini-button {
  min-height: 32px;
  font-size: 12px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stage-panel {
  margin-bottom: 16px;
}

.dashboard-collapsible summary,
.profile-list-summary {
  cursor: pointer;
  list-style: none;
}

.dashboard-collapsible summary::-webkit-details-marker,
.profile-list-summary::-webkit-details-marker {
  display: none;
}

.dashboard-collapsible summary::after,
.profile-list-summary::after {
  content: "Collapse";
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-collapsible:not([open]) summary::after,
.profile-list:not([open]) .profile-list-summary::after {
  content: "Expand";
}

.stage-count-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 8px;
}

.stage-count {
  min-height: 78px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stage-count span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.stage-count strong {
  font-size: 24px;
}

.stage-count:nth-child(3n + 1) {
  border-color: #aed8c4;
  background: var(--green-2);
}

.stage-count:nth-child(3n + 2) {
  border-color: #b5cdec;
  background: var(--blue-2);
}

.stage-count:nth-child(3n) {
  border-color: #ead48e;
  background: var(--gold-2);
}

.pr-handoff-checklist {
  margin: 14px 0;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.pr-handoff-checklist summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.pr-handoff-checklist summary::-webkit-details-marker {
  display: none;
}

.handoff-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.handoff-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.handoff-group.optional {
  background: #f7faf8;
  border-style: dashed;
}

.handoff-group h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.handoff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.handoff-item > span:first-child {
  min-width: 0;
}

.handoff-force-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.handoff-force-toggle input {
  width: 18px;
  height: 18px;
}

.metric-card,
.panel,
.alert-card,
.profile-card,
.validation-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.view {
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
}

#dashboard-view.active-view {
  background: linear-gradient(180deg, #f5faf7 0%, #fbfcfd 52%);
  border-color: #d5e5dc;
}

#clientPortal-view.active-view {
  background: linear-gradient(180deg, #f3fbfa 0%, #fbfcfd 52%);
  border-color: #cbe6e4;
}

#followups-view.active-view {
  background: linear-gradient(180deg, #f6f9fe 0%, #fbfcfd 52%);
  border-color: #d6e4f5;
}

#intake-view.active-view {
  background: linear-gradient(180deg, #fffbef 0%, #fbfcfd 52%);
  border-color: #eadca8;
}

#profile-view.active-view {
  background: linear-gradient(180deg, #f3fbfa 0%, #fbfcfd 52%);
  border-color: #cbe6e4;
}

#settings-view.active-view {
  background: linear-gradient(180deg, #f7f5fe 0%, #fbfcfd 52%);
  border-color: #dcd6f4;
}

.panel,
.profile-card,
.alert-card {
  position: relative;
}

.panel::before,
.profile-card::before,
.alert-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--line);
}

#dashboard-view .panel::before,
.card-client::before {
  background: var(--green);
}

#followups-view .alert-card::before,
.card-workflow::before {
  background: var(--blue);
}

#intake-view .panel::before,
.card-numbers::before {
  background: var(--gold);
}

#profile-view .client-summary::before,
.card-review::before {
  background: var(--teal);
}

#settings-view .panel::before,
.card-handoff::before {
  background: var(--violet);
}

.metric-card {
  padding: 14px;
  display: grid;
  justify-items: start;
  text-align: left;
  border-color: var(--line);
}

button.metric-card {
  width: 100%;
}

button.metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(29, 43, 37, 0.14);
}

.dashboard-disclosure {
  margin: -4px 0 16px;
}

.gate-one-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
}

.gate-one-strip article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.gate-one-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.gate-one-strip strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.gate-one-strip small {
  color: var(--muted);
  line-height: 1.35;
}

.mlo-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid #c8d9e4;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f8 100%);
  box-shadow: var(--shadow);
}

.mlo-command-hero h3 {
  margin: 4px 0 6px;
  font-size: 25px;
}

.mlo-command-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.mlo-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mlo-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.mlo-mobile-command-strip {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #c9ded7;
  border-radius: 8px;
  background: #f8fbfa;
}

.mlo-mobile-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mlo-mobile-strip-header strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.mlo-mobile-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mlo-mobile-action-card {
  display: grid;
  gap: 4px;
  min-height: 104px;
  align-content: start;
  border: 1px solid #bfd6cc;
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(20, 62, 44, 0.08);
}

.mlo-mobile-action-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mlo-mobile-action-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.mlo-mobile-action-card small {
  color: var(--muted);
  line-height: 1.35;
}

.mobile-active-file-overview {
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid #c7d8d1;
  border-radius: 8px;
  background: #fbfdfc;
  box-shadow: 0 10px 24px rgba(24, 45, 38, 0.08);
}

.mobile-file-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe9e5;
}

.mobile-file-hero h3 {
  margin: 2px 0 4px;
  font-size: 22px;
}

.mobile-file-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-file-next {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d5e5de;
  border-left: 5px solid var(--app-teal);
  border-radius: 8px;
  background: #f6fbfa;
}

.mobile-file-next span,
.mobile-file-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-file-next strong {
  color: var(--ink);
  font-size: 16px;
}

.mobile-file-next small,
.mobile-file-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.mobile-file-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-file-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e5e1;
  border-radius: 8px;
  background: #fff;
}

.mobile-file-tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.mobile-file-jump-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-file-jump-row .mini-button {
  justify-content: center;
  width: 100%;
}

.mobile-docs-overview {
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2d2aa;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(66, 49, 16, 0.08);
}

.mobile-docs-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecdcb7;
}

.mobile-docs-hero h3 {
  margin: 2px 0 4px;
  font-size: 21px;
}

.mobile-docs-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-docs-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-docs-tile,
.mobile-docs-request-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #eadbb8;
  border-radius: 8px;
  background: #fff;
}

.mobile-docs-tile span,
.mobile-docs-request-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-docs-tile strong,
.mobile-docs-request-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.mobile-docs-tile small,
.mobile-docs-request-card small {
  color: var(--muted);
  line-height: 1.35;
}

.mobile-task-overview,
.mobile-client-task-overview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cad8ee;
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(18, 49, 92, 0.08);
}

.mobile-client-task-overview {
  display: none;
}

.mobile-task-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e5f5;
}

.mobile-task-hero h3 {
  margin: 2px 0 4px;
  font-size: 21px;
}

.mobile-task-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-task-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-task-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #fff;
}

.mobile-task-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-task-tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.mobile-task-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.mobile-property-hub-overview,
.mobile-client-property-overview {
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bdded7;
  border-radius: 8px;
  background: #f6fcfb;
  box-shadow: 0 10px 24px rgba(21, 82, 75, 0.08);
}

.mobile-property-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d3ebe7;
}

.mobile-property-hero h3 {
  margin: 2px 0 4px;
  font-size: 21px;
  line-height: 1.15;
}

.mobile-property-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-property-linked-file {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d2e8e4;
  border-left: 5px solid var(--app-teal);
  border-radius: 8px;
  background: #fff;
}

.mobile-property-linked-file span,
.mobile-property-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-property-linked-file strong,
.mobile-property-tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.mobile-property-linked-file small,
.mobile-property-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.mobile-property-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-property-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e9e6;
  border-radius: 8px;
  background: #fff;
}

.mobile-numbers-overview {
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfd9ec;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(30, 67, 122, 0.08);
}

.mobile-numbers-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe7f4;
}

.mobile-numbers-hero h3 {
  margin: 2px 0 4px;
  font-size: 21px;
  line-height: 1.15;
}

.mobile-numbers-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-numbers-focus-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e4f4;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.mobile-numbers-focus-card span,
.mobile-numbers-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-numbers-focus-card strong {
  color: var(--ink);
  font-size: 18px;
}

.mobile-numbers-focus-card small,
.mobile-numbers-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.mobile-numbers-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-numbers-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #fff;
}

.mobile-numbers-tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

body.clean-mlo-review .mlo-work-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.clean-mlo-review #profile-view .card-grid,
body.clean-mlo-review #profile-view .reviewer-file-grid,
body.clean-mlo-review #profile-view .profile-work-card-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.mlo-focus-panel {
  display: grid;
  gap: 12px;
}

.mlo-focus-list {
  display: grid;
  gap: 8px;
}

.profile-area {
  --area-accent: var(--green);
  --area-bg: #f3f8f6;
  --area-border: #c7ddd3;
  display: grid;
  gap: 22px;
  padding: 16px 18px 18px 22px;
  background: var(--area-bg);
  border: 1px solid var(--area-border);
  border-left: 8px solid var(--area-accent);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 12px 26px rgba(20, 62, 44, 0.08);
  scroll-margin-top: 18px;
}

body.clean-mlo-review[data-active-view="profile"] .profile-area {
  display: none;
}

body.clean-mlo-review[data-active-view="profile"] .profile-area.active-profile-area {
  display: grid;
}

.profile-sticky-file-header {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-bottom: 12px;
}

.profile-sticky-file-header .profile-client-identity {
  border-color: #82b99d;
  background: #f7fcf9;
  box-shadow: 0 12px 28px rgba(29, 43, 37, 0.12);
}

.property-sticky-file-header {
  margin-bottom: 14px;
}

.profile-area + .profile-area {
  margin-top: 8px;
}

.profile-area-heading {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--area-border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--area-accent) 28%, transparent);
}

.profile-area-heading span {
  color: var(--area-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-area-heading h3,
.profile-area-heading p {
  margin: 0;
}

.profile-area-heading h3 {
  color: var(--ink);
  font-size: 18px;
}

.profile-area-heading p {
  color: var(--muted);
  line-height: 1.45;
}

.subarea-menu {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d6e3df;
  border-radius: 8px;
  background: #f8fbfa;
}

.subarea-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.subarea-menu button {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  text-align: left;
  border: 1px solid #cfded9;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(29, 43, 37, 0.06);
}

.subarea-menu button strong {
  font-size: 13px;
}

.subarea-menu button span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.subarea-menu button.active {
  border-color: #4f8f72;
  box-shadow: inset 4px 0 0 #4f8f72, 0 8px 18px rgba(29, 43, 37, 0.09);
}

body.clean-mlo-review #profile-view .profile-area > .panel,
body.clean-mlo-review #profile-view .profile-area > details.panel,
body.clean-mlo-review #profile-view .profile-area > .profile-card,
body.clean-mlo-review #profile-view .profile-area > .mobile-work-section > .panel,
body.clean-mlo-review #profile-view .profile-area > .mobile-work-section > details.panel,
body.clean-mlo-review #profile-view .profile-area > .card-grid {
  border-color: #c6d8d1;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(29, 43, 37, 0.1);
}

body.clean-mlo-review #profile-view .profile-area > .panel,
body.clean-mlo-review #profile-view .profile-area > details.panel,
body.clean-mlo-review #profile-view .profile-area > .profile-card,
body.clean-mlo-review #profile-view .profile-area > .mobile-work-section > .panel,
body.clean-mlo-review #profile-view .profile-area > .mobile-work-section > details.panel {
  border-left: 5px solid #b6cec5;
}

body.clean-mlo-review #profile-view .profile-area details.panel[open] > summary,
body.clean-mlo-review #profile-view .profile-area .panel > .panel-heading,
body.clean-mlo-review #profile-view .profile-area .profile-card > h4:first-child {
  margin: -2px -2px 14px;
  padding: 12px 14px;
  background: #f8fbfa;
  border: 1px solid #d9e7e2;
  border-radius: 8px;
  box-shadow: inset 4px 0 0 #b6cec5;
}

body.clean-mlo-review #profile-view .profile-area details.panel[open] > summary + *,
body.clean-mlo-review #profile-view .profile-area .panel > .panel-heading + * {
  margin-top: 16px;
}

body.clean-mlo-review #profile-view .profile-area .card-grid {
  gap: 18px;
  padding: 16px;
  border: 1px solid #cfdfda;
  border-radius: 8px;
  background: #f7faf9;
}

body.clean-mlo-review #profile-view .profile-area .card-grid > .panel,
body.clean-mlo-review #profile-view .profile-area .card-grid > details.panel,
body.clean-mlo-review #profile-view .profile-area .card-grid > .profile-card {
  border-color: #c3d6cf;
  box-shadow: 0 8px 18px rgba(29, 43, 37, 0.07);
}

body.clean-mlo-review #profile-view .profile-area .card-grid > * + *,
body.clean-mlo-review #profile-view .profile-area .mobile-work-section > * + * {
  margin-top: 6px;
}

body.clean-mlo-review #profile-view .profile-area details.panel:not([open]),
body.clean-mlo-review #profile-view .profile-area .collapsible-card:not([open]) {
  background: #ffffff;
  border-color: #cbdcd7;
  box-shadow: 0 8px 16px rgba(29, 43, 37, 0.07);
}

body.clean-mlo-review #profile-view .profile-area details.panel:not([open]) > summary,
body.clean-mlo-review #profile-view .profile-area .collapsible-card:not([open]) > summary {
  background: #f8fbfa;
  border: 1px solid #dbe8e4;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: inset 4px 0 0 #c4d8d1;
}

body.clean-mlo-review #profile-view .profile-area .collapsible-card[open] {
  border-color: #b9d0c8;
}

body.clean-mlo-review #profile-view .profile-area .collapsible-card[open] > summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f8fbfa;
  border: 1px solid #d9e7e2;
  border-radius: 8px;
  box-shadow: inset 4px 0 0 #b6cec5;
}

body.clean-mlo-review #profile-view .profile-area .card-body {
  padding: 14px;
  background: #fbfdfc;
  border: 1px solid #e2ece8;
  border-radius: 8px;
}

body.clean-mlo-review #profile-view .mlo-financial-review-panel[open] > .mlo-financial-review {
  gap: 18px;
  padding: 16px;
  background: #f6faf8;
  border: 1px solid #bfd4cc;
  border-left: 5px solid #9fbbb0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools,
body.clean-mlo-review #profile-view .mlo-financial-review > .document-readiness-projection,
body.clean-mlo-review #profile-view .mlo-financial-review > .doc-request-editor,
body.clean-mlo-review #profile-view .mlo-financial-review > .guardrail-note {
  position: relative;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #c8d9d3;
  border-left: 5px solid #b2c9c0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 22px rgba(29, 43, 37, 0.08);
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools + .operator-card-tools,
body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools + .document-readiness-projection,
body.clean-mlo-review #profile-view .mlo-financial-review > .document-readiness-projection + .operator-card-tools,
body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools + .doc-request-editor,
body.clean-mlo-review #profile-view .mlo-financial-review > .guardrail-note + .summary-grid,
body.clean-mlo-review #profile-view .mlo-financial-review > .summary-grid + .operator-card-tools {
  margin-top: 4px;
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools > summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -2px -2px 14px;
  padding: 12px 14px;
  background: #f7fbfa;
  border: 1px solid #d8e6e1;
  border-radius: 8px;
  box-shadow: inset 4px 0 0 #b2c9c0;
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools:not([open]) > summary {
  margin-bottom: 0;
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools > summary::before {
  content: "Area";
  flex: 0 0 auto;
  color: #52645d;
  background: #eef5f2;
  border: 1px solid #d8e6e1;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  padding: 3px 8px;
  text-transform: uppercase;
}

body.clean-mlo-review #profile-view .mlo-financial-review .summary-grid,
body.clean-mlo-review #profile-view .mlo-financial-review .edit-grid,
body.clean-mlo-review #profile-view .mlo-financial-review .mlo-line-review-list,
body.clean-mlo-review #profile-view .mlo-financial-review .prequal-scenario-grid,
body.clean-mlo-review #profile-view .mlo-financial-review .official-support-grid,
body.clean-mlo-review #profile-view .mlo-financial-review .mlo-readiness-strip {
  padding: 12px;
  background: #fbfdfc;
  border: 1px solid #e0ebe7;
  border-radius: 8px;
}

body.clean-mlo-review #profile-view .mlo-financial-review .mlo-line-review-row,
body.clean-mlo-review #profile-view .mlo-financial-review .doc-request-row {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d8e5e1;
  border-left: 4px solid #ccdcd6;
  border-radius: 0 8px 8px 0;
}

body.clean-mlo-review #profile-view .mlo-financial-review .doc-request-editor h4 {
  display: none;
}

body.clean-mlo-review #profile-view .mlo-financial-review .doc-request-editor {
  margin: 0;
  background: #fbfdfc;
  border-color: #e0ebe7;
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools:not([open]) {
  padding: 12px 14px;
}

body.clean-mlo-review #profile-view .mlo-financial-review > .operator-card-tools:not([open]) > summary {
  margin: 0;
}

body.clean-mlo-review #profile-view .profile-area .summary-grid,
body.clean-mlo-review #profile-view .profile-area .task-edit-grid,
body.clean-mlo-review #profile-view .profile-area .readiness-list,
body.clean-mlo-review #profile-view .profile-area .activity-list,
body.clean-mlo-review #profile-view .profile-area .button-row + .guardrail-note {
  padding-top: 2px;
}

body.clean-mlo-review #profile-view .profile-area .guardrail-note {
  border-left-width: 5px;
}

body.clean-mlo-review #propertyHub-view details.panel[open] > summary,
body.clean-mlo-review #propertyHub-view .panel > .panel-heading,
body.clean-mlo-review #followups-view details.panel[open] > summary,
body.clean-mlo-review #followups-view .panel > .panel-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid #dce8e4;
}

body.clean-mlo-review #propertyHub-view details.panel,
body.clean-mlo-review #followups-view details.panel {
  border-color: #c6d8d1;
  border-left: 5px solid #b6cec5;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 43, 37, 0.08);
}

.mlo-focus-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.mlo-focus-item div,
.mlo-focus-item p {
  min-width: 0;
}

.mlo-focus-item strong {
  display: block;
}

.mlo-focus-item span,
.mlo-focus-item p {
  color: var(--muted);
  font-size: 12px;
}

.mlo-focus-item p {
  grid-column: 1 / -1;
  margin: 0;
}

.property-visit-focus {
  border-color: #b9d8d6;
  background: #f3faf9;
}

.metric-red {
  border-color: #e2aaa5;
  background: var(--red-2);
}

.metric-gold {
  border-color: #ead48e;
  background: var(--gold-2);
}

.metric-green {
  border-color: #aed8c4;
  background: var(--green-2);
}

.metric-blue {
  border-color: #b5cdec;
  background: var(--blue-2);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.metric-card strong {
  font-size: 26px;
}

.beta-demo-path-panel {
  border-color: #b7d6c6;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  box-shadow: 0 16px 34px rgba(29, 43, 37, 0.08);
}

.beta-demo-path-panel > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.beta-demo-path-panel > summary::-webkit-details-marker {
  display: none;
}

.beta-demo-path-panel[open] > summary {
  margin-bottom: 14px;
}

.reviewer-route-hero {
  align-items: center;
  background: #f7fbf9;
  border: 1px solid #b7d6c6;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.reviewer-route-hero div {
  display: grid;
  gap: 4px;
}

.reviewer-route-hero span,
.demo-file-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.reviewer-route-hero strong {
  font-size: 18px;
}

.reviewer-route-hero p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.beta-demo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beta-demo-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
  box-shadow: inset 4px 0 0 var(--green);
}

.beta-demo-card.blocked {
  background: var(--red-2);
  border-color: #e2aaa5;
  box-shadow: inset 4px 0 0 var(--red);
}

.beta-demo-card.beta-demo-progress {
  background: #f6f9fe;
  border-color: #b5cdec;
  box-shadow: inset 4px 0 0 var(--blue);
}

.beta-demo-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.beta-demo-card ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.beta-demo-card li,
.beta-demo-card p {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.demo-file-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-file-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 10px;
  text-decoration: none;
}

.demo-file-card.active {
  background: var(--green-2);
  border-color: #93c7b0;
  box-shadow: inset 4px 0 0 var(--green);
}

.demo-file-card strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.demo-file-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.beta-demo-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.beta-demo-step {
  align-content: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 10px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.beta-demo-step:hover {
  border-color: #93c7b0;
  box-shadow: 0 12px 24px rgba(29, 43, 37, 0.1);
  transform: translateY(-1px);
}

.beta-demo-step span {
  align-items: center;
  background: var(--green-2);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.beta-demo-step strong {
  font-size: 13px;
}

.beta-demo-step small,
.beta-demo-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.beta-demo-step em {
  background: var(--panel-2);
  border-radius: 999px;
  font-weight: 850;
  margin-top: auto;
  min-height: 24px;
  padding: 4px 8px;
  width: fit-content;
}

.command-center-workflow {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.beta-readiness-gate-panel {
  border-color: #c9d8c0;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  box-shadow: inset 4px 0 0 var(--gold);
}

.beta-readiness-summary {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.beta-readiness-summary > div:first-child {
  display: grid;
  gap: 6px;
}

.beta-readiness-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.beta-readiness-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.beta-readiness-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.beta-readiness-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.beta-readiness-item.ready {
  box-shadow: inset 3px 0 0 var(--green);
}

.beta-readiness-item.waiting {
  box-shadow: inset 3px 0 0 var(--gold);
}

.beta-readiness-item.blocked {
  box-shadow: inset 3px 0 0 var(--red);
}

.beta-readiness-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.beta-readiness-item strong {
  font-size: 13px;
}

.beta-readiness-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.partner-analytics-overview {
  border-color: #b7cde0;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  box-shadow: inset 4px 0 0 var(--blue);
}

.partner-analytics-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-analytics-metrics article,
.partner-analytics-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
}

.partner-analytics-metrics span,
.partner-analytics-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-analytics-metrics strong {
  font-size: 22px;
  line-height: 1.1;
}

.partner-analytics-metrics p,
.partner-analytics-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.partner-analytics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.partner-analytics-grid article > strong {
  font-size: 18px;
}

.partner-analytics-funnel {
  align-content: start;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-analytics-funnel > span {
  grid-column: 1 / -1;
}

.partner-analytics-funnel div {
  background: var(--panel-2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 8px;
}

.partner-analytics-funnel small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.partner-analytics-funnel strong {
  font-size: 18px;
}

.partner-quality-overview {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.partner-quality-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-quality-summary article,
.partner-quality-list article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
}

.partner-quality-summary span,
.partner-quality-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-quality-summary strong,
.partner-quality-list strong {
  font-size: 18px;
  line-height: 1.15;
}

.partner-quality-summary p,
.partner-quality-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.partner-quality-list {
  display: grid;
  gap: 10px;
}

.partner-quality-list article {
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.7fr) minmax(180px, 1fr);
}

.partner-quality-list article > div:first-child {
  display: grid;
  gap: 4px;
}

.partner-quality-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.partner-quality-rates span {
  background: var(--panel-2);
  border-radius: 999px;
  min-height: 24px;
  padding: 5px 8px;
  white-space: nowrap;
}

.partner-followup-reliability {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.partner-reliability-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.partner-reliability-summary article,
.partner-reliability-list article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
}

.partner-reliability-summary span,
.partner-reliability-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-reliability-summary strong,
.partner-reliability-list strong {
  font-size: 18px;
  line-height: 1.15;
}

.partner-reliability-summary p,
.partner-reliability-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.partner-reliability-list {
  display: grid;
  gap: 10px;
}

.partner-reliability-list article {
  align-items: center;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.2fr) minmax(180px, 0.9fr);
}

.partner-reliability-list article > div:first-child,
.partner-reliability-status,
.partner-reliability-events {
  display: grid;
  gap: 5px;
}

.partner-reliability-status .badge {
  width: fit-content;
}

.partner-reliability-events {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-reliability-events span {
  background: var(--panel-2);
  border-radius: 8px;
  padding: 8px;
}

.partner-focus-selector {
  max-width: 420px;
}

.partner-detail-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.partner-detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-detail-clients {
  display: grid;
  gap: 10px;
}

.partner-detail-client {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.partner-detail-client > div:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.partner-detail-client span,
.partner-detail-client p {
  color: var(--muted);
}

.command-center-workflow-heading {
  background: #eef6f2;
  border: 1px solid #b7d6c6;
  border-radius: 8px;
  margin-bottom: 0;
  padding: 12px;
}

.command-center-workflow .todays-operating-summary,
.command-center-workflow .command-task-flow,
.command-center-workflow .work-today-mode,
.command-center-workflow .daily-followup-stack {
  border-color: #b7d6c6;
}

.command-task-flow {
  display: grid;
  gap: 12px;
}

.command-task-flow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.command-task-flow-summary article,
.command-task-flow-item,
.command-task-owner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.command-task-flow-summary article {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.command-task-flow-summary span,
.command-task-owner span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.command-task-flow-summary p,
.command-task-owner p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.command-task-flow-list {
  display: grid;
  gap: 10px;
}

.command-task-flow-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.command-task-flow-item > div:not(.card-meta):not(.button-row):not(.command-task-owner) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-task-flow-item p {
  margin: 0;
}

.command-task-owner {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.builder-only-demo-panel {
  border-color: #d6cda8;
  background: #fffaf0;
}

.builder-only-demo-panel > .mlo-calibration-panel,
.builder-only-demo-panel > .operator-decision-queue,
.builder-only-demo-panel > .property-audit-log-panel {
  margin-top: 12px;
}

.reviewer-path-panel {
  border-color: #b7cde0;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.client-profile-role-panel {
  box-shadow: inset 4px 0 0 var(--blue);
}

.property-hub-role-panel {
  box-shadow: inset 4px 0 0 var(--teal);
}

.reviewer-path-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reviewer-path-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.reviewer-path-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.reviewer-path-grid strong {
  font-size: 14px;
}

.reviewer-path-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.reviewer-file-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toolbar,
.panel-heading,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar {
  margin-bottom: 14px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
}

.segment.active {
  border-color: var(--green);
  background: var(--green-2);
  color: var(--green);
  font-weight: 750;
}

.panel {
  padding: 16px;
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading p {
  color: var(--muted);
  font-size: 13px;
}

.reviewer-hidden[hidden] {
  display: none !important;
}

.reviewer-access-panel {
  border-color: #b8912e;
  background: #fffaf0;
}

.reviewer-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

body.reviewer-mode .build-badge {
  background: #fff5d8;
  color: var(--gold);
}

.subtle-badge,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.subtle-badge {
  color: var(--muted);
  background: var(--panel-2);
}

.badge.green {
  color: var(--green);
  background: var(--green-2);
}

.badge.blue {
  color: var(--blue);
  background: var(--blue-2);
}

.badge.red {
  color: var(--red);
  background: var(--red-2);
}

.badge.gold {
  color: var(--gold);
  background: var(--gold-2);
}

.queue-row {
  border-left: 4px solid transparent;
}

.queue-overdue {
  border-left-color: var(--red);
}

.queue-today {
  border-left-color: var(--gold);
}

.queue-upcoming {
  border-left-color: var(--blue);
}

.queue-complete {
  border-left-color: var(--green);
}

.table-wrap {
  overflow-x: auto;
}

.client-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.client-table td:nth-child(4),
.client-table th:nth-child(4) {
  min-width: 96px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.client-name {
  font-weight: 800;
}

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

.mobile-only {
  display: none;
}

.two-line {
  display: grid;
  gap: 3px;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.alert-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.alert-column h3 {
  margin: 0 0 4px;
}

.alert-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.property-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.property-entry-grid .full-span,
.summary-wide {
  grid-column: 1 / -1;
}

.property-client-panel {
  margin-top: 16px;
}

.property-client-picker {
  margin-bottom: 16px;
}

.property-client-picker-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 12px;
  align-items: start;
}

.property-client-search-box {
  display: grid;
  gap: 10px;
}

.property-client-queue-panel {
  display: grid;
  gap: 8px;
}

.property-client-queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 2px;
}

.property-client-queue-heading strong {
  font-size: 13px;
  color: var(--ink);
}

.property-client-queue-heading span {
  font-size: 12px;
  color: var(--muted);
}

.property-client-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-client-all {
  width: 100%;
  margin-top: 2px;
}

.property-client-all summary {
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.property-client-all .all-clients {
  margin-top: 8px;
}

.property-client-chip {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}

.property-client-chip.active {
  border-color: var(--green);
  background: var(--green-2);
}

.property-client-chip.green {
  border-left: 5px solid var(--green);
}

.property-client-chip.gold {
  border-left: 5px solid var(--gold);
}

.property-client-chip.red {
  border-left: 5px solid var(--red);
}

.property-client-chip.blue {
  border-left: 5px solid var(--blue);
}

.property-client-chip strong,
.property-client-chip span {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.property-client-chip span {
  color: var(--muted);
}

.property-handoff-panel .button-row {
  margin-top: 10px;
}

.property-form-subheading {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.property-form-subheading h4,
.property-form-subheading p {
  margin: 0;
}

.property-form-subheading p {
  color: var(--muted);
  font-size: 13px;
}

.property-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.property-review-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 14px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.property-review-section-heading h4,
.property-review-section-heading p {
  margin: 0;
}

.property-review-section-heading h4 {
  font-size: 16px;
}

.property-review-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.property-review-grid {
  align-items: start;
}

.compact-property-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.property-card,
.partner-card {
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 10px;
}

.property-review-card {
  position: relative;
  border-left-width: 6px;
  box-shadow: 0 8px 18px rgba(29, 43, 37, 0.05);
}

.property-review-card.reviewed {
  border-left-color: var(--green);
}

.property-review-card.submitted {
  border-left-color: var(--blue);
}

.property-review-card.under-review {
  border-left-color: var(--gold);
}

.property-review-card.needs-info {
  border-left-color: var(--red);
}

.property-review-card.not-reviewed {
  border-left-color: var(--muted);
}

.property-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.property-card-title {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.property-card-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.property-card-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.property-card-facts em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.property-card-facts strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-card p,
.partner-card p {
  margin: 0;
}

.partner-source-name {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.partner-source-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-linked-client {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.partner-linked-client span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-linked-client strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.partner-linked-client p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.property-linked-client {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.property-linked-client span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.property-linked-client strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.property-linked-client p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.property-source-events {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.property-source-events span,
.property-source-events small,
.property-support-snapshot span,
.property-support-snapshot small,
.property-loan-fit-grid span,
.property-decision-output span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.property-source-events div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-source-events strong {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.property-support-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.07);
}

.property-support-snapshot.empty {
  border-color: var(--line);
  background: var(--panel-2);
}

.property-support-snapshot > div,
.property-support-snapshot.empty {
  display: grid;
  gap: 3px;
}

.property-support-snapshot strong {
  font-size: 16px;
}

.property-support-snapshot p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.property-loan-fit-panel {
  display: grid;
  gap: 8px;
}

.property-loan-fit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.property-loan-fit-grid article {
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.property-loan-fit-grid article.good {
  border-color: rgba(42, 157, 143, 0.45);
  background: rgba(42, 157, 143, 0.08);
}

.property-loan-fit-grid article.caution {
  border-color: rgba(221, 162, 73, 0.45);
  background: rgba(221, 162, 73, 0.1);
}

.property-loan-fit-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.property-fit-facts {
  display: grid;
  gap: 4px;
}

.property-fit-facts small {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 5px 6px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.property-loan-fit-grid p,
.property-decision-output p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.property-decision-output {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.property-decision-output.ok {
  border-color: rgba(42, 157, 143, 0.45);
  background: rgba(42, 157, 143, 0.08);
}

.property-decision-output.warn {
  border-color: rgba(221, 162, 73, 0.45);
  background: rgba(221, 162, 73, 0.1);
}

.property-decision-output.danger {
  border-color: rgba(218, 96, 92, 0.5);
  background: rgba(218, 96, 92, 0.09);
}

.property-decision-output strong {
  color: var(--ink);
  font-size: 16px;
}

.property-output-panel {
  display: grid;
  gap: 10px;
}

.property-output-boundary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.output-guardrail-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.output-guardrail-matrix article {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.property-output-boundary article,
.property-handoff-receipt {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.property-output-boundary article.ok {
  border-color: rgba(42, 157, 143, 0.45);
  background: rgba(42, 157, 143, 0.08);
}

.property-output-boundary article.warn {
  border-color: rgba(221, 162, 73, 0.45);
  background: rgba(221, 162, 73, 0.1);
}

.property-output-boundary span,
.output-guardrail-matrix span,
.property-handoff-receipt span,
.property-handoff-receipt small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.property-output-boundary p,
.output-guardrail-matrix p,
.property-handoff-receipt p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.property-output-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  font-weight: 800;
}

.property-output-toggle span,
.output-audience-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.property-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.property-draft-box {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.property-draft-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.property-draft-box textarea {
  min-height: 104px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.35;
}

.partner-event-receipt {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.partner-event-receipt.empty {
  background: #fff;
}

.partner-event-receipt summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.partner-event-latest {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.partner-event-receipt span,
.partner-event-receipt small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-event-receipt p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.property-status-control {
  display: grid;
  gap: 6px;
}

.property-status-control select {
  min-height: 38px;
}

.operator-card-tools {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.operator-card-tools summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.operator-card-tools .button-row {
  margin-top: 8px;
}

.document-readiness-projection {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(16, 94, 78, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.prequal-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prequal-scenario-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.scenario-card-head {
  display: grid;
  gap: 4px;
}

.scenario-card-head span,
.prequal-sendable-box span,
.scenario-field span {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.scenario-card-head strong {
  font-size: 15px;
  color: var(--ink);
}

.scenario-card-head em {
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  background: var(--panel-2);
}

.scenario-card-head p,
.prequal-sendable-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.scenario-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.1);
  border: 1px solid rgba(42, 157, 143, 0.35);
}

.scenario-topline span,
.scenario-topline small {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.scenario-topline strong {
  grid-row: span 2;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.scenario-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scenario-field {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.scenario-field strong {
  font-size: 14px;
  color: var(--ink);
}

.scenario-field.highlight {
  border-color: rgba(42, 157, 143, 0.45);
  background: rgba(42, 157, 143, 0.08);
}

.prequal-sendable-box {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.08);
}

.prequal-sendable-box strong {
  font-size: 14px;
  color: var(--ink);
}

.prequal-sendable-box.muted-box {
  border-color: var(--line);
  background: var(--panel);
}

.adopted-program-support {
  display: grid;
  gap: 8px;
}

.adopted-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.adopted-support-grid article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.adopted-support-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.adopted-support-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.adopted-support-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.scenario-override-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.scenario-override-field input {
  min-height: 38px;
}

.property-backend-timeline summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.property-timeline-list {
  display: grid;
  gap: 8px;
}

.property-timeline-item {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.property-timeline-item div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.property-timeline-item strong {
  font-size: 12px;
  color: var(--ink);
}

.property-timeline-item span,
.property-timeline-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.property-status-panel {
  margin-top: 16px;
}

.property-pilot-flow-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.property-audit-log-panel {
  margin-top: 16px;
}

.property-audit-log-panel summary {
  cursor: pointer;
}

.audit-log-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.import-batch-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.audit-log-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.import-batch-item {
  border-color: #0f766e;
  background: #f0fdfa;
}

.staged-import-row-item {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.operator-decision-box {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(29, 78, 216, 0.22);
  margin-top: 8px;
  padding-top: 8px;
}

.operator-decision-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
}

.operator-decision-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-decision-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
}

.operator-decision-queue {
  display: grid;
  gap: 12px;
}

.mlo-calibration-panel {
  display: grid;
  gap: 12px;
}

.mlo-calibration-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mlo-calibration-block {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.mlo-calibration-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.mlo-calibration-row.question {
  background: #f8fafc;
}

.mlo-calibration-row.profile-field {
  background: #f8fff8;
  border-color: #bbf7d0;
}

.mlo-calibration-row div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
}

.mlo-calibration-row strong {
  color: var(--ink);
  font-size: 13px;
}

.mlo-calibration-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mlo-calibration-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.saved-profile-structure {
  grid-column: 1 / -1;
}

.mlo-workflow-profile-preview {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-top: 12px;
  padding: 10px;
}

.mlo-workflow-profile-preview summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mlo-workflow-profile-preview summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mlo-workflow-profile-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.mlo-workflow-profile-card,
.mlo-workflow-rule {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.mlo-workflow-profile-card span,
.mlo-workflow-rule span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mlo-workflow-profile-card strong,
.mlo-workflow-rule strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.mlo-workflow-profile-card p,
.mlo-workflow-rule p,
.mlo-workflow-rule small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.mlo-workflow-field-list {
  margin-top: 10px;
}

.mlo-workflow-field-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.mlo-workflow-field-list li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
}

.mlo-workflow-rules {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.mlo-workflow-rule div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mlo-workflow-editor {
  background: #f8fff8;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
}

.mlo-workflow-editor summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mlo-workflow-editor summary span,
.mlo-workflow-editor-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mlo-workflow-editor-buckets {
  display: grid;
  gap: 10px;
}

.mlo-workflow-editor-bucket {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.mlo-workflow-editor-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mlo-workflow-editor .full-span {
  grid-column: 1 / -1;
}

.mlo-workflow-editor textarea {
  min-height: 74px;
  width: 100%;
}

.mlo-beta-onboarding-flow {
  background: #f6f9fe;
  border: 1px solid #b5cdec;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
}

.mlo-beta-onboarding-flow summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mlo-beta-onboarding-flow summary span,
.mlo-onboarding-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mlo-onboarding-summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  padding: 10px;
}

.mlo-onboarding-summary p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.mlo-onboarding-steps {
  display: grid;
  gap: 10px;
}

.mlo-onboarding-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.mlo-onboarding-step.ready {
  border-color: #aed8c4;
  box-shadow: inset 4px 0 0 var(--green);
}

.mlo-onboarding-step.in_progress {
  border-color: #b5cdec;
  box-shadow: inset 4px 0 0 var(--blue);
}

.mlo-onboarding-step.blocked {
  border-color: #e2aaa5;
  box-shadow: inset 4px 0 0 var(--red);
}

.mlo-onboarding-step-heading {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.mlo-onboarding-step-heading > span {
  align-items: center;
  background: var(--blue-2);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.mlo-onboarding-step-heading strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
}

.mlo-onboarding-step-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.operator-decision-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operator-decision-summary-grid.bucket-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operator-decision-summary-grid.learning-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-decision-summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operator-decision-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  background: var(--panel-2);
}

.operator-decision-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.operator-decision-metric strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.operator-decision-metric.not-reviewed {
  border-color: #64748b;
}

.operator-decision-metric.review-needed {
  border-color: #2563eb;
  background: #eff6ff;
}

.operator-decision-metric.accepted {
  border-color: #0f766e;
  background: #f0fdfa;
}

.operator-decision-metric.blocked {
  border-color: #b91c1c;
  background: #fef2f2;
}

.operator-decision-metric.deferred {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.operator-decision-worklist {
  display: grid;
  gap: 8px;
}

.operator-learning-panel {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.operator-learning-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.operator-learning-item.changed {
  border-color: #2563eb;
  background: #eff6ff;
}

.operator-learning-item.unclear {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.operator-learning-item div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
}

.operator-learning-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.operator-decision-card {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #f8fbff;
}

.operator-decision-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.operator-suggested-path {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.operator-suggested-path span {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.operator-suggested-path strong {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.2;
}

.operator-suggested-path small,
.operator-decision-signal small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.operator-decision-signal-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operator-decision-signal {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  background: #ffffff;
}

.operator-decision-signal span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.operator-decision-signal strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.audit-log-item div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.audit-log-item strong {
  color: var(--ink);
  font-size: 13px;
}

.audit-log-item span,
.audit-log-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.pilot-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pilot-flow-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.pilot-flow-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pilot-flow-metric strong {
  color: var(--ink);
  font-size: 20px;
}

.pilot-flow-metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.property-status-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-status-segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.property-status-segment strong {
  font-size: 12px;
}

.client-portal-layout {
  display: grid;
  gap: 14px;
}

.client-portal-hero {
  display: grid;
  gap: 12px;
}

.client-portal-payment-snapshot {
  display: grid;
  gap: 12px;
}

.portal-phone-title {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: -14px -14px 0;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  background: var(--app-teal);
  color: white;
  text-align: center;
}

.portal-phone-title .mini-button {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  box-shadow: none;
}

.payment-ring-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-ring {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #f7fafb 0 56%, transparent 57%),
    conic-gradient(var(--app-teal) 0 var(--pi), #a8aeb4 var(--pi) calc(var(--pi) + var(--tax)), #d0d5d9 calc(var(--pi) + var(--tax)) 100%);
  color: var(--ink);
  text-align: center;
}

.payment-ring strong {
  font-size: 20px;
}

.payment-ring span {
  color: var(--muted);
  font-size: 12px;
}

.payment-legend {
  display: grid;
  gap: 8px;
}

.payment-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-legend b {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--app-teal);
}

.payment-legend span:nth-child(2) b {
  background: #a8aeb4;
}

.payment-legend span:nth-child(3) b {
  background: #d0d5d9;
}

.mobile-calc-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 42px;
  border: 1px solid #d7dddd;
  border-radius: 8px;
  overflow: hidden;
}

.mobile-calc-row span,
.mobile-calc-row strong {
  display: flex;
  align-items: center;
  padding: 9px 12px;
}

.mobile-calc-row span {
  background: #e8eaea;
  color: #4f5658;
}

.mobile-calc-row strong {
  justify-content: flex-end;
  background: white;
  font-weight: 700;
}

.client-portal-progress,
.client-portal-criteria,
.client-portal-quick-actions,
.client-portal-primary-task,
.client-portal-submit,
.client-portal-receipts,
.client-portal-timeline,
.client-portal-review-flow,
.client-portal-onboarding,
.client-portal-saved {
  display: grid;
  gap: 12px;
}

.client-portal-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.client-file-id-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px;
}

.client-file-id-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #c7e1e5;
  border-radius: 8px;
  background: #f7fbfc;
}

.client-file-id-card span {
  color: var(--app-teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-file-id-card strong {
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.client-file-id-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.client-portal-trust-strip > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #c7e1e5;
  border-radius: 8px;
  background: var(--app-teal-soft);
}

.client-portal-trust-strip span,
.client-portal-trust-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.client-portal-trust-strip strong {
  color: var(--app-teal-dark);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-action-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(29, 43, 37, 0.06);
}

.portal-action-card span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--app-teal-soft);
  color: var(--app-teal);
  font-weight: 900;
}

.portal-action-card strong,
.portal-action-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-action-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.client-portal-primary-task {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-color: #b7d4d8;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
}

.primary-task-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.primary-task-copy span {
  color: var(--app-teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-task-copy strong {
  font-size: 18px;
}

.primary-task-copy p {
  margin: 0;
  color: var(--muted);
}

.onboarding-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.preferred-language-field {
  max-width: 360px;
}

.onboarding-step {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.onboarding-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 850;
  font-size: 12px;
}

.onboarding-step strong,
.onboarding-step small {
  overflow-wrap: anywhere;
}

.onboarding-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.criteria-choice-group {
  margin: 0;
  background: var(--panel-2);
}

.location-builder {
  display: grid;
  gap: 12px;
  margin: 0;
  background: var(--panel-2);
}

.range-builder {
  display: grid;
  gap: 10px;
  margin: 0;
  background: var(--panel-2);
}

.location-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.range-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(150px, 0.7fr);
  gap: 10px;
  align-items: end;
}

.range-preview {
  display: grid;
  gap: 5px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 102, 78, 0.26);
  border-radius: 8px;
  background: var(--green-2);
}

.range-preview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.range-preview strong {
  color: var(--green);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.location-add-button {
  min-height: 44px;
  white-space: nowrap;
}

.selected-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  align-items: center;
}

.selected-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 8px 7px 10px;
  border: 1px solid rgba(23, 102, 78, 0.26);
  border-radius: 999px;
  background: var(--green-2);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.selected-location-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selected-location-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.selected-location-chip button {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.criteria-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.criteria-choice-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

.criteria-choice-grid label:has(input:checked) {
  border-color: rgba(23, 102, 78, 0.45);
  background: var(--green-2);
  color: var(--green);
}

.criteria-choice-grid label:has(input:checked)::after {
  content: "✓";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.criteria-choice-grid input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--green);
}

.criteria-choice-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.criteria-other-input {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.share-instructions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.share-instructions span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.review-flow-step,
.preliminary-number-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.review-flow-step {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.review-flow-step.active {
  border-color: rgba(23, 102, 78, 0.38);
  background: var(--green-2);
}

.review-flow-step strong {
  color: var(--ink);
  font-size: 13px;
}

.review-flow-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-flow-step em {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.preliminary-number-panel {
  background: #fbfdff;
}

.property-estimate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.optional-property-details {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.optional-property-details summary,
.timeline-property summary {
  cursor: pointer;
  list-style: none;
}

.optional-property-details summary::-webkit-details-marker,
.timeline-property summary::-webkit-details-marker {
  display: none;
}

.optional-property-details summary {
  color: var(--green);
  font-weight: 850;
}

.timeline-property {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.timeline-property summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  font-weight: 850;
}

.timeline-property summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline-property .timeline-item {
  margin-top: 8px;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.timeline-item p {
  margin: 6px 0 0;
}

.timeline-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-2);
}

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

.receipt-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.receipt-card p {
  margin: 0;
}

.document-delivery-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 94, 78, 0.25);
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.55);
}

.secure-doc-header {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 12px;
  border-radius: 8px;
  background: var(--app-teal);
  color: white;
  text-align: center;
}

.secure-doc-header strong {
  max-width: 280px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.12;
}

.secure-doc-header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.secure-doc-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: -6px 0 4px;
  padding: 10px;
  background: var(--app-teal);
  border-radius: 0 0 8px 8px;
}

.secure-doc-actions .secondary-button {
  width: min(260px, 100%);
  justify-content: flex-start;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: white;
  box-shadow: none;
  text-align: left;
}

.receipt-wide {
  grid-column: 1 / -1;
}

.next-step-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.client-portal-nav {
  border-color: rgba(228, 245, 244, 0.5);
}

.buyer-criteria-panel,
.message-template-panel {
  display: grid;
  gap: 12px;
}

.criteria-grid {
  align-items: start;
}

.message-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.message-template-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 10px;
}

.message-template-card textarea {
  min-height: 140px;
  resize: vertical;
}

.compact-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.link-button {
  text-decoration: none;
  text-align: center;
}

.alert-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intake-panel {
  max-width: 1180px;
}

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

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.intake-grid fieldset {
  background: white;
  box-shadow: inset 4px 0 0 var(--line);
}

.intake-grid fieldset:nth-child(1) {
  background: #f7fbf8;
  box-shadow: inset 4px 0 0 var(--green);
}

.intake-grid fieldset:nth-child(2) {
  background: #f7faff;
  box-shadow: inset 4px 0 0 var(--blue);
}

.intake-grid fieldset:nth-child(3) {
  background: #fffaf0;
  box-shadow: inset 4px 0 0 var(--gold);
}

.intake-grid fieldset:nth-child(4) {
  background: #f5fbfb;
  box-shadow: inset 4px 0 0 var(--teal);
}

legend {
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.loan-path-field select,
.loan-path-control select,
.sandbox-loan-selector select,
.prefill-panel select {
  border-color: rgba(23, 102, 78, 0.45);
  background: #ffffff;
}

.prefill-panel,
.loan-path-control,
.sandbox-loan-selector {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(23, 102, 78, 0.22);
  border-radius: 8px;
  background: var(--green-2);
}

.prefill-panel {
  margin-bottom: 12px;
}

.validation-card {
  margin-top: 14px;
  padding: 14px;
  background: var(--gold-2);
  border-color: #ead48e;
}

.validation-card h4,
.validation-card p {
  margin: 0;
}

.validation-card h4 {
  margin-bottom: 6px;
}

.estimate-card {
  display: grid;
  gap: 12px;
}

.calculator-verified-source {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
}

.calculator-verified-source > div:first-child {
  display: grid;
  gap: 4px;
}

.calculator-verified-source span,
.calculator-source-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-verified-source strong {
  color: var(--ink);
}

.calculator-verified-source p,
.calculator-source-card small {
  margin: 0;
  color: var(--muted);
}

.calculator-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.calculator-source-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.calculator-source-card.ok {
  border-color: rgba(23, 102, 78, 0.28);
  background: var(--green-2);
}

.calculator-source-card.warn {
  border-color: rgba(176, 127, 16, 0.25);
  background: var(--gold-2);
}

.calculator-controls {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

.assumption-grid > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assumption-grid span {
  color: var(--muted);
  font-size: 13px;
}

.calculator-controls input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

.button-row {
  justify-content: flex-start;
  margin-top: 14px;
  flex-wrap: wrap;
}

.button-row.compact {
  margin-top: 0;
  gap: 6px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.profile-list {
  align-self: start;
  display: grid;
  gap: 10px;
  max-width: none;
}

body.clean-mlo-review #profile-client-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

body.clean-mlo-review #profile-client-list[hidden] {
  display: none !important;
}

.profile-list-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-list-summary h3 {
  margin: 0;
}

.profile-client-button {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 5px;
}

.profile-client-button.active {
  border-color: var(--green);
  background: var(--green-2);
}

.profile-list {
  border-color: #c8d8d1;
  background: #f8fbfa;
}

.profile-stack {
  display: grid;
  gap: 14px;
}

.action-center {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border-color: #aed8c4;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
}

.action-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.action-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.action-copy p {
  margin: 0;
  color: var(--muted);
}

.action-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action-facts div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.action-facts span,
.action-facts small {
  color: var(--muted);
  font-size: 12px;
}

.action-facts strong {
  font-size: 16px;
  line-height: 1.2;
}

.next-action-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 8px;
}

.action-primary-buttons {
  margin-top: 4px;
}

.action-tools {
  margin-top: 2px;
}

.action-tools summary {
  cursor: pointer;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.partner-quick-draft {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.client-summary {
  display: grid;
  gap: 12px;
}

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

.summary-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.summary-item strong {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.summary-priority {
  border-color: #93c7b0;
  background: #e5f4ed;
}

.client-need-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.client-need-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.client-need-item span {
  font-weight: 800;
}

.client-need-item small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.client-financial-snapshot input:disabled,
.client-financial-snapshot select:disabled {
  background: #f4f8f6;
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.verified-lock-panel {
  border: 1px solid rgba(37, 115, 76, 0.24);
  border-radius: 8px;
  background: #f4fbf7;
  padding: 0.85rem;
  margin-top: 0.8rem;
}

.verified-lock-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.summary-priority span,
.summary-priority strong,
.property-type-chip {
  color: var(--green);
}

.area-chip {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #acd8d5;
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-2);
  font-weight: 800;
  overflow-wrap: normal;
  word-break: keep-all;
}

.summary-priority strong {
  font-size: 17px;
}

  .summary-wide {
    grid-column: span 2;
  }

  .pr-handoff-checklist {
    padding: 10px;
  }

  .pr-handoff-checklist summary {
    align-items: flex-start;
  }

  .pr-handoff-checklist summary strong {
    flex-basis: 100%;
  }

  .handoff-group-grid {
    grid-template-columns: 1fr;
  }

  .handoff-group {
    width: 100%;
  }

  .handoff-item {
    align-items: flex-start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .handoff-item .badge {
    white-space: nowrap;
  }

  .handoff-force-toggle {
    align-items: flex-start;
    width: 100%;
  }

.quick-estimate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.advanced-assumptions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.advanced-assumptions summary {
  min-height: 38px;
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.readiness-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.readiness-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.readiness-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.readiness-breakdown-row:first-of-type {
  border-top: 0;
}

.readiness-breakdown-row div {
  display: grid;
  gap: 2px;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.history-row span,
.history-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.settings-stack {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.settings-workspace-header {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.settings-workspace-header h3 {
  margin: 2px 0 4px;
  font-size: 1.25rem;
}

.settings-workspace-header p {
  margin: 0;
  color: var(--muted);
}

.settings-area-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-area-menu button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

.settings-area-menu button.active {
  border-color: #98b9ac;
  background: #eaf4ef;
  color: var(--ink);
}

.settings-workspace-panel[hidden] {
  display: none;
}

.settings-workspace-panel.active-settings-area {
  display: block;
}

.program-setup-stack {
  display: grid;
  gap: 14px;
}

.program-setup-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.program-lender-list {
  display: grid;
  gap: 12px;
}

.program-lender-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.program-lender-heading,
.program-menu-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.program-lender-heading h4 {
  margin: 2px 0 3px;
  font-size: 1.05rem;
}

.program-lender-heading span,
.program-lender-heading p,
.program-menu-item span,
.program-menu-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.program-menu-list {
  display: grid;
  gap: 10px;
}

.program-menu-item {
  border: 1px solid #d8e3dd;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.program-menu-item > div:first-child {
  min-width: 190px;
  display: grid;
  gap: 3px;
}

.program-menu-item strong {
  color: var(--ink);
}

.program-menu-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  flex: 1;
}

.program-menu-facts span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.program-setup-intake {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
}

.program-setup-intake summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.program-setup-intake summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.program-intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.program-intake-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.program-intake-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-intake-card strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.program-intake-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.program-setup-editor {
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.program-setup-editor summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.program-setup-editor summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.program-edit-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.program-edit-row,
.program-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(120px, 0.8fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.program-edit-row > div:first-child {
  display: grid;
  gap: 3px;
  align-self: center;
}

.program-edit-row span,
.program-add-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-edit-row strong {
  color: var(--ink);
}

.program-edit-row label,
.program-add-row label {
  display: grid;
  gap: 5px;
}

.program-edit-row label.wide,
.program-add-row label.wide {
  grid-column: span 2;
}

.source-workflow-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.source-workflow-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guidance-readiness-report {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f8fafc;
}

.real-data-readiness-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  background: #fff7ed;
}

.real-data-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.real-data-gate-list {
  background: #fff;
}

.real-data-flow span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.readiness-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.readiness-report-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.readiness-report-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-report-card strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.readiness-report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.readiness-report-card.ok {
  border-color: #bbf7d0;
}

.readiness-report-card.warn {
  border-color: #fed7aa;
}

.readiness-report-card.danger {
  border-color: #fecaca;
}

.readiness-blocker-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.readiness-blocker-panel h5 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.readiness-blocker-list,
.readiness-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.readiness-blocker-list span,
.readiness-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.readiness-blocker-list strong {
  color: var(--ink);
}

.release-ops-checklist {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.release-ops-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.release-ops-item.complete {
  border-left-color: #16a34a;
}

.release-ops-item.in_progress {
  border-left-color: #2563eb;
}

.release-ops-item.needed {
  border-left-color: #f59e0b;
}

.release-ops-item.blocked {
  border-left-color: #dc2626;
}

.release-ops-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.release-ops-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.release-ops-item > span {
  display: inline-flex;
  justify-content: center;
  min-width: 96px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-flow span {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.release-candidate-report {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #fff;
}

.release-candidate-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.release-candidate-list {
  display: grid;
  gap: 10px;
}

.release-candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.35fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.release-candidate-row.source_review_needed {
  border-left-color: #d97706;
}

.release-candidate-row.approval_needed,
.release-candidate-row.preflight_needed {
  border-left-color: #2563eb;
}

.release-candidate-row.ready_not_released {
  border-left-color: #0f766e;
}

.release-candidate-row.released_review_required {
  border-left-color: #b91c1c;
}

.release-candidate-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-candidate-row strong {
  display: block;
  color: var(--ink);
}

.release-candidate-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.release-candidate-status {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.release-candidate-status strong {
  font-size: 1.1rem;
}

.release-candidate-status small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.source-workflow-list {
  display: grid;
  gap: 10px;
}

.source-workflow-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.5fr) minmax(260px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
}

.source-workflow-row.needed {
  border-left-color: #d97706;
}

.source-workflow-row.in_review {
  border-left-color: #2563eb;
}

.source-workflow-row.confirmed {
  border-left-color: #059669;
}

.source-workflow-row.deferred {
  border-left-color: #64748b;
}

.source-approval-gate {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dbe3ef;
}

.compact-heading {
  margin-bottom: 12px;
}

.compact-heading h4 {
  margin: 0;
  font-size: 1.02rem;
  color: #111827;
}

.compact-heading p {
  margin: 4px 0 0;
}

.approval-gate-row.approved {
  border-left-color: #2563eb;
}

.approval-gate-row.requested,
.approval-gate-row.in_review {
  border-left-color: #0f766e;
}

.approval-gate-row.rejected,
.approval-gate-row.revoked {
  border-left-color: #b91c1c;
}

.guidance-release-gate {
  border-top-style: dashed;
}

.guidance-release-row.ready_not_released {
  border-left-color: #2563eb;
}

.guidance-release-row.released {
  border-left-color: #059669;
}

.guidance-release-row.rolled_back {
  border-left-color: #b91c1c;
}

.release-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-checklist span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.release-checklist span.complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.release-checklist span.blocked {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.source-workflow-main,
.source-workflow-status {
  display: grid;
  gap: 4px;
}

.source-workflow-main > span,
.source-workflow-main small,
.source-workflow-status small {
  color: var(--muted);
  font-size: 0.8rem;
}

.source-workflow-main > span {
  font-weight: 800;
  text-transform: uppercase;
}

.source-workflow-main strong {
  color: var(--ink);
}

.source-workflow-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.source-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.program-edit-row input,
.program-edit-row select,
.program-add-row input,
.program-add-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.program-add-row {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  margin-top: 12px;
}

.program-add-row button {
  align-self: end;
}

.program-availability-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #f8fafc;
}

.program-availability-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.program-availability-panel summary > div {
  display: grid;
  gap: 4px;
}

.program-availability-panel summary span,
.program-availability-panel p,
.program-availability-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.program-availability-list {
  display: grid;
  gap: 10px;
}

.program-availability-list article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.program-availability-list article.warn {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.program-availability-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.program-availability-heading > div {
  display: grid;
  gap: 3px;
}

.program-availability-heading span,
.program-availability-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.program-availability-heading strong {
  color: var(--ink);
  font-size: 15px;
}

.program-availability-heading em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.program-availability-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.program-availability-facts span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.program-availability-facts strong {
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
}

.program-fit-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.program-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.program-fit-grid article,
.program-fit-list article,
.program-fit-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.program-fit-grid article {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.program-fit-grid span,
.program-fit-list span,
.program-fit-grid small,
.program-fit-list small,
.program-fit-action span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.program-fit-grid span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.program-fit-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.program-fit-list {
  display: grid;
  gap: 8px;
}

.program-fit-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border-left: 4px solid var(--blue);
}

.program-fit-list article.warn {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.program-fit-list strong {
  display: block;
  color: var(--ink);
}

.program-fit-action {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-left: 4px solid #2563eb;
}

.program-fit-action strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.loan-path-decision-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: #f8fbff;
}

.loan-path-decision-grid,
.loan-path-source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.loan-path-decision-grid article,
.loan-path-source-list article,
.loan-path-mini-fit {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.loan-path-source-list article {
  border-left: 4px solid var(--blue);
}

.loan-path-source-list article.warn {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.loan-path-decision-grid span,
.loan-path-source-list span,
.loan-path-mini-fit span,
.loan-path-check-list strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.loan-path-decision-grid strong,
.loan-path-source-list strong,
.loan-path-mini-fit strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.loan-path-decision-grid small,
.loan-path-source-list small,
.loan-path-mini-fit small,
.loan-path-check-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.loan-path-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.loan-path-check-list span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.loan-path-check-list span.warn {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.loan-path-mini-fit {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
}

.internal-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.internal-status-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.internal-status-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.internal-status-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.internal-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.completion-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(42px, max-content);
  gap: 8px;
  align-items: center;
}

.completion-meter-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5df;
}

.completion-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.completion-meter strong {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.supabase-auth-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.supabase-auth-form {
  display: grid;
  gap: 10px;
}

.supabase-auth-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.supabase-auth-form .checkbox-label input {
  min-height: auto;
}

.supabase-auth-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-status-card {
  min-height: 130px;
}

.auth-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.auth-count-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 10px;
  display: grid;
  gap: 4px;
  min-height: 88px;
}

.auth-count-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-count-card strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.auth-count-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.abuse-check-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.data-layer-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.compact-count-grid {
  margin-bottom: 0;
}

.compact-heading h4,
.compact-heading p {
  margin: 0;
}

.abuse-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.abuse-check-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 10px;
  display: grid;
  gap: 5px;
}

.abuse-check-card.pass {
  border-color: #a9d1bf;
  background: var(--green-2);
}

.abuse-check-card.fail {
  border-color: #e2b0aa;
  background: var(--red-2);
}

.abuse-check-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.abuse-check-card strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.abuse-check-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.readiness-checklist {
  display: grid;
  gap: 10px;
}

.readiness-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, max-content);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 12px;
}

.readiness-row div {
  display: grid;
  gap: 4px;
}

.readiness-row strong {
  font-size: 0.95rem;
}

.readiness-row span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.readiness-row em {
  justify-self: end;
  border-radius: 999px;
  background: var(--green-2);
  color: var(--green);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 10px;
  text-align: right;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.profile-client-identity {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #80b89b;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #f5fbf8;
  box-shadow: 0 14px 28px rgba(29, 43, 37, 0.12);
}

.identity-title-row {
  display: grid;
  gap: 4px;
}

.identity-title-row strong {
  color: var(--green);
  font-size: 32px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.identity-chip-row,
.identity-subgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.identity-subgrid span {
  display: grid;
  min-width: min(100%, 180px);
  padding: 8px 10px;
  border: 1px solid #d4e4dc;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}

.identity-subgrid strong {
  color: var(--ink);
  font-size: 12px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: none;
}

.profile-actions .primary-button,
.profile-actions .secondary-button,
.profile-actions .danger-button {
  flex: 0 1 auto;
  white-space: nowrap;
}

.card-grid {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.profile-card.card-client {
  border-color: #b8d8c8;
  background: #f8fcfa;
}

.profile-card.card-numbers {
  border-color: #ead48e;
  background: #fffdf6;
}

.profile-card.card-review {
  border-color: #a8d7d5;
  background: #f6fcfb;
}

.profile-card.card-workflow {
  border-color: #b5cdec;
  background: #f7faff;
}

.profile-card.card-handoff {
  border-color: #d4ccee;
  background: #faf8ff;
}

.profile-card h4 {
  margin: 0 0 10px;
}

.collapsible-card {
  display: block;
}

.collapsible-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.collapsible-card summary::-webkit-details-marker {
  display: none;
}

.collapsible-card summary::after {
  content: "Collapse";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.collapsible-card:not([open]) summary::after {
  content: "Expand";
}

.card-body {
  margin-top: 10px;
}

.card-summary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.card-summary-copy strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card-summary-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.urla-profile-intro {
  margin-bottom: 12px;
}

.urla-profile-sections {
  display: grid;
  gap: 12px;
}

.urla-section-menu {
  margin: 0 0 12px;
  border: 1px solid #ccddd6;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px;
}

.urla-section-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  cursor: pointer;
}

.urla-section-menu summary strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.urla-section-menu summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.urla-section-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.urla-menu-button {
  justify-content: flex-start;
  gap: 8px;
  min-height: 36px;
  overflow-wrap: anywhere;
  text-align: left;
}

.urla-menu-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: #e8f2ee;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.urla-profile-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  box-shadow: inset 4px 0 0 var(--teal);
}

.urla-profile-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  cursor: pointer;
  font-weight: 900;
  margin-bottom: 10px;
}

.urla-profile-section summary strong {
  color: var(--ink);
  font-size: 15px;
}

.urla-profile-section summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.urla-profile-section summary::-webkit-details-marker {
  display: none;
}

.urla-profile-section:not([open]) summary {
  margin-bottom: 0;
}

.line-item-block {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.line-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.urla-line-total-summary {
  margin: 0;
}

.line-item-grid {
  display: grid;
  gap: 10px;
}

.line-item-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.line-item-row .line-note {
  grid-column: span 2;
}

.line-row-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.danger-button {
  border-color: rgba(185, 28, 28, 0.35);
  color: #991b1b;
}

.contact-event-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 94, 78, 0.35);
  border-radius: 8px;
  background: rgba(239, 247, 244, 0.85);
  box-shadow: inset 4px 0 0 var(--teal);
}

.contact-event-box .task-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-grid label,
.note-compose label {
  min-width: 0;
}

.checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.checkbox-row input {
  min-height: auto;
}

.option-group,
.multi-select,
.picklist-control {
  display: grid;
  gap: 10px;
}

.multi-select {
  position: relative;
}

.picklist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.selected-chip-list {
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-2);
  font-size: 13px;
  font-weight: 800;
}

.selected-chip span {
  font-weight: 900;
}

.multi-select-trigger {
  min-height: 44px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.multi-select-trigger::after {
  content: "v";
  justify-self: end;
  color: var(--muted);
  font-weight: 900;
}

.multi-select.open .multi-select-trigger::after {
  content: "^";
}

.multi-select-trigger span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.multi-select-trigger strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.multi-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.multi-select.open .multi-select-menu {
  display: grid;
}

.multi-select-menu .option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.multi-select-menu label {
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
  line-height: 1.25;
}

.multi-select-menu input[type="checkbox"] {
  flex: 0 0 auto;
}

.option-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.option-grid label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.option-grid input {
  min-height: auto;
  width: auto;
}

.urla-intake-grid {
  align-items: start;
}

.urla-section {
  position: relative;
}

.urla-section legend {
  letter-spacing: 0;
}

.urla-details {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: inset 4px 0 0 var(--teal);
}

.urla-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}

.urla-details summary::-webkit-details-marker {
  display: none;
}

.urla-details summary::after {
  content: "Open";
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.urla-details[open] summary::after {
  content: "Close";
}

.urla-details summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.urla-details .urla-section {
  margin: 0 14px 14px;
}

.urla-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.co-borrower-fields {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.hidden {
  display: none !important;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.edit-grid input,
.edit-grid select,
.note-compose input,
.doc-row select,
.share-helper input,
.share-helper textarea,
.letter-preview {
  width: 100%;
}

textarea,
.letter-preview {
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  font: inherit;
  color: var(--ink);
  background: white;
}

.share-helper,
.guardrail-card,
.v01-output,
.letter-card,
.followup-create,
.missing-create,
.missing-list,
.license-list {
  display: grid;
  gap: 10px;
}

.workflow-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-panel.create-panel {
  border-color: rgba(23, 102, 78, 0.28);
  background: var(--green-2);
}

.workflow-panel.saved-panel {
  border-color: rgba(51, 103, 214, 0.22);
  background: var(--blue-2);
}

.saved-followups-panel {
  padding: 0;
}

.saved-followups-panel summary {
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.saved-followups-panel summary::-webkit-details-marker {
  display: none;
}

.saved-followups-panel .followup-edit-row,
.saved-followups-panel > p {
  margin: 0 12px 12px;
}

.workflow-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workflow-example-grid div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.workflow-example-grid span {
  color: var(--ink);
  font-weight: 750;
}

.workflow-example-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.help-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  outline: none;
}

.help-popover {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 8px);
  display: none;
  width: min(280px, 78vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  color: var(--ink);
  line-height: 1.35;
}

.help-popover strong,
.help-popover span {
  display: block;
}

.help-popover span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.help-chip:hover .help-popover,
.help-chip:focus .help-popover,
.help-chip:focus-within .help-popover {
  display: block;
}

.summary-client-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.summary-export-preview {
  min-height: 360px;
  white-space: pre-wrap;
}

.license-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.followup-edit-row,
.missing-edit-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.followup-edit-row:first-child,
.missing-edit-row:first-child {
  border-top: 1px solid var(--line);
}

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

.brand-asset-grid,
.letter-branding-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-asset-grid input[type="file"] {
  width: 100%;
}

.brand-asset,
.letter-logo-preview,
.letter-qr-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.asset-preview,
.letter-logo-preview,
.letter-qr-preview {
  min-height: 86px;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.asset-preview img,
.letter-logo-preview img,
.letter-qr-preview img {
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
}

.qr-preview img,
.letter-qr-preview img {
  aspect-ratio: 1 / 1;
}

.share-helper {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.guardrail-note {
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.guardrail-note.ok {
  color: var(--green);
  background: var(--green-2);
}

.guardrail-note.warn {
  color: var(--gold);
  background: var(--gold-2);
}

.full-span {
  grid-column: 1 / -1;
}

.note-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.monthly-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.note-spotlight {
  display: grid;
  gap: 8px;
}

.note-spotlight p {
  margin: 0;
  color: var(--muted);
}

.section-subhead {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
}

.section-subhead strong {
  font-size: 13px;
}

.scenario-path-banner {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 102, 78, 0.2);
  border-radius: 8px;
  background: var(--green-2);
  margin-bottom: 10px;
}

.sandbox-loan-selector {
  grid-column: 1 / -1;
}

.sandbox-adopt-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(23, 102, 78, 0.24);
  border-radius: 8px;
  background: #f5fbf8;
}

.sandbox-adopt-panel button {
  grid-column: 1 / -1;
  justify-self: end;
  max-width: 360px;
  width: 100%;
}

.sandbox-adopt-panel div,
.sandbox-adopt-panel label {
  display: grid;
  gap: 5px;
}

.sandbox-adopt-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sandbox-adopt-panel strong {
  color: var(--ink);
  font-size: 14px;
}

.sandbox-adopt-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.scenario-path-banner span,
.scenario-path-banner small {
  color: var(--muted);
  font-size: 12px;
}

.scenario-path-banner small {
  grid-column: 1 / -1;
}

.scenario-path-banner strong {
  color: var(--green);
  border-radius: 999px;
  background: white;
  padding: 4px 10px;
  width: fit-content;
}

.loan-comparison {
  display: grid;
  gap: 10px;
}

.loan-comparison-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.loan-comparison-summary article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.loan-comparison-summary span,
.loan-comparison-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.loan-comparison-summary strong {
  font-size: 15px;
}

.loan-comparison-summary small {
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.loan-comparison-section {
  display: grid;
  gap: 10px;
}

.investor-comparison-section {
  padding: 10px;
  border: 1px solid #d6cda8;
  border-radius: 8px;
  background: #fffaf0;
}

.loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: hidden;
  padding-bottom: 4px;
}

.investor-path-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.loan-option {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.loan-option.suggested,
.loan-option.selected {
  border-color: #7eb99f;
  background: var(--green-2);
}

.loan-option.investor-path {
  border-color: #d6cda8;
  background: #fffdf6;
}

.loan-support-chip {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 8px;
  padding: 8px;
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.08);
}

.loan-support-chip span,
.loan-support-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.loan-support-chip strong {
  color: var(--ink);
  font-size: 18px;
}

.loan-support-chip small {
  grid-column: 1 / -1;
  text-transform: none;
}

.loan-support-chip.empty {
  border-color: var(--line);
  background: #fff;
}

.loan-support-chip.empty strong {
  color: var(--muted);
  font-size: 15px;
}

.loan-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.loan-option-header strong,
.loan-option-header span,
.loan-support-chip strong,
.loan-support-chip small,
.program-rule-meta,
.program-rule-meta small,
.program-rule-note,
.program-rule-check strong,
.program-rule-check small,
.investor-option-header,
.investor-option-header strong,
.investor-option-grid p,
.investor-option-grid small,
.nonconforming-investor-panel summary {
  min-width: 0;
  overflow-wrap: anywhere;
}

.loan-option p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.program-rule-panel,
.program-rules-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.guideline-reference-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(46, 79, 145, 0.22);
  border-radius: 8px;
  background: #f8fbff;
}

.guideline-reference-panel > div:first-child {
  display: grid;
  gap: 5px;
}

.guideline-reference-panel strong,
.guideline-reference-panel small,
.guideline-reference-panel p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guideline-reference-panel small,
.guideline-reference-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.guideline-reference-panel p {
  margin: 0;
}

.guideline-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}

.guideline-reference-grid article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(46, 79, 145, 0.16);
  border-radius: 8px;
  background: #fff;
}

.guideline-reference-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.guideline-reference-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.guideline-source-checklist {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d6cda8;
  border-radius: 8px;
  background: #fffaf0;
}

.guideline-source-checklist summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.guideline-source-checklist summary div {
  display: grid;
  gap: 3px;
}

.guideline-source-checklist summary span {
  color: var(--muted);
  font-size: 12px;
}

.guideline-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.guideline-source-grid article {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guideline-source-grid article > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.guideline-source-grid p,
.guideline-source-grid small,
.guideline-source-grid em,
.guideline-source-checklist summary,
.guideline-source-checklist strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guideline-source-grid p,
.guideline-source-grid small,
.guideline-source-grid em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.guideline-source-grid em {
  font-style: normal;
}

.guideline-evidence-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(42, 157, 143, 0.22);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.06);
}

.guideline-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.guideline-evidence-grid article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(42, 157, 143, 0.18);
  border-radius: 8px;
  background: #fff;
}

.guideline-evidence-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.guideline-evidence-grid strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.program-rule-panel h4,
.program-rules-card h4 {
  margin: 0;
}

.nonconforming-investor-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d6cda8;
  border-radius: 8px;
  background: #fffaf0;
}

.nonconforming-investor-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.nonconforming-investor-panel summary div {
  display: grid;
  gap: 3px;
}

.nonconforming-investor-panel summary span {
  color: var(--muted);
  font-size: 12px;
}

.investor-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.investor-option-grid article {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.investor-option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.investor-option-header > div {
  display: grid;
  gap: 3px;
}

.investor-option-header em {
  color: #7a5d14;
  border: 1px solid #d6cda8;
  border-radius: 999px;
  background: #fffaf0;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.investor-option-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.investor-option-grid p,
.investor-option-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.investor-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.investor-requirements span {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.program-rule-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.loan-option .program-rule-meta {
  justify-content: flex-start;
}

.program-rule-meta small,
.program-rule-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.program-rule-note {
  margin: 0;
}

.program-rule-checks {
  display: grid;
  gap: 6px;
}

.program-rule-check {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.program-rule-check span {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 750;
}

.program-rule-check small {
  color: var(--muted);
  line-height: 1.35;
}

.program-rule-check.ok span {
  color: var(--green);
  background: var(--green-2);
}

.program-rule-check.review span {
  color: var(--blue);
  background: var(--blue-2);
}

.program-rule-check.warn span {
  color: var(--gold);
  background: var(--gold-2);
}

.loan-option .residual-income-snapshot {
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(23, 102, 78, 0.18);
  border-radius: 8px;
  background: white;
}

.residual-income-snapshot strong,
.residual-income-snapshot span,
.residual-income-snapshot small {
  display: block;
}

.residual-income-snapshot span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.residual-income-snapshot small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fit-flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fit-flag {
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 750;
}

.fit-flag.ok {
  color: var(--green);
  background: var(--green-2);
}

.fit-flag.warn {
  color: var(--gold);
  background: var(--gold-2);
}

.crm-readiness {
  display: grid;
  gap: 12px;
}

.beta-feedback {
  display: grid;
  gap: 12px;
}

.feedback-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-question-grid label {
  min-width: 0;
}

.feedback-question-grid label span {
  color: var(--ink);
}

.feedback-question-grid textarea {
  min-height: 96px;
}

.feedback-triage-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.feedback-triage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feedback-triage-grid label {
  min-width: 0;
}

.feedback-triage-grid label span {
  color: var(--ink);
}

.feedback-triage-grid textarea {
  min-height: 84px;
}

.share-gate-dry-run {
  display: grid;
  gap: 12px;
}

.share-gate-summary,
.share-gate-checklist,
.share-gate-decision-grid,
.share-gate-files {
  display: grid;
  gap: 10px;
}

.share-gate-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-gate-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-gate-decisions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.share-gate-decision-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.share-gate-files {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.share-gate-summary article,
.share-gate-checklist article,
.share-gate-decision-grid article,
.share-gate-files article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.share-gate-checklist article.ready {
  border-left: 4px solid var(--green);
}

.share-gate-checklist article.waiting {
  border-left: 4px solid var(--gold);
}

.share-gate-checklist article.blocked {
  border-left: 4px solid var(--red);
}

.share-gate-summary span,
.share-gate-checklist span,
.share-gate-decision-grid span,
.share-gate-files span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.share-gate-summary strong,
.share-gate-checklist strong,
.share-gate-decision-grid strong,
.share-gate-files strong {
  color: var(--ink);
}

.share-gate-summary p,
.share-gate-checklist p,
.share-gate-decision-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.readiness-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.readiness-gate {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.readiness-gate.complete {
  border-color: #9bcbb5;
  background: var(--green-2);
}

.requirement-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.requirement-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.document-category-details {
  display: grid;
  gap: 8px;
}

.document-category-details summary {
  cursor: pointer;
  font-weight: 800;
}

.requirement-card > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.converter-button {
  min-height: 40px;
}

.converter-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.converter-dialog::backdrop {
  background: rgba(16, 24, 21, 0.38);
}

.converter-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 60px rgba(18, 28, 24, 0.22);
}

.converter-panel h4,
.converter-panel p {
  margin: 0;
}

.result-grid {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.kv-grid {
  display: grid;
  gap: 8px;
}

.kv {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.kv span:first-child {
  color: var(--muted);
}

.generic-export-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.generic-export-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.generic-export-header strong {
  display: block;
  font-size: 18px;
}

.generic-export-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.generic-export-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.generic-export-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.generic-export-metrics span,
.generic-export-metrics small,
.generic-export-action span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.generic-export-metrics strong {
  display: block;
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.generic-export-action {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

@media (max-width: 720px) {
  .generic-export-header,
  .generic-export-action {
    display: grid;
  }

  .generic-export-metrics {
    grid-template-columns: 1fr;
  }
}

.check-row,
.doc-row,
.activity-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.activity-row {
  border-left: 4px solid var(--blue);
  padding-left: 10px;
}

.activity-row.note-entry {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.activity-row.system-entry {
  border-left-color: var(--blue);
  background: #f7faff;
}

.check-row:first-child,
.doc-row:first-child,
.activity-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.doc-row-detailed {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.doc-row-detailed input,
.doc-row-detailed select {
  width: 100%;
}

.data-tools-row {
  align-items: stretch;
}

@media (max-width: 1050px) {
  .app-shell,
  .mlo-command-hero,
  .mlo-work-grid,
  .client-file-id-card,
  .profile-layout,
  .action-center,
  .action-facts,
  .quick-estimate,
  .card-grid,
  .three-column,
  .intake-grid,
  .assumption-grid,
  .edit-grid,
  .urla-subgrid,
  .note-compose,
  .stage-count-grid,
  .internal-status-grid,
  .supabase-auth-grid,
  .supabase-auth-results,
  .auth-count-grid,
  .gate-one-strip,
  .reviewer-access-grid,
  .abuse-check-grid,
  .onboarding-step-grid,
  .loan-comparison-summary,
  .command-task-flow-summary,
  .readiness-row,
  .property-client-picker-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mlo-command-actions {
    justify-content: flex-start;
  }

  .mlo-mobile-strip-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .topbar,
  .toolbar,
  .panel-heading,
  .profile-header {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  #search-input {
    width: 100%;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .readiness-row em {
    justify-self: start;
    text-align: left;
  }

  .license-row,
  .brand-asset-grid,
  .letter-branding-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  html,
  body,
  .app-shell {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  body {
    background: #eef2f3;
  }

  body.forced-mobile-preview {
    display: block;
    justify-items: stretch;
    padding: 0;
    background: #eef2f3;
  }

  body.forced-mobile-preview .app-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #eef2f3;
    box-shadow: none;
  }

  body.forced-mobile-preview .main {
    padding: 12px 12px 98px;
    background: #eef2f3;
  }

  body.forced-mobile-preview .mobile-work-tabs {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  body.forced-mobile-preview .work-area-context {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #d7e3df;
    border-radius: 8px;
    background: #ffffff;
  }

  body.forced-mobile-preview .work-area-breadcrumb {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  body.forced-mobile-preview .work-area-title h3 {
    font-size: 24px;
  }

  body.forced-mobile-preview .work-area-title p:not(.eyebrow) {
    font-size: 14px;
  }

  body.forced-mobile-preview .active-client-switcher {
    margin-bottom: 8px;
    padding: 10px;
  }

  body.forced-mobile-preview .active-client-switcher-head,
  body.forced-mobile-preview .active-client-results {
    grid-template-columns: 1fr;
  }

  body.forced-mobile-preview .active-file-context {
    top: 8px;
    z-index: 35;
    margin-bottom: 10px;
  }

  body.forced-mobile-preview .profile-client-identity {
    border: 1px solid #bcd9d2;
    border-left: 5px solid var(--green);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 18px rgba(20, 62, 44, 0.12);
  }

  body.forced-mobile-preview .identity-chip-row,
  body.forced-mobile-preview .identity-subgrid {
    gap: 6px;
  }

  .property-entry-grid,
  .property-card-grid,
  .property-card-facts,
  .property-support-snapshot,
  .property-loan-fit-grid,
  .output-guardrail-matrix,
  .property-output-boundary,
  .property-output-grid,
  .compact-property-grid,
  .receipt-grid,
  .beta-demo-grid,
  .beta-demo-steps,
  .demo-file-strip,
  .partner-analytics-metrics,
  .partner-analytics-grid,
  .partner-analytics-funnel,
  .partner-quality-summary,
  .partner-quality-list article,
  .partner-reliability-summary,
  .partner-reliability-list article,
  .partner-reliability-events,
  .feedback-triage-grid,
  .share-gate-summary,
  .share-gate-checklist,
  .share-gate-decision-grid,
  .share-gate-files,
  .criteria-choice-grid,
  .location-picker-grid,
  .range-control-grid,
  .review-flow-grid,
  .reviewer-path-grid,
  .reviewer-file-grid,
  .adopted-support-grid,
  .beta-readiness-summary,
  .beta-readiness-grid,
  .sandbox-adopt-panel,
  .property-estimate-grid,
  .pilot-flow-grid,
  .share-instructions,
  .message-template-grid,
  .investor-option-grid,
  .line-item-row {
    grid-template-columns: 1fr;
  }

  .reviewer-route-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .line-item-row .line-note {
    grid-column: auto;
  }

  .beta-demo-step {
    min-height: 0;
  }

  .app-shell {
    display: block;
    background: #eef2f3;
  }

  .main {
    padding: 14px 12px 100px;
    background: #eef2f3;
    max-width: 100%;
    overflow-x: clip;
  }

  .mobile-work-tabs {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100vw;
    max-width: 100vw;
    gap: 0;
    margin: 0;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border: 1px solid #d6e2dd;
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(248, 250, 251, 0.98);
    box-shadow: 0 -10px 24px rgba(18, 28, 24, 0.12);
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(10px);
  }

  .mobile-work-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-work-tabs button {
    min-width: 0;
    min-height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4c5659;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
  }

  .mobile-work-tabs button::before {
    display: block;
    margin-bottom: 4px;
    color: #4c5659;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-work-tabs button[data-mobile-work-tab="today"]::before {
    content: "01";
    font-size: 13px;
  }

  .mobile-work-tabs button[data-mobile-work-tab="client"]::before {
    content: "02";
    font-size: 13px;
  }

  .mobile-work-tabs button[data-mobile-work-tab="docs"]::before,
  .mobile-work-tabs button[data-mobile-work-tab="numbers"]::before {
    content: "03";
    font-size: 13px;
  }

  .mobile-work-tabs button[data-mobile-work-tab="property"]::before {
    content: "04";
    font-size: 13px;
  }

  .mobile-work-tabs button[data-mobile-work-tab="followup"]::before {
    content: "05";
    font-size: 13px;
  }

  .mobile-work-tabs button.active {
    background: transparent;
    border-color: transparent;
    color: var(--app-teal);
    box-shadow: none;
  }

  .mobile-work-tabs button.active::before {
    color: var(--app-teal);
  }

  .mobile-hide {
    display: none !important;
  }

  body[data-mobile-work="client"] .mobile-hide-client {
    display: none !important;
  }

  body[data-mobile-work="numbers"] #profile-view.active-view .mobile-work-section,
  body[data-mobile-work="client"] #profile-view.active-view .mobile-work-section,
  body[data-mobile-work="docs"] #profile-view.active-view .mobile-work-section,
  body[data-mobile-work="property"] #profile-view.active-view .mobile-work-section,
  body[data-mobile-work="followup"] #profile-view.active-view .mobile-work-section {
    display: none;
  }

  body[data-mobile-work="numbers"] #profile-view.active-view .mobile-numbers-section,
  body[data-mobile-work="client"] #profile-view.active-view .mobile-client-section,
  body[data-mobile-work="docs"] #profile-view.active-view .mobile-docs-section,
  body[data-mobile-work="property"] #profile-view.active-view .mobile-property-section,
  body[data-mobile-work="followup"] #profile-view.active-view .mobile-followup-section {
    display: block;
  }

  body[data-mobile-work="numbers"] #profile-view.active-view .mobile-active-file-overview,
  body[data-mobile-work="client"] #profile-view.active-view .mobile-active-file-overview,
  body[data-mobile-work="followup"] #profile-view.active-view .mobile-active-file-overview {
    display: grid;
  }

  body[data-mobile-work="property"] #profile-view.active-view .mobile-active-file-overview {
    display: none;
  }

  body[data-mobile-work="docs"] #profile-view.active-view .mobile-docs-overview {
    display: grid;
  }

  body[data-mobile-work="followup"] #profile-view.active-view .mobile-client-task-overview {
    display: grid;
  }

  body[data-mobile-work="client"] #profile-view.active-view .mobile-numbers-overview,
  body[data-mobile-work="numbers"] #profile-view.active-view .mobile-numbers-overview {
    display: grid;
  }

  body[data-mobile-work="property"] #propertyHub-view.active-view .mobile-property-hub-overview,
  body[data-mobile-work="property"] #profile-view.active-view .mobile-client-property-overview {
    display: grid;
  }

  body[data-mobile-work="numbers"] #profile-view.active-view .profile-work-card-grid,
  body[data-mobile-work="client"] #profile-view.active-view .profile-work-card-grid,
  body[data-mobile-work="docs"] #profile-view.active-view .profile-work-card-grid,
  body[data-mobile-work="property"] #profile-view.active-view .profile-work-card-grid,
  body[data-mobile-work="followup"] #profile-view.active-view .profile-work-card-grid {
    display: block;
  }

  body[data-mobile-work="numbers"] #profile-view.active-view .profile-work-card-grid > .mobile-work-section,
  body[data-mobile-work="client"] #profile-view.active-view .profile-work-card-grid > .mobile-work-section,
  body[data-mobile-work="docs"] #profile-view.active-view .profile-work-card-grid > .mobile-work-section,
  body[data-mobile-work="property"] #profile-view.active-view .profile-work-card-grid > .mobile-work-section,
  body[data-mobile-work="followup"] #profile-view.active-view .profile-work-card-grid > .mobile-work-section {
    margin-bottom: 12px;
  }

  body[data-mobile-work="numbers"] #profile-view.active-view .profile-list,
  body[data-mobile-work="docs"] #profile-view.active-view .profile-list,
  body[data-mobile-work="property"] #profile-view.active-view .profile-list,
  body[data-mobile-work="followup"] #profile-view.active-view .profile-list {
    display: none;
  }

  .view,
  .panel,
  .profile-card,
  .guardrail-card {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .topbar,
  .topbar-actions,
  .panel-heading {
    min-width: 0;
    flex-wrap: wrap;
  }

  .topbar > div,
  .panel-heading > div {
    min-width: 0;
  }

  .panel-heading p,
  .panel p {
    white-space: normal;
  }

  .sidebar {
    display: none;
  }

  body.client-portal-context .topbar {
    display: none;
  }

  body.client-portal-context .main {
    padding-top: 0;
    background: white;
  }

  body.client-portal-context .client-portal-layout {
    gap: 0;
    margin: 0 -12px;
  }

  body.client-portal-context .client-portal-layout > .panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.client-portal-context .client-portal-hero {
    background: var(--app-teal);
    color: white;
    border: 0;
  }

  body.client-portal-context .client-portal-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.client-portal-context .client-portal-trust-strip > div {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.13);
  }

  body.client-portal-context .client-portal-trust-strip span,
  body.client-portal-context .client-portal-trust-strip small {
    color: rgba(255, 255, 255, 0.78);
  }

  body.client-portal-context .client-portal-trust-strip strong {
    color: white;
  }

  .portal-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-action-card {
    min-height: 104px;
  }

  .client-portal-primary-task {
    grid-template-columns: 1fr;
  }

  body.client-portal-context .client-portal-hero .panel-heading p,
  body.client-portal-context .client-portal-hero .guardrail-note,
  body.client-portal-context .client-portal-hero .subtle-badge {
    color: rgba(255, 255, 255, 0.82);
  }

  body.client-portal-context .client-portal-hero .guardrail-note,
  body.client-portal-context .client-portal-hero .subtle-badge {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.13);
  }

  body.client-portal-context .mobile-next-action-bar {
    display: none;
  }

  .client-portal-payment-snapshot {
    border-top: 0;
  }

  .payment-ring-card {
    grid-template-columns: 1fr;
    background: #f6f8f8;
    border: 0;
  }

  .payment-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-legend span {
    display: grid;
    justify-items: center;
    text-align: center;
    font-size: 11px;
  }

  .client-financial-snapshot .panel-heading p,
  .client-portal-progress .panel-heading p,
  .client-portal-criteria .panel-heading p,
  .client-portal-quick-actions .panel-heading p,
  .client-portal-submit .panel-heading p,
  .client-portal-review-flow .panel-heading p,
  .client-portal-receipts .panel-heading p,
  .client-portal-timeline .panel-heading p,
  .client-portal-saved .panel-heading p,
  .client-portal-onboarding .panel-heading p {
    display: none;
  }

  .brand {
    display: none;
  }

  .sidebar-note {
    display: none;
  }

  .nav-list {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-secondary {
    margin-top: 0;
    padding-top: 8px;
  }

  .sidebar.mobile-nav-open .nav-list {
    display: grid;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    border: 1px solid #d3e2dc;
    border-radius: 8px;
    padding: 0 12px;
    background: white;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(29, 43, 37, 0.06);
  }

  .mobile-menu-toggle::after {
    content: "Open";
    color: var(--muted);
    font-size: 12px;
  }

  .sidebar.mobile-nav-open .mobile-menu-toggle::after {
    content: "Close";
  }

  .nav-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d3e2dc;
    background: white;
    color: var(--ink);
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 12px rgba(29, 43, 37, 0.06);
  }

  .nav-button[data-view="settings"] {
    grid-column: 1 / -1;
  }

  .mobile-next-action-bar {
    position: fixed;
    right: 12px;
    bottom: 76px;
    left: 12px;
    z-index: 30;
    display: block;
  }

  body[data-active-view="dashboard"][data-mobile-work="today"] .mobile-next-action-bar {
    display: none;
  }

  .mobile-next-action-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    border: 1px solid #19563d;
    border-radius: 8px;
    background: var(--green);
    color: white;
    padding: 10px 12px;
    box-shadow: 0 14px 28px rgba(18, 28, 24, 0.24);
    text-align: left;
  }

  .mobile-next-action-button span {
    grid-row: span 2;
    align-self: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-next-action-button strong,
  .mobile-next-action-button small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-next-action-button strong {
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-next-action-button small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 750;
  }

  body[data-mobile-work="today"] #dashboard-view .metric-grid,
  body[data-mobile-work="today"] #dashboard-view .dashboard-disclosure,
  body[data-mobile-work="today"] #dashboard-view #reviewer-access-status,
  body[data-mobile-work="today"] #dashboard-view #beta-demo-path,
  body[data-mobile-work="today"] #dashboard-view #beta-readiness-gate,
  body[data-mobile-work="today"] #dashboard-view .stage-panel,
  body[data-mobile-work="today"] #dashboard-view .toolbar,
  body[data-mobile-work="today"] #dashboard-view .dashboard-client-queue-panel,
  body[data-mobile-work="today"] #dashboard-view .roleplay-date-simulator,
  body[data-mobile-work="today"] #dashboard-view .daily-followup-stack,
  body[data-mobile-work="today"] #dashboard-view .all-tasks-board {
    display: none;
  }

  .nav-button.active {
    background: var(--green-2);
    border-color: #93c7b0;
    color: var(--green);
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .nav-button-action {
    order: -1;
    background: var(--green);
    border-color: var(--green);
    color: white;
  }

  .nav-button-action.active {
    background: #f5faf7;
    border-color: #f5faf7;
    color: var(--green);
  }

  .summary-client-picker {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #settings-view,
  #settings-view .panel,
  #settings-view .guardrail-card,
  #settings-view .license-list,
  #settings-view .mlo-workflow-profile-preview {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #settings-view .edit-grid,
  #settings-view .license-row,
  #settings-view .brand-asset-grid,
  #settings-view .mlo-workflow-profile-grid,
  #settings-view .mlo-workflow-rules {
    grid-template-columns: 1fr;
  }

  #settings-view .panel-heading,
  #settings-view .mlo-workflow-profile-preview summary,
  #settings-view .mlo-workflow-editor summary,
  #settings-view .mlo-beta-onboarding-flow summary,
  #settings-view .mlo-workflow-rule div {
    align-items: flex-start;
    flex-direction: column;
  }

  #settings-view input,
  #settings-view select,
  #settings-view button {
    width: 100%;
  }

  .mobile-collapsible > summary,
  .client-portal-layout > details.panel > summary,
  .client-summary > summary,
  .client-progress-panel > summary,
  .buyer-criteria-panel > summary,
  .client-property-panel > summary,
  .message-template-panel > summary,
  .property-status-panel > summary,
  .property-client-picker > summary,
  .property-pilot-flow-panel > summary,
  .property-borrower-file-panel > summary {
    cursor: pointer;
  }

  .mobile-collapsible > summary::after,
  .dashboard-collapsible summary::after,
  .profile-list-summary::after,
  .collapsible-card summary::after,
  .client-portal-layout > details.panel > summary::after,
  .client-summary > summary::after,
  .client-progress-panel > summary::after,
  .buyer-criteria-panel > summary::after,
  .client-property-panel > summary::after,
  .message-template-panel > summary::after,
  .property-status-panel > summary::after,
  .property-client-picker > summary::after,
  .property-pilot-flow-panel > summary::after,
  .property-borrower-file-panel > summary::after {
    content: "Collapse";
    align-self: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-collapsible:not([open]) > summary::after,
  .client-portal-layout > details.panel:not([open]) > summary::after,
  .client-summary:not([open]) > summary::after,
  .client-progress-panel:not([open]) > summary::after,
  .buyer-criteria-panel:not([open]) > summary::after,
  .client-property-panel:not([open]) > summary::after,
  .message-template-panel:not([open]) > summary::after,
  .property-status-panel:not([open]) > summary::after,
  .property-client-picker:not([open]) > summary::after,
  .property-pilot-flow-panel:not([open]) > summary::after,
  .property-borrower-file-panel:not([open]) > summary::after {
    content: "Open";
  }

  .button-row {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .button-row > * {
    min-width: 0;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .panel,
  .view,
  .property-card,
  .receipt-card,
  .timeline-item {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .topbar-actions {
    display: flex;
  }

  .topbar-actions [data-view-jump="intake"] {
    order: -3;
  }

  #search-input {
    order: -2;
  }

  #reset-data-button {
    order: 6;
  }

  #export-csv-button,
  #export-generic-crm-button {
    order: 8;
  }

  .panel,
  .profile-card,
  .alert-card,
  .validation-card,
  .metric-card {
    border-width: 1px;
    border-color: #8fb3a3;
    box-shadow: 0 12px 28px rgba(29, 43, 37, 0.14);
  }

  input,
  select,
  textarea,
  .input-with-unit,
  .loan-option,
  .stage-count,
  .followup-edit-row,
  .missing-edit-row,
  .activity-row {
    border-color: #adc4b9;
  }

  input,
  select,
  textarea,
  button {
    scroll-margin-bottom: 160px;
  }

  .dashboard-collapsible,
  .metric-grid,
  .toolbar,
  .profile-list,
  .profile-header,
  .profile-card {
    margin-bottom: 16px;
  }

  .profile-client-identity {
    position: sticky;
    top: 64px;
    z-index: 12;
    margin: -2px -2px 0;
    box-shadow: 0 10px 22px rgba(24, 43, 35, 0.12);
  }

  .identity-title-row strong {
    font-size: clamp(24px, 9vw, 34px);
  }

  .identity-subgrid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stage-panel {
    padding-bottom: 10px;
  }

  .stage-panel .panel-heading {
    margin-bottom: 8px;
  }

  .stage-count-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .stage-count-grid::-webkit-scrollbar {
    display: none;
  }

  .stage-count {
    flex: 0 0 118px;
    min-height: 58px;
    padding: 8px;
    gap: 4px;
    scroll-snap-align: start;
  }

  .stage-count span {
    font-size: 11px;
  }

  .stage-count strong {
    font-size: 20px;
  }

  .dashboard-collapsible summary,
  .profile-list-summary,
  .collapsible-card summary {
    min-height: 42px;
    align-items: center;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .client-table,
  .client-table tbody,
  .client-table tr,
  .client-table td {
    display: block;
    width: 100%;
  }

  .client-table {
    min-width: 0;
  }

  .client-table thead {
    display: none;
  }

  .client-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .client-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 7px 0;
    font-size: 13px;
  }

  .mobile-only {
    display: flex;
  }

  .client-table tr {
    display: grid;
    gap: 10px;
  }

  .client-table td {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0;
  }

  .client-table td::before {
    display: none;
  }

  .queue-client-cell {
    gap: 8px;
  }

  .queue-client-cell .card-meta {
    gap: 6px;
  }

  .queue-meta-cell,
  .queue-secondary-cell {
    display: none !important;
  }

  .queue-reason-cell::before,
  .queue-action-cell::before {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .queue-reason-cell::before {
    content: "Why";
  }

  .queue-action-cell::before {
    content: "Next";
  }

  .queue-reason-cell strong,
  .queue-action-cell span:first-child {
    font-size: 14px;
    line-height: 1.35;
  }

  .client-table td:nth-child(8) {
    grid-template-columns: 1fr;
    padding-top: 2px;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .quick-estimate,
  .edit-grid,
  .compact-grid,
  .next-action-edit,
  .summary-grid {
    gap: 12px;
  }

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

  .next-action-edit {
    grid-template-columns: 1fr;
  }

  .summary-wide {
    grid-column: 1 / -1;
  }

  .monthly-field {
    grid-template-columns: 1fr;
  }

  .loan-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-x: visible;
  }

  .requirement-split {
    grid-template-columns: 1fr;
  }

  .readiness-gate-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feedback-question-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-question-grid textarea {
    min-height: 110px;
  }

  .readiness-gate {
    padding: 9px;
    gap: 5px;
  }

  .readiness-gate .card-meta {
    gap: 6px;
  }

  .readiness-gate .muted,
  .requirement-card > span,
  .loan-option p {
    font-size: 12px;
    line-height: 1.3;
  }

  .requirement-card {
    padding: 10px;
    gap: 6px;
  }

  .fit-flag {
    padding: 3px 7px;
    font-size: 11px;
  }

  .loan-option {
    padding: 12px;
  }

  .loan-option strong {
    font-size: 16px;
  }

  .converter-dialog {
    width: calc(100vw - 20px);
  }

  .action-center {
    padding: 14px;
  }

  .action-copy h3 {
    font-size: 20px;
  }

  .button-row.compact .mini-button {
    min-height: 38px;
    flex: 1 1 130px;
  }

  .timeline-property summary {
    align-items: flex-start;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .client-table {
    display: table;
    min-width: 940px;
    border-collapse: collapse;
  }

  .client-table thead {
    display: table-header-group;
  }

  .client-table tbody {
    display: table-row-group;
  }

  .client-table tr {
    display: table-row;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .client-table td {
    display: table-cell;
    width: auto;
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    font-size: 13px;
    vertical-align: top;
  }

  .client-table td:nth-child(8) {
    display: table-cell;
    padding: 12px 10px;
  }

  .queue-meta-cell,
  .queue-secondary-cell {
    display: table-cell !important;
  }

  .queue-reason-cell::before,
  .queue-action-cell::before {
    display: none;
  }

  .mobile-only {
    display: none;
  }
}

.client-document-request-list,
.doc-request-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
}

.document-workflow-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.document-workflow-summary > div,
.document-workflow-lists > div {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.document-workflow-summary span,
.document-workflow-lists strong {
  color: var(--muted);
  font-size: 12px;
}

.document-workflow-summary strong {
  font-size: 18px;
}

.document-workflow-summary p,
.document-workflow-lists ul,
.docs-condition-signal p {
  margin: 0;
}

.document-workflow-lists {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.document-workflow-lists ul {
  padding-left: 18px;
}

.client-document-request-list h4,
.doc-request-editor h4 {
  margin: 0;
}

.doc-request-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.doc-request-item div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.doc-request-item span {
  color: var(--muted);
  font-size: 12px;
}

.doc-request-item p {
  margin: 0;
}

.doc-request-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

.doc-request-row label {
  display: grid;
  gap: 6px;
}

.criteria-dropdown {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.mlo-line-review-list {
  display: grid;
  gap: 10px;
}

.mlo-line-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.45fr) minmax(180px, 0.7fr);
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.mlo-line-review-row > div {
  display: grid;
  gap: 3px;
}

.mlo-line-review-row span,
.mlo-line-review-row small {
  color: var(--muted);
  font-size: 12px;
}

.supabase-verified-input-list {
  margin-bottom: 10px;
}

.supabase-verified-input-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr) max-content;
  align-items: center;
  border-left: 4px solid #3b82f6;
}

.verified-input-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.verified-input-editor .line-review-note {
  grid-column: span 2;
}

.verified-input-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.verified-input-values span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.verified-input-values strong {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.source-intake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.source-intake-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.source-intake-grid span,
.source-intake-grid small {
  color: var(--muted);
  font-size: 12px;
}

.file-area-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.file-area-state-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 0 8px 8px 0;
  background: var(--panel-2);
}

.file-area-state-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.file-area-state-grid p,
.file-area-state-grid small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.line-doc-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.doc-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.doc-status-badge.Requested,
.doc-status-badge.requested,
.doc-status-badge.Needs,
.doc-status-badge.Missing {
  border-color: #efc266;
  background: #fff7e6;
  color: #7a4a00;
}

.doc-status-badge.Reviewed,
.doc-status-badge.received,
.doc-status-badge.reviewed,
.doc-status-badge.Complete {
  border-color: #a9d6bc;
  background: #eefaf2;
  color: #1f6b3c;
}

.global-financial-totals {
  border-color: #d9e1ec;
  background: #fbfcfe;
}

@media (max-width: 720px) {
  .doc-request-row {
    grid-template-columns: 1fr;
  }

  .document-workflow-summary,
  .document-workflow-lists {
    grid-template-columns: 1fr;
  }

  .mlo-line-review-row {
    grid-template-columns: 1fr;
  }

  .verified-input-editor,
  .verified-input-values,
  .calculator-source-grid {
    grid-template-columns: 1fr;
  }

  .verified-input-editor .line-review-note {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .property-status-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .view,
  .panel,
  .property-card,
  .receipt-card,
  .timeline-item,
  .summary-item {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .sidebar {
    display: none;
  }

  .sidebar.mobile-nav-open {
    overflow-y: auto;
  }

  .main {
    padding-top: 0;
  }

  .mobile-menu-toggle {
    position: relative;
    top: 0;
    z-index: 1;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle small {
    min-width: 0;
  }

  .mobile-menu-toggle small {
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 58%;
  }

  .stage-count-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .stage-count {
    flex: 0 0 132px;
    min-height: 64px;
    scroll-snap-align: start;
  }

  .table-wrap {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .client-table,
  .client-table tbody,
  .client-table tr,
  .client-table td {
    display: block;
    width: 100%;
  }

  .client-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .client-table thead,
  .queue-meta-cell,
  .queue-secondary-cell,
  .client-table td:nth-child(8) {
    display: none !important;
  }

  .client-table tr {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-left-width: 6px;
    border-radius: 8px;
    background: white;
  }

  .client-table td {
    border: 0;
    padding: 0;
  }

  .mobile-only {
    display: flex;
  }

  .queue-reason-cell::before,
  .queue-action-cell::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .queue-reason-cell::before {
    content: "Why";
  }

  .queue-action-cell::before {
    content: "Next";
  }

  .property-review-section {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  .property-review-section-heading {
    cursor: pointer;
    list-style: none;
    margin: 10px 0 0;
  }

  .property-review-section-heading::-webkit-details-marker,
  .property-card-summary::-webkit-details-marker {
    display: none;
  }

  .property-review-section-heading::after,
  .property-card-summary::after {
    content: "Collapse";
    display: inline-block;
    min-width: max-content;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
  }

  .property-review-section:not([open]) > .property-review-section-heading::after,
  .property-review-card:not([open]) > .property-card-summary::after {
    content: "Open";
  }

  .property-card-summary {
    display: grid;
    gap: 8px;
    cursor: pointer;
    list-style: none;
  }

  .property-card-body {
    display: grid;
    gap: 10px;
  }

  .mobile-collapsible > summary,
  .client-portal-layout > details.panel > summary,
  .client-summary > summary,
  .client-progress-panel > summary,
  .buyer-criteria-panel > summary,
  .client-property-panel > summary,
  .message-template-panel > summary,
  .property-status-panel > summary,
  .property-client-picker > summary,
  .property-pilot-flow-panel > summary,
  .property-borrower-file-panel > summary,
  .property-review-section-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .mobile-collapsible > summary::after,
  .client-portal-layout > details.panel > summary::after,
  .client-summary > summary::after,
  .client-progress-panel > summary::after,
  .buyer-criteria-panel > summary::after,
  .client-property-panel > summary::after,
  .message-template-panel > summary::after,
  .property-status-panel > summary::after,
  .property-client-picker > summary::after,
  .property-pilot-flow-panel > summary::after,
  .property-borrower-file-panel > summary::after {
    display: inline-block;
    min-width: max-content;
    white-space: nowrap;
    justify-self: end;
  }
}

.daily-stack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-stack-column {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel-soft);
  min-width: 0;
}

.daily-stack-heading {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.daily-stack-heading small {
  color: var(--muted);
  font-weight: 750;
  grid-column: 1 / -1;
}

.daily-stack-list {
  display: grid;
  gap: 8px;
}

.todays-operating-summary {
  display: grid;
  gap: 12px;
}

.operating-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operating-summary-metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  background: var(--panel-soft);
  text-align: left;
}

.operating-summary-metric span,
.operating-summary-metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.operating-summary-metric strong {
  width: fit-content;
}

.operating-summary-metric:hover,
.operating-bucket-chip:hover,
.operating-bucket-chip.active {
  border-color: var(--accent);
}

.operating-bucket-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operating-bucket-chip {
  cursor: pointer;
}

.todays-operating-summary > label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
  max-width: 240px;
}

.work-today-mode {
  display: grid;
  gap: 12px;
}

.work-today-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.work-today-card p {
  margin: 0;
}

.daily-stack-card {
  gap: 8px;
  padding: 10px;
}

.daily-stack-card p {
  margin: 0;
}

.task-queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.task-queue-list {
  display: grid;
  gap: 10px;
}

.task-queue-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.task-queue-card p {
  margin: 0;
}

.task-edit-controls {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.task-edit-controls summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.task-edit-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin-top: 8px;
}

.task-edit-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
}

.all-tasks-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.task-board-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(160px, 240px));
  margin: 0 0 12px;
}

.task-board-filters label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
}

.manual-task-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--panel-soft);
}

.manual-task-form summary {
  cursor: pointer;
  font-weight: 850;
}

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

.manual-task-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
}

.contact-attempt-controls {
  display: grid;
  gap: 10px;
}

.contact-attempt-controls .task-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-attempt-controls .button-row {
  align-self: end;
  grid-column: 1 / -1;
}

.contact-attempt-controls .mini-button {
  width: 100%;
}

.all-tasks-board .contact-attempt-controls .task-edit-grid {
  grid-template-columns: 1fr;
}

.task-history-drawer {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--panel-soft);
}

.task-history-drawer summary {
  cursor: pointer;
  font-weight: 850;
}

.task-history-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.task-history-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.task-history-card p {
  margin: 0;
}

.all-tasks-column {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: var(--panel-soft);
}

.daily-stack-move-label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 850;
}

.daily-stack-move-label select {
  min-height: 34px;
}

.official-support-grid,
.mlo-readiness-strip,
.sandbox-boundary-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-support-grid article,
.mlo-readiness-strip > div,
.sandbox-boundary-strip > div,
.sandbox-adoption-history.empty,
.sandbox-adoption-list article {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.official-support-grid article.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.official-support-grid span,
.mlo-readiness-strip span,
.sandbox-boundary-strip span,
.sandbox-adoption-history span,
.sandbox-adoption-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.official-support-grid strong,
.mlo-readiness-strip strong,
.sandbox-boundary-strip strong,
.sandbox-adoption-history strong,
.sandbox-adoption-list strong {
  font-size: 18px;
  line-height: 1.15;
}

.official-support-grid small,
.mlo-readiness-strip small,
.sandbox-boundary-strip small,
.official-support-grid p,
.sandbox-adoption-history p,
.sandbox-adoption-list p,
.sandbox-adoption-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.sandbox-boundary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sandbox-adoption-history {
  display: grid;
  gap: 10px;
}

.sandbox-adoption-history summary {
  cursor: pointer;
}

.sandbox-adoption-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .daily-stack-grid,
  .operating-summary-grid,
  .operator-decision-summary-grid,
  .operator-decision-signal-grid,
  .mlo-calibration-grid,
  .mlo-workflow-profile-grid,
  .mlo-workflow-rules,
  .property-loan-fit-grid,
  .property-output-grid,
  .property-output-boundary,
  .output-guardrail-matrix,
  .property-support-snapshot,
  .command-task-flow-summary,
  .official-support-grid,
  .mlo-readiness-strip,
  .sandbox-boundary-strip,
  .sandbox-adoption-list,
  .beta-demo-grid,
  .beta-demo-steps,
  .reviewer-path-grid,
  .reviewer-file-grid,
  .beta-readiness-grid,
  .all-tasks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .daily-stack-grid,
  .operating-summary-grid,
  .operator-decision-summary-grid,
  .operator-decision-signal-grid,
  .mlo-calibration-grid,
  .mlo-workflow-profile-grid,
  .mlo-workflow-rules,
  .property-loan-fit-grid,
  .property-output-boundary,
  .output-guardrail-matrix,
  .property-support-snapshot,
  .command-task-flow-summary,
  .official-support-grid,
  .mlo-readiness-strip,
  .sandbox-boundary-strip,
  .sandbox-adoption-list,
  .beta-demo-grid,
  .beta-demo-steps,
  .reviewer-path-grid,
  .reviewer-file-grid,
  .adopted-support-grid,
  .beta-readiness-summary,
  .beta-readiness-grid,
  .sandbox-adopt-panel,
  .investor-option-grid,
  .all-tasks-grid,
  .task-board-filters,
  .task-edit-grid,
  .manual-task-grid,
  .prequal-scenario-grid,
  .scenario-field-grid,
  .readiness-report-grid,
  .source-workflow-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #settings-view {
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
  }

  #settings-view .panel,
  #settings-view .guardrail-card,
  #settings-view .license-row,
  #settings-view .brand-asset,
  #settings-view .mlo-workflow-editor,
  #settings-view .mlo-workflow-editor-bucket,
  #settings-view .mlo-beta-onboarding-flow,
  #settings-view .mlo-onboarding-step,
  #settings-view .mlo-workflow-profile-preview,
  #settings-view .mlo-workflow-profile-card,
  #settings-view .mlo-workflow-rule {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  #settings-view .panel-heading p,
  #settings-view .guardrail-card p,
  #settings-view .mlo-onboarding-summary p,
  #settings-view .mlo-onboarding-step-heading p,
  #settings-view .mlo-workflow-profile-card p,
  #settings-view .mlo-workflow-rule p,
  #settings-view .mlo-workflow-rule small {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #settings-view .mlo-onboarding-summary {
    grid-template-columns: 1fr;
  }
}

/* Real-phone MLO review shell. Keep this at the end so it wins over older
   prototype/mobile-preview rules that were built around a fake 320px frame. */
html.mobile-mlo-root {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body.mobile-mlo-shell {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: #eef2f3 !important;
}

body.mobile-mlo-shell .app-shell {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #eef2f3 !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell .main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 10px max(12px, env(safe-area-inset-left)) calc(100px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)) !important;
  overflow-x: hidden !important;
  background: #eef2f3 !important;
}

body.mobile-mlo-shell .sidebar,
body.mobile-mlo-shell .topbar,
body.mobile-mlo-shell .mobile-next-action-bar,
body.mobile-mlo-shell .active-client-switcher {
  display: none !important;
}

body.mobile-mlo-shell .view,
body.mobile-mlo-shell .panel,
body.mobile-mlo-shell .profile-area,
body.mobile-mlo-shell .profile-card,
body.mobile-mlo-shell .mlo-command-hero,
body.mobile-mlo-shell .mlo-work-grid,
body.mobile-mlo-shell .client-table-wrap,
body.mobile-mlo-shell .property-card,
body.mobile-mlo-shell .task-board-card,
body.mobile-mlo-shell .mobile-work-section {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

body.mobile-mlo-shell .metric-grid,
body.mobile-mlo-shell .summary-grid,
body.mobile-mlo-shell .card-grid,
body.mobile-mlo-shell .reviewer-file-grid,
body.mobile-mlo-shell .profile-work-card-grid,
body.mobile-mlo-shell .mlo-work-grid,
body.mobile-mlo-shell .mlo-mobile-strip-grid,
body.mobile-mlo-shell .mobile-overview-grid,
body.mobile-mlo-shell .mobile-docs-status-grid,
body.mobile-mlo-shell .mobile-property-meta-grid,
body.mobile-mlo-shell .mobile-task-stat-grid,
body.mobile-mlo-shell .program-fit-grid,
body.mobile-mlo-shell .program-fit-list,
body.mobile-mlo-shell .program-setup-metrics,
body.mobile-mlo-shell .program-menu-facts,
body.mobile-mlo-shell .program-availability-facts,
body.mobile-mlo-shell .mlo-readiness-strip,
body.mobile-mlo-shell .loan-comparison-summary,
body.mobile-mlo-shell .document-workflow-summary,
body.mobile-mlo-shell .operator-decision-summary-grid,
body.mobile-mlo-shell .operating-summary-grid,
body.mobile-mlo-shell .command-task-flow-summary,
body.mobile-mlo-shell .generic-export-metrics,
body.mobile-mlo-shell .property-summary-grid,
body.mobile-mlo-shell .property-card-grid,
body.mobile-mlo-shell .task-board-grid,
body.mobile-mlo-shell .prequal-scenario-grid,
body.mobile-mlo-shell .official-support-grid,
body.mobile-mlo-shell .edit-grid,
body.mobile-mlo-shell .task-edit-grid,
body.mobile-mlo-shell .button-row,
body.mobile-mlo-shell .profile-actions,
body.mobile-mlo-shell .action-facts,
body.mobile-mlo-shell .action-primary-buttons,
body.mobile-mlo-shell .action-tools,
body.mobile-mlo-shell .source-workflow-metrics,
body.mobile-mlo-shell .share-gate-summary,
body.mobile-mlo-shell .partner-analytics-metrics,
body.mobile-mlo-shell .partner-quality-summary,
body.mobile-mlo-shell .partner-reliability-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.mobile-mlo-shell .metric-card,
body.mobile-mlo-shell .summary-item,
body.mobile-mlo-shell .program-fit-grid article,
body.mobile-mlo-shell .program-fit-list article,
body.mobile-mlo-shell .program-fit-action,
body.mobile-mlo-shell .program-availability-facts span,
body.mobile-mlo-shell .program-menu-facts span,
body.mobile-mlo-shell .mlo-readiness-strip > div,
body.mobile-mlo-shell .document-workflow-summary > div,
body.mobile-mlo-shell .generic-export-metrics > div,
body.mobile-mlo-shell .operating-summary-metric,
body.mobile-mlo-shell .mobile-overview-card,
body.mobile-mlo-shell .mobile-docs-status-card,
body.mobile-mlo-shell .mobile-task-stat-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

body.mobile-mlo-shell .mobile-work-tabs {
  position: fixed !important;
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 7px max(8px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)) !important;
  overflow: hidden !important;
  border: 1px solid #d6e2dd !important;
  border-width: 1px 0 0 !important;
  border-radius: 0 !important;
  background: rgba(248, 250, 251, 0.99) !important;
  box-shadow: 0 -10px 24px rgba(18, 28, 24, 0.14) !important;
}

body.mobile-mlo-shell .mobile-work-tabs button {
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 6px 2px !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  color: #4c5659;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

body.mobile-mlo-shell .mobile-work-tabs button.active {
  color: var(--app-teal);
}

body.mobile-mlo-shell .active-file-context {
  position: sticky !important;
  top: 0 !important;
  z-index: 70 !important;
  display: block !important;
  margin: -10px calc(-1 * max(12px, env(safe-area-inset-left))) 10px calc(-1 * max(12px, env(safe-area-inset-right))) !important;
  padding: 8px max(12px, env(safe-area-inset-left)) 9px max(12px, env(safe-area-inset-right)) !important;
  background: rgba(238, 242, 243, 0.98) !important;
  border-bottom: 1px solid #d6e2dd !important;
  box-shadow: 0 8px 18px rgba(20, 62, 44, 0.1) !important;
  backdrop-filter: blur(10px);
}

body.mobile-mlo-shell * {
  box-sizing: border-box;
}

body.mobile-mlo-shell img,
body.mobile-mlo-shell svg,
body.mobile-mlo-shell table,
body.mobile-mlo-shell pre {
  max-width: 100% !important;
}

body.mobile-mlo-shell .active-file-context[hidden] {
  display: none !important;
}

body.mobile-mlo-shell[data-active-view="profile"] .active-file-context {
  display: none !important;
}

body.mobile-mlo-shell .active-file-context .profile-client-identity {
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid #bcd9d2 !important;
  border-left: 5px solid var(--green) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell .active-file-context .identity-title-row strong {
  font-size: 17px !important;
}

body.mobile-mlo-shell .active-file-context .identity-chip-row {
  display: flex !important;
  gap: 5px !important;
  overflow-x: auto !important;
  padding-bottom: 2px !important;
  scrollbar-width: none;
}

body.mobile-mlo-shell .active-file-context .identity-chip-row::-webkit-scrollbar {
  display: none;
}

body.mobile-mlo-shell .active-file-context .identity-chip-row > * {
  flex: 0 0 auto !important;
}

body.mobile-mlo-shell .active-file-context .identity-subgrid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  margin-top: 6px !important;
}

body.mobile-mlo-shell .active-file-context .identity-subgrid span {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-section-menu {
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
  padding: 10px 0 0 !important;
  border: 1px solid #cddbd6 !important;
  border-width: 1px 0 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell .mobile-file-section-select-label {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

body.mobile-mlo-shell .mobile-file-section-select-label span {
  color: #52645d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body.mobile-mlo-shell .mobile-file-section-select-label select {
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 38px 0 12px !important;
  border: 1px solid #bfcfca !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #172521 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

body.mobile-mlo-shell .mobile-file-current-section {
  display: grid !important;
  gap: 2px !important;
  padding: 10px 12px !important;
  border: 1px solid #d8e4df !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.mobile-mlo-shell .mobile-file-current-section span {
  color: #52645d !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.mobile-mlo-shell .mobile-file-current-section strong {
  color: #172521 !important;
  font-size: 18px !important;
}

body.mobile-mlo-shell .mobile-file-current-section small {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-sticky-client {
  position: sticky !important;
  top: 0 !important;
  z-index: 72 !important;
  display: block !important;
  margin: -10px calc(-1 * max(12px, env(safe-area-inset-left))) 10px calc(-1 * max(12px, env(safe-area-inset-right))) !important;
  padding: 8px max(12px, env(safe-area-inset-left)) 9px max(12px, env(safe-area-inset-right)) !important;
  background: rgba(238, 242, 243, 0.98) !important;
  border-bottom: 1px solid #d6e2dd !important;
  box-shadow: 0 8px 18px rgba(20, 62, 44, 0.1) !important;
  backdrop-filter: blur(10px);
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-sticky-client .profile-client-identity {
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid #bcd9d2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area {
  display: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area-heading {
  display: grid !important;
  gap: 4px !important;
  padding: 12px !important;
  border: 1px solid #d8e4df !important;
  border-left: 1px solid #d8e4df !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area-heading h3 {
  margin: 0 !important;
  font-size: 18px !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area-heading p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-numbers-overview,
body.mobile-mlo-shell #profile-view.active-view .mobile-active-file-overview,
body.mobile-mlo-shell #profile-view.active-view .mobile-docs-overview,
body.mobile-mlo-shell #profile-view.active-view .mobile-client-property-overview,
body.mobile-mlo-shell #profile-view.active-view .mobile-client-task-overview {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area > .profile-card,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area > .mobile-work-section,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area > .guardrail-note,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area > details,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area > section {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #d8e4df !important;
  border-left: 1px solid #d8e4df !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area .profile-card,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area .guardrail-card,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area .guardrail-note,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area details,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area .requirement-card,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area .handoff-group,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area .calc-card {
  max-width: 100% !important;
  min-width: 0 !important;
  border-left-width: 1px !important;
  border-left-color: #d8e4df !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area p,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area li,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area span,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area small,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area strong,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area label {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area input,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area select,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area textarea,
body.mobile-mlo-shell #profile-view.active-view .profile-area.active-profile-area button {
  max-width: 100% !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-shell {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-sticky-client,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-section-menu,
body.mobile-mlo-shell #profile-view.active-view .profile-stack {
  display: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client {
  position: sticky !important;
  top: 0 !important;
  z-index: 76 !important;
  display: block !important;
  margin: -10px calc(-1 * max(12px, env(safe-area-inset-left))) 0 calc(-1 * max(12px, env(safe-area-inset-right))) !important;
  padding: 8px max(12px, env(safe-area-inset-left)) 9px max(12px, env(safe-area-inset-right)) !important;
  border-bottom: 1px solid #d6e2dd !important;
  background: rgba(246, 249, 248, 0.99) !important;
  box-shadow: 0 8px 18px rgba(20, 62, 44, 0.11) !important;
  backdrop-filter: blur(10px);
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client .profile-client-identity {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #c9d8d3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client .identity-title-row strong {
  font-size: 17px !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client .identity-subgrid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client .identity-subgrid span,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client .identity-subgrid small,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-client .identity-subgrid strong {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-picker {
  display: grid !important;
  gap: 6px !important;
  margin: 10px 0 0 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-picker span,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-current span,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-row span {
  color: #52645d !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-picker select {
  width: 100% !important;
  min-height: 48px !important;
  padding: 0 38px 0 12px !important;
  border: 1px solid #bfcfca !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #172521 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-current,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-panel {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 12px !important;
  border: 1px solid #d8e4df !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-current strong,
body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-panel h3 {
  margin: 0 !important;
  color: #172521 !important;
  font-size: 19px !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-current small {
  color: var(--muted) !important;
  line-height: 1.35 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-list {
  display: grid !important;
  gap: 8px !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-row {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf3f0 !important;
  background: transparent !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-row:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-row strong {
  min-width: 0 !important;
  color: #172521 !important;
  font-size: 16px !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-row small {
  color: var(--muted) !important;
  line-height: 1.35 !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

body.mobile-mlo-shell #profile-view.active-view .mobile-file-simple-actions .mini-button {
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2 {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 214px !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2.dock-collapsed {
  padding-bottom: 132px !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky {
  position: fixed !important;
  top: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 45 !important;
  display: grid !important;
  gap: 6px !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 9px max(12px, env(safe-area-inset-left)) 10px max(12px, env(safe-area-inset-right)) !important;
  border: 1px solid #d6e2dd !important;
  border-width: 1px 0 !important;
  background: rgba(246, 249, 248, 0.99) !important;
  box-shadow: 0 -10px 20px rgba(20, 62, 44, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  overflow: hidden !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed {
  gap: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-toggle {
  flex: 0 0 auto !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #bfcfca !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #173329 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client > span,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-select > span,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-dock-context > span,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-current > span,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-row > span {
  color: #52645d !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client > strong {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #173329 !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client > div {
  display: contents !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client small {
  display: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client small:first-child {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  max-width: 44% !important;
  padding: 4px 7px !important;
  border: 1px solid #d5e4df !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #334942 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-dock-context {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-dock-context strong {
  color: #173329 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-dock-context small {
  color: #52645d !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed .phone-file-v2-select,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed .phone-file-v2-dock-context {
  display: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed .phone-file-v2-client > span,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed .phone-file-v2-client small {
  display: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed .phone-file-v2-client > strong {
  font-size: 16px !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client-select {
  display: grid !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client-select > span {
  color: #52645d !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client-select select,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-client-select input {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #bfcfca !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #172521 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky.collapsed .phone-file-v2-client-select {
  display: none !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-select,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-current,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-panel {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 12px !important;
  border: 1px solid #d8e4df !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-sticky .phone-file-v2-select {
  gap: 5px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-select select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 0 38px 0 12px !important;
  border: 1px solid #bfcfca !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #172521 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-current strong,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-panel h3 {
  margin: 0 !important;
  color: #172521 !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-current small,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-row small {
  color: var(--muted) !important;
  line-height: 1.35 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-list,
body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-actions {
  display: grid !important;
  gap: 8px !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-row {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #edf3f0 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-row:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-row strong {
  min-width: 0 !important;
  color: #172521 !important;
  font-size: 16px !important;
  overflow-wrap: anywhere !important;
}

body.mobile-mlo-shell #profile-view.active-view .phone-file-v2-actions .mini-button {
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
}

/* Layout F, navy/cobalt. Opt-in entrypoint; no Client File or phone-shell overrides. */
body.priority-layout-f[data-active-view="dashboard"] { --bg: #eef2f7; }
body.priority-layout-f .sidebar { background: #12233f; color: #fff; border-color: #334863; }
body.priority-layout-f .sidebar .brand h1,
body.priority-layout-f .sidebar .nav-button,
body.priority-layout-f .sidebar .nav-submenu button { color: #dce3ed; }
body.priority-layout-f .sidebar .brand p,
body.priority-layout-f .sidebar .nav-button small { color: #c7d2e1; }
body.priority-layout-f .sidebar .brand-mark,
body.priority-layout-f .sidebar .nav-button.active,
body.priority-layout-f .sidebar .nav-submenu button.active { background: #2563eb; color: #fff; border-color: #2563eb; }
body.priority-layout-f .sidebar .nav-button:hover,
body.priority-layout-f .sidebar .nav-submenu button:hover { background: #274464; color: #fff; }
.priority-workspace { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 2fr); gap: 22px; align-items: start; color: #202b3c; min-width: 0; }
.priority-queue, #priority-selected-workspace { min-width: 0; border: 1px solid #a6b8d1; border-radius: 14px; background: #fff; overflow-wrap: anywhere; }
.priority-queue { padding: 22px 16px; }
.priority-queue h3 { margin: 0 0 8px; }
.priority-queue p, .priority-queue label { font-size: 13px; color: #596779; }
.priority-queue input { width: 100%; min-width: 0; margin: 8px 0 16px; }
#priority-client-list { max-height: 660px; overflow-y: auto; padding: 3px; }
.priority-queue-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--priority-status, #5d6b7c); }
.priority-client { width: 100%; display: grid; gap: 10px; text-align: left; padding: 16px; margin-bottom: 10px; background: #f8f9fb; color: #202b3c; border: 1px solid #a6b8d1; border-radius: 9px; cursor: pointer; overflow-wrap: anywhere; }
.priority-client strong { font-size: 18px; }
.priority-client span { font-size: 14px; }
.priority-client small { color: var(--priority-status, #5d6b7c); }
.priority-client[aria-pressed="true"] { background: #eaf1ff; border-color: #2563eb; box-shadow: inset 4px 0 #2563eb; }
.priority-workspace button:focus-visible, .priority-workspace input:focus-visible, .priority-workspace summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.priority-client-header { padding: 24px 28px 18px; background: #eaf1ff; border-radius: 14px 14px 0 0; border-bottom: 1px solid #a6b8d1; }
.priority-client-header h3 { margin: 10px 0; font-size: 26px; color: #202b3c; }
.priority-client-header p { margin: 6px 0; font-size: 14px; color: #596779; }
.priority-workspace .priority-kicker { text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.priority-client-header .priority-kicker { color: #2563eb; }
.priority-work-body { padding: 22px 28px; }
.priority-work-summary { border-bottom: 1px solid #a6b8d1; padding-bottom: 18px; color: #596779; }
.priority-task { border: 1px solid #a6b8d1; border-left: 4px solid var(--priority-status, #5d6b7c); border-radius: 9px; padding: 18px; background: #f8f9fb; margin: 16px 0; }
.priority-task h4 { font-size: 18px; margin: 10px 0; }
.priority-task p { font-size: 14px; color: #596779; }
.priority-task .priority-kicker { color: var(--priority-status, #5d6b7c); }
.priority-overdue { --priority-status: #a43f39; }
.priority-task.priority-overdue { background: #fcf1ee; border-color: #d5aaa2; border-left-color: #a43f39; }
.priority-today { --priority-status: #8b651c; }
.priority-waiting, .priority-upcoming, .priority-no_date, .priority-empty { --priority-status: #5d6b7c; }
.priority-complete { --priority-status: #246b4d; }
.priority-workspace .mini-button, .priority-workspace .secondary-button { color: #2359bf; border-color: #a6b8d1; background: #fff; white-space: normal; }
.priority-workspace .primary-button, .priority-task .button-row .mini-button:first-child { color: #fff; background: #2563eb; border-color: #2563eb; }
.priority-workspace footer { border-top: 1px solid #a6b8d1; margin-top: 24px; padding-top: 20px; }
.priority-workspace footer p, .priority-empty { color: #596779; font-size: 14px; }
@media (max-width: 1050px) {
  .priority-workspace { grid-template-columns: minmax(0, 1fr); }
  #priority-client-list { max-height: 320px; }
  .priority-client-header, .priority-work-body { padding: 18px; }
}
body.mobile-mlo-shell .priority-workspace { grid-template-columns: minmax(0, 1fr); }
body.mobile-mlo-shell #priority-client-list { max-height: 280px; }
