:root {
  --ink: #142326;
  --muted: #66787c;
  --line: #d9ded7;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --field: #f4f7f5;
  --teal: #153c43;
  --teal-2: #1f6670;
  --sage: #7e9278;
  --gold: #b88946;
  --rust: #a4523d;
  --ok: #237856;
  --warn: #986c20;
  --danger: #a13d39;
  --shadow: 0 18px 45px rgba(28, 41, 36, 0.09);
  --landing-ink: #101827;
  --landing-muted: #5f6b78;
  --landing-line: #dfe6e4;
  --landing-teal: #053f3c;
  --landing-teal-2: #0d6f68;
  --landing-sage: #eaf3ea;
  --landing-gold: #c58b2d;
  --landing-blue: #1e66c8;
  --landing-shadow: 0 22px 58px rgba(16, 24, 39, 0.09);
}

/* One dependable keyboard-focus treatment across every workspace. */
:focus-visible {
  outline: 3px solid #2d6f8a;
  outline-offset: 3px;
}

/* Resident Home presentation rollout (engine-neutral and reversible via residentUi=classic). */
.resident-ui-simplified {
  display: grid;
  gap: 22px;
}

.resident-simplified-hero,
.resident-simplified-overview,
.resident-simplified-panel {
  border: 1px solid #d4d9d7;
  border-radius: 8px;
  background: #fff;
}

.resident-simplified-hero {
  min-height: 176px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(240px, 286px);
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background-color: #fcfcfb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='180' viewBox='0 0 420 180'%3E%3Cpath d='M-20 140 C80 70 110 120 210 55 S350 55 450 -20' fill='none' stroke='%23edf0ef' stroke-width='2'/%3E%3Cpath d='M-10 175 C90 110 170 145 265 85 S355 60 430 15' fill='none' stroke='%23f2f3f2' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 420px 180px;
}

.resident-simplified-hero-icon {
  width: 68px;
  height: 88px;
  color: #123f43;
}

.resident-simplified-hero-icon svg,
.resident-simplified-metric-icon svg,
.resident-simplified-attention-icon svg,
.resident-simplified-activity-icon svg,
.resident-simplified-help-icon svg,
.resident-simplified-primary svg,
.resident-simplified-view svg,
.resident-simplified-help > svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resident-simplified-hero-copy h3,
.resident-simplified-panel h3,
.resident-simplified-overview h3 {
  margin: 0;
  color: #102426;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.resident-simplified-hero-copy h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
}

.resident-simplified-hero-copy p:last-child {
  margin: 9px 0 0;
  color: #66787c;
  line-height: 1.45;
}

.resident-simplified-primary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px 0 24px;
  background: #123f43;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.resident-simplified-primary:hover { background: #0d3539; }
.resident-simplified-primary svg { width: 24px; height: 24px; color: #f2cf22; }

.resident-simplified-overview { padding: 24px 28px 28px; }

.resident-simplified-overview-heading,
.resident-simplified-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.resident-simplified-overview h3,
.resident-simplified-panel h3 { font-size: 1.35rem; }

.resident-simplified-text-action {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #1f6670;
  font-weight: 700;
}

.resident-simplified-text-action:hover { text-decoration: underline; }

.resident-simplified-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.resident-simplified-metric {
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #d9dedc;
  border-radius: 7px;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
}

.resident-simplified-metric:hover { border-color: #789095; background: #f8faf9; }
.resident-simplified-metric-icon { width: 46px; height: 46px; display: grid; place-items: center; padding: 12px; border-radius: 50%; color: #102426; }
.resident-simplified-metric.is-active .resident-simplified-metric-icon { background: #e5f4fb; }
.resident-simplified-metric.is-ready .resident-simplified-metric-icon { background: #e7f6e6; }
.resident-simplified-metric.is-history .resident-simplified-metric-icon { background: #eeeafc; }
.resident-simplified-metric strong,
.resident-simplified-metric small { display: block; }
.resident-simplified-metric strong { color: #111; font-size: 1.5rem; font-weight: 650; }
.resident-simplified-metric small { margin-top: 2px; color: #66787c; font-size: 0.9rem; }

.resident-simplified-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.75fr); gap: 22px; }
.resident-simplified-panel { padding: 26px 28px; }
.resident-simplified-panel-heading { margin-bottom: 20px; }

.resident-simplified-attention-card,
.resident-simplified-empty {
  min-height: 148px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #d9dedc;
  border-radius: 7px;
  padding: 20px;
}

.resident-simplified-attention-icon { width: 52px; height: 52px; display: grid; place-items: center; padding: 14px; border-radius: 50%; background: #fff4c9; color: #102426; }
.resident-simplified-attention-copy { min-width: 0; }
.resident-simplified-attention-copy strong,
.resident-simplified-attention-copy > span,
.resident-simplified-attention-copy p { display: block; }
.resident-simplified-attention-copy strong { color: #111; font-size: 1.02rem; }
.resident-simplified-attention-copy > span { margin-top: 4px; color: #66787c; font-size: 0.92rem; }
.resident-simplified-attention-copy p { margin: 8px 0 0; color: #66787c; font-size: 0.9rem; line-height: 1.4; }
.resident-simplified-status { display: inline-block; margin-top: 10px; color: #d28e00; font-size: 0.9rem; font-weight: 700; }
.resident-simplified-status.approved { color: #237856; }
.resident-simplified-status.closed { color: #66787c; }
.resident-simplified-view { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #789095; border-radius: 6px; padding: 0 13px; background: #fff; color: #102426; font-weight: 650; white-space: nowrap; }
.resident-simplified-view:hover { background: #f4f7f5; }
.resident-simplified-view svg { width: 18px; height: 18px; }
.resident-simplified-empty { grid-template-columns: 54px minmax(0, 1fr); }
.resident-simplified-empty strong { color: #111; }
.resident-simplified-empty p { margin: 6px 0 0; color: #66787c; }

.resident-simplified-activity { display: flex; align-items: center; gap: 14px; min-height: 78px; }
.resident-simplified-activity-icon { width: 48px; height: 48px; display: grid; place-items: center; padding: 13px; border-radius: 50%; background: #f0f1f1; color: #102426; }
.resident-simplified-activity strong,
.resident-simplified-activity small { display: block; }
.resident-simplified-activity strong { color: #111; font-size: 0.95rem; }
.resident-simplified-activity small { margin-top: 5px; color: #557074; }
.resident-simplified-help { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #d9dedc; color: #123f43; text-decoration: none; }
.resident-simplified-help-icon { width: 42px; height: 42px; display: grid; place-items: center; padding: 11px; border-radius: 50%; background: #eef0f0; }
.resident-simplified-help strong,
.resident-simplified-help small { display: block; }
.resident-simplified-help small { margin-top: 2px; color: #66787c; }
.resident-simplified-help > svg { width: 18px; height: 18px; }

.resident-home-service-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 420px); align-items: center; gap: 34px; margin-bottom: 22px; padding: 30px 34px; border: 1px solid #d9dedc; border-radius: 7px; background: #f8faf9; }
.resident-home-service-copy h3 { margin: 4px 0 10px; color: #102426; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.resident-home-service-copy p:not(.eyebrow) { max-width: 620px; margin: 0; color: #66787c; line-height: 1.5; }
.resident-home-service-copy .btn { margin-top: 20px; }
.resident-service-loop-frame { height: 300px; overflow: hidden; border: 12px solid #123f43; border-radius: 38px; padding: 10px; background: #c1d3ce; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.resident-service-loop-track { display: flex; flex-direction: column; gap: 8px; animation: resident-service-loop 22s linear infinite; will-change: transform; }
.resident-service-loop-frame:hover .resident-service-loop-track,
.resident-service-loop-frame:focus-within .resident-service-loop-track { animation-play-state: paused; }
.resident-service-loop-group { display: grid; gap: 8px; }
.resident-service-loop-item { height: 68px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; overflow: hidden; border: 1px solid rgba(18,63,67,.13); border-radius: 14px; padding: 4px 12px 4px 4px; background: #fff; color: #102426; }
.resident-service-loop-item strong { min-width: 0; font-size: .91rem; }
.resident-service-loop-item > span:last-child { color: #5e7b83; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.resident-service-loop-thumb { width: 58px; height: 58px; display: block; border-radius: 11px; background-image: url("assets/resident-home-service-reference.png"); background-repeat: no-repeat; background-size: 519px 638px; }
.resident-service-loop-thumb.is-assembly { background-position: -55px -59px; }
.resident-service-loop-thumb.is-carpet { background-position: -55px -136px; }
.resident-service-loop-thumb.is-windows { background-position: -55px -227px; }
.resident-service-loop-thumb.is-shelves { background-position: -55px -319px; }
.resident-service-loop-thumb.is-locks { background-position: -55px -410px; }
.resident-service-loop-thumb.is-doors { background-position: -55px -500px; }

@keyframes resident-service-loop {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-50% - 4px)); }
}

.resident-home-guidance { margin-top: 22px; padding: 26px 28px; border: 1px solid #d9dedc; border-radius: 7px; background: #fff; }
.resident-home-guidance-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.resident-home-guidance-heading h3 { margin: 3px 0 0; color: #102426; font-size: 1.35rem; }
.resident-home-guidance-heading > p { max-width: 560px; margin: 0; color: #66787c; text-align: right; }
.resident-home-guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resident-home-guidance-card { min-height: 128px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: start; gap: 12px; border: 1px solid #d9dedc; border-radius: 7px; padding: 17px; background: #f8faf9; color: #123f43; text-align: left; text-decoration: none; }
.resident-home-guidance-card:hover { border-color: #789095; background: #edf4f1; }
.resident-home-guidance-card > svg { width: 18px; height: 18px; margin-top: 12px; }
.resident-home-guidance-icon { width: 42px; height: 42px; display: grid; place-items: center; padding: 11px; border-radius: 50%; background: #c1d3ce; color: #123f43; }
.resident-home-guidance-card strong,
.resident-home-guidance-card small { display: block; }
.resident-home-guidance-card strong { margin-top: 2px; color: #102426; }
.resident-home-guidance-card small { margin-top: 6px; color: #66787c; line-height: 1.42; }

@media (max-width: 860px) {
  .resident-simplified-hero { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 24px 20px; }
  .resident-simplified-hero-icon { width: 56px; height: 72px; }
  .resident-simplified-hero-copy h3 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .resident-simplified-primary { grid-column: 1 / -1; width: 100%; }
  .resident-simplified-overview { padding: 22px 18px; }
  .resident-simplified-metrics { gap: 8px; }
  .resident-simplified-metric { grid-template-columns: 1fr; justify-items: center; gap: 7px; padding: 12px 8px; text-align: center; }
  .resident-simplified-metric-icon { width: 42px; height: 42px; padding: 11px; }
  .resident-simplified-columns { grid-template-columns: 1fr; gap: 16px; }
  .resident-simplified-panel { padding: 22px 18px; }
  .resident-simplified-attention-card { grid-template-columns: 48px minmax(0, 1fr); padding: 17px; }
  .resident-simplified-view { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .resident-simplified-attention-icon { width: 46px; height: 46px; padding: 12px; }
  .resident-home-guidance { padding: 22px 18px; }
  .resident-home-guidance-heading { align-items: start; flex-direction: column; gap: 8px; }
  .resident-home-guidance-heading > p { text-align: left; }
  .resident-home-guidance-grid { grid-template-columns: 1fr; }
}

/* Approved Resident shell and dashboard */
.console-app.resident-mode {
  grid-template-columns: 316px minmax(0, 1fr);
  background: #fff;
}

.resident-mode .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 28px 14px 16px;
  overflow-y: auto;
  background: #123f43;
}

.resident-mode .sidebar > :not(.resident-sidebar-shell) {
  display: none;
}

.resident-sidebar-shell {
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.resident-sidebar-shell[hidden],
.resident-topbar-shell[hidden] {
  display: none;
}

.resident-sidebar-brand {
  padding: 8px 26px 34px;
}

.resident-wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  color: transparent;
  font-size: 2.45rem;
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.88);
}

.resident-wordmark-one {
  color: #f2cf22;
  -webkit-text-stroke: 0;
}

.resident-wordmark small {
  position: absolute;
  right: 1px;
  bottom: -12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0;
}

.resident-shell-nav {
  display: grid;
  gap: 9px;
}

.resident-shell-nav-button,
.resident-signout-button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.91);
  font-size: 1.02rem;
  text-align: left;
}

.resident-shell-nav-button:hover,
.resident-shell-nav-button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.resident-shell-nav-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
}

.resident-shell-nav-icon svg,
.resident-profile-button svg,
.resident-dashboard-action-icon svg,
.resident-attention-icon svg,
.resident-activity-icon svg,
.resident-overview-icon svg,
.resident-assistance-icon svg,
.resident-account-large-icon svg,
.resident-mobile-nav-button svg,
.resident-view-request svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resident-sidebar-footer {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.resident-sidebar-profile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #fff;
}

.resident-sidebar-profile strong,
.resident-sidebar-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resident-sidebar-profile strong {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.resident-sidebar-profile small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.resident-signout-button {
  min-height: 44px;
  padding: 0 8px;
  font-size: 0.92rem;
}

.resident-mode .main-area {
  min-width: 0;
  background: #fff;
}

.resident-mode .topbar {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 32px 44px;
  background: #fff;
}

.resident-mode .standard-topbar-copy {
  display: none;
}

.resident-topbar-shell:not([hidden]) {
  display: contents;
}

.resident-mobile-brand {
  display: none;
}

.resident-topbar-copy {
  grid-column: 1;
  grid-row: 1;
}

.resident-topbar-copy h2 {
  margin: 0;
  color: #101717;
  font-size: clamp(2rem, 2.6vw, 2.65rem);
  font-weight: 510;
  letter-spacing: -0.035em;
}

.resident-topbar-copy p {
  margin: 8px 0 0;
  color: #6b7978;
  font-size: 1rem;
}

.resident-mode .estate-filter {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 180px;
}

.resident-mode .estate-filter > #activeEstateLabel {
  display: none;
}

.resident-mode .estate-filter select,
.resident-mode .estate-fixed-value {
  min-height: 48px;
  border: 0;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  font-weight: 730;
  text-align: right;
  opacity: 1;
  -webkit-text-fill-color: #111;
}

.resident-mode .estate-fixed-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.resident-mode .estate-filter.reporting-context .estate-fixed-value {
  min-height: 48px;
  color: #60747b;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.resident-mode .estate-fixed-value[hidden] {
  display: none;
}

.resident-profile-button {
  grid-column: 3;
  grid-row: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 3px;
  background: transparent;
  color: #111;
}

.resident-mode .workspace {
  padding: 38px 44px 56px;
  background: #fff;
}

.resident-shell-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.resident-dashboard-action {
  min-height: 190px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) minmax(280px, 320px);
  align-items: center;
  gap: 28px;
  padding: 28px 38px;
  border: 1px solid #cdd4d2;
  border-radius: 6px;
  background-color: #fcfcfb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='180' viewBox='0 0 420 180'%3E%3Cpath d='M-20 140 C80 70 110 120 210 55 S350 55 450 -20' fill='none' stroke='%23edf0ef' stroke-width='2'/%3E%3Cpath d='M-10 175 C90 110 170 145 265 85 S355 60 430 15' fill='none' stroke='%23f2f3f2' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 420px 180px;
}

.resident-dashboard-action-icon {
  width: 88px;
  height: 104px;
  color: #123f43;
}

.resident-dashboard-action h3 {
  margin: 0;
  color: #102426;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.resident-dashboard-action p {
  margin: 12px 0 0;
  color: #6b7978;
  font-size: 1rem;
}

.resident-primary-action {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 24px;
  margin-right: 52px;
  background: #123f43;
  color: #fff;
  font-weight: 680;
  font-size: 1.02rem;
}

.resident-primary-action:hover {
  background: #0d3539;
}

.resident-yellow-arrow {
  color: #f2cf22;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 0.7;
}

.resident-primary-action .resident-yellow-arrow {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-54%);
}

.resident-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
  gap: 22px;
  margin-top: 22px;
}

.resident-dashboard-main-card,
.resident-overview-card,
.resident-assistance-card {
  border: 1px solid #d4d9d7;
  border-radius: 6px;
  background: #fff;
}

.resident-dashboard-main-card {
  min-height: 500px;
  padding: 28px 18px 28px;
}

.resident-dashboard-main-card > h3,
.resident-recent-activity h3,
.resident-overview-card h3,
.resident-assistance-card h3 {
  margin: 0;
  color: #111;
  font-size: 1.38rem;
  font-weight: 560;
  letter-spacing: -0.025em;
}

.resident-dashboard-main-card > h3 {
  padding: 0 10px 22px;
}

.resident-attention-card,
.resident-attention-empty {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 174px;
  padding: 24px 20px;
  border: 1px solid #d8dddb;
  border-radius: 6px;
}

.resident-attention-icon,
.resident-activity-icon,
.resident-overview-icon,
.resident-assistance-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #102426;
}

.resident-attention-icon {
  width: 66px;
  height: 66px;
  padding: 17px;
  background: #fff4c9;
}

.resident-attention-copy {
  min-width: 0;
}

.resident-attention-copy strong {
  display: block;
  color: #111;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.resident-attention-status {
  display: inline-block;
  margin-top: 14px;
  color: #d28e00;
  font-weight: 640;
}

.resident-attention-status.approved {
  color: #237856;
}

.resident-attention-status.closed {
  color: #66787c;
}

.resident-attention-copy p,
.resident-attention-empty p {
  margin: 7px 0 0;
  color: #6b7978;
  line-height: 1.45;
}

.resident-view-request {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #789095;
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  color: #101717;
}

.resident-view-request:hover {
  background: #f4f7f5;
}

.resident-view-request svg {
  width: 19px;
  height: 19px;
}

.resident-attention-empty {
  grid-template-columns: 72px minmax(0, 1fr);
}

.resident-recent-activity {
  padding: 34px 14px 0;
}

.resident-activity-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.resident-activity-icon {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 16px;
  background: #f0f1f1;
}

.resident-activity-icon::after {
  content: "";
  position: absolute;
  top: 58px;
  left: 50%;
  width: 1px;
  height: 36px;
  background: #d9dedc;
}

.resident-activity-row strong,
.resident-activity-row small {
  display: block;
}

.resident-activity-row strong {
  color: #111;
  font-size: 0.96rem;
}

.resident-activity-row small {
  margin-top: 8px;
  color: #557074;
}

.resident-dashboard-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.resident-overview-card,
.resident-assistance-card {
  padding: 28px;
}

.resident-overview-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #d9dedc;
}

.resident-overview-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.resident-overview-icon {
  width: 56px;
  height: 56px;
  padding: 15px;
}

.resident-overview-item.is-active-request .resident-overview-icon {
  background: #e5f4fb;
}

.resident-overview-item.is-quotes-ready .resident-overview-icon {
  background: #e7f6e6;
}

.resident-overview-item.is-history .resident-overview-icon {
  background: #eeeafc;
}

.resident-overview-item strong,
.resident-overview-item small {
  display: block;
}

.resident-overview-item strong {
  color: #111;
  font-size: 1.62rem;
  font-weight: 590;
}

.resident-overview-item small {
  margin-top: 3px;
  color: #202828;
  font-size: 0.91rem;
}

.resident-assistance-card a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: #123f43;
  text-decoration: none;
}

.resident-assistance-icon {
  width: 48px;
  height: 48px;
  padding: 13px;
  background: #eef0f0;
}

.resident-assistance-card .resident-yellow-arrow {
  font-size: 2.8rem;
}

.resident-mobile-nav {
  display: none;
}

.resident-account-workspace {
  width: min(760px, 100%);
  padding: 34px;
  box-shadow: none;
}

.resident-account-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.resident-account-heading h3 {
  margin: 3px 0 6px;
  font-size: 1.7rem;
}

.resident-account-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.resident-account-large-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  color: #123f43;
}

.resident-account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.resident-account-details div {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-account-details dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.resident-account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.resident-mode .resident-shell-workspace-requests > .resident-request-tabs {
  margin-top: 0;
}

.resident-mode .resident-shell-workspace-requests .card {
  box-shadow: none;
}

@media (max-width: 860px) {
  .console-app.resident-mode {
    display: block;
  }

  .resident-mode .sidebar {
    display: none;
  }

  .resident-mode .main-area {
    width: 100%;
  }

  .resident-mode .topbar {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 0;
    border-bottom: 0;
  }

  .resident-mobile-brand {
    display: block;
    grid-column: 1;
    grid-row: 1;
    padding: 26px 24px 28px;
  }

  .resident-mobile-brand .resident-wordmark {
    color: transparent;
    font-size: 2rem;
    -webkit-text-stroke-color: #274043;
  }

  .resident-mobile-brand .resident-wordmark-one {
    color: #f2cf22;
    -webkit-text-stroke: 0;
  }

  .resident-mobile-brand .resident-wordmark small {
    color: #274043;
  }

  .resident-profile-button {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 52px;
    height: 52px;
  }

  .resident-mode .estate-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding: 0 20px;
    border-top: 1px solid #d9dedc;
    border-bottom: 1px solid #d9dedc;
  }

  .resident-mode .estate-filter select,
  .resident-mode .estate-fixed-value {
    min-height: 64px;
    padding: 0 26px 0 0;
    text-align: left;
    font-size: 1.12rem;
  }

  .resident-mode .estate-fixed-value {
    justify-content: flex-start;
  }

  .resident-topbar-copy {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 34px 24px 28px;
  }

  .resident-topbar-copy h2 {
    font-size: clamp(2rem, 7vw, 2.55rem);
  }

  .resident-topbar-copy p {
    margin-top: 13px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .resident-mode .workspace {
    padding: 0 18px 116px;
  }

  .resident-dashboard-action {
    min-height: 0;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 20px 18px;
    padding: 34px 30px 32px;
  }

  .resident-dashboard-action-icon {
    width: 92px;
    height: 112px;
  }

  .resident-dashboard-action h3 {
    font-size: clamp(1.72rem, 5.8vw, 2.2rem);
  }

  .resident-dashboard-action p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .resident-primary-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 62px;
    margin: 0;
    font-size: 1.05rem;
  }

  .resident-primary-action .resident-yellow-arrow {
    right: 22px;
    color: #f2cf22;
    font-size: 3.2rem;
  }

  .resident-dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    padding: 26px 18px 28px;
    border: 1px solid #d4d9d7;
    border-radius: 6px;
  }

  .resident-dashboard-main-card,
  .resident-dashboard-side {
    display: contents;
  }

  .resident-dashboard-main-card > h3 {
    order: 1;
    padding: 0 10px 20px;
  }

  .resident-attention-card,
  .resident-attention-empty {
    order: 2;
  }

  .resident-overview-card {
    order: 3;
  }

  .resident-recent-activity {
    order: 4;
  }

  .resident-assistance-card {
    order: 5;
  }

  .resident-dashboard-main-card,
  .resident-overview-card,
  .resident-assistance-card {
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .resident-attention-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 22px 18px;
  }

  .resident-attention-copy strong {
    font-size: 1rem;
  }

  .resident-attention-copy p {
    font-size: 0.88rem;
  }

  .resident-view-request {
    padding: 0 13px;
  }

  .resident-overview-card {
    padding: 34px 10px 12px;
  }

  .resident-overview-card h3 {
    margin-bottom: 22px;
  }

  .resident-overview-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resident-overview-card h3 {
    grid-column: 1 / -1;
  }

  .resident-overview-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid #d9dedc;
    border-bottom: 0;
    text-align: center;
  }

  .resident-overview-item:last-child {
    padding: 0 12px;
    border-right: 0;
  }

  .resident-overview-item strong {
    font-size: 1.45rem;
  }

  .resident-overview-item small {
    min-height: 2.4em;
    font-size: 0.82rem;
  }

  .resident-recent-activity {
    padding: 40px 10px 8px;
  }

  .resident-assistance-card {
    margin: 30px 10px 0;
    padding: 24px 0 0;
    border-top: 1px solid #d9dedc;
  }

  .resident-account-workspace {
    padding: 26px 22px;
  }

  .resident-account-details {
    grid-template-columns: 1fr;
  }

  .resident-mobile-nav {
    position: fixed;
    z-index: 18;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 86px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 7px 8px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #d6dcda;
    background: rgba(255, 255, 255, 0.98);
  }

  .resident-mobile-nav-button {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    border: 0;
    padding: 6px 2px 0;
    background: transparent;
    color: #111;
  }

  .resident-mobile-nav-button > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
  }

  .resident-mobile-nav-button small {
    font-size: 0.76rem;
  }

  .resident-mobile-nav-button.is-active {
    color: #123f43;
  }

  .resident-mobile-nav-button.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 76px;
    height: 4px;
    border-radius: 0 0 3px 3px;
    background: #123f43;
  }

  .resident-mobile-nav-button {
    position: relative;
  }

  .resident-mobile-create {
    transform: translateY(-15px);
  }

  .resident-mobile-create > span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 14px;
    background: #f2cf22;
  }

  .resident-mobile-create small {
    margin-top: -1px;
  }

  .resident-shell-workspace-requests .resident-request-tabs {
    margin-top: 0;
  }
}

/* BaseOne operator control centre: cross-estate oversight in the approved shell. */
.console-app.baseone-mode {
  grid-template-columns: 316px minmax(0, 1fr);
  background: #fff;
}

.baseone-mode .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 28px 14px 16px;
  overflow: hidden;
  background: #123f43;
}

.baseone-mode .sidebar > :not(.resident-sidebar-shell) {
  display: none;
}

.baseone-mode .resident-sidebar-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.baseone-mode .baseone-shell-nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 14px;
}

.baseone-mode .resident-sidebar-footer {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: 0;
  padding: 16px 8px 0;
}

.baseone-mode .baseone-sidebar-account {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.baseone-mode .baseone-sidebar-account:hover strong,
.baseone-mode .baseone-sidebar-account:focus-visible strong,
.baseone-mode .baseone-sidebar-account.is-active strong {
  color: #f2cf22;
}

.baseone-mode .main-area {
  min-width: 0;
  background: #fff;
}

.baseone-mode .topbar {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 32px 44px;
  background: #fff;
}

.baseone-mode .standard-topbar-copy {
  display: none;
}

.baseone-mode .estate-filter {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 180px;
}

.baseone-mode .estate-filter > span {
  display: none;
}

.baseone-mode .estate-filter select {
  min-height: 48px;
  border: 0;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  font-weight: 730;
  text-align: right;
  opacity: 1;
  -webkit-text-fill-color: #111;
}

.baseone-mode .workspace {
  padding: 38px 44px 56px;
  background: #fff;
}

.baseone-shell-workspace {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.baseone-shell-nav {
  gap: 5px;
}

.baseone-shell-nav .resident-shell-nav-heading {
  margin: 0 22px 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.baseone-shell-nav .resident-shell-nav-button {
  min-height: 55px;
  gap: 16px;
  font-size: 0.94rem;
}

.baseone-shell-nav .resident-shell-nav-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.baseone-dashboard-action {
  min-height: 176px;
  grid-template-columns: 82px minmax(300px, 1fr) minmax(240px, 280px);
  gap: 24px;
  padding: 26px 32px;
  background-color: #fff;
  background-image: none;
}

.baseone-dashboard-action .resident-dashboard-action-icon {
  width: 82px;
  height: 82px;
}

.baseone-dashboard-decision-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 18px;
  border-left: 4px solid #123f43;
  background: #f4f8f7;
}

.baseone-dashboard-decision-panel h3,
.baseone-dashboard-decision-panel p {
  margin: 0;
}

.baseone-dashboard-decision-panel h3 {
  color: #102326;
  font-size: 1.18rem;
}

.baseone-dashboard-decision-panel p:not(.eyebrow) {
  margin-top: 6px;
  color: #60747b;
}

.baseone-dashboard-decision-panel .muted {
  max-width: 700px;
  font-size: 0.82rem;
}

.baseone-dashboard-decision-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.baseone-dashboard-action h3 {
  font-size: clamp(1.9rem, 2.4vw, 2.2rem);
}

.baseone-dashboard-action.has-attention {
  box-shadow: inset 5px 0 0 #f0c400;
}

.baseone-dashboard-action.has-attention .resident-dashboard-action-icon {
  color: #d93025;
}

.baseone-dashboard-action.is-clear {
  box-shadow: inset 5px 0 0 #2b8066;
}

.baseone-dashboard-action.is-clear .resident-dashboard-action-icon {
  background: #e5f3eb;
  color: #17654f;
}

.baseone-dashboard-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
}

.baseone-dashboard-control-centre {
  margin-top: 18px;
}

.baseone-dashboard-scope {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.baseone-dashboard-refresh {
  min-width: 210px;
  border-left: 3px solid #f2cf22;
  padding: 5px 0 5px 14px;
}

.baseone-dashboard-refresh span,
.baseone-dashboard-refresh strong,
.baseone-dashboard-refresh small {
  display: block;
}

.baseone-dashboard-refresh span,
.baseone-dashboard-refresh small {
  color: #60747b;
  font-size: 0.78rem;
}

.baseone-dashboard-refresh strong {
  margin: 3px 0;
  color: #123f43;
  font-size: 1rem;
}

.baseone-dashboard-range-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #d8e0de;
  margin-bottom: 18px;
}

.baseone-dashboard-range {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 8px 18px 9px;
  background: transparent;
  color: #60747b;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.baseone-dashboard-range:hover,
.baseone-dashboard-range:focus-visible {
  color: #123f43;
}

.baseone-dashboard-range.is-selected {
  border-bottom-color: #f2cf22;
  color: #123f43;
}

.baseone-dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.baseone-dashboard-kpi-row > div {
  min-width: 0;
  border: 1px solid #d8e0de;
  border-top: 4px solid #c1d3ce;
  padding: 13px 14px;
  background: #fff;
}

.baseone-dashboard-kpi-row > div:nth-child(1),
.baseone-dashboard-kpi-row > div:nth-child(5) {
  border-top-color: #b64b47;
}

.baseone-dashboard-kpi-row > div:nth-child(2),
.baseone-dashboard-kpi-row > div:nth-child(3) {
  border-top-color: #f2cf22;
}

.baseone-dashboard-kpi-row strong,
.baseone-dashboard-kpi-row span {
  display: block;
}

.baseone-dashboard-kpi-row strong {
  color: #102326;
  font-size: 1.55rem;
  line-height: 1;
}

.baseone-dashboard-kpi-row span {
  margin-top: 5px;
  color: #60747b;
  font-size: 0.75rem;
}

.baseone-dashboard-main-grid,
.baseone-dashboard-week-grid,
.baseone-dashboard-month-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: 14px;
}

.baseone-dashboard-main-grid > .card,
.baseone-dashboard-week-grid > .card,
.baseone-dashboard-month-grid > .card,
.baseone-dashboard-status-panel {
  min-width: 0;
  box-shadow: none;
}

.baseone-dashboard-queue-panel {
  padding: 0;
}

.baseone-dashboard-queue-panel .baseone-queue-title {
  margin: 0;
  border-top: 4px solid #b64b47;
  padding: 15px 18px 12px;
}

.baseone-dashboard-queue-panel .baseone-queue-title p {
  max-width: 620px;
}

.baseone-dashboard-queue-list {
  display: grid;
}

.baseone-dashboard-queue-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  border-top: 1px solid #edf1f0;
  padding: 8px 16px;
}

.baseone-dashboard-queue-row.is-clear {
  opacity: 0.72;
}

.baseone-dashboard-queue-marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6d9993;
}

.baseone-dashboard-queue-row.is-danger .baseone-dashboard-queue-marker { background: #b64b47; }
.baseone-dashboard-queue-row.is-warm .baseone-dashboard-queue-marker { background: #d2a900; }

.baseone-dashboard-queue-row strong,
.baseone-dashboard-queue-row small {
  display: block;
}

.baseone-dashboard-queue-row strong {
  color: #102326;
  font-size: 0.84rem;
}

.baseone-dashboard-queue-row small {
  margin-top: 2px;
  color: #60747b;
  font-size: 0.74rem;
}

.baseone-dashboard-queue-count {
  color: #123f43;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
}

.baseone-dashboard-link {
  white-space: nowrap;
}

.baseone-dashboard-link svg {
  width: 14px;
  height: 14px;
}

.baseone-dashboard-rhythm {
  padding: 0 18px 18px;
}

.baseone-dashboard-rhythm .section-title {
  margin: 0 -18px 8px;
  border-top: 4px solid #123f43;
  padding: 15px 18px 12px;
}

.baseone-dashboard-rhythm-list {
  display: grid;
  gap: 0;
}

.baseone-dashboard-rhythm-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid #edf1f0;
  padding: 12px 0;
}

.baseone-dashboard-rhythm-list > div:last-child { border-bottom: 0; }
.baseone-dashboard-rhythm-list strong { font-size: 0.84rem; }
.baseone-dashboard-rhythm-list span { color: #60747b; font-size: 0.75rem; text-align: right; }

.baseone-dashboard-status-panel {
  display: inline-block;
  width: calc(33.333% - 10px);
  margin-top: 14px;
  margin-right: 12px;
  vertical-align: top;
}

.baseone-dashboard-status-panel:nth-of-type(3n) { margin-right: 0; }

.baseone-dashboard-status-panel .section-title {
  margin: 0;
  border-top: 3px solid #c1d3ce;
  padding: 13px 16px 9px;
}

.baseone-dashboard-status-list { padding: 0 16px 12px; }

.baseone-dashboard-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf1f0;
  padding: 9px 0;
  color: #60747b;
  font-size: 0.78rem;
}

.baseone-dashboard-status-list strong { color: #123f43; font-size: 1rem; }
.baseone-dashboard-status-list strong.is-zero { color: #829197; }
.baseone-dashboard-status-list strong.has-value { color: #123f43; }

.baseone-dashboard-week-grid,
.baseone-dashboard-month-grid {
  align-items: start;
}

.baseone-dashboard-week-grid .section-title,
.baseone-dashboard-month-grid .section-title {
  margin-bottom: 0;
}

.baseone-dashboard-week-list { padding: 0 18px 16px; }

.baseone-dashboard-week-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #edf1f0;
  padding: 14px 0;
}

.baseone-dashboard-week-row strong,
.baseone-dashboard-week-row span { display: block; }
.baseone-dashboard-week-row strong { font-size: 0.86rem; }
.baseone-dashboard-week-row span { margin-top: 3px; color: #60747b; font-size: 0.76rem; }
.baseone-dashboard-week-row b { color: #123f43; font-size: 1.3rem; text-align: right; }

.baseone-dashboard-guardrails { padding: 0 18px 16px; }

.baseone-dashboard-guardrails > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf1f0;
  padding: 12px 0;
  color: #60747b;
  font-size: 0.8rem;
}

.baseone-dashboard-guardrails strong { color: #123f43; font-size: 1rem; }
.baseone-dashboard-guardrails .baseone-dashboard-link { margin-top: 15px; }

.baseone-dashboard-month-signals { padding: 0 18px 16px; }

.baseone-dashboard-month-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px;
  gap: 8px 14px;
  align-items: center;
  border-top: 1px solid #edf1f0;
  padding: 13px 0;
}

.baseone-dashboard-month-signal strong,
.baseone-dashboard-month-signal span { display: block; }
.baseone-dashboard-month-signal strong { font-size: 0.85rem; }
.baseone-dashboard-month-signal span { margin-top: 3px; color: #60747b; font-size: 0.75rem; }
.baseone-dashboard-month-signal b { color: #123f43; font-size: 1.3rem; text-align: right; }

.baseone-dashboard-signal-bar {
  grid-column: 1 / -1;
  height: 7px;
  background: #e7efed;
}

.baseone-dashboard-signal-bar i { display: block; height: 100%; background: #1b5559; }

.baseone-dashboard-calendar { padding: 0 18px 16px; }

.baseone-dashboard-calendar > div {
  border-top: 1px solid #edf1f0;
  padding: 13px 0;
}

.baseone-dashboard-calendar time,
.baseone-dashboard-calendar strong,
.baseone-dashboard-calendar span { display: block; }
.baseone-dashboard-calendar time { color: #60747b; font-size: 0.72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.baseone-dashboard-calendar strong { margin-top: 3px; font-size: 0.84rem; }
.baseone-dashboard-calendar span { margin-top: 3px; color: #60747b; font-size: 0.75rem; }
.baseone-dashboard-calendar + .baseone-dashboard-link { margin: 0 18px 18px; }

/* Priority 5: BaseOne-only reporting presentation.  All values come from the
   protected aggregate reporting RPCs; these styles do not create a new
   operational workflow. */
.baseone-reports-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 8px 0 22px;
}

.baseone-reports-header h3,
.baseone-reports-header p,
.baseone-reports-status span,
.baseone-reports-status strong,
.baseone-reports-status small {
  display: block;
  margin: 0;
}

.baseone-reports-header h3 {
  color: #102326;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  letter-spacing: -0.035em;
}

.baseone-reports-header > div:first-child > p:not(.eyebrow) {
  max-width: 730px;
  margin-top: 8px;
  color: #60747b;
  font-size: 1rem;
  line-height: 1.55;
}

.baseone-reports-status {
  min-width: 240px;
  border-left: 3px solid #f2cf22;
  padding: 6px 0 6px 14px;
}

.baseone-reports-status span,
.baseone-reports-status small {
  color: #60747b;
  font-size: 0.76rem;
}

.baseone-reports-status strong {
  margin: 3px 0;
  color: #123f43;
  font-size: 0.95rem;
}

.baseone-report-controls {
  display: grid;
  gap: 14px;
  border: 1px solid #d8e0de;
  padding: 16px;
  background: #fff;
}

.baseone-report-periods,
.baseone-report-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #d8e0de;
}

.baseone-report-tabs { flex-wrap: wrap; }

.baseone-report-periods button,
.baseone-report-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 8px 16px;
  background: transparent;
  color: #60747b;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  cursor: pointer;
}

.baseone-report-periods button:hover,
.baseone-report-periods button:focus-visible,
.baseone-report-tabs button:hover,
.baseone-report-tabs button:focus-visible {
  color: #123f43;
}

.baseone-report-periods button.is-selected,
.baseone-report-tabs button.is-selected {
  border-bottom-color: #f2cf22;
  color: #123f43;
}

.baseone-report-custom-range {
  display: none;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  align-items: end;
  gap: 12px;
}

.baseone-report-custom-range.is-visible { display: grid; }

.baseone-report-custom-range label,
.baseone-report-scope-controls label {
  display: block;
  gap: 6px;
  color: #60747b;
  font-size: 0.76rem;
  font-weight: 800;
}

.baseone-report-custom-range input,
.baseone-report-scope-controls select {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 42px;
  border: 1px solid #d8e0de;
  border-radius: 0;
  padding: 8px 10px;
  background: #fff;
  color: #102326;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 680;
}

.baseone-report-scope-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.baseone-report-scope-controls > div { min-width: 190px; }

.baseone-reports-pilot-note {
  margin: 14px 0;
  border-left: 3px solid #cba76b;
  padding: 8px 0 8px 12px;
  color: #60747b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.baseone-report-tabs { margin-bottom: 18px; }

.baseone-reports-content { display: grid; gap: 14px; }

.baseone-report-mobile-brief { display: none; }
.baseone-report-mobile-brief .baseone-report-kpis { padding: 0 18px 14px; }
.baseone-report-mobile-note { margin: 0; border-top: 1px solid #edf1f0; padding: 14px 18px 18px; color: #60747b; font-size: 0.82rem; line-height: 1.45; }

.baseone-reports-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 120px;
  border-left: 4px solid #749898;
  padding: 24px;
  color: #60747b;
}

.baseone-reports-empty strong,
.baseone-reports-empty span { display: block; }
.baseone-reports-empty strong { color: #102326; font-size: 1.05rem; }
.baseone-reports-empty span { margin-top: 5px; }
.baseone-reports-empty.is-error { border-left-color: #b64b47; }
.baseone-reports-empty.compact { min-height: 130px; padding: 20px; }

.baseone-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.baseone-report-kpi {
  min-width: 0;
  border: 1px solid #d8e0de;
  border-top: 4px solid #c1d3ce;
  padding: 14px 16px 16px;
  background: #fff;
}

.baseone-report-kpi.is-teal { border-top-color: #123f43; }
.baseone-report-kpi.is-gold { border-top-color: #f2cf22; }
.baseone-report-kpi.is-danger { border-top-color: #d93025; }
.baseone-report-kpi span,
.baseone-report-kpi strong,
.baseone-report-kpi small { display: block; }
.baseone-report-kpi span { color: #60747b; font-size: 0.76rem; font-weight: 760; }
.baseone-report-kpi strong { margin: 8px 0 5px; color: #102326; font-size: 1.85rem; line-height: 1; }
.baseone-report-kpi small { color: #60747b; font-size: 0.73rem; line-height: 1.35; }

.baseone-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 14px;
}

.baseone-report-section { min-width: 0; padding: 0; box-shadow: none; }
.baseone-report-section-heading { border-top: 4px solid #123f43; padding: 17px 18px 13px; }
.baseone-report-section-heading h3,
.baseone-report-section-heading p { margin: 0; }
.baseone-report-section-heading h3 { color: #102326; font-size: 1.15rem; }
.baseone-report-section-heading p { margin-top: 5px; color: #60747b; font-size: 0.84rem; line-height: 1.4; }

.baseone-report-chart-wrap { padding: 6px 18px 16px; }
.baseone-report-chart-key { display: flex; gap: 16px; color: #60747b; font-size: 0.75rem; }
.baseone-report-chart-key span { display: inline-flex; align-items: center; gap: 6px; }
.baseone-report-chart-key i { width: 9px; height: 9px; border-radius: 50%; background: #123f43; }
.baseone-report-chart-key i.quotes { background: #f2cf22; }
.baseone-report-chart { display: block; width: 100%; height: 220px; overflow: visible; }
.baseone-report-chart-grid { fill: none; stroke: #e7efed; stroke-width: .65; }
.baseone-report-chart-line { fill: none; stroke-width: 2.8; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.baseone-report-chart-line.rfqs { stroke: #123f43; }
.baseone-report-chart-line.quotes { stroke: #f2cf22; }
.baseone-report-chart-labels { display: flex; justify-content: space-between; gap: 8px; color: #60747b; font-size: 0.69rem; }

.baseone-report-summary-list { padding: 0 18px 10px; }
.baseone-report-summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf1f0; padding: 12px 0; }
.baseone-report-summary-list span { color: #60747b; font-size: 0.8rem; }
.baseone-report-summary-list strong { color: #123f43; font-size: 1.15rem; }

.baseone-report-table-wrap { max-height: 310px; overflow: auto; border-top: 1px solid #edf1f0; }
.baseone-report-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.baseone-report-table th,
.baseone-report-table td { border-bottom: 1px solid #edf1f0; padding: 11px 18px; text-align: right; white-space: nowrap; }
.baseone-report-table th:first-child { min-width: 190px; text-align: left; white-space: normal; }
.baseone-report-table thead th { position: sticky; top: 0; z-index: 1; background: #f4f8f7; color: #60747b; font-size: 0.7rem; letter-spacing: .04em; text-transform: uppercase; }
.baseone-report-table tbody th { color: #102326; font-weight: 740; }

.baseone-report-compare-grid,
.baseone-report-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.baseone-report-compare-card,
.baseone-report-detail-grid > div { min-width: 0; border: 1px solid #d8e0de; border-top: 4px solid #c1d3ce; padding: 14px 16px; background: #fff; }
.baseone-report-detail-grid { padding: 0 18px 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.baseone-report-detail-grid > div.is-danger { border-top-color: #d93025; }
.baseone-report-detail-grid > div.is-warm { border-top-color: #f2cf22; }
.baseone-report-section.is-focus .baseone-report-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.baseone-report-section.is-focus .baseone-report-detail-grid > div { display: grid; min-height: 106px; align-content: center; gap: 8px; text-align: center; }
.baseone-report-section.is-focus .baseone-report-detail-grid strong { margin: 0; }
.baseone-report-compare-card span,
.baseone-report-compare-card strong,
.baseone-report-compare-card small,
.baseone-report-compare-card b,
.baseone-report-detail-grid span,
.baseone-report-detail-grid strong { display: block; }
.baseone-report-compare-card span,
.baseone-report-compare-card small,
.baseone-report-detail-grid span { color: #60747b; font-size: 0.76rem; }
.baseone-report-compare-card strong,
.baseone-report-detail-grid strong { margin: 7px 0; color: #102326; font-size: 1.55rem; line-height: 1; }
.baseone-report-compare-card b { color: #17654f; font-size: 0.78rem; }
.baseone-report-note { margin: 0; padding: 0 18px 18px; color: #60747b; font-size: 0.84rem; line-height: 1.5; }

.baseone-dashboard-main-card {
  min-height: 620px;
}

.baseone-attention-list {
  display: grid;
  gap: 12px;
}

.baseone-queue-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.baseone-queue-title h3,
.baseone-queue-title p {
  margin: 0;
}

.baseone-queue-title p {
  margin-top: 4px;
  color: #667674;
  font-size: 0.92rem;
}

.baseone-queue-title > span {
  min-width: 74px;
  border: 1px solid #cfd9d6;
  padding: 8px 12px;
  color: #123f43;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.baseone-attention-card {
  min-height: 128px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 18px;
}

.baseone-attention-card.is-gold {
  border-left: 4px solid #d6a21f;
}

.baseone-attention-card.is-red {
  border-left: 4px solid #b64b47;
}

.baseone-attention-card.is-purple {
  border-left: 4px solid #7d6caf;
}

.baseone-attention-card.is-blue {
  border-left: 4px solid #4c829b;
}

.baseone-attention-card.is-green {
  border-left: 4px solid #4f8b63;
}

.baseone-attention-icon {
  width: 54px;
  height: 54px;
  padding: 14px;
}

.baseone-attention-icon.is-blue {
  background: #e5f2fa;
}

.baseone-attention-icon.is-purple {
  background: #eeeafc;
}

.baseone-attention-icon.is-green {
  background: #e7f4e8;
}

.baseone-attention-icon.is-red {
  background: #f8e8e6;
  color: #8e342f;
}

.baseone-attention-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.baseone-attention-priority {
  color: #61716e;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.baseone-attention-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border: 1px solid #cdd7d4;
  padding: 0 8px;
  color: #123f43;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1;
}

.baseone-attention-card .resident-attention-copy p {
  margin-top: 6px;
}

.baseone-attention-clear {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  border: 1px solid #cfe1d8;
  padding: 22px;
  background: #f5faf7;
}

.baseone-attention-clear > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 50%;
  background: #e1f1e7;
  color: #17654f;
}

.baseone-attention-clear svg {
  width: 28px;
  height: 28px;
}

.baseone-attention-clear strong,
.baseone-attention-clear p {
  margin: 0;
}

.baseone-attention-clear p {
  margin-top: 4px;
  color: #667674;
}

.baseone-recent-activity {
  padding-top: 34px;
}

.baseone-recent-activity .resident-activity-row + .resident-activity-row {
  margin-top: 20px;
}

.baseone-overview-card .resident-overview-item:nth-of-type(1) .resident-overview-icon {
  background: #e5f2fa;
}

.baseone-overview-card .resident-overview-item:nth-of-type(2) .resident-overview-icon {
  background: #fff4c9;
}

.baseone-overview-card .resident-overview-item:nth-of-type(3) .resident-overview-icon {
  background: #e7f4e8;
}

.baseone-overview-card .resident-overview-item:nth-of-type(4) .resident-overview-icon {
  background: #eeeafc;
}

.baseone-system-card button {
  width: 100%;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #123f43;
  text-align: left;
}

.baseone-system-card button strong,
.baseone-system-card button small {
  display: block;
}

.baseone-system-card button small {
  margin-top: 3px;
  color: #66787c;
}

.baseone-system-card .resident-yellow-arrow {
  font-size: 2.8rem;
}

.baseone-workspace-intro {
  margin-top: 2px;
}

.baseone-section-card,
.baseone-marketplace-grid,
.baseone-shell-workspace > .operator-rfq-queue,
.baseone-shell-workspace > .rfq-dashboard-report,
.baseone-shell-workspace > .matching-audit-panel,
.baseone-shell-workspace > .provider-journey-test-panel,
.baseone-shell-workspace > .email-outbox-panel {
  margin-top: 18px;
}

.baseone-shell-workspace .card {
  box-shadow: none;
}

.baseone-account-workspace {
  width: min(880px, 100%);
}

.resident-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 18px;
}

.resident-account-grid > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-account-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.resident-account-grid strong {
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .console-app.baseone-mode {
    display: block;
  }

  .baseone-mode .sidebar {
    display: none;
  }

  .baseone-mode .main-area {
    width: 100%;
  }

  .baseone-mode .topbar {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 0;
    border-bottom: 0;
  }

  .baseone-mode .estate-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding: 0 20px;
    border-top: 1px solid #d9dedc;
    border-bottom: 1px solid #d9dedc;
  }

  .baseone-mode .estate-filter select {
    width: 100%;
    min-height: 64px;
    padding: 0 26px 0 0;
    text-align: left;
    font-size: 1.12rem;
  }

  .baseone-mode .workspace {
    padding: 0 18px 116px;
  }

  .baseone-dashboard-action .resident-dashboard-action-icon {
    width: 76px;
    height: 76px;
  }

  .baseone-dashboard-action {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 20px 18px;
    padding: 34px 30px 32px;
  }

  .baseone-dashboard-action .resident-primary-action {
    grid-column: 1 / -1;
  }

  .baseone-dashboard-main-card {
    min-height: 0;
  }

  .baseone-queue-title {
    align-items: center;
  }

  .baseone-attention-list {
    display: contents;
  }

  .baseone-overview-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baseone-overview-card .resident-overview-item:nth-of-type(2) {
    border-right: 0;
  }

  .baseone-overview-card .resident-overview-item:nth-of-type(n+3) {
    margin-top: 24px;
  }

  .baseone-workspace-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
  }

  .baseone-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .baseone-marketplace-grid,
  .resident-account-grid {
    grid-template-columns: 1fr;
  }

  .baseone-dashboard-decision-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .baseone-dashboard-decision-actions {
    justify-content: flex-start;
  }

  .baseone-dashboard-refresh {
    width: 100%;
  }

  .baseone-dashboard-main-grid,
  .baseone-dashboard-week-grid,
  .baseone-dashboard-month-grid {
    grid-template-columns: 1fr;
  }

  .baseone-dashboard-status-panel {
    width: calc(50% - 8px);
  }

  .baseone-dashboard-status-panel:nth-of-type(3n) {
    margin-right: 12px;
  }

  .baseone-dashboard-status-panel:nth-of-type(2n) {
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .baseone-dashboard-action {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 28px 20px 24px;
  }

  .baseone-attention-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .baseone-attention-card .resident-view-request {
    grid-column: 1 / -1;
  }

  .baseone-queue-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .baseone-inline-counts,
  .baseone-workspace-intro .hoa-inline-counts {
    width: 100%;
    justify-content: space-between;
  }

  .baseone-dashboard-range-tabs {
    overflow-x: auto;
  }

  .baseone-dashboard-range {
    flex: 1 0 auto;
    padding-inline: 12px;
  }

  .baseone-dashboard-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baseone-dashboard-action.baseone-dashboard-action {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .baseone-dashboard-action .baseone-dashboard-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .baseone-dashboard-queue-row {
    grid-template-columns: 10px minmax(0, 1fr) 34px;
  }

  .baseone-dashboard-queue-row .baseone-dashboard-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .baseone-dashboard-status-panel {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .resident-dashboard-action {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 28px 20px 24px;
  }

  .resident-dashboard-action-icon {
    width: 76px;
    height: 94px;
  }

  .resident-attention-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
  }

  .resident-attention-icon {
    width: 54px;
    height: 54px;
    padding: 13px;
  }

  .resident-view-request {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .resident-overview-item {
    padding: 0 7px;
  }

  .resident-overview-item:last-child {
    padding: 0 7px;
  }

  .resident-overview-icon {
    width: 48px;
    height: 48px;
    padding: 13px;
  }

  .resident-mobile-nav-button small {
    font-size: 0.7rem;
  }
}

@media (max-width: 860px) {
  .baseone-reports-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .baseone-reports-status { width: 100%; }
  .baseone-report-scope-controls { justify-content: flex-start; flex-wrap: wrap; }
  .baseone-report-grid { grid-template-columns: 1fr; }
  .baseone-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baseone-report-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .baseone-report-controls { padding: 12px; }
  .baseone-report-periods button,
  .baseone-report-tabs button { padding-inline: 12px; }
  .baseone-report-periods,
  .baseone-report-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .baseone-report-custom-range { grid-template-columns: 1fr; }
  .baseone-report-scope-controls { display: grid; grid-template-columns: 1fr; }
  .baseone-report-scope-controls > div { min-width: 0; }
  .baseone-reports-empty { align-items: flex-start; flex-direction: column; }
  .baseone-report-kpis,
  .baseone-report-detail-grid,
  .baseone-report-compare-grid { grid-template-columns: 1fr; }
  .baseone-report-section.is-focus .baseone-report-detail-grid { grid-template-columns: 1fr; }
  .baseone-report-chart { height: 180px; }
  .baseone-report-table th,
  .baseone-report-table td { padding: 10px 12px; }
}

/* Reports are deliberately a concise briefing surface on a phone. Detailed
   comparisons and tables remain available on a larger screen. */
@media (max-width: 680px) {
  .resident-mode .estate-filter.reporting-context {
    min-width: 0;
  }

  .resident-mode .estate-filter.reporting-context .estate-fixed-value {
    max-width: 132px;
    padding-inline: 0;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: right;
  }

  .baseone-report-tabs,
  .baseone-reports-content.is-detailed {
    display: none;
  }

  .baseone-report-mobile-brief { display: block; }
  .baseone-report-mobile-brief .baseone-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baseone-report-mobile-brief .baseone-report-kpi { padding: 13px 14px 14px; }
  .baseone-report-mobile-brief .baseone-report-kpi strong { font-size: 1.55rem; }

  .baseone-report-periods {
    justify-content: space-between;
    gap: 0;
    overflow: visible;
  }

  .baseone-report-periods button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.74rem;
  }
}

/* Provider PWA shell: deliberately shares the approved Resident visual language. */
.console-app.provider-mode {
  grid-template-columns: 316px minmax(0, 1fr);
  background: #fff;
}

.provider-mode .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 28px 14px 16px;
  overflow-y: auto;
  background: #123f43;
}

.provider-mode .sidebar > :not(.resident-sidebar-shell) {
  display: none;
}

.provider-mode .main-area {
  min-width: 0;
  background: #fff;
}

.provider-mode .topbar {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 32px 44px;
  background: #fff;
}

.provider-mode .standard-topbar-copy {
  display: none;
}

.provider-mode .estate-filter {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 180px;
}

.provider-mode .estate-filter > span {
  display: none;
}

.provider-mode .estate-filter select {
  min-height: 48px;
  border: 0;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  font-weight: 730;
  text-align: right;
  opacity: 1;
  -webkit-text-fill-color: #111;
}

.provider-mode .workspace {
  padding: 38px 44px 56px;
  background: #fff;
}

.provider-shell-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.provider-admin-switcher {
  width: min(420px, 100%);
  display: grid;
  gap: 7px;
  margin: 0 0 20px auto;
  color: #66787c;
  font-size: 0.78rem;
  font-weight: 780;
}

.provider-admin-switcher select {
  min-height: 46px;
  border: 1px solid #d4d9d7;
  border-radius: 4px;
  padding: 0 14px;
  background: #fff;
  color: #111;
}

.provider-dashboard-action .resident-dashboard-action-icon {
  width: 84px;
  height: 84px;
}

.provider-overview-card .is-new-lead .resident-overview-icon {
  background: #fff4c9;
}

.provider-overview-card .is-awaiting-resident .resident-overview-icon {
  background: #e5f4fb;
}

.provider-overview-card .is-quotes-used .resident-overview-icon {
  background: #e7f6e6;
}

.provider-overview-card .is-quotes-used strong {
  font-size: 1.25rem;
}

.provider-appointment-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: #123f43;
}

.provider-appointment-row strong,
.provider-appointment-row small {
  display: block;
}

.provider-appointment-row small {
  margin-top: 5px;
  color: #6b7978;
  line-height: 1.35;
}

.provider-home-hero,
.provider-home-section,
.provider-home-focus,
.provider-home-footer-grid {
  max-width: 1180px;
  margin-inline: auto;
}

.provider-home-hero {
  display: flex;
  align-items: center;
  min-height: 166px;
  padding: 34px 42px;
  border: 1px solid #d9e1de;
  border-left: 5px solid #f2cc00;
  background: linear-gradient(120deg, #fff, #f6f9f8);
}

.provider-home-hero span,
.provider-home-section-heading span,
.provider-home-eyebrow {
  display: block;
  color: #637878;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.provider-home-hero h2 {
  margin: 7px 0 8px;
  color: #0d3639;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.provider-home-hero p,
.provider-home-next-card p,
.provider-home-info-card small {
  margin: 0;
  color: #647879;
  line-height: 1.5;
}

.provider-home-section,
.provider-home-focus {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid #d9e1de;
  background: #fff;
}

.provider-home-section-heading h3 {
  margin: 5px 0 0;
  color: #102c2f;
  font-size: 1.65rem;
}

.provider-home-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.provider-home-work-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  min-height: 160px;
  padding: 20px;
  border: 1px solid #d5dfdc;
  border-radius: 0;
  background: #fbfcfb;
  color: #113e42;
  text-align: left;
  cursor: pointer;
}

.provider-home-work-card:hover,
.provider-home-work-card:focus-visible {
  border-color: #0f4b50;
  background: #f2f8f7;
}

.provider-home-work-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
}

.provider-home-work-icon svg,
.provider-home-next-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.provider-home-work-card.is-leads .provider-home-work-icon { background: #fff3c9; }
.provider-home-work-card.is-conversations .provider-home-work-icon { background: #e2f1fb; }
.provider-home-work-card.is-quotes .provider-home-work-icon { background: #e5f5e5; }

.provider-home-work-card > span:not(.provider-home-work-icon) strong,
.provider-home-work-card > span:not(.provider-home-work-icon) small,
.provider-home-info-card strong,
.provider-home-info-card small {
  display: block;
}

.provider-home-work-card strong {
  color: #102c2f;
  font-size: 2rem;
  line-height: 1;
}

.provider-home-work-card small {
  margin-top: 6px;
  color: #526968;
  font-size: .95rem;
  line-height: 1.3;
}

.provider-home-work-card em {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: #0f4b50;
  font-size: .9rem;
  font-style: normal;
  font-weight: 800;
}

.provider-home-work-card em svg { width: 18px; height: 18px; }

.provider-home-next-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #d5dfdc;
  background: #f8fbfa;
}

.provider-home-next-card.is-clear { grid-template-columns: 62px minmax(0, 1fr); }

.provider-home-next-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #fff3c9;
  color: #0f4b50;
}

.provider-home-next-card h3 {
  margin: 5px 0 6px;
  color: #102c2f;
  font-size: 1.2rem;
}

.provider-home-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.provider-home-info-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid #d9e1de;
  background: #fff;
}

.provider-home-info-card strong { color: #123f43; }
.provider-home-info-card small { margin-top: 4px; }

@media (max-width: 860px) {
  .resident-home-service-feature { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px; }
  .resident-service-loop-frame { width: min(100%, 420px); margin: 0 auto; }
  .provider-home-work-grid { grid-template-columns: 1fr; }
  .provider-home-hero { min-height: 0; padding: 28px 24px; }
  .provider-home-next-card { grid-template-columns: 54px minmax(0, 1fr); }
  .provider-home-next-card .resident-view-request { grid-column: 1 / -1; width: 100%; }
  .provider-home-next-card.is-clear { grid-template-columns: 54px minmax(0, 1fr); }
  .provider-home-next-icon { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .resident-service-loop-track { animation: none; }
  .resident-service-loop-frame { overflow-y: auto; }
}

/* BaseOne-controlled Resident information publishing. */
.resident-information-editor,
.resident-information-library { margin-top: 18px; }
.resident-information-editor form { max-width: 980px; }
.resident-information-editor textarea { min-height: 120px; resize: vertical; }
.resident-information-record { border-left: 4px solid #c1d3ce; }
.resident-information-record:has(.status.approved) { border-left-color: #237856; }
.resident-information-record .item-copy { max-width: 900px; line-height: 1.55; }

@media (max-width: 760px) {
  .resident-information-editor .grid.three,
  .resident-information-editor .grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .provider-home-section,
  .provider-home-focus { margin-top: 16px; padding: 20px 16px; }
  .provider-home-hero { padding: 25px 18px; }
  .provider-home-footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .provider-home-work-card { min-height: 136px; }
  .provider-home-next-card { gap: 14px; padding: 18px 16px; }
}

/* 2026-08-19 approved Resident Home hierarchy. Presentation only. */
.resident-shell-workspace-dashboard.resident-ui-simplified {
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.resident-home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 2px;
}
.resident-home-welcome h2 { margin: 3px 0 0; color: #102426; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.resident-home-welcome button { min-height: 54px; display: flex; align-items: center; gap: 10px; border: 1px solid #c8d8d3; border-radius: 8px; padding: 10px 15px; background: #f2f7f5; color: #123f43; text-align: left; }
.resident-home-welcome button strong { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f2cf22; color: #123f43; font-size: 1rem; }
.resident-home-welcome button span { font-weight: 720; }
.resident-home-welcome button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }

.resident-home-core {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #b9cbc6;
  border-radius: 12px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(18,63,67,.07);
}
.resident-home-core-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: end; }
.resident-home-core-heading h3 { margin: 4px 0 8px; color: #102426; font-size: clamp(1.7rem,3vw,2.45rem); letter-spacing: -.035em; }
.resident-home-core-heading p:not(.eyebrow) { max-width: 700px; margin: 0; color: #60747b; line-height: 1.5; }
.resident-home-core-action,
.resident-home-convenience-action { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 7px; padding: 0 20px; background: #f2cf22; color: #123f43; font-weight: 800; text-decoration: none; }
.resident-home-core-action svg,
.resident-home-convenience-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
.resident-home-core .resident-simplified-metrics { margin-top: 26px; }
.resident-home-core .resident-simplified-metric { border-color: #c8d8d3; background: #f7faf9; }
.resident-home-category-heading { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 12px; padding-top: 22px; border-top: 1px solid #d8e0de; color: #123f43; }
.resident-home-category-heading button { border: 0; background: transparent; color: #1f6670; font-weight: 750; }
.resident-home-category-rail,
.resident-home-convenience-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-color: #9bb2ac transparent; }
.resident-home-category-rail button { min-height: 132px; scroll-snap-align: start; display: grid; align-content: center; justify-items: start; gap: 5px; border: 1px solid #b9cbc6; border-radius: 8px; padding: 18px; background: #c1d3ce; color: #123f43; text-align: left; }
.resident-home-category-rail button:nth-child(even) { background: #edf3f1; }
.resident-home-category-rail button > span { width: 32px; height: 32px; margin-bottom: 7px; }
.resident-home-category-rail svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.35; }
.resident-home-category-rail strong { font-size: 1rem; }
.resident-home-category-rail small { color: #355b5f; }

.resident-home-information { position: relative; min-height: 340px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); overflow: hidden; border-radius: 14px; background: #123f43; color: #fff; }
.resident-home-information-copy { z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 46px 48px 70px; }
.resident-home-information-copy .eyebrow { color: #f2cf22; }
.resident-home-information-copy h3 { max-width: 700px; margin: 6px 0 14px; color: #fff; font-size: clamp(1.65rem,3vw,2.35rem); line-height: 1.12; letter-spacing: -.03em; }
.resident-home-information-copy p:not(.eyebrow) { max-width: 700px; margin: 0; color: #d8e4e1; line-height: 1.55; }
.resident-home-information-copy > span { margin-top: 20px; color: #a9c0bb; font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.resident-home-information-visual { display: grid; place-items: center; background: #c1d3ce; color: #123f43; clip-path: polygon(17% 0,100% 0,100% 100%,0 100%); }
.resident-home-information-visual > span { width: 150px; height: 150px; opacity: .92; }
.resident-home-information-visual svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.15; }
.resident-home-information-controls { position: absolute; z-index: 2; left: 42px; bottom: 22px; display: flex; align-items: center; gap: 14px; }
.resident-home-information-controls > button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 1.1rem; }
.resident-home-information-controls > div { display: flex; gap: 8px; }
.resident-home-information-controls > div button { width: 9px; height: 9px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.4); }
.resident-home-information-controls > div button.is-active { width: 24px; border-radius: 8px; background: #f2cf22; }

.resident-home-convenience { border: 1px solid #c8d8d3; border-radius: 12px; padding: 30px 32px; background: #f3f7f5; }
.resident-home-convenience-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,470px); align-items: end; gap: 30px; }
.resident-home-convenience-heading h3 { margin: 4px 0 0; color: #102426; font-size: clamp(1.5rem,2.5vw,2rem); }
.resident-home-convenience-heading > p { margin: 0; color: #60747b; line-height: 1.5; }
.resident-home-convenience-rail { grid-auto-columns: minmax(180px, 1fr); margin-top: 22px; }
.resident-home-convenience-card { min-height: 170px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 9px; padding: 18px; color: #fff; background: #456f70; }
.resident-home-convenience-card:nth-child(2n) { background: #5e7b83; }
.resident-home-convenience-card:nth-child(3n) { background: #749898; }
.resident-home-convenience-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 0 auto; border-radius: 50%; padding: 12px; background: rgba(255,255,255,.88); color: #123f43; }
.resident-home-convenience-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; }
.resident-home-convenience-card strong { font-size: 1.02rem; }
.resident-home-convenience-card small { margin-top: 5px; color: #e8f0ee; }
.resident-home-convenience-action { margin-top: 18px; background: #123f43; color: #fff; }

.resident-home-support-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.resident-home-support-grid > a,
.resident-home-support-grid > button { min-height: 126px; display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; grid-template-rows: auto auto; align-content: center; gap: 5px 14px; border: 1px solid #c8d8d3; border-radius: 10px; padding: 20px; background: #fff; color: #123f43; text-align: left; text-decoration: none; }
.resident-home-support-grid > * > span:first-child { grid-row: 1 / span 2; width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: #c1d3ce; }
.resident-home-support-grid svg { width: 100%; height: 100%; fill: none; stroke: currentColor; }
.resident-home-support-grid > * > svg { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; }
.resident-home-support-grid strong { align-self: end; }
.resident-home-support-grid small { color: #60747b; line-height: 1.35; }

@media (max-width: 860px) {
  .resident-home-core { padding: 24px 20px; }
  .resident-home-core-heading,
  .resident-home-convenience-heading { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .resident-home-core-action { width: 100%; }
  .resident-home-information { grid-template-columns: 1fr; min-height: 440px; }
  .resident-home-information-copy { padding: 34px 26px 84px; }
  .resident-home-information-visual { min-height: 150px; clip-path: none; }
  .resident-home-information-visual > span { width: 94px; height: 94px; }
  .resident-home-information-controls { left: 24px; bottom: 174px; }
  .resident-home-convenience { padding: 24px 20px; }
  .resident-home-support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .resident-shell-workspace-dashboard.resident-ui-simplified { gap: 20px; }
  .resident-home-welcome { align-items: stretch; flex-direction: column; gap: 12px; }
  .resident-home-welcome button { width: 100%; }
  .resident-home-core .resident-simplified-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .resident-home-core .resident-simplified-metric { min-height: 82px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .resident-home-core .resident-simplified-metric-icon { display: none; }
  .resident-home-category-heading { align-items: start; flex-direction: column; gap: 5px; }
  .resident-home-category-rail { grid-auto-columns: 74%; }
  .resident-home-information-copy h3 { font-size: 1.55rem; }
  .resident-home-convenience-rail { grid-auto-columns: 72%; }
}

@media (min-width: 861px) {
  .resident-home-core { display: grid; grid-template-columns: minmax(330px,.72fr) minmax(0,1.55fr); column-gap: 34px; align-items: start; }
  .resident-home-core-heading { grid-column: 1; display: block; }
  .resident-home-core-heading .resident-home-core-action { margin-top: 22px; }
  .resident-home-core .resident-simplified-metrics { grid-column: 1; grid-row: 2; gap: 0; margin-top: 20px; }
  .resident-home-core .resident-simplified-metric { min-height: 74px; grid-template-columns: 1fr; justify-items: center; border-width: 0 1px 0 0; border-radius: 0; padding: 8px; background: transparent; text-align: center; }
  .resident-home-core .resident-simplified-metric:last-child { border-right: 0; }
  .resident-home-core .resident-simplified-metric-icon { display: none; }
  .resident-home-category-heading { display: none; }
  .resident-home-category-rail { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; grid-auto-columns: minmax(132px,1fr); border: 1px solid #c8d8d3; border-radius: 9px; padding: 14px; background: #fff; }
  .resident-home-category-rail button { min-height: 190px; align-content: center; justify-items: center; border-width: 0 1px 0 0; border-radius: 0; background: #fff !important; text-align: center; }
  .resident-home-category-rail button:last-child { border-right: 0; }
  .resident-home-category-rail button > span { width: 62px; height: 62px; display: grid; place-items: center; padding: 14px; border-radius: 50%; background: #e5efec; }

  .resident-home-information { min-height: 210px; grid-template-columns: minmax(260px,.35fr) minmax(0,1fr); border: 1px solid #c8d8d3; background: #f8faf9; color: #102426; }
  .resident-home-information-copy { grid-column: 2; margin: 18px 72px 18px 0; padding: 28px 34px 50px; border: 1px solid #c8d8d3; border-radius: 9px; background: #fff; }
  .resident-home-information-copy .eyebrow { color: #5e7b83; }
  .resident-home-information-copy h3 { color: #102426; font-size: clamp(1.3rem,2vw,1.7rem); }
  .resident-home-information-copy p:not(.eyebrow) { color: #60747b; }
  .resident-home-information-copy > span { color: #1f6670; }
  .resident-home-information-visual { grid-column: 1; grid-row: 1; min-height: 210px; clip-path: none; background: transparent; }
  .resident-home-information-visual::before { content: "Useful information\A for your home"; white-space: pre; color: #102426; font-size: 1.55rem; font-weight: 750; line-height: 1.25; }
  .resident-home-information-visual > span { display: none; }
  .resident-home-information-controls { left: auto; right: 86px; bottom: 26px; }
  .resident-home-information-controls > button { border-color: #b9cbc6; color: #123f43; }
  .resident-home-information-controls > div button { background: #cbd5d2; }

  .resident-home-convenience { display: grid; grid-template-columns: minmax(250px,.45fr) minmax(0,1.55fr); column-gap: 28px; align-items: center; }
  .resident-home-convenience-heading { grid-column: 1; display: block; }
  .resident-home-convenience-heading > p { margin-top: 10px; }
  .resident-home-convenience-rail { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; grid-auto-columns: minmax(150px,1fr); }
  .resident-home-convenience-action { grid-column: 1; width: fit-content; }
}

/* The category rail is driven by the recorded active catalogue. */
.resident-home-category-rail {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 2px;
  scroll-snap-type: none;
}
.resident-home-category-track {
  width: max-content;
  display: flex;
  gap: 12px;
  animation: resident-home-category-scroll var(--category-scroll-duration, 60s) linear infinite;
  will-change: transform;
}
.resident-home-category-group { display: flex; gap: 12px; }
.resident-home-category-group button {
  width: 170px;
  min-width: 170px;
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  border: 1px solid #b9cbc6;
  border-radius: 8px;
  padding: 18px;
  background: #c1d3ce;
  color: #123f43;
  text-align: left;
}
.resident-home-category-group button:nth-child(even) { background: #edf3f1; }
.resident-home-category-group button > span { width: 3cm; height: 3cm; margin-bottom: 7px; }
.resident-home-category-image { display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #e5efec; box-shadow: 0 5px 12px rgba(18,63,67,.18); }
.resident-home-category-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resident-home-category-image > span { width: 62px; height: 62px; display: grid; place-items: center; padding: 14px; }
.resident-home-category-group button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.resident-home-category-group button strong { font-size: .95rem; line-height: 1.2; }
.resident-home-category-group button small { color: #355b5f; }
.resident-home-category-rail:hover .resident-home-category-track,
.resident-home-category-rail:focus-within .resident-home-category-track { animation-play-state: paused; }

@keyframes resident-home-category-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

@media (min-width: 861px) {
  .resident-home-category-rail { padding: 14px; }
  .resident-home-category-group button {
    width: 170px;
    min-width: 170px;
    min-height: 230px;
    align-content: center;
    justify-items: center;
    border-width: 0 1px 0 0;
    border-radius: 0;
    background: #fff !important;
    text-align: center;
  }
  .resident-home-category-group button > span { width: 3cm; height: 3cm; padding: 0; border-radius: 16px; background: #e5efec; }
}

@media (max-width: 560px) {
  .resident-home-category-group button { width: 170px; min-width: 170px; min-height: 230px; align-content: center; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .resident-home-category-rail { overflow-x: auto; }
  .resident-home-category-track { animation: none; }
  .resident-home-category-group[aria-hidden="true"] { display: none; }
}

.provider-workspace-card,
.provider-usage-card,
.provider-account-workspace,
.provider-estate-access-card {
  box-shadow: none;
}

.provider-workspace-card > .section-title,
.provider-usage-card > .section-title {
  align-items: start;
}

.provider-workspace-card > .section-title h3,
.provider-usage-card > .section-title h3 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.provider-shell-workspace-account {
  display: grid;
  gap: 22px;
}

.provider-account-workspace,
.provider-estate-access-card {
  width: min(900px, 100%);
}

.provider-account-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-pipeline-board {
  margin-top: 22px;
}

.provider-lead-card {
  scroll-margin-top: 24px;
}

.provider-mode .provider-lead-card {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid #1d6970;
}

.provider-mode .provider-conversation-card {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid #c48a12;
}

.provider-lead-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 14px;
}

.provider-lead-summary h4 {
  margin: 6px 0 4px;
  font-size: 1.28rem;
}

.provider-lead-summary p {
  margin: 0;
  color: #5e7780;
}

.provider-conversation-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 14px;
}

.provider-conversation-summary h4 {
  margin: 6px 0 4px;
  font-size: 1.28rem;
}

.provider-conversation-summary p {
  margin: 0;
  color: #5e7780;
}

.provider-lead-reference {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.provider-lead-reference strong {
  color: #082d32;
}

.provider-lead-reference span {
  color: #68808a;
  font-size: .9rem;
}

.provider-lead-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dce4e1;
  border-bottom: 1px solid #dce4e1;
  background: #f5f8f7;
}

.provider-conversation-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dce4e1;
  border-bottom: 1px solid #dce4e1;
  background: #f9f7f1;
}

.provider-lead-glance > div {
  display: grid;
  gap: 5px;
  padding: 13px 24px;
  border-right: 1px solid #dce4e1;
}

.provider-conversation-glance > div {
  display: grid;
  gap: 5px;
  padding: 13px 24px;
  border-right: 1px solid #dce4e1;
}

.provider-lead-glance > div:last-child {
  border-right: 0;
}

.provider-conversation-glance > div:last-child {
  border-right: 0;
}

.provider-lead-glance span,
.provider-lead-next-action span,
.provider-lead-detail-copy > span,
.provider-conversation-glance span,
.provider-conversation-next-action span,
.provider-conversation-message > span,
.provider-conversation-request > span {
  color: #607681;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.provider-lead-glance strong {
  color: #102e33;
  font-size: .98rem;
}

.provider-conversation-glance strong {
  color: #102e33;
  font-size: .98rem;
}

.provider-lead-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 24px;
}

.provider-conversation-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 24px;
}

.provider-lead-next-action p {
  display: grid;
  gap: 5px;
  max-width: 690px;
  margin: 0;
}

.provider-conversation-next-action p {
  display: grid;
  gap: 5px;
  max-width: 690px;
  margin: 0;
}

.provider-lead-next-action strong {
  color: #17363b;
  line-height: 1.4;
}

.provider-conversation-next-action strong {
  color: #17363b;
  line-height: 1.4;
}

.provider-lead-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  min-height: 48px;
  padding: 0 16px;
  color: #0d3f46;
  background: #fff;
  border: 1px solid #0d3f46;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.provider-lead-disclosure:hover,
.provider-lead-disclosure:focus-visible {
  background: #edf6f5;
}

.provider-lead-disclosure svg {
  width: 16px;
  height: 16px;
}

.provider-lead-expanded {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
  background: #fff;
}

.provider-conversation-expanded {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
  background: #fff;
}

.provider-lead-detail-copy {
  padding: 15px 16px;
  background: #f4f7f6;
  border-left: 3px solid #216c72;
}

.provider-lead-detail-copy p {
  margin: 6px 0 0;
  color: #526b75;
}

.provider-conversation-message,
.provider-conversation-request {
  padding: 15px 16px;
  background: #f4f7f6;
  border-left: 3px solid #c48a12;
}

.provider-conversation-message p,
.provider-conversation-request p {
  margin: 6px 0 0;
  color: #526b75;
}

.provider-contact-release {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  color: #17363b;
  background: #edf6f2;
  border: 1px solid #b8d8c9;
}

.provider-contact-release a {
  color: #0d5963;
  font-weight: 700;
}

.provider-conversation-private,
.provider-conversation-complete {
  margin: 0;
  padding: 14px 16px;
  background: #f8faf9;
  border: 1px solid #dce4e1;
}

@media (max-width: 860px) {
  .console-app.provider-mode {
    display: block;
  }

  .provider-mode .sidebar {
    display: none;
  }

  .provider-mode .main-area {
    width: 100%;
  }

  .provider-mode .topbar {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 0;
    border-bottom: 0;
  }

  .provider-mode .estate-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding: 0 20px;
    border-top: 1px solid #d9dedc;
    border-bottom: 1px solid #d9dedc;
  }

  .provider-mode .estate-filter select {
    width: 100%;
    min-height: 64px;
    padding: 0 26px 0 0;
    text-align: left;
    font-size: 1.12rem;
  }

  .provider-mode .workspace {
    padding: 0 18px 116px;
  }

  .provider-admin-switcher {
    margin: 0 0 18px;
  }

  .provider-dashboard-action .resident-dashboard-action-icon {
    width: 78px;
    height: 78px;
  }

  .provider-lead-summary,
  .provider-lead-next-action,
  .provider-conversation-summary,
  .provider-conversation-next-action {
    padding-left: 20px;
    padding-right: 20px;
  }

  .provider-lead-glance > div,
  .provider-conversation-glance > div {
    padding-left: 20px;
    padding-right: 20px;
  }

  .provider-lead-expanded,
  .provider-conversation-expanded {
    padding-left: 20px;
    padding-right: 20px;
  }

  .provider-account-details {
    grid-template-columns: 1fr;
  }

  .provider-workspace-card,
  .provider-usage-card,
  .provider-estate-access-card {
    padding: 24px 20px;
  }

  .provider-pipeline-board {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .provider-lead-summary,
  .provider-lead-next-action,
  .provider-conversation-summary,
  .provider-conversation-next-action {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 18px 16px;
  }

  .provider-lead-summary .status,
  .provider-conversation-summary .status {
    align-self: flex-start;
  }

  .provider-lead-glance,
  .provider-conversation-glance {
    grid-template-columns: 1fr;
  }

  .provider-lead-glance > div,
  .provider-conversation-glance > div {
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid #dce4e1;
  }

  .provider-lead-glance > div:last-child,
  .provider-conversation-glance > div:last-child {
    border-bottom: 0;
  }

  .provider-lead-disclosure {
    width: 100%;
  }

  .provider-lead-expanded,
  .provider-conversation-expanded {
    padding: 18px 16px 20px;
  }

  .provider-workspace-card,
  .provider-usage-card,
  .provider-estate-access-card {
    padding: 20px 16px;
  }

  .provider-overview-card .is-quotes-used strong {
    font-size: 1rem;
  }
}

@media (max-width: 760px) {
  .provider-journey-test-panel .provider-journey-test-heading,
  .provider-journey-test-panel .journey-test-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-journey-test-panel .provider-journey-test-heading > .status {
    align-self: flex-start;
  }

  .provider-journey-test-panel .journey-test-summary {
    grid-template-columns: 1fr;
  }

  .provider-journey-test-panel .journey-test-summary > div {
    min-height: 0;
  }

  .provider-journey-test-panel .journey-test-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .provider-journey-test-panel .journey-test-step {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .provider-journey-test-panel .journey-test-step > b {
    grid-column: 2;
  }

  .provider-journey-test-panel .journey-test-actions .btn {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.landing-page {
  background: #fff;
  color: var(--landing-ink);
}

.landing-header,
.landing-hero,
.workflow-section,
.roles-section,
.overview-section,
.services-strip,
.pilot-cta,
.landing-footer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.landing-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--landing-teal);
  font-size: 1.95rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: 0;
}

.landing-brand-mark {
  width: 42px;
  height: 42px;
  color: var(--landing-teal);
  flex: 0 0 auto;
}

.landing-brand-mark svg,
.cta-mark svg,
.rail-logo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-nav,
.landing-footer nav {
  display: flex;
  align-items: center;
  gap: 46px;
}

.landing-nav a,
.landing-footer nav a {
  color: var(--landing-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 760;
}

.landing-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--landing-teal);
  border-radius: 5px;
  padding: 0 28px;
  color: var(--landing-teal);
  background: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1;
  box-shadow: none;
}

.landing-button-primary {
  background: var(--landing-teal);
  color: #fff;
  box-shadow: 0 14px 28px rgba(5, 63, 60, 0.2);
}

.landing-button-secondary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.landing-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(590px, 1.16fr);
  align-items: start;
  gap: 54px;
  padding: 46px 0 32px;
  border-top: 1px solid var(--landing-line);
}

.hero-copy h1 {
  max-width: 610px;
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(3.05rem, 4.45vw, 4.08rem);
  line-height: 1.08;
  font-weight: 860;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--landing-muted);
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 46px;
}

.product-preview {
  min-height: 680px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-self: stretch;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--landing-shadow);
}

.preview-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 32px 0;
  background: linear-gradient(180deg, #073c3b 0%, #00504c 100%);
  color: #e9f7f1;
}

.preview-rail span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 1.06rem;
  font-weight: 780;
}

.preview-rail .rail-logo {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

.preview-rail .is-active {
  color: #f5c351;
  background: rgba(255, 255, 255, 0.1);
}

.preview-board {
  min-width: 0;
  padding: 30px 28px;
  color: var(--landing-ink);
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.preview-topline p,
.preview-topline span {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.preview-topline h2 {
  margin: 9px 0 10px;
  font-size: 2rem;
  line-height: 1.08;
}

.preview-topline button {
  border: 0;
  border-radius: 4px;
  padding: 13px 18px;
  background: #145eb8;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 820;
}

.workflow-card,
.quotes-panel,
.review-panel,
.response-panel,
.project-table-card,
.role-card {
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: #fff;
}

.workflow-card {
  margin-top: 24px;
  padding: 20px 18px 22px;
}

.workflow-card h3,
.quotes-panel h3,
.review-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 24px 28px 14px;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 34px;
  right: 34px;
  height: 2px;
  background: #d8e0e6;
}

.workflow-steps span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: #e2e7eb;
  color: #66717a;
  font-size: 0.82rem;
  font-weight: 850;
}

.workflow-steps .done {
  background: #007b68;
  color: #fff;
}

.workflow-steps .active {
  background: #1e66c8;
  color: #fff;
}

.workflow-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  color: #26313f;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.25;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.quotes-panel,
.review-panel {
  padding: 22px;
}

.quote-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #edf1ef;
  font-size: 0.92rem;
}

.quote-row strong {
  font-size: 0.9rem;
}

.drop-icon,
.wave-icon,
.home-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 0.9rem;
}

.drop-icon { background: #0f8b81; }
.wave-icon { background: #2876cf; }
.home-icon { background: #e28633; }

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

.panel-heading span {
  border-radius: 5px;
  padding: 5px 8px;
  background: #fff2cc;
  color: #93671d;
  font-size: 0.76rem;
  font-weight: 780;
}

.review-panel p {
  margin: 28px 0 10px;
  font-weight: 760;
}

.review-panel small {
  color: var(--landing-muted);
  font-weight: 650;
}

.review-panel button {
  width: 100%;
  min-height: 44px;
  margin-top: 34px;
  border: 1px solid #d9e0df;
  border-radius: 5px;
  background: #fff;
  color: var(--landing-ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.response-panel {
  margin-top: 18px;
  padding: 18px 22px;
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
}

.response-panel span {
  color: var(--landing-muted);
}

.workflow-section,
.roles-section,
.overview-section {
  border-top: 1px solid var(--landing-line);
}

.workflow-section {
  padding: 54px 0 62px;
  text-align: center;
}

.workflow-section h2,
.roles-section h2,
.overview-copy h2,
.pilot-cta h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  margin-top: 46px;
}

.workflow-line article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.workflow-line article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 62px;
  left: calc(50% + 48px);
  width: calc(100% - 46px);
  border-top: 2px dashed #d9e1df;
}

.workflow-line article::before {
  content: "";
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--landing-sage);
}

.workflow-line span {
  position: absolute;
  top: 83px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--landing-teal);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
}

.workflow-line h3 {
  max-width: 170px;
  margin: 28px 0 0;
  font-size: 1rem;
  line-height: 1.28;
}

.workflow-line p {
  max-width: 180px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.rfq-report-intro {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--landing-muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.rfq-report {
  margin-top: 34px;
  text-align: left;
}

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

.rfq-metrics article,
.rfq-report-panel {
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 39, 0.05);
}

.rfq-metrics article {
  padding: 20px;
}

.rfq-metrics span {
  display: block;
  color: var(--landing-muted);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.rfq-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--landing-teal);
  font-size: 2.2rem;
  line-height: 1;
}

.rfq-report-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1.28fr);
  gap: 18px;
  margin-top: 18px;
}

.rfq-report-panel {
  overflow-x: auto;
  padding: 22px;
}

.report-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.report-panel-heading h3 {
  margin: 0;
  color: var(--landing-ink);
  font-size: 1.08rem;
}

.report-panel-heading span {
  border-radius: 4px;
  padding: 7px 9px;
  background: var(--landing-sage);
  color: var(--landing-teal);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.rfq-report-panel table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  font-size: 0.88rem;
}

.rfq-report-panel:nth-child(2) table {
  min-width: 620px;
}

.rfq-report-panel th {
  padding: 12px 10px;
  background: #f7f9f8;
  color: #4f5e66;
  text-align: left;
  font-size: 0.76rem;
}

.rfq-report-panel td {
  padding: 14px 10px;
  border-bottom: 1px solid #edf1ef;
  font-weight: 650;
  vertical-align: top;
}

.status-open {
  display: inline-flex;
  border-radius: 4px;
  padding: 5px 8px;
  background: #f1f4f6;
  color: #4f5e66;
  font-size: 0.74rem;
  font-weight: 800;
}

.roles-section {
  padding: 42px 0 62px;
  text-align: center;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
  text-align: left;
}

.role-card {
  padding: 32px 30px;
  min-height: 300px;
}

.role-card.residents { background: linear-gradient(135deg, #ffffff 0%, #f3f9f4 100%); }
.role-card.hoa { background: linear-gradient(135deg, #ffffff 0%, #fff8ea 100%); }
.role-card.providers { background: linear-gradient(135deg, #ffffff 0%, #eefbfd 100%); }

.role-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #03734c;
  font-size: 1.7rem;
}

.hoa .role-icon { background: var(--landing-gold); }
.providers .role-icon { background: #0d7f86; }

.role-card h3 {
  margin: 18px 0 8px;
  font-size: 1.55rem;
}

.residents h3 { color: #04703f; }
.hoa h3 { color: #b67b18; }
.providers h3 { color: #087981; }

.role-card p {
  margin: 0 0 28px;
  color: var(--landing-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.role-card ul,
.overview-copy ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-card li,
.overview-copy li {
  position: relative;
  padding-left: 28px;
  color: #26313f;
  font-size: 0.94rem;
  line-height: 1.35;
}

.role-card li::before,
.overview-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #087c60;
  font-weight: 900;
}

.overview-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(560px, 1.35fr);
  gap: 58px;
  align-items: center;
  padding: 64px 0 28px;
}

.overview-copy p {
  max-width: 390px;
  margin: 22px 0 30px;
  color: var(--landing-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.overview-copy .landing-button {
  margin-top: 34px;
}

.project-table-card {
  padding: 24px;
  overflow-x: auto;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  white-space: nowrap;
}

.table-toolbar strong {
  margin-right: auto;
  font-size: 1rem;
}

.table-toolbar span {
  border: 1px solid var(--landing-line);
  border-radius: 4px;
  padding: 9px 12px;
  color: var(--landing-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.88rem;
}

.project-table-card th {
  padding: 13px 12px;
  background: #f7f9f8;
  color: #4f5e66;
  text-align: left;
  font-size: 0.76rem;
}

.project-table-card td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf1ef;
  font-weight: 650;
}

.status-blue,
.status-gold,
.status-green {
  display: inline-flex;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-blue { background: #e5f0ff; color: #1e66c8; }
.status-gold { background: #fff2cc; color: #93671d; }
.status-green { background: #e3f5e9; color: #1e7b52; }

.services-strip {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 24px 36px;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 39, 0.06);
}

.services-strip strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.services-strip span {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--landing-teal);
  font-weight: 760;
  text-align: center;
}

.pilot-cta {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  margin-top: 28px;
  padding: 48px 58px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 63, 60, 0.94), rgba(0, 80, 76, 0.98)),
    var(--landing-teal);
  color: #fff;
}

.cta-mark {
  width: 92px;
  height: 92px;
  color: var(--landing-gold);
}

.pilot-cta h2 {
  color: #fff;
}

.pilot-cta p {
  max-width: 540px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.13rem;
  line-height: 1.45;
}

.cta-button {
  min-width: 190px;
  border-color: transparent;
  background: var(--landing-gold);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.landing-footer {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.landing-footer .landing-brand {
  font-size: 1.65rem;
}

.landing-footer .landing-brand-mark {
  width: 34px;
  height: 34px;
}

.landing-footer p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
}

.console-app[hidden] {
  display: none;
}

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

.sidebar {
  min-width: 0;
  background: var(--teal);
  color: #f8fbf7;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
  font-weight: 800;
}

.brand-block h1,
.topbar h2 {
  margin: 0;
  letter-spacing: 0;
}

.data-status {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.eyebrow,
.panel-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .eyebrow,
.sidebar .panel-label {
  color: rgba(248, 251, 247, 0.68);
}

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

.nav-tab {
  border: 0;
  color: rgba(248, 251, 247, 0.82);
  background: transparent;
  padding: 12px 14px;
  text-align: left;
  font-weight: 750;
}

.nav-tab:hover,
.nav-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.pilot-panel {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.account-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.auth-status {
  margin: 0 0 12px;
  color: rgba(248, 251, 247, 0.9);
  font-weight: 780;
}

.auth-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
  font-weight: 820;
}

.auth-button.primary {
  background: #fff;
  color: var(--teal);
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: rgba(248, 251, 247, 0.78);
  font-size: 0.78rem;
  font-weight: 760;
}

.auth-form input {
  min-width: 0;
  border: 0;
}

.forgot-password-button {
  border: 0;
  background: transparent;
  color: rgba(248, 251, 247, 0.86);
  font-weight: 760;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.forgot-password-button:hover {
  color: #fff;
}

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

.estate-pill {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: rgba(248, 251, 247, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.main-area {
  min-width: 0;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.9);
}

.estate-filter {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.estate-filter.context-lock select {
  color: var(--ink);
  background: var(--field);
}

.estate-filter[hidden] {
  display: none;
}

.locked-provider {
  display: grid;
  gap: 7px;
  min-width: 260px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.locked-provider span {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.locked-provider strong {
  color: var(--ink);
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 11px 12px;
  min-height: 42px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 520;
  line-height: 1.4;
}

.contact-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid var(--teal);
  background: var(--field);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-disclosure input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.file-upload-panel {
  border: 1px solid var(--line);
  background: var(--field);
  padding: 12px;
}

.file-upload-panel input[type="file"] {
  background: #fff;
}

.file-selection-summary {
  display: grid;
  gap: 6px;
  min-height: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.file-selection-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-selection-summary li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 620;
}

.file-selection-summary em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  white-space: nowrap;
}

.file-selection-summary button {
  min-height: 28px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--teal);
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.file-selection-summary button:hover {
  border-color: var(--teal-2);
}

.next-action-box .btn + .btn {
  margin-left: 8px;
}

.workspace {
  padding: 30px 34px 44px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card.compact {
  box-shadow: none;
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h3,
.metric-value,
.item-title {
  margin: 0;
}

.section-title p,
.item-copy,
.muted {
  color: var(--muted);
}

.metric-value {
  font-size: 2rem;
  font-weight: 850;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.rfq-dashboard-report {
  margin-bottom: 20px;
}

.compact-report-stats {
  margin-bottom: 18px;
}

.report-tables h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}

.report-note {
  margin: -6px 0 12px;
  line-height: 1.45;
}

.inline-link {
  border: 0;
  background: transparent;
  color: var(--teal-2);
  padding: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.rfq-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 35, 38, 0.52);
}

.rfq-detail-panel {
  width: min(1120px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 80px rgba(20, 35, 38, 0.28);
  padding: 22px;
}

.rfq-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rfq-detail-header h3 {
  margin: 0;
  font-size: 1.55rem;
}

.rfq-detail-actions {
  display: flex;
  align-items: start;
  gap: 10px;
}

.icon-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.rfq-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-top: 16px;
}

.rfq-detail-section {
  border: 1px solid var(--line);
  background: #fbfdfb;
  padding: 16px;
}

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

.detail-meta-grid div,
.rfq-detail-copy {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.detail-meta-grid strong,
.rfq-detail-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-meta-grid span,
.rfq-detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rfq-detail-copy {
  margin-top: 10px;
}

.rfq-detail-quote-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.resident-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.resident-workspace-tabs {
  display: flex;
  gap: 8px;
  margin: -4px 0 20px;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-workspace-tab {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.resident-workspace-tab:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.resident-workspace-tab.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.resident-dashboard-card {
  display: grid;
  gap: 22px;
}

.resident-dashboard-heading {
  margin-bottom: 0;
}

.resident-dashboard-heading .muted {
  margin: 8px 0 0;
}

.resident-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.resident-dashboard-metrics article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-dashboard-metrics span,
.resident-dashboard-metrics small {
  display: block;
  color: var(--muted);
}

.resident-dashboard-metrics span {
  min-height: 2.5em;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.resident-dashboard-metrics strong {
  display: block;
  margin: 9px 0 7px;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1;
}

.resident-dashboard-metrics small {
  line-height: 1.35;
}

.resident-dashboard-attention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #c8ddd4;
  background: #f5faf7;
}

.resident-dashboard-attention.needs-action {
  border-color: #e7d7bd;
  background: #fff8eb;
}

.resident-dashboard-attention h3 {
  margin: 4px 0 7px;
  font-size: 1.15rem;
}

.resident-dashboard-attention p:last-child {
  margin: 0;
  color: var(--muted);
}

.resident-dashboard-attention .btn {
  flex: 0 0 auto;
}

.resident-quote-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #e7d7bd;
  background: #fff8eb;
  color: #7b570c;
}

.resident-quote-alert span {
  color: var(--muted);
  text-align: right;
}

.provider-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.provider-hero h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.provider-application-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  margin-bottom: 24px;
}

.provider-application-hero h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.application-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  align-self: center;
}

.application-path span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-align: center;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

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

.choice-card {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 11px;
  color: var(--ink);
  font-weight: 760;
}

.chip-choice {
  min-height: 44px;
  align-items: flex-start;
}

.lane-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.lane-choice {
  min-height: 48px;
}

.lane-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}

.lane-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  background: #eef4ee;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.capability-check .lane-badges {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.capability-check > span {
  flex: 1;
  min-width: 0;
  font-weight: 800;
}

.capability-check .lane-badges span {
  display: block;
  min-height: 0;
  padding: 3px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: #929b99;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.smart-rfq-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8faf7;
}

.rfq-step-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.rfq-step-header span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.rfq-step-header h4 {
  margin: 1px 0 0;
  font-size: 1.05rem;
}

.rfq-step-header .muted {
  margin-top: 4px;
}

.rfq-advice {
  border-left: 4px solid var(--teal-2);
  background: #fff;
  padding: 12px 14px;
}

.rfq-advice ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.rfq-advice li + li {
  margin-top: 5px;
}

.match-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #cddfd7;
  background: #eef7f2;
  color: var(--ok);
  font-weight: 760;
}

.resident-routing-card {
  border: 1px solid #cddfd7;
  background: #fbfdfb;
}

.resident-routing-card.needs-review {
  border-color: #e7b2aa;
  background: #fff4f2;
}

.resident-routing-card .match-preview {
  border: 0;
  border-bottom: 1px solid #dce9e3;
}

.resident-routing-card.needs-review .match-preview {
  border-bottom-color: #e7b2aa;
  background: #fdebea;
  color: #9d3326;
}

.resident-routing-card.needs-review .match-preview strong {
  background: #b2513f;
}

.resident-routing-card p {
  margin: 0;
  padding: 10px 14px;
}

.resident-routing-card p + p {
  padding-top: 0;
}

.multi-trade-coverage-list,
.multi-trade-review {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #cddfd7;
  background: #f8faf7;
}

.multi-trade-coverage-list > p { margin: 0; }

.multi-trade-coverage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cddfd7;
  background: #fff;
}

.multi-trade-coverage > div { display: grid; gap: 3px; }
.multi-trade-coverage span { color: var(--muted); font-size: .88rem; }
.multi-trade-coverage > b { min-width: 34px; padding: 5px 8px; background: var(--ok); color: #fff; text-align: center; }
.multi-trade-coverage.needs-review { border-color: #e7b2aa; background: #fff4f2; }
.multi-trade-coverage.needs-review > b { background: #b2513f; }
.multi-trade-step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #eef7f2; color: var(--teal); }
.multi-trade-step-title span { font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.multi-trade-review > div { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid #dce9e3; }
.multi-trade-review span { color: var(--muted); }
.multi-trade-review em { color: var(--teal); font-size: .86rem; font-style: normal; font-weight: 700; }
.rfq-privacy-reminder { display: grid; gap: 4px; border-left: 4px solid #c99518; padding: 10px 12px; background: #f7f1df; color: #4d431e; line-height: 1.42; }
.rfq-privacy-reminder strong { color: #123f43; }
.rfq-privacy-reminder span { font-size: .9rem; }
.resident-rfq-submit-error { display: grid; gap: 5px; border-left: 4px solid #b64b47; padding: 12px 14px; background: #fbeceb; color: #6a2825; line-height: 1.42; }
.resident-rfq-submit-error strong { color: #8c2f2a; }

.provider-routing-details {
  padding: 0 14px 12px;
}

.provider-routing-details summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 850;
}

.matched-provider-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.routing-explainer {
  margin-top: 10px;
  border-left: 3px solid var(--teal-2);
  background: #fff;
  padding: 9px 10px;
}

.routing-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.matched-provider-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.matched-provider-card p {
  padding: 0;
  margin: 4px 0 0;
}

.matched-provider-card .muted {
  grid-column: 1 / -1;
}

.matching-audit-panel {
  border-left: 4px solid var(--ok);
}

.matching-audit-card .matched-provider-list {
  margin-top: 12px;
}

.match-preview strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  background: var(--ok);
  color: #fff;
  font-size: 1.05rem;
}

.service-catalogue-panel {
  border-left: 4px solid var(--gold);
}

.data-catalogue-panel {
  border-left: 4px solid var(--ok);
}

.catalogue-gap-panel {
  border-left: 4px solid var(--warn);
}

.gap-check-grid {
  align-items: stretch;
}

.gap-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fffaf0;
  padding: 14px;
}

.gap-card.is-clear {
  background: #f0f8f3;
}

.gap-count {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.gap-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gap-list li {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.gap-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.assign-item-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service-item-maintenance-panel {
  border-left: 4px solid var(--teal);
}

.catalogue-cleanup-panel {
  border-left: 4px solid var(--warn);
}

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

.cleanup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #fffaf0;
}

.compact-btn {
  min-width: 170px;
  padding-inline: 14px;
  white-space: nowrap;
}

.operator-warning {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 4px solid var(--warn);
  background: #fff7e8;
  color: var(--muted);
}

.operator-warning strong {
  color: var(--ink);
}

.operator-rfq-queue {
  margin-bottom: 26px;
}

.provider-journey-test-panel {
  margin-bottom: 20px;
  border-color: #b9d6cc;
  background:
    linear-gradient(135deg, rgba(231, 244, 239, 0.82), rgba(255, 255, 255, 0.96)),
    var(--panel);
}

.provider-journey-test-heading {
  align-items: center;
}

.provider-journey-test-heading h3 {
  margin: 0 0 5px;
}

.provider-journey-test-heading .muted {
  max-width: 900px;
  margin-bottom: 0;
  line-height: 1.5;
}

.journey-test-install-note,
.journey-test-empty {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid #ead5a5;
  background: #fff9ea;
}

.journey-test-install-note span,
.journey-test-empty span {
  color: var(--muted);
}

.journey-test-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.journey-test-summary > div {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 14px 16px;
}

.journey-test-summary > div + div {
  border-left: 1px solid var(--line);
}

.journey-test-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-test-summary strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.journey-test-result-copy {
  margin: 14px 0;
  color: var(--ink);
  line-height: 1.5;
}

.journey-test-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.journey-test-details summary {
  cursor: pointer;
  color: var(--teal-2);
  font-weight: 850;
}

.journey-test-step-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.journey-test-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.journey-test-step-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dff1e8;
  color: #126c4d;
  font-weight: 900;
}

.journey-test-step.is-fail {
  border-color: #e7b2aa;
  background: #fff8f6;
}

.journey-test-step.is-fail .journey-test-step-icon {
  background: #f5d9d5;
  color: #9f2f25;
}

.journey-test-step p {
  margin: 0 0 3px;
}

.journey-test-step div > span {
  color: var(--muted);
  line-height: 1.42;
}

.journey-test-step > b {
  color: #126c4d;
  font-size: 0.78rem;
}

.journey-test-step.is-fail > b {
  color: #9f2f25;
}

.journey-test-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.journey-test-actions p {
  margin: 0;
  line-height: 1.4;
}

.queue-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.queue-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 8px 11px;
  color: var(--ink);
  font-weight: 850;
}

.queue-filter span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #cfded8;
  font-size: 0.78rem;
}

.queue-filter.is-selected {
  border-color: var(--teal);
  background: #e8f0ee;
}

.operator-rfq-list {
  gap: 10px;
}

.operator-rfq-card.needs-review {
  border-color: #9fb8b1;
  background: #c1d3ce;
}

.queue-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.queue-card-footer strong {
  color: var(--ink);
  text-align: right;
}

.baseone-review-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #efd3cd;
}

.no-match-workflow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ead9d5;
  background: #fff;
}

.workflow-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.workflow-head p {
  margin: 0;
}

.workflow-head > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  background: #fff2dc;
  color: #8b5e00;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.no-match-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workflow-step {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid #d9e3df;
  background: var(--field);
  color: var(--muted);
  cursor: default;
  text-align: center;
}

.workflow-step em {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #cfded8;
  background: #fff;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.workflow-step strong {
  font-size: 0.72rem;
  line-height: 1.15;
}

.workflow-step.is-done {
  border-color: #b7d8c5;
  background: #ecf7f1;
  color: #126b3a;
}

.workflow-step.is-current {
  border-color: var(--teal);
  background: #e8f0ee;
  color: var(--ink);
}

.workflow-step.is-current em {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.review-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ead9d5;
  background: #fff;
}

.review-candidate p {
  margin: 4px 0 0;
}

.provider-sourcing-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #cbded8;
  background: #f7fbf9;
}

.provider-sourcing-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.provider-sourcing-head h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.sourcing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #9fb6ad;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.sourcing-toggle span {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 9px;
  background: #9aa9a4;
}

.sourcing-toggle span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 150ms ease;
}

.sourcing-toggle.is-enabled {
  border-color: #217c54;
  background: #e9f6ee;
  color: #126b3a;
}

.sourcing-toggle.is-enabled span {
  background: #217c54;
}

.sourcing-toggle.is-enabled span::after {
  transform: translateX(14px);
}

.sourcing-safety-note,
.sourcing-follow-up {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid #4b8170;
  background: #eaf2ef;
  color: var(--muted);
  font-size: 0.88rem;
}

.sourcing-assistant-summary {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #aacac0;
  background: #fff;
}

.sourcing-assistant-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.sourcing-assistant-summary-head p {
  margin: 0;
}

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

.sourcing-assistant-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d6e2dd;
  background: #f7fbf9;
}

.sourcing-assistant-grid span,
.sourcing-assistant-grid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.sourcing-assistant-grid strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.sourcing-assistant-next,
.sourcing-assistant-guard {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sourcing-assistant-guard {
  padding-top: 10px;
  border-top: 1px solid #d6e2dd;
}

.sourcing-follow-up {
  display: grid;
  gap: 2px;
  border-left-color: #d29b28;
  background: #fff7e7;
  color: var(--ink);
}

.sourcing-log-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.8fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d6e2dd;
  background: #fff;
}

.sourcing-log-form label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.sourcing-note-field {
  grid-column: 1 / -1;
}

.sourcing-log-form .btn {
  justify-self: start;
}

.sourcing-lifecycle-panel {
  border-left: 4px solid var(--gold);
}

.sourcing-lifecycle-decision {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.sourcing-lifecycle-decision label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-weight: 700;
}

.sourcing-lifecycle-decision .btn {
  justify-self: start;
}

.sourcing-history {
  display: grid;
  gap: 8px;
}

.sourcing-history > p {
  margin: 0;
}

.sourcing-history article {
  padding: 10px;
  border: 1px solid #d6e2dd;
  background: #fff;
}

.sourcing-history article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sourcing-history article span {
  padding: 3px 6px;
  background: #edf4f1;
  color: #126b3a;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sourcing-history article p,
.sourcing-history article small {
  margin: 6px 0 0;
}

.sourcing-history article small {
  display: block;
  color: var(--muted);
}

.provider-block-review-panel {
  border-left: 4px solid var(--rust);
}

.provider-block-request-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.block-request-detail div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--field);
}

.block-request-detail span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.block-request-detail strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.email-block-decision {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #ead9d5;
  background: #fff8f2;
}

.email-block-decision.is-compact {
  margin-top: 10px;
}

.email-block-decision p {
  margin: 0;
}

.provider-block-request-card .compact-actions,
.email-block-decision .compact-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  align-items: stretch;
}

.provider-block-request-card .compact-actions .btn,
.email-block-decision .compact-actions .btn {
  width: auto;
  min-width: 180px;
  min-height: 42px;
  padding: 8px 12px;
  white-space: normal;
}

.form-action-cell {
  display: flex;
  align-items: end;
}

.form-action-cell .btn {
  width: 100%;
}

.compact-list {
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.provider-service-data-card .item-copy {
  max-height: 96px;
  overflow: auto;
}

.table-wrap {
  overflow: auto;
}

.table-wrap .table td:last-child {
  min-width: 360px;
}

.global-scope-note {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ead7ae;
  background: #fff7e8;
  color: var(--ink);
}

.global-scope-note strong {
  color: #8b5e00;
}

.global-scope-note span {
  color: var(--muted);
}

.catalogue-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.catalogue-card {
  background: #fff;
}

.catalogue-card.is-retired {
  opacity: 0.72;
  border-left: 4px solid var(--warn);
}

.catalogue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.catalogue-tags span {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--muted);
  padding: 5px 7px;
  font-size: 0.78rem;
  font-weight: 760;
}

.catalogue-rule-block {
  margin-top: 12px;
}

.catalogue-rule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 6px;
}

.tag-rule-chip em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 780;
  color: var(--ink);
}

.tag-rule-chip.is-retired em,
.capability-check.is-retired span {
  color: var(--muted);
  text-decoration: line-through;
}

.mini-action {
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 880;
  cursor: pointer;
}

.mini-action.retire {
  border-color: var(--warn);
  color: var(--warn);
}

.mini-action.restore {
  border-color: var(--ok);
  color: var(--ok);
}

.catalogue-form {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.capability-panel {
  border-left: 4px solid var(--teal-2);
}

.capability-form {
  max-width: none;
}

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

.capability-group {
  border: 1px solid var(--line);
  background: var(--field);
  padding: 12px;
  min-width: 0;
}

.capability-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.capability-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.capability-section:first-of-type {
  border-top: 0;
  padding-top: 2px;
  margin-top: 0;
}

.capability-section p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capability-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  line-height: 1.25;
}

.capability-check input {
  width: auto;
  margin-top: 2px;
}

.application-timeline {
  display: grid;
  gap: 12px;
}

.application-timeline article {
  border-left: 4px solid var(--teal-2);
  background: var(--field);
  padding: 12px;
}

.application-timeline p {
  margin: 5px 0 0;
  color: var(--muted);
}

.provider-application-card {
  border-left: 4px solid var(--gold);
}

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

.application-detail-grid div {
  border: 1px solid var(--line);
  background: var(--field);
  padding: 10px;
}

.application-detail-grid strong,
.application-detail-grid span {
  display: block;
}

.application-detail-grid strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provider-summary span {
  min-width: 108px;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.pipeline-column {
  box-shadow: none;
}

.provider-lead-card,
.provider-quote-card {
  padding: 16px;
}

.provider-quote-card {
  display: grid;
  gap: 12px;
}

.provider-quote-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.provider-quote-head .item-title,
.provider-quote-head .muted,
.provider-quote-head .item-copy {
  overflow-wrap: anywhere;
}

.provider-quote-head .status {
  justify-self: end;
  max-width: 110px;
  text-align: center;
  white-space: normal;
}

.provider-quote-card .attachment-list {
  grid-template-columns: minmax(0, 1fr);
}

.provider-quote-card .attachment-chip {
  width: 100%;
}

.unlocked-contact {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--ok);
  background: #edf7f1;
  color: var(--muted);
}

.unlocked-contact strong {
  color: var(--ink);
}

.email-control-panel {
  border-left: 4px solid var(--teal-2);
}

.email-dispatch-policy {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border-left: 4px solid var(--gold);
  background: var(--field);
  color: var(--muted);
  line-height: 1.45;
}

.email-dispatch-policy strong {
  color: var(--ink);
}

.email-dispatch-scope {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--gold);
  background: var(--field);
  color: var(--ink);
  font-weight: 720;
  line-height: 1.45;
}

.email-dispatch-scope.is-ready {
  border-left-color: var(--ok);
}

.email-dispatch-scope.is-locked {
  border-left-color: var(--danger);
}

.email-dispatch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 35, 38, 0.46);
}

.confirmation-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 35, 38, 0.46);
}

.confirmation-dialog {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal-2);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(16, 35, 38, 0.28);
}

.confirmation-dialog .section-title {
  align-items: start;
}

.confirmation-message {
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.email-dispatch-dialog {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal-2);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(16, 35, 38, 0.28);
}

.email-dispatch-dialog .section-title {
  align-items: start;
}

.email-dispatch-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.email-dispatch-form > label:not(.email-dispatch-confirm) {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 760;
}

.email-dispatch-form input[type="password"],
.email-dispatch-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.email-dispatch-form input:focus {
  outline: 3px solid rgba(45, 111, 138, 0.25);
  border-color: var(--teal-2);
}

.email-dispatch-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  line-height: 1.45;
}

.email-dispatch-confirm input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

.email-dispatch-form .form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 760;
}

@media (max-width: 700px) {
  .email-dispatch-backdrop,
  .confirmation-backdrop {
    padding: 12px;
  }

  .email-dispatch-dialog,
  .confirmation-dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
}

.email-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.email-search-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--field);
}

.email-search-field,
.email-type-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.email-search-field input,
.email-type-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 740;
  letter-spacing: 0;
  text-transform: none;
}

.email-outbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.email-event-list {
  align-content: start;
}

.email-event-card {
  display: grid;
  gap: 11px;
  border-left: 4px solid var(--teal-2);
}

.email-event-card.is-selected {
  border-color: var(--teal);
  background: #f3faf6;
}

.email-event-card.is-critical {
  border-left-color: var(--rust);
}

.email-event-card.is-lead {
  border-left-color: var(--ok);
}

.email-card-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.email-card-kicker span {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 7px;
  background: #edf4f1;
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
}

.email-card-actions,
.email-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-preview-card {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
}

.email-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.email-preview-head h4 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.email-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.email-meta-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--field);
}

.email-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.email-meta-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.email-body-preview {
  display: grid;
  gap: 7px;
}

.email-body-preview p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  white-space: pre-wrap;
}

.email-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #efc4bd;
  background: #fff1ef;
  color: var(--danger);
  font-weight: 760;
}

.email-historical-notice {
  border-left: 4px solid #7b8788;
  background: #f1f4f3;
  padding: 12px 14px;
  color: #344244;
}

.email-historical-notice p {
  margin: 4px 0;
}

.email-historical-notice small {
  color: var(--muted);
}

.email-resolution-form {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #d2dcd8;
  border-left: 4px solid var(--teal-2);
  background: #f7faf8;
}

.email-resolution-form.is-exception {
  border-left-color: #d6a21f;
  background: #fffbef;
}

.email-resolution-form h5,
.email-resolution-form p {
  margin: 0;
}

.email-resolution-form h5 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.email-resolution-form > div > p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.email-resolution-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.email-resolution-form select,
.email-resolution-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 690;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.email-resolution-form select {
  min-height: 48px;
}

.email-resolution-form textarea {
  min-height: 92px;
  resize: vertical;
}

.email-resolution-form .btn {
  justify-self: start;
}

.email-resolution-history {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.email-resolution-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.email-resolution-history-head h5,
.email-resolution-history-head p {
  margin: 0;
}

.email-resolution-history-head h5 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.email-resolution-history-head > span {
  min-width: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--teal);
  font-weight: 850;
  text-align: center;
}

.email-resolution-history ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.email-resolution-history li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0 16px;
}

.email-resolution-history li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: -2px;
  width: 1px;
  background: #cbd7d3;
}

.email-history-marker {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 1px var(--teal-2);
}

.email-resolution-history li strong,
.email-resolution-history li p,
.email-resolution-history li small {
  display: block;
  margin: 0;
}

.email-resolution-history li p {
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.45;
}

.email-resolution-history li small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.onboarding-panel {
  border-left: 4px solid var(--teal);
}

.onboarding-form .btn {
  justify-self: start;
}

.checklist-heading {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.onboarding-check-card {
  display: grid;
  gap: 12px;
}

.onboarding-flow-card {
  display: grid;
  gap: 14px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  min-height: 78px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.flow-steps li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 8px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.flow-steps li.is-done {
  color: var(--ok);
  background: #eef7f1;
}

.flow-steps li.is-done::before {
  background: var(--ok);
  border-color: var(--ok);
}

.flow-steps span,
.flow-steps small {
  display: block;
}

.flow-steps small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 620;
  overflow-wrap: anywhere;
}

.next-action-box {
  border-left: 4px solid var(--warn);
  background: #fbf6eb;
  padding: 12px;
}

.next-action-box strong {
  display: block;
  margin-bottom: 4px;
}

.next-action-box p {
  margin: 0 0 10px;
  color: var(--muted);
}

.manual-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.manual-steps li {
  line-height: 1.35;
}

.manual-steps li.is-done {
  color: var(--ok);
  text-decoration: line-through;
}

.usage-meter {
  height: 12px;
  overflow: hidden;
  background: var(--field);
  border: 1px solid var(--line);
  margin: 4px 0 14px;
}

.usage-meter-bar {
  height: 100%;
  background: var(--teal-2);
}

.resident-hero h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.resident-hero p {
  margin-bottom: 0;
}

.resident-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resident-summary span {
  min-width: 96px;
  padding: 12px;
  background: var(--field);
  text-align: center;
  color: var(--muted);
  font-weight: 760;
}

.resident-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--teal);
  background: #e8efeb;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-stack {
  margin-top: 6px;
}

.status.open,
.status.approved,
.tag.priority {
  color: var(--ok);
  background: #dff0e7;
}

.status.closed,
.status.declined,
.status.blacklisted {
  color: var(--danger);
  background: #f4dfdd;
}

.status.pending,
.status.queued,
.tag.base {
  color: var(--warn);
  background: #f6eddc;
}

.status.historical {
  color: #596567;
  background: #e8eceb;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 15px;
}

.item-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.item-title {
  font-size: 1rem;
  font-weight: 820;
}

.item-copy {
  margin: 8px 0 0;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quote-submit-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.provider-quote-form {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d5dfdc;
  background: #fff;
}

.provider-quote-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #dce4e1;
  background: #f7faf9;
}

.provider-quote-form-heading > div { display: grid; gap: 5px; }

.provider-quote-form-heading span,
.provider-quote-more summary span {
  color: #647b83;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.provider-quote-form-heading h4 {
  margin: 0;
  color: #082d34;
  font-size: 1.2rem;
}

.provider-quote-form-heading p {
  max-width: 620px;
  margin: 0;
  color: #5e7780;
  line-height: 1.45;
}

.provider-quote-form-reference {
  flex: 0 0 auto;
  color: #0d4a50 !important;
  white-space: nowrap;
}

.provider-quote-essential,
.provider-quote-more-content {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.provider-quote-more {
  border-top: 1px solid #dce4e1;
}

.provider-quote-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  color: #0d4a50;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.provider-quote-more summary::-webkit-details-marker { display: none; }
.provider-quote-more summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.provider-quote-more[open] summary::after { content: "−"; }
.provider-quote-more[open] summary { border-bottom: 1px solid #dce4e1; background: #fbfcfb; }

.provider-quote-more-content { background: #fbfcfb; }

.provider-quote-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  border-top: 1px solid #dce4e1;
  background: #fff;
}

.provider-quote-submit-row p {
  max-width: 620px;
  margin: 0;
  color: #5e7780;
  line-height: 1.4;
}

.provider-quote-submit-row .btn { flex: 0 0 auto; }

@media (max-width: 620px) {
  .provider-quote-form-heading,
  .provider-quote-submit-row { align-items: stretch; flex-direction: column; }
  .provider-quote-form-reference { white-space: normal; }
  .provider-quote-submit-row .btn { width: 100%; }
}

.provider-response-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8e3df;
  background: #f7faf8;
}

.provider-response-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.provider-response-form legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 900;
}

.provider-response-choice-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.provider-response-choice-help button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-2);
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

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

.provider-response-options label {
  display: flex;
  align-items: start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.provider-response-options label:has(input:checked) {
  border-color: var(--teal-2);
  background: #eef6f3;
}

.provider-response-options input {
  flex: 0 0 auto;
  width: auto;
  margin: 3px 0 0;
}

.provider-response-options span,
.provider-response-options strong,
.provider-response-options small {
  display: block;
}

.provider-response-options small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.provider-response-submit-row {
  align-items: center;
}

.provider-response-submit-row > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.provider-response-summary {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid var(--gold);
  background: #fffaf0;
}

.provider-response-summary p {
  margin: 5px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

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

.quote-inclusion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.quote-submit-form textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 130px;
}

.quote-submit-form .btn {
  min-height: 48px;
}

.quote-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.quote-note strong {
  color: var(--ink);
}

.compact-actions {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 8px;
  margin-top: 0;
  white-space: nowrap;
}

.compact-actions .btn {
  width: 92px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.84rem;
  line-height: 1.1;
  text-align: center;
}

.application-actions {
  display: grid;
  grid-template-columns: repeat(4, 126px);
  gap: 8px;
  margin-top: 14px;
}

.application-actions .btn {
  width: 126px;
  min-height: 36px;
  padding: 7px 9px;
  font-size: 0.84rem;
  line-height: 1.1;
  text-align: center;
}

.btn {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  min-height: 40px;
  padding: 9px 13px;
  font-weight: 820;
}

.btn.secondary {
  background: transparent;
  color: var(--teal);
}

.btn.warning {
  border-color: var(--rust);
  background: var(--rust);
}

.btn.small-action {
  min-height: 34px;
  padding: 7px 10px;
}

.btn.request-service-button.is-ready {
  border-color: var(--ok);
  background: var(--ok);
}

.btn.request-service-button.is-blocked {
  border-color: #b2513f;
  background: #b2513f;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn.request-service-button.is-blocked:disabled {
  opacity: 0.78;
}

.field-stack {
  display: grid;
  gap: 13px;
}

.field-stack label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.divider {
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.compact-section-title {
  margin-bottom: 12px;
}

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

.type-option {
  min-height: 86px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 13px;
  text-align: left;
}

.type-option.is-selected {
  border-color: var(--teal-2);
  background: #e8f0ee;
}

.lane-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.lane-option {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
}

.lane-option strong {
  max-width: 12ch;
  line-height: 1.25;
}

.lane-option p {
  margin: 0;
  line-height: 1.35;
}

.building-scope-options {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fbfdfb;
}

.mini-check {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  width: 96px;
  min-height: 64px;
  padding: 6px 8px;
  border: 1px solid #cfded8;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.stacked-scope-label {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.resident-request-card {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid var(--teal);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.resident-request-card.is-expanded {
  border-color: var(--teal-2);
  box-shadow: 0 14px 34px rgba(28, 41, 36, 0.08);
}

.resident-request-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
}

.resident-request-primary {
  min-width: 0;
}

.resident-request-reference {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 7px;
}

.resident-request-reference strong {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resident-request-reference span {
  color: var(--muted);
  font-size: 0.78rem;
}

.resident-request-primary h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.resident-request-primary p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.resident-request-glance {
  display: grid;
  grid-template-columns: minmax(92px, 0.55fr) minmax(92px, 0.55fr) minmax(190px, 1.4fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--field);
}

.resident-request-glance > div {
  min-width: 0;
  padding: 11px 14px;
}

.resident-request-glance > div + div {
  border-left: 1px solid var(--line);
}

.resident-request-glance span,
.resident-request-next-action p span,
.resident-request-description > span,
.resident-quote-summary-timing > span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resident-request-glance strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.resident-quote-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
}

.resident-quote-spotlight span {
  grid-column: 1 / -1;
}

.resident-quote-spotlight em {
  grid-row: 2;
  grid-column: 2;
  color: var(--ink);
  font-style: normal;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.resident-quote-spotlight.is-waiting {
  grid-template-columns: 1fr;
}

.resident-request-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
}

.resident-request-next-action p {
  min-width: 0;
  margin: 0;
}

.resident-request-next-action p strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.resident-disclosure-button,
.quote-disclosure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 850;
}

.resident-disclosure-button:hover,
.quote-disclosure-button:hover,
.resident-disclosure-button:focus-visible,
.quote-disclosure-button:focus-visible {
  background: #e8f0ee;
}

.resident-disclosure-button svg,
.quote-disclosure-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.resident-disclosure-button[aria-expanded="true"] svg,
.quote-disclosure-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.resident-request-expanded {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.resident-request-description {
  padding: 12px 14px;
  border-left: 3px solid var(--sage);
  background: var(--field);
}

.resident-request-description p {
  margin: 5px 0;
  color: var(--ink);
  line-height: 1.45;
}

.resident-request-description small,
.resident-request-note {
  color: var(--muted);
}

.resident-request-note {
  margin: 12px 0 0;
  line-height: 1.45;
}

.quote-compare-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quote-review-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px;
}

.quote-review-header h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.quote-review-header > span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

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

.resident-provider-responses {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d8e3df;
  background: #f7faf8;
}

.provider-response-section-head,
.provider-response-head,
.provider-response-submit-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.provider-response-section-head h4 {
  margin: 4px 0 0;
}

.provider-response-section-head > span {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.provider-response-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.resident-provider-response-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.provider-response-head > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.provider-response-message {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.resident-provider-engagement {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-provider-engagement.is-shortlisted {
  border-color: #b8d4ca;
  background: #f2f8f5;
}

.provider-trust-row,
.provider-engagement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.provider-trust-badge,
.provider-shortlist-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #d9d9d2;
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-trust-badge.is-approved {
  border-color: #b7d8c5;
  background: #ecf7f1;
  color: #126b3a;
}

.provider-shortlist-badge {
  border-color: #ead38b;
  background: #fff8d8;
  color: #775700;
}

.provider-engagement-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.provider-contact-release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 12px;
  border-left: 3px solid var(--teal-2);
  background: #fff;
}

.provider-contact-release strong {
  color: var(--ink);
}

.provider-contact-release a {
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.provider-contact-release span {
  color: var(--muted);
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.84rem;
  min-height: 0;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}

.attachment-chip strong {
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attachment-chip small {
  color: var(--muted);
}

.attachment-chip em {
  background: var(--teal);
  color: #fff;
  font-style: normal;
  font-weight: 850;
  padding: 4px 7px;
}

.attachment-chip span {
  overflow-wrap: anywhere;
}

.attachment-chip:hover {
  border-color: var(--teal-2);
  background: #e8f0ee;
}

.quote-card {
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.resident-quote-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.resident-quote-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(110px, 0.65fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
}

.resident-quote-summary-main {
  min-width: 0;
}

.resident-quote-summary-main > strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.12rem;
}

.resident-quote-summary-main > span,
.resident-quote-summary-timing small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.resident-quote-summary-timing strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.9rem;
}

.resident-quote-summary-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.resident-quote-expanded {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.quote-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.quote-provider-name {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.02rem;
}

.quote-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.quote-facts div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--field);
}

.quote-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.quote-price {
  margin: 8px 0 2px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
}

.quote-note-block {
  padding-top: 2px;
}

.quote-scope-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quote-scope-flags span {
  padding: 6px 8px;
  border: 1px solid #e7d7bd;
  background: #fff7e8;
  color: #8b5e00;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quote-scope-flags span.is-included {
  border-color: #b7d8c5;
  background: #ecf7f1;
  color: #126b3a;
}

.quote-attachment-list {
  margin: 0;
}

.quote-note-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.quote-note-block p {
  margin: 0;
  color: var(--muted);
}

.choose-provider-btn {
  justify-self: start;
}

.resident-request-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-request-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 15px;
  font-weight: 850;
}

.resident-request-tab span {
  min-width: 25px;
  padding: 3px 7px;
  background: #fff;
  color: var(--teal);
  font-size: 0.75rem;
}

.resident-request-tab.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.resident-recent-outcomes {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.resident-recent-outcomes p {
  margin: 0;
}

.resident-history-card {
  display: grid;
  gap: 18px;
}

.resident-history-heading .muted {
  max-width: 760px;
  margin-bottom: 0;
}

.resident-history-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 0.7fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--field);
}

.resident-history-toolbar label {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.resident-history-toolbar input,
.resident-history-toolbar select {
  width: 100%;
  margin-top: 6px;
  background: #fff;
  text-transform: none;
}

.resident-history-results {
  display: grid;
  gap: 12px;
}

.resident-history-result-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
}

.resident-history-result-count strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.resident-history-load-more {
  justify-self: center;
}

.resident-history-milestones {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #cbd9d4;
  background: #f4f8f6;
}

.resident-history-milestone-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.resident-history-milestone-heading > span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resident-history-milestone-heading small {
  color: var(--muted);
  text-align: right;
}

.resident-history-milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
}

.resident-history-milestone-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border-left: 3px solid var(--sage);
  background: #fff;
}

.resident-history-milestone-grid span,
.resident-history-milestone-grid strong {
  display: block;
}

.resident-history-milestone-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resident-history-milestone-grid strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.88rem;
}

.quote-scope-flags .quote-validity-badge.is-current {
  border-color: #b7d8c5;
  background: #ecf7f1;
  color: #126b3a;
}

.quote-scope-flags .quote-validity-badge.is-expiring {
  border-color: #e7d7bd;
  background: #fff7e8;
  color: #8b5e00;
}

.quote-scope-flags .quote-validity-badge.is-expired {
  border-color: #e5c3bf;
  background: #fae9e7;
  color: var(--danger);
}

.quote-validity-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid #e5c3bf;
  background: #fff6f5;
}

.quote-validity-action.is-requested {
  display: grid;
  border-color: #e7d7bd;
  background: #fffaf0;
}

.quote-validity-action strong,
.quote-validity-action span {
  display: block;
}

.quote-validity-action span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.provider-validity-form {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e7d7bd;
  background: #fffaf0;
}

.provider-validity-form label {
  flex: 1;
  margin: 0;
}

.provider-validity-form input {
  margin-top: 5px;
}

.award-confirm-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #b8d4ca;
  background: #f3faf6;
}

.award-confirm-panel p {
  margin: 0;
  color: var(--muted);
}

.award-confirm-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.award-confirm-head h4 {
  margin: 3px 0 0;
  font-size: 1.08rem;
}

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

.award-confirm-summary div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #cfe0d8;
  background: #fff;
}

.award-confirm-summary span,
.award-selected-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.award-confirm-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.award-confirm-next {
  display: grid;
  gap: 7px;
}

.award-confirm-next strong {
  color: var(--ink);
}

.award-confirm-next ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.award-confirm-next li + li {
  margin-top: 4px;
}

.selected-provider-confirmation {
  padding: 10px 12px;
  border: 1px solid #b7d8c5;
  background: #ecf7f1;
  color: #126b3a;
  font-weight: 850;
}

.award-next-steps {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 14px;
  margin: 16px 0 2px;
  padding: 14px;
  border: 1px solid #c8ddd4;
  background: #f5faf7;
}

.award-next-steps h4 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
}

.award-selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.award-selected-summary span {
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid #cfe0d8;
  background: #fff;
  color: var(--ink);
}

.award-next-steps p {
  margin: 0;
  color: var(--muted);
}

.award-next-steps ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.award-next-steps li + li {
  margin-top: 5px;
}

.quote-card.is-accepted {
  border-color: var(--ok);
  background: #f1faf5;
}

.quote-card.is-declined {
  opacity: 0.64;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 20;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.resident-catalogue-state {
  padding: 32px;
  border: 1px solid var(--line);
  background: #f4f8f7;
}

.resident-catalogue-state.is-error {
  border-left: 5px solid #b44a3a;
  background: #fff8f6;
}

.resident-catalogue-state h3 {
  margin: 6px 0 10px;
}

.resident-request-path {
  margin: 16px 0 4px;
  color: var(--muted);
}

.resident-home-rfq-scope {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 10px;
  color: var(--muted);
}

.resident-home-rfq-scope strong {
  color: var(--ink);
  font-size: 18px;
}

@media (max-width: 640px) {
  .resident-home-rfq-scope {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 980px) {
  .landing-header,
  .landing-hero,
  .workflow-section,
  .roles-section,
  .overview-section,
  .services-strip,
  .pilot-cta,
  .landing-footer {
    width: min(100% - 32px, 760px);
  }

  .landing-header {
    min-height: 76px;
  }

  .landing-nav {
    display: none;
  }

  .landing-brand {
    font-size: 1.55rem;
  }

  .landing-brand-mark {
    width: 36px;
    height: 36px;
  }

  .landing-hero,
  .overview-section {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding: 48px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.85rem, 10vw, 4.6rem);
  }

  .hero-copy p {
    margin-top: 24px;
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-top: 34px;
  }

  .product-preview {
    min-height: 0;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .preview-board {
    padding: 24px 20px;
  }

  .workflow-line,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .rfq-metrics,
  .rfq-report-grid {
    grid-template-columns: 1fr;
  }

  .workflow-line article:not(:last-child)::after {
    display: none;
  }

  .workflow-line article {
    grid-template-columns: 78px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .workflow-line article::before {
    grid-row: span 2;
  }

  .workflow-line span {
    left: 22px;
    top: 44px;
  }

  .workflow-line h3 {
    max-width: none;
    margin: 8px 0 0;
  }

  .workflow-line p {
    max-width: none;
  }

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

  .services-strip strong {
    grid-column: 1 / -1;
  }

  .pilot-cta {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 34px 28px;
  }

  .cta-mark {
    width: 70px;
    height: 70px;
  }

  .pilot-cta .landing-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .landing-footer {
    flex-wrap: wrap;
    padding: 18px 0 28px;
  }

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

  .sidebar {
    min-height: auto;
  }

  .nav-tabs,
  .grid.two,
  .grid.three,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .resident-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

  .provider-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-application-hero {
    display: grid;
  }

  .application-path,
  .application-detail-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

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

  .application-actions .btn {
    width: 100%;
  }

  .quote-submit-form {
    grid-template-columns: 1fr;
  }

  .resident-summary {
    justify-content: stretch;
  }

  .resident-summary span {
    flex: 1;
  }

  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .rfq-detail-grid {
    grid-template-columns: 1fr;
  }

  .rfq-detail-header {
    display: grid;
  }

  .resident-history-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resident-history-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .pipeline-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #fff;
  }

  .landing-header,
  .landing-hero,
  .workflow-section,
  .roles-section,
  .overview-section,
  .services-strip,
  .pilot-cta,
  .landing-footer {
    width: min(100% - 24px, 460px);
  }

  .landing-header .landing-button {
    display: none;
  }

  .landing-button {
    width: 100%;
    min-height: 52px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-preview {
    display: block;
  }

  .preview-rail {
    display: none;
  }

  .preview-topline,
  .preview-grid,
  .workflow-labels,
  .table-toolbar {
    display: grid;
  }

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

  .workflow-steps {
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
  }

  .workflow-labels {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .quote-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .quote-row strong {
    grid-column: 2;
  }

  .rfq-detail-overlay {
    padding: 10px;
  }

  .rfq-detail-panel {
    padding: 16px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .roles-section,
  .workflow-section,
  .overview-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .rfq-metrics {
    gap: 10px;
  }

  .rfq-metrics article,
  .rfq-report-panel {
    padding: 16px;
  }

  .report-panel-heading {
    display: grid;
    align-items: start;
  }

  .rfq-report-panel {
    overflow: visible;
  }

  .rfq-report-panel table,
  .rfq-report-panel:nth-child(2) table,
  .project-table-card table {
    min-width: 0;
    font-size: 0.86rem;
  }

  .rfq-report-panel thead,
  .project-table-card thead {
    display: none;
  }

  .rfq-report-panel tbody,
  .rfq-report-panel tr,
  .rfq-report-panel td,
  .project-table-card tbody,
  .project-table-card tr,
  .project-table-card td {
    display: block;
    width: 100%;
  }

  .rfq-report-panel tr,
  .project-table-card tr {
    border: 1px solid var(--landing-line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
  }

  .rfq-report-panel tr + tr,
  .project-table-card tr + tr {
    margin-top: 10px;
  }

  .rfq-report-panel td,
  .project-table-card td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1ef;
    overflow-wrap: anywhere;
  }

  .rfq-report-panel td:last-child,
  .project-table-card td:last-child {
    border-bottom: 0;
  }

  .rfq-report-panel td::before,
  .project-table-card td::before {
    color: var(--landing-muted);
    font-size: 0.72rem;
    font-weight: 820;
    text-transform: uppercase;
  }

  .rfq-report-panel:first-child td:nth-child(1)::before { content: "Estate"; }
  .rfq-report-panel:first-child td:nth-child(2)::before { content: "Total"; }
  .rfq-report-panel:first-child td:nth-child(3)::before { content: "Open"; }
  .rfq-report-panel:first-child td:nth-child(4)::before { content: "Awarded"; }
  .rfq-report-panel:nth-child(2) td:nth-child(1)::before { content: "RFQ"; }
  .rfq-report-panel:nth-child(2) td:nth-child(2)::before { content: "Estate"; }
  .rfq-report-panel:nth-child(2) td:nth-child(3)::before { content: "Status"; }
  .rfq-report-panel:nth-child(2) td:nth-child(4)::before { content: "Quotes"; }
  .rfq-report-panel:nth-child(2) td:nth-child(5)::before { content: "Next"; }
  .project-table-card td:nth-child(1)::before { content: "Request"; }
  .project-table-card td:nth-child(2)::before { content: "Estate"; }
  .project-table-card td:nth-child(3)::before { content: "Category"; }
  .project-table-card td:nth-child(4)::before { content: "Status"; }
  .project-table-card td:nth-child(5)::before { content: "Updated"; }

  .role-card {
    padding: 24px 20px;
  }

  .services-strip {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .services-strip span {
    justify-items: start;
    text-align: left;
  }

  .pilot-cta {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .landing-footer nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .sidebar {
    padding: 16px;
    gap: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-block h1 {
    font-size: 1.7rem;
  }

  .nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-tab {
    flex: 0 0 auto;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .pilot-panel {
    display: none;
  }

  .account-panel {
    padding: 12px;
  }

  .topbar {
    min-height: 0;
    padding: 16px;
    gap: 12px;
  }

  .topbar h2 {
    font-size: 1.45rem;
  }

  .workspace {
    padding: 16px;
  }

  .card,
  .resident-hero,
  .provider-hero,
  .provider-application-hero {
    padding: 15px;
    box-shadow: none;
  }

  .section-title,
  .item-row {
    gap: 10px;
  }

  .section-title {
    flex-direction: column;
  }

  .resident-hero h3,
  .provider-hero h3 {
    font-size: 1.5rem;
  }

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

  .building-scope-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .mini-check {
    width: 100%;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  .type-option {
    min-height: 0;
    padding: 12px;
  }

  .type-option p {
    margin: 6px 0 0;
  }

  .smart-rfq-panel {
    padding: 12px;
  }

  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 0;
    padding: 9px 10px;
  }

  .rfq-step-header span {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .match-preview,
  .matched-provider-card,
  .resident-summary,
  .attachment-chip {
    flex-direction: column;
    align-items: stretch;
  }

  .matched-provider-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resident-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resident-workspace-tab {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
  }

  .resident-request-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resident-request-tab {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .resident-history-toolbar {
    grid-template-columns: 1fr;
  }

  .resident-history-search {
    grid-column: auto;
  }

  .resident-history-milestone-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .resident-history-milestone-heading small {
    text-align: left;
  }

  .quote-validity-action,
  .provider-validity-form {
    align-items: stretch;
    flex-direction: column;
  }

  .resident-dashboard-card {
    gap: 16px;
  }

  .resident-dashboard-metrics {
    gap: 8px;
  }

  .resident-dashboard-metrics article {
    padding: 14px;
  }

  .resident-dashboard-metrics strong {
    font-size: 1.8rem;
  }

  .resident-dashboard-attention,
  .resident-quote-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .resident-dashboard-attention .btn {
    width: 100%;
  }

  .resident-quote-alert span {
    text-align: left;
  }

  .resident-routing-card p,
  .provider-routing-details {
    padding-left: 10px;
    padding-right: 10px;
  }

  .catalogue-list {
    max-height: none;
    overflow: visible;
  }

  .catalogue-rule-tags {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tag-rule-chip {
    justify-content: space-between;
  }

  .cleanup-card {
    grid-template-columns: 1fr;
  }

  .compact-btn {
    width: 100%;
  }

  .capability-group {
    padding: 10px;
  }

  .capability-check {
    margin: 7px 0;
  }

  .button-row,
  .compact-actions,
  .application-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quote-review-header,
  .quote-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-facts,
  .award-next-steps,
  .quote-field-grid,
  .email-search-tools,
  .email-outbox-layout,
  .email-meta-grid,
  .block-request-detail,
  .no-match-workflow-steps {
    grid-template-columns: 1fr;
  }

  .sourcing-log-form {
    grid-template-columns: 1fr;
  }

  .sourcing-assistant-grid {
    grid-template-columns: 1fr;
  }

  .sourcing-lifecycle-decision {
    grid-template-columns: 1fr;
  }

  .provider-sourcing-head,
  .sourcing-assistant-summary-head,
  .sourcing-history article > div {
    align-items: stretch;
    flex-direction: column;
  }

  .sourcing-toggle {
    justify-content: center;
  }

  .email-preview-card {
    position: static;
  }

  .email-preview-head {
    flex-direction: column;
  }

  .workflow-head {
    flex-direction: column;
  }

  .compact-actions .btn,
  .application-actions .btn,
  .btn {
    width: 100%;
  }

  .next-action-box .btn + .btn {
    margin-left: 0;
    margin-top: 8px;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table td,
  .table th {
    padding: 10px 8px;
  }

  .quote-card,
  .resident-request-card,
  .provider-lead-card,
  .provider-quote-card {
    padding: 12px;
  }

  .resident-request-card,
  .resident-quote-card {
    padding: 0;
  }

  .resident-request-summary {
    flex-direction: column;
    padding: 14px;
  }

  .resident-request-summary .status {
    align-self: flex-start;
  }

  .resident-request-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resident-request-glance > div {
    padding: 10px 12px;
  }

  .resident-quote-spotlight {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }

  .resident-request-next-action {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px 14px;
  }

  .resident-disclosure-button {
    width: 100%;
  }

  .resident-request-expanded {
    padding: 14px;
  }

  .resident-quote-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
    padding: 12px;
  }

  .resident-quote-summary-timing {
    grid-column: 1;
  }

  .resident-quote-summary-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .quote-disclosure-button {
    padding-left: 9px;
    padding-right: 9px;
  }

  .resident-quote-expanded {
    padding: 12px;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
}

.resident-signed-out-sidebar {
  margin: 28px 14px 0;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.resident-signed-out-sidebar .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.resident-signed-out-sidebar h2 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
}

.resident-signed-out-sidebar p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.resident-signed-out-sidebar button {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-weight: 760;
}

.resident-signed-out-sidebar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.resident-mode .estate-filter.is-logged-out {
  min-width: 210px;
}

.resident-mode .estate-filter.is-logged-out select {
  color: #6b7978;
  font-weight: 650;
  text-align: right;
  -webkit-text-fill-color: #6b7978;
}

.resident-shell-workspace-login {
  min-height: calc(100vh - 250px);
  display: grid;
  place-items: center;
}

.resident-login-card {
  width: min(620px, 100%);
  padding: 38px;
  border: 1px solid #d4d9d7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 63, 67, 0.08);
}

.resident-login-intro {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e1e5e3;
}

.resident-login-intro h3 {
  margin: 4px 0 7px;
  color: #111;
  font-size: 2rem;
}

.resident-login-intro p:last-child {
  margin: 0;
  color: #6b7978;
}

.baseone-login-audience {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: #586867;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  list-style: none;
}

.baseone-login-audience li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.baseone-login-audience li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd500;
  content: "";
}

.resident-login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.resident-login-form label {
  display: grid;
  gap: 8px;
  color: #233334;
  font-size: 0.82rem;
  font-weight: 760;
}

.resident-login-form input {
  min-height: 52px;
  border-color: #cdd4d2;
  border-radius: 5px;
  padding: 12px 14px;
  background: #fff;
  font-size: 1rem;
}

.resident-login-form input:focus {
  outline: 2px solid rgba(18, 63, 67, 0.18);
  outline-offset: 2px;
  border-color: #123f43;
}

.resident-login-button {
  min-height: 54px;
  border: 0;
  border-radius: 5px;
  background: #123f43;
  color: #fff;
  font-weight: 780;
}

.resident-login-button:hover {
  background: #0d3539;
}

.resident-login-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.resident-login-forgot {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #526566;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .resident-mode .estate-filter.is-logged-out {
    min-width: 0;
  }

  .resident-mode .estate-filter.is-logged-out select {
    text-align: left;
  }

  .resident-shell-workspace-login {
    min-height: 0;
    padding: 12px 0 30px;
  }

  .resident-login-card {
    padding: 28px 22px;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .baseone-login-audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    font-size: 0.78rem;
  }

  .resident-login-intro {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  .resident-login-intro .resident-account-large-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .resident-login-intro h3 {
    font-size: 1.72rem;
  }
}

@media (max-width: 760px) {
  .provider-response-choice-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .provider-response-section-head,
  .provider-response-head,
  .provider-response-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-response-section-head > span {
    white-space: normal;
  }

  .provider-response-options {
    grid-template-columns: 1fr;
  }

  .provider-engagement-actions .btn,
  .provider-response-submit-row .btn {
    width: 100%;
  }

  .provider-contact-release {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final Provider shell overrides sit after the legacy console styles. */
.provider-mode .provider-workspace-card,
.provider-mode .provider-usage-card,
.provider-mode .provider-account-workspace,
.provider-mode .provider-estate-access-card {
  box-shadow: none;
}

.provider-mode .provider-account-workspace {
  padding: 34px;
}

/* Provider account: keep company essentials distinct from future estate requests. */
.provider-mode .provider-account-workspace .resident-account-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.provider-mode .provider-account-workspace .provider-account-details {
  margin: 22px 0;
}

.provider-mode .provider-account-workspace .provider-account-details div:first-child,
.provider-mode .provider-account-workspace .provider-account-details div:nth-child(2) {
  border-top: 3px solid #174c50;
}

.provider-mode .provider-account-workspace .button-row {
  margin-top: 8px;
}

.provider-mode .provider-estate-access-card {
  border-left: 4px solid var(--gold);
}

.provider-mode .provider-pipeline-board {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .provider-mode .provider-workspace-card,
  .provider-mode .provider-usage-card,
  .provider-mode .provider-estate-access-card {
    padding: 24px 20px;
  }

  .provider-mode .provider-account-workspace {
    padding: 26px 22px;
  }

  .provider-mode .provider-account-workspace .resident-account-heading {
    padding-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .provider-mode .provider-workspace-card,
  .provider-mode .provider-usage-card,
  .provider-mode .provider-estate-access-card {
    padding: 20px 16px;
  }
}

/* HOA PWA shell: estate governance in the approved BaseOne visual language. */
.console-app.hoa-mode {
  grid-template-columns: 316px minmax(0, 1fr);
  background: #fff;
}

.hoa-mode .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 28px 14px 16px;
  overflow-y: auto;
  background: #123f43;
}

.hoa-mode .sidebar > :not(.resident-sidebar-shell) {
  display: none;
}

.hoa-mode .main-area {
  min-width: 0;
  background: #fff;
}

.hoa-mode .topbar {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 32px 44px;
  background: #fff;
}

.hoa-mode .standard-topbar-copy {
  display: none;
}

.hoa-mode .estate-filter {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 180px;
}

.hoa-mode .estate-filter > span {
  display: none;
}

.hoa-mode .estate-filter select {
  min-height: 48px;
  border: 0;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  font-weight: 730;
  text-align: right;
  opacity: 1;
  -webkit-text-fill-color: #111;
}

.hoa-mode .workspace {
  padding: 38px 44px 56px;
  background: #fff;
}

.hoa-shell-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hoa-dashboard-action .resident-dashboard-action-icon {
  width: 84px;
  height: 84px;
}

.hoa-dashboard-main-card {
  min-height: 560px;
}

.hoa-attention-list {
  display: grid;
  gap: 14px;
}

.hoa-attention-card {
  min-height: 142px;
}

.hoa-block-icon {
  background: #eeeafc;
}

.hoa-recent-activity {
  padding-top: 30px;
}

.hoa-activity-secondary {
  margin-top: 20px;
}

.hoa-activity-secondary .resident-activity-icon::after {
  display: none;
}

.hoa-overview-card .hoa-open-rfqs .resident-overview-icon {
  background: #edf2f2;
}

.hoa-workspace-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: 4px 2px 22px;
  border-bottom: 1px solid #d9dedc;
}

.hoa-workspace-intro h3 {
  margin: 0;
  color: #101717;
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
  font-weight: 590;
  letter-spacing: -0.035em;
}

.hoa-workspace-intro p {
  max-width: 700px;
  margin: 10px 0 0;
  color: #6b7978;
  line-height: 1.5;
}

.hoa-inline-counts {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #66787c;
  font-size: 0.88rem;
  white-space: nowrap;
}

.hoa-inline-counts span {
  padding-left: 18px;
  border-left: 1px solid #d9dedc;
}

.hoa-inline-counts strong {
  display: block;
  margin-bottom: 2px;
  color: #111;
  font-size: 1.35rem;
  font-weight: 620;
}

.hoa-provider-list,
.hoa-rfq-list {
  display: grid;
  gap: 16px;
}

.resident-departure-summary,
.resident-departure-review-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  color: #60747b;
  font-size: 0.9rem;
}

.resident-departure-summary span,
.resident-departure-review-facts span {
  display: flex;
  gap: 6px;
}

.resident-departure-review-facts span {
  flex-direction: column;
  min-width: 130px;
}

.resident-departure-form {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #d8dedb;
  border-left: 4px solid #a95744;
  border-radius: 6px;
  background: #fffaf5;
}

.resident-departure-warning {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #c58b1d;
  background: #fff8e8;
  color: #6f5524;
  line-height: 1.45;
}

.resident-former-list {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d8e0de;
}

.resident-former-list > summary {
  min-height: 44px;
  color: #123f43;
  font-weight: 700;
  cursor: pointer;
}

.resident-former-list[open] > summary {
  margin-bottom: 16px;
}

.hoa-resident-card:not(.is-active) {
  background: #f5f7f6;
}

.resident-departure-review-card {
  border-left: 4px solid #c58b1d;
}

.hoa-provider-card,
.hoa-rfq-card,
.hoa-privacy-note {
  border: 1px solid #d4d9d7;
  border-radius: 6px;
  background: #fff;
}

.hoa-provider-card {
  padding: 24px 26px;
}

.hoa-provider-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hoa-provider-card h4,
.hoa-rfq-card h4 {
  margin: 0;
  color: #111;
  font-size: 1.12rem;
}

.hoa-provider-card-heading p,
.hoa-rfq-card p {
  margin: 7px 0 0;
  color: #66787c;
  line-height: 1.4;
}

.hoa-provider-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hoa-provider-documents {
  margin-top: 20px;
  padding: 18px 20px;
  background: #f4f7f5;
}

.hoa-provider-documents > strong {
  color: #123f43;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hoa-provider-documents p {
  margin: 7px 0 0;
  color: #5f6f70;
  line-height: 1.45;
}

.hoa-provider-block-history {
  margin-top: 12px;
  padding: 16px 18px;
  border-left: 4px solid #a95744;
  background: #fff7ed;
}

.hoa-provider-block-history strong {
  color: #713321;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hoa-provider-block-history p {
  margin: 7px 0 0;
  color: #6d4b3e;
  line-height: 1.45;
  white-space: pre-line;
}

.hoa-provider-block-history.is-decision-rejected {
  border-left-color: #a95744;
}

.hoa-provider-block-history.is-decision-approved {
  border-left-color: #2f7d5b;
  background: #f0faf4;
}

.hoa-provider-block-history.is-decision-approved strong {
  color: #1f684b;
}

.hoa-provider-block-history.is-decision-approved p {
  color: #35644f;
}

.hoa-provider-block-history-meta {
  display: block;
  margin-top: 4px;
  color: #7a8586;
  font-size: 0.78rem;
}

.hoa-provider-block-decision-note {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(113, 51, 33, 0.15);
}

.hoa-provider-block-history.is-decision-approved .hoa-provider-block-decision-note {
  border-top-color: rgba(31, 104, 75, 0.16);
}

.hoa-block-help {
  margin-top: 12px;
}

.hoa-block-start-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #d8c8bd;
  background: #fffaf5;
}

.hoa-block-start-panel strong {
  color: #713321;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hoa-block-start-panel p {
  margin: 6px 0 0;
  color: #6b7a7d;
  line-height: 1.4;
}

.hoa-block-start-panel .btn {
  flex: 0 0 auto;
}

.hoa-provider-actions {
  margin-top: 18px;
}

.hoa-provider-actions .btn {
  min-height: 44px;
}

.hoa-block-request-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8dedb;
  border-left: 4px solid #d49b24;
  border-radius: 6px;
  background: #fbf8ef;
}

.hoa-block-request-form .compact-title {
  margin-bottom: 8px;
}

.hoa-block-request-form textarea {
  min-height: 110px;
  resize: vertical;
}

.compact-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 12px !important;
  padding: 13px 14px;
  border: 1px solid #d7ddda;
  background: #fff;
}

.compact-checkbox input {
  margin-top: 4px;
}

.compact-checkbox strong,
.compact-checkbox small {
  display: block;
}

.compact-checkbox small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hoa-privacy-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #f4f7f5;
  color: #405254;
}

.hoa-privacy-note > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #123f43;
}

.hoa-privacy-note svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hoa-privacy-note p {
  margin: 0;
  line-height: 1.45;
}

.hoa-rfq-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
}

.hoa-rfq-reference {
  display: block;
  margin-bottom: 7px;
  color: #123f43;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.hoa-rfq-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hoa-rfq-card dl div {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid #d9dedc;
}

.hoa-rfq-card dt {
  margin-bottom: 7px;
  color: #66787c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hoa-rfq-card dd {
  margin: 0;
  color: #111;
  font-weight: 620;
}

.hoa-account-workspace {
  width: min(860px, 100%);
  padding: 34px;
  box-shadow: none;
}

.hoa-account-rule {
  margin: 6px 0 24px;
  padding: 20px;
  border-left: 4px solid #123f43;
  background: #f4f7f5;
}

.hoa-account-rule p {
  margin: 8px 0 0;
  color: #5f6f70;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .console-app.hoa-mode {
    display: block;
  }

  .hoa-mode .sidebar {
    display: none;
  }

  .hoa-mode .main-area {
    width: 100%;
  }

  .hoa-mode .topbar {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 0;
    border-bottom: 0;
  }

  .hoa-mode .estate-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding: 0 20px;
    border-top: 1px solid #d9dedc;
    border-bottom: 1px solid #d9dedc;
  }

  .hoa-mode .estate-filter select {
    width: 100%;
    min-height: 64px;
    padding: 0 26px 0 0;
    text-align: left;
    font-size: 1.12rem;
  }

  .hoa-mode .workspace {
    padding: 0 18px 116px;
  }

  .hoa-dashboard-action .resident-dashboard-action-icon {
    width: 78px;
    height: 78px;
  }

  .hoa-dashboard-main-card {
    min-height: 0;
  }

  .hoa-attention-list {
    order: 2;
  }

  .hoa-recent-activity {
    order: 4;
  }

  .hoa-overview-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hoa-overview-card .resident-overview-item:nth-of-type(2) {
    border-right: 0;
  }

  .hoa-overview-card .resident-overview-item:nth-of-type(n+3) {
    margin-top: 24px;
  }

  .hoa-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hoa-workspace-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
  }

  .hoa-inline-counts {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .hoa-inline-counts span:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .hoa-provider-card-heading {
    flex-direction: column;
  }

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

  .hoa-provider-statuses {
    justify-content: flex-start;
  }

  .hoa-provider-actions .btn {
    width: 100%;
  }

  .hoa-rfq-card {
    grid-template-columns: 1fr;
  }

  .hoa-rfq-card dl {
    border-top: 1px solid #d9dedc;
    padding-top: 16px;
  }

  .hoa-account-workspace {
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .hoa-attention-card {
    min-height: 0;
  }

  .hoa-overview-card .resident-overview-item {
    padding: 0 8px;
  }

  .hoa-inline-counts {
    gap: 12px;
  }

  .hoa-inline-counts span {
    padding-left: 12px;
  }

  .hoa-provider-card,
  .hoa-rfq-card {
    padding: 20px 17px;
  }

  .hoa-rfq-card dl {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hoa-rfq-card dl div {
    padding: 0 0 0 12px;
  }

  .hoa-account-workspace {
    padding: 22px 18px;
  }
}

/* Simplified Provider Quotes: keep each quote easy to scan until it is opened. */
.provider-mode .provider-quote-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
  gap: 28px;
  align-items: stretch;
  padding: 26px 28px;
  box-shadow: none;
}

.provider-quote-overview-copy h3 {
  margin: 4px 0 8px;
  font-size: 1.55rem;
}

.provider-quote-overview-copy > .muted {
  max-width: 690px;
  margin: 0;
}

.provider-quote-overview-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid #d5dfdc;
  background: #f4f7f6;
}

.provider-quote-overview-counts > div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
  padding: 14px 18px;
  border-right: 1px solid #d5dfdc;
}

.provider-quote-overview-counts > div:last-child { border-right: 0; }

.provider-quote-overview-counts strong {
  color: #082d34;
  font-size: 1.72rem;
  line-height: 1;
}

.provider-quote-overview-counts span,
.provider-quote-access > span,
.provider-quote-glance span,
.provider-quote-next-action span {
  color: #647b83;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.provider-quote-access {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px 22px;
  border-left: 4px solid #e3b500;
  background: #f5f8f7;
}

.provider-quote-access strong { color: #082d34; font-size: 1.45rem; }
.provider-quote-access small { color: #5e7780; font-size: .92rem; line-height: 1.4; }

.provider-quote-sections {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.provider-mode .provider-quote-section {
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.provider-quote-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid #dce4e1;
  background: #fbfcfb;
}

.provider-quote-section-heading h3 { margin: 0 0 5px; font-size: 1.28rem; }
.provider-quote-section-heading p { margin: 0; }

.provider-quote-section-count {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #cbd8d4;
  color: #0d4a53;
  font-weight: 800;
}

.provider-mode .provider-quote-card {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid #1d6970;
  box-shadow: none;
}

.provider-mode .provider-quote-card + .provider-quote-card { margin-top: 12px; }
.provider-mode .provider-quote-card.is-expanded { border-left-color: #d3981f; }

.provider-quote-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px 14px;
}

.provider-quote-summary h4 {
  margin: 5px 0 4px;
  color: #082d34;
  font-size: 1.18rem;
}

.provider-quote-summary p { margin: 0; color: #5e7780; }

.provider-quote-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dce4e1;
  border-bottom: 1px solid #dce4e1;
  background: #f4f7f6;
}

.provider-quote-glance > div {
  display: grid;
  gap: 5px;
  padding: 13px 24px;
  border-right: 1px solid #dce4e1;
}

.provider-quote-glance > div:last-child { border-right: 0; }
.provider-quote-glance strong { color: #082d34; line-height: 1.35; }

.provider-quote-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 24px 19px;
}

.provider-quote-next-action > div { display: grid; gap: 4px; max-width: 710px; }
.provider-quote-next-action strong { color: #183b44; line-height: 1.38; }

.provider-quote-expanded {
  display: grid;
  gap: 15px;
  padding: 20px 24px 24px;
  border-top: 1px solid #dce4e1;
  background: #fbfcfb;
}

.provider-quote-detail-copy { display: grid; gap: 9px; }
.provider-quote-detail-copy p { margin: 0; }

@media (max-width: 860px) {
  .provider-mode .provider-quote-overview { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .provider-quote-access { border-left: 0; border-top: 4px solid #e3b500; }
  .provider-quote-section-heading,
  .provider-quote-summary,
  .provider-quote-next-action,
  .provider-quote-expanded { padding-left: 20px; padding-right: 20px; }
  .provider-quote-glance > div { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 560px) {
  .provider-quote-overview-counts,
  .provider-quote-glance { grid-template-columns: 1fr; }
  .provider-quote-overview-counts > div,
  .provider-quote-glance > div { border-right: 0; border-bottom: 1px solid #dce4e1; }
  .provider-quote-overview-counts > div:last-child,
  .provider-quote-glance > div:last-child { border-bottom: 0; }
  .provider-quote-summary,
  .provider-quote-next-action { align-items: stretch; flex-direction: column; }
  .provider-quote-next-action .provider-lead-disclosure { width: 100%; justify-content: center; }
}

/* Simplified Provider New Leads: show the decision first and the paperwork only on request. */
.provider-mode .provider-lead-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 300px);
  gap: 28px;
  align-items: stretch;
  padding: 26px 28px;
  box-shadow: none;
}

.provider-lead-overview-copy h3 {
  margin: 4px 0 8px;
  color: #082d34;
  font-size: 1.58rem;
}

.provider-lead-overview-copy > .muted {
  max-width: 680px;
  margin: 0;
}

.provider-lead-overview-count {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px 22px;
  border-left: 4px solid #e3b500;
  background: #f5f8f7;
}

.provider-lead-overview-count strong {
  color: #082d34;
  font-size: 2rem;
  line-height: 1;
}

.provider-lead-overview-count span,
.provider-lead-action-heading > span {
  color: #647b83;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.provider-lead-overview-count small {
  color: #5e7780;
  font-size: .92rem;
  line-height: 1.4;
}

.provider-mode .provider-lead-list-section {
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.provider-lead-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid #dce4e1;
  background: #fbfcfb;
}

.provider-lead-list-heading h3 {
  margin: 0 0 5px;
  font-size: 1.28rem;
}

.provider-lead-list-heading p { margin: 0; }

.provider-lead-list-section > .list { padding: 14px; }

.provider-mode .provider-lead-card {
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.provider-mode .provider-lead-card + .provider-lead-card { margin-top: 12px; }
.provider-mode .provider-lead-card.is-expanded { border-left-color: #d3981f; }

.provider-lead-summary-copy { max-width: 660px; }

.provider-lead-summary-copy span {
  display: block;
  margin-bottom: 4px;
  color: #607681;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.provider-mode .provider-lead-glance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-mode .provider-lead-review-button {
  min-width: 172px;
  color: #fff;
  background: #0d4a50;
  border-color: #0d4a50;
}

.provider-mode .provider-lead-review-button:hover,
.provider-mode .provider-lead-review-button:focus-visible {
  background: #17656c;
}

.provider-lead-next-action {
  min-height: 82px;
  background: #fff;
}

.provider-lead-next-action p { max-width: 660px; }

.provider-lead-expanded {
  border-top: 1px solid #dce4e1;
  background: #fbfcfb;
}

.provider-lead-action-area,
.provider-lead-quote-area {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce4e1;
  background: #fff;
}

.provider-lead-action-area { border-left: 3px solid #c99118; }
.provider-lead-quote-area { border-left: 3px solid #1d6970; }

.provider-lead-action-heading {
  display: grid;
  gap: 4px;
}

.provider-lead-action-heading p {
  margin: 0;
  color: #5e7780;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .provider-mode .provider-lead-overview { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .provider-lead-overview-count { border-left: 0; border-top: 4px solid #e3b500; }
  .provider-lead-list-heading { padding-left: 20px; padding-right: 20px; }
  .provider-lead-list-section > .list { padding: 12px; }
}

@media (max-width: 560px) {
  .provider-lead-overview-count { padding: 18px; }
  .provider-lead-list-heading { padding: 20px 16px; }
  .provider-lead-list-section > .list { padding: 10px; }
  .provider-lead-action-area,
  .provider-lead-quote-area { padding: 15px; }
  .provider-mode .provider-lead-glance { grid-template-columns: 1fr; }
}

/* Final Resident simplification pass.  The request engine remains unchanged;
   these rules only make the existing detail easier to scan. */
.resident-ui-simplified .resident-simplified-route-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border: 1px solid #d4d9d7;
  border-left: 5px solid #f1ca1b;
  border-radius: 8px;
  background: #fff;
}

.resident-ui-simplified .resident-simplified-route-intro h3 {
  margin: 3px 0 7px;
  color: #102426;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
}

.resident-ui-simplified .resident-simplified-route-intro p:last-child {
  max-width: 670px;
  margin: 0;
  color: #66787c;
  line-height: 1.45;
}

.resident-ui-simplified .resident-simplified-route-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  min-width: 316px;
  border: 1px solid #d9dedc;
  border-radius: 6px;
  overflow: hidden;
  background: #fbfcfb;
}

.resident-ui-simplified .resident-request-summary-button {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 12px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #66787c;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
}

.resident-ui-simplified .resident-request-summary-button + .resident-request-summary-button { border-left: 1px solid #d9dedc; }
.resident-ui-simplified .resident-request-summary-button strong { color: #102426; font-size: 1.28rem; }
.resident-ui-simplified .resident-request-summary-button:hover,
.resident-ui-simplified .resident-request-summary-button.is-active { background: #edf4f1; }
.resident-ui-simplified .resident-request-summary-button:focus-visible { outline: 2px solid #2d6f8a; outline-offset: -3px; }

.resident-ui-simplified .resident-request-tabs {
  gap: 0;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 8px;
  background: #f2f5f4;
}

.resident-ui-simplified .resident-request-tab {
  flex: 1;
  min-height: 46px;
  border-radius: 5px;
}

.resident-ui-simplified .resident-request-tab span { border-radius: 999px; }
.resident-ui-simplified .resident-request-tab.is-active span { color: #123f43; }

.resident-ui-simplified .resident-request-workspace {
  gap: 18px;
  align-items: start;
}

.resident-ui-simplified .resident-request-workspace,
.resident-ui-simplified .resident-history-card,
.resident-ui-simplified .resident-account-workspace {
  border-color: #d4d9d7;
  box-shadow: none;
}

.resident-ui-simplified .resident-request-workspace > .section-title,
.resident-ui-simplified .resident-history-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid #e3e7e5;
}

.resident-ui-simplified .resident-request-workspace .section-title h3,
.resident-ui-simplified .resident-history-heading h3 {
  margin-top: 3px;
  color: #102426;
  font-size: 1.25rem;
}

.resident-ui-simplified .resident-request-card {
  border-left-color: #1d6970;
  border-radius: 7px;
}

.resident-ui-simplified .resident-request-card:not(.is-expanded):hover {
  border-left-color: #d09b12;
  box-shadow: 0 8px 20px rgba(28, 41, 36, 0.07);
}

.resident-ui-simplified .resident-request-summary { padding: 16px 17px 12px; }
.resident-ui-simplified .resident-request-glance { background: #f6f8f7; }
.resident-ui-simplified .resident-request-next-action { padding: 13px 17px; }
.resident-ui-simplified .resident-request-next-action p strong { font-size: 0.91rem; }
.resident-ui-simplified .resident-disclosure-button { min-height: 42px; border-radius: 5px; }

.resident-ui-simplified .resident-quote-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 17px;
  border: 1px solid #cfe1d7;
  border-left: 4px solid #237856;
  background: #f5fbf7;
}

.resident-ui-simplified .resident-quote-alert strong { color: #17563e; }
.resident-ui-simplified .resident-quote-alert span { color: #5e7470; }

.resident-ui-simplified .resident-history-card { gap: 16px; }
.resident-ui-simplified .resident-history-toolbar {
  gap: 12px;
  padding: 16px;
  border-radius: 7px;
  background: #f6f8f7;
}

.resident-ui-simplified .resident-history-toolbar input,
.resident-ui-simplified .resident-history-toolbar select {
  min-height: 43px;
  border-color: #cfd7d4;
  border-radius: 5px;
}

.resident-ui-simplified .resident-history-result-count {
  padding: 4px 2px;
  color: #66787c;
}

.resident-ui-simplified .resident-history-load-more {
  justify-self: start;
  min-height: 44px;
}

.resident-ui-simplified .resident-account-workspace {
  max-width: 920px;
  padding: 30px;
}

.resident-ui-simplified .resident-account-heading {
  padding-bottom: 23px;
  border-bottom: 1px solid #e3e7e5;
}

.resident-ui-simplified .resident-account-details > div {
  border-color: #d9dedc;
  background: #f6f8f7;
}

@media (max-width: 980px) {
  .resident-ui-simplified .resident-simplified-route-intro { align-items: start; flex-direction: column; }
  .resident-ui-simplified .resident-simplified-route-summary { width: 100%; min-width: 0; }
}

@media (max-width: 640px) {
  .resident-ui-simplified .resident-simplified-route-intro { gap: 18px; padding: 21px 18px; }
  .resident-ui-simplified .resident-request-summary-button { padding: 10px 5px; font-size: 0.68rem; }
  .resident-ui-simplified .resident-request-tabs { margin-bottom: 14px; }
  .resident-ui-simplified .resident-request-tab { min-height: 44px; padding: 8px; font-size: 0.8rem; }
  .resident-ui-simplified .resident-request-workspace { gap: 14px; }
  .resident-ui-simplified .resident-request-glance { grid-template-columns: 1fr; }
  .resident-ui-simplified .resident-request-glance > div + div { border-top: 1px solid #d9dedc; border-left: 0; }
  .resident-ui-simplified .resident-request-next-action { align-items: stretch; flex-direction: column; }
  .resident-ui-simplified .resident-disclosure-button { width: 100%; }
  .resident-ui-simplified .resident-quote-alert { align-items: start; flex-direction: column; }
  .resident-ui-simplified .resident-history-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .resident-ui-simplified .resident-history-search { grid-column: 1 / -1; }
  .resident-ui-simplified .resident-account-workspace { padding: 22px 18px; }
}

/* Final shared mobile polish.  The four workspaces use the same simple,
   touch-friendly language without changing any of their business workflows. */
@media (max-width: 860px) {
  .console-app.resident-mode,
  .console-app.provider-mode,
  .console-app.hoa-mode,
  .console-app.baseone-mode {
    min-height: 100dvh;
  }

  .resident-mode .main-area,
  .provider-mode .main-area,
  .hoa-mode .main-area,
  .baseone-mode .main-area {
    overflow-x: clip;
  }

  .resident-mode .workspace,
  .provider-mode .workspace,
  .hoa-mode .workspace,
  .baseone-mode .workspace {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .resident-mode .workspace :is(input, select, textarea),
  .provider-mode .workspace :is(input, select, textarea),
  .hoa-mode .workspace :is(input, select, textarea),
  .baseone-mode .workspace :is(input, select, textarea) {
    min-height: 46px;
  }

  .resident-mode .workspace textarea,
  .provider-mode .workspace textarea,
  .hoa-mode .workspace textarea,
  .baseone-mode .workspace textarea {
    min-height: 112px;
  }

  .resident-profile-button {
    min-width: 52px;
    min-height: 52px;
  }

  .resident-mobile-nav {
    min-height: 88px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 22px rgba(18, 63, 67, 0.07);
  }

  .resident-mobile-nav-button {
    min-height: 65px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .resident-mobile-nav-button > span {
    width: 30px;
    height: 30px;
  }

  .resident-mobile-nav-button small {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .resident-mobile-nav-button:focus-visible,
  .resident-profile-button:focus-visible {
    outline: 3px solid #e1b900;
    outline-offset: 2px;
  }

  .resident-mobile-create > span {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 560px) {
  .resident-mode .workspace,
  .provider-mode .workspace,
  .hoa-mode .workspace,
  .baseone-mode .workspace {
    padding-right: 14px;
    padding-left: 14px;
  }

  .resident-mode .topbar,
  .provider-mode .topbar,
  .hoa-mode .topbar,
  .baseone-mode .topbar {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .resident-mobile-brand {
    padding-right: 14px;
    padding-left: 18px;
  }

  .resident-topbar-copy {
    padding: 27px 18px 24px;
  }

  .resident-topbar-copy h2 {
    line-height: 1.08;
  }

  .resident-mode .estate-filter,
  .provider-mode .estate-filter,
  .hoa-mode .estate-filter,
  .baseone-mode .estate-filter {
    padding-right: 18px;
    padding-left: 18px;
  }

  .resident-mobile-nav {
    padding-right: 4px;
    padding-left: 4px;
  }

  .resident-mobile-nav-button {
    gap: 3px;
    padding-right: 1px;
    padding-left: 1px;
  }

  .resident-mobile-nav-button small {
    font-size: 0.68rem;
  }
}
/* Public Resident and Provider onboarding */
.public-join-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--muted); font-weight: 700; }
.public-join-divider::before, .public-join-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.public-join-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.public-join-card { min-height: 118px; padding: 18px; border: 1px solid #c8d8d3; border-radius: 14px; background: #edf4f1; color: #123f43; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; cursor: pointer; }
.public-join-card.is-provider { background: #f7f1df; border-color: #e5d3a0; }
.public-join-card > span { grid-row: 1 / span 2; width: 34px; }
.public-join-card strong { font-size: 1rem; }
.public-join-card small { color: #557074; line-height: 1.4; }
.public-join-card:hover, .public-join-card:focus-visible { border-color: #0f4b50; box-shadow: 0 8px 22px rgba(15, 75, 80, .12); transform: translateY(-1px); }
.public-onboarding-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 20px; align-items: start; }
.public-onboarding-main { min-width: 0; }
.public-onboarding-back { border: 0; background: transparent; color: #0f4b50; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; cursor: pointer; }
.public-onboarding-back svg { width: 18px; transform: rotate(180deg); }
.public-onboarding-hero { margin-bottom: 16px; }
.public-onboarding-form-card, .public-onboarding-aside { border-color: #c7d8d3; }
.public-onboarding-aside { position: sticky; top: 20px; }
.public-onboarding-aside ul, .public-application-success ol { padding-left: 20px; color: var(--muted); line-height: 1.7; }
.public-login-fields { padding: 18px; border-radius: 12px; background: #edf4f1; border: 1px solid #c7d8d3; }
.public-login-fields .checklist-heading { margin-top: 0; }
.provider-application-form [hidden] { display: none !important; }
.public-commercial-note { padding: 16px 18px; background: #f7f1df; border-left: 4px solid #c99518; }
.public-commercial-note p { margin: 5px 0 0; color: var(--muted); }
.public-application-success { max-width: 720px; margin-inline: auto; }
.application-verification-notice { margin: 18px 0; padding: 14px 16px; border-left: 4px solid #c99518; background: #f7f1df; color: #294f53; }
.application-verification-notice strong { color: #123f43; }
.auth-link-notice { margin: 18px 0; padding: 14px 16px; border-left: 4px solid #c99518; background: #f7f1df; color: #294f53; }
.auth-link-notice.is-error { border-left-color: #b64b47; background: #fbeceb; }
.auth-link-notice strong { display: block; color: #123f43; }
.auth-link-notice p { margin: 6px 0 0; line-height: 1.5; }
.auth-link-notice .auth-link-next-step { margin-bottom: 0; }
.application-resubmission-note { margin: 18px 0; padding: 14px 16px; border-left: 4px solid #4f7d80; background: #edf4f1; color: #294f53; }
.application-resubmission-note strong { color: #123f43; }
.resident-application-queue { margin-bottom: 18px; }
.estate-multiselect { position: relative; width: 100%; }
.estate-multiselect > summary { list-style: none; min-height: 48px; padding: 0 15px; border: 1px solid #bfcfca; border-radius: 5px; background: #fff; color: #274e52; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; cursor: pointer; }
.estate-multiselect > summary::-webkit-details-marker { display: none; }
.estate-multiselect[open] > summary { border-color: #0f4b50; box-shadow: 0 0 0 2px rgba(15, 75, 80, .12); }
.estate-multiselect-chevron { transition: transform .15s ease; }
.estate-multiselect[open] .estate-multiselect-chevron { transform: rotate(180deg); }
.estate-multiselect-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; padding: 8px; border: 1px solid #bfcfca; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(15, 49, 52, .16); max-height: 250px; overflow-y: auto; }
.estate-multiselect-menu label { min-height: 43px; padding: 9px 10px; border-radius: 5px; display: flex; align-items: center; gap: 11px; color: #294f53; cursor: pointer; }
.estate-multiselect-menu label:hover { background: #edf4f1; }
.estate-multiselect-menu input { width: 18px; height: 18px; margin: 0; accent-color: #0f4b50; }
.estate-multiselect-menu .estate-multiselect-select-all { margin-bottom: 6px; border-bottom: 1px solid #d8e0de; border-radius: 0; color: #123f43; font-weight: 800; }

@media (max-width: 760px) {
  .public-join-actions, .public-onboarding-layout { grid-template-columns: 1fr; }
  .public-onboarding-aside { position: static; }
  .public-provider-onboarding .grid.two, .public-provider-onboarding .grid.three { grid-template-columns: 1fr; }
}

/* 2026-08-16 approved Resident RFQ top navigation and five-step journey */
.console-app.resident-mode {
  display: block;
  min-height: 100vh;
  background: #fff;
}

.resident-mode .sidebar { display: none; }
.resident-mode .main-area { min-height: 100vh; }
.resident-mode .topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(500px, 1fr) auto auto auto;
  gap: 14px;
  padding: 0 24px;
  border: 0;
  background: #123f43;
  color: #fff;
}
.resident-horizontal-brand { display: flex; align-items: center; padding-right: 8px; }
.resident-horizontal-brand .resident-wordmark { font-size: 1.55rem; }
.resident-horizontal-brand .resident-wordmark small { bottom: -8px; font-size: .45rem; }
.resident-horizontal-nav { display: flex; align-items: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.resident-horizontal-nav::-webkit-scrollbar { display: none; }
.resident-horizontal-nav .resident-shell-nav-button {
  width: auto;
  min-width: max-content;
  min-height: 48px;
  gap: 8px;
  padding: 0 15px;
  border-radius: 0;
  font-size: .84rem;
}
.resident-horizontal-nav .resident-shell-nav-button.is-active { background: rgba(193, 211, 206, .24); }
.resident-horizontal-nav .resident-shell-nav-icon { width: 22px; height: 22px; flex-basis: 22px; }
.resident-horizontal-identity { display: grid; align-content: center; text-align: right; font-size: .72rem; white-space: nowrap; }
.resident-horizontal-identity span { color: #c1d3ce; }
.resident-mode .estate-filter { display: none; }
.resident-mode .resident-profile-button { grid-column: auto; grid-row: auto; width: 38px; height: 38px; color: #fff; }
.resident-horizontal-signout { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #fff; font-size: .78rem; white-space: nowrap; }
.resident-horizontal-signout svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.resident-mode .topbar:has(.resident-topbar-copy) { grid-template-columns: auto minmax(0, 1fr) auto; }
.resident-mode .topbar:has(.resident-topbar-copy) .resident-horizontal-brand { grid-column: 1; grid-row: 1; }
.resident-mode .topbar .resident-topbar-copy { align-self: center; min-width: 0; }
.resident-mode .topbar:has(.resident-topbar-copy) .resident-topbar-copy { grid-column: 2; grid-row: 1; }
.resident-mode .topbar .resident-topbar-copy h2 { margin: 0; color: #fff; font-size: 1.55rem; }
.resident-mode .topbar .resident-topbar-copy p { margin: 4px 0 0; color: #c1d3ce; }
.resident-mode .topbar:has(.resident-topbar-copy) .resident-profile-button { grid-column: 3; grid-row: 1; }
.resident-mode .workspace { padding: 26px 24px 56px; }
.resident-shell-workspace-requests { width: min(1180px, 100%); }
.resident-request-empty .btn { margin-top: 12px; }
.resident-rfq-journey { width: min(760px, 100%); max-width: 760px; margin: 0 auto; }
.resident-rfq-intro { margin-bottom: 14px; }
.resident-rfq-intro h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.resident-rfq-intro p { margin: 4px 0 18px; color: #687977; }
.resident-rfq-preview-note { display: flex; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border-left: 4px solid #c99518; background: #f7f1df; color: #67531c; font-size: .82rem; }
.resident-rfq-preview-note strong { white-space: nowrap; }
.resident-rfq-progress-copy { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; color: #123f43; font-size: .78rem; text-transform: uppercase; }
.resident-rfq-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.resident-rfq-progress span { height: 11px; background: #e4e8e6; }
.resident-rfq-progress span.is-complete { background: #f2c400; }
.resident-rfq-wizard { padding: 0; }
.resident-rfq-step { display: none; min-height: 420px; padding: 18px; border: 1px solid #bacbc6; background: #fff; box-shadow: 0 4px 12px rgba(18, 63, 67, .12); }
.resident-rfq-step.is-active { display: flex; flex-direction: column; gap: 14px; }
.resident-rfq-step .rfq-step-header { margin: -18px -18px 0; padding: 0; border-bottom: 1px solid #bacbc6; align-items: center; background: #fff; }
.resident-rfq-step .rfq-step-header > span { width: 52px; height: 48px; flex-basis: 52px; font-size: 1.35rem; }
.resident-rfq-step .rfq-step-header .eyebrow { display: none; }
.resident-rfq-step .rfq-step-header h4 { font-size: 1.2rem; }
.resident-rfq-step .type-grid,
.resident-rfq-step .smart-rfq-panel,
.resident-rfq-step .building-scope-options,
.resident-rfq-step .file-upload-panel,
.resident-rfq-step .contact-disclosure { background: #c1d3ce; }
.resident-rfq-step .type-grid { gap: 8px; }
.resident-rfq-step .type-option { border-color: #aabdb7; background: rgba(255,255,255,.58); }
.resident-rfq-step .type-option.is-selected { outline: 2px solid #123f43; background: #fff; }
.resident-rfq-step .rfq-advice { border-left-color: #123f43; background: rgba(255,255,255,.72); }
.resident-rfq-step input,
.resident-rfq-step select,
.resident-rfq-step textarea { border-color: #aabdb7; background: #fff; }
.resident-rfq-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 20px; }
.resident-rfq-back,
.resident-rfq-next { min-height: 44px; border: 0; background: transparent; color: #586563; font-weight: 700; }
.resident-rfq-back { display: flex; align-items: center; gap: 6px; }
.resident-rfq-back svg { width: 20px; height: 20px; transform: rotate(180deg); fill: none; stroke: currentColor; }
.resident-rfq-next { color: #123f43; font-size: 1rem; }
.resident-rfq-next span { color: #f2c400; font-size: 1.55rem; vertical-align: middle; }
.resident-rfq-next:disabled { opacity: .38; cursor: not-allowed; }
.resident-rfq-step .request-service-button { width: auto; min-width: 170px; }
.resident-mode .resident-mobile-nav { display: none !important; }

@media (max-width: 900px) {
  .resident-mode .topbar { position: static; grid-template-columns: 1fr auto auto; padding: 10px 14px 0; gap: 8px; }
  .resident-horizontal-brand { grid-column: 1; grid-row: 1; }
  .resident-horizontal-identity { grid-column: 2; grid-row: 1; }
  .resident-mode .resident-profile-button { grid-column: 3; grid-row: 1; }
  .resident-horizontal-signout { display: none; }
  .resident-horizontal-nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -14px; border-top: 1px solid rgba(255,255,255,.16); }
  .resident-horizontal-nav .resident-shell-nav-button { flex: 1 0 auto; justify-content: center; min-height: 52px; }
  .resident-mode .workspace { padding: 20px 14px 44px; }
}

@media (max-width: 560px) {
  .resident-horizontal-identity span { display: none; }
  .resident-horizontal-nav .resident-shell-nav-button { flex-direction: column; gap: 3px; min-width: 108px; padding: 7px 10px; font-size: .72rem; }
  .resident-horizontal-nav .resident-shell-nav-icon { width: 20px; height: 20px; }
  .resident-rfq-journey { width: 100%; }
  .resident-rfq-step { min-height: 520px; padding: 14px; box-shadow: none; }
  .resident-rfq-step .rfq-step-header { margin: -14px -14px 0; }
  .resident-rfq-step .rfq-step-header > span { width: 44px; height: 46px; flex-basis: 44px; }
  .resident-rfq-step .rfq-step-header h4 { font-size: 1rem; }
  .resident-rfq-step .lane-grid,
  .resident-rfq-step .choice-grid,
  .resident-rfq-step .choice-grid.compact { grid-template-columns: 1fr; }
  .resident-rfq-controls { padding-top: 14px; }
  .resident-rfq-step .request-service-button { min-width: 0; }
}

/* A neutral bridge while Supabase resolves the signed-in account's protected
   role. This prevents any workspace (especially Resident) flashing first. */
.console-app.auth-resolving {
  display: block;
  min-height: 100vh;
  background: #f8faf9;
}

.console-app.auth-resolving > .sidebar,
.console-app.auth-resolving .topbar {
  display: none;
}

.console-app.auth-resolving .main-area {
  min-height: 100vh;
}

.console-app.auth-resolving .workspace {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sign-in-loading {
  width: min(100%, 480px);
  padding: 48px 36px;
  border: 1px solid #d8e0de;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(18, 63, 67, 0.09);
  text-align: center;
}

.sign-in-loading-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 18px;
  background: #123f43;
  color: #f2cf22;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.sign-in-loading h1 {
  margin: 0;
  color: #102326;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.08;
}

.sign-in-loading p:last-child {
  margin: 14px auto 0;
  max-width: 30ch;
  color: #60747b;
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .console-app.auth-resolving .workspace { padding: 18px; }
  .sign-in-loading { padding: 40px 24px; border-radius: 16px; }
}
