/*
 * SwissBauArchiv UI VNext foundation
 * Scope: customer portal only. No rule in this file targets the legacy shell.
 */

.customer-portal-shell.sba-vnext {
  --sba-brand: #d1082f;
  --sba-brand-deep: #9b001e;
  --sba-ink: #16171a;
  --sba-ink-soft: #313338;
  --sba-canvas: #f1f2f5;
  --sba-surface: rgba(255, 255, 255, 0.94);
  --sba-surface-glass: rgba(255, 255, 255, 0.78);
  --sba-surface-soft: rgba(255, 255, 255, 0.62);
  --sba-line: rgba(22, 23, 26, 0.09);
  --sba-line-light: rgba(255, 255, 255, 0.72);
  --sba-muted: #6f7178;
  --sba-success: #1f8a62;
  --sba-warning: #9a6918;
  --sba-planning: #386caa;
  --sba-danger-soft: rgba(209, 8, 47, 0.09);
  --sba-success-soft: rgba(31, 138, 98, 0.1);
  --sba-warning-soft: rgba(154, 105, 24, 0.1);
  --sba-planning-soft: rgba(56, 108, 170, 0.1);
  --sba-shadow-sm: 0 8px 24px rgba(24, 29, 38, 0.06), 0 1px 2px rgba(24, 29, 38, 0.05);
  --sba-shadow-md: 0 18px 48px rgba(24, 29, 38, 0.09), 0 2px 8px rgba(24, 29, 38, 0.05);
  --sba-shadow-lg: 0 28px 72px rgba(24, 29, 38, 0.13), 0 4px 16px rgba(24, 29, 38, 0.06);
  --sba-radius-app: 32px;
  --sba-radius-panel: 26px;
  --sba-radius-card: 18px;
  --sba-radius-control: 13px;
  --sba-space-1: 8px;
  --sba-space-2: 16px;
  --sba-space-3: 24px;
  --sba-space-4: 32px;
  --sba-space-5: 40px;
  --sba-space-6: 48px;
  --sba-sidebar-width: 224px;
  --sba-topbar-height: 72px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  color: var(--sba-ink);
  background:
    radial-gradient(circle at 94% 4%, rgba(209, 8, 47, 0.065), transparent 28rem),
    linear-gradient(145deg, #f7f8fa 0%, var(--sba-canvas) 55%, #e9ebef 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  overflow-x: clip;
  isolation: isolate;
}

.customer-portal-shell.sba-vnext,
.customer-portal-shell.sba-vnext *,
.customer-portal-shell.sba-vnext *::before,
.customer-portal-shell.sba-vnext *::after {
  box-sizing: border-box;
}

.customer-portal-shell.sba-vnext :where(h1, h2, h3, h4, p, span, strong, small, a, button, li, dt, dd) {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.customer-portal-shell.sba-vnext :where(button, a, input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"])) {
  min-width: 0;
}

.customer-portal-shell.sba-vnext :where(button, a, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}

.customer-portal-shell.sba-vnext :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(209, 8, 47, 0.28);
  outline-offset: 3px;
}

.customer-portal-shell.sba-vnext :where(img, video, canvas, svg) {
  max-width: 100%;
}

.customer-portal-shell.sba-vnext > .portal-sidebar,
.customer-portal-shell.sba-vnext > .portal-main > .portal-topbar,
.customer-portal-shell.sba-vnext .sba-vnext-glass {
  background: var(--sba-surface-glass);
  border: 1px solid var(--sba-line-light);
  box-shadow: var(--sba-shadow-md);
  -webkit-backdrop-filter: blur(26px) saturate(138%);
  backdrop-filter: blur(26px) saturate(138%);
}

.customer-portal-shell.sba-vnext > .portal-sidebar {
  width: var(--sba-sidebar-width);
  min-width: var(--sba-sidebar-width);
  padding: var(--sba-space-3) var(--sba-space-2);
  border-radius: var(--sba-radius-app);
  align-self: start;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .logo-lockup {
  min-height: 48px;
  margin: 0 4px var(--sba-space-4);
  gap: 10px;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .logo-lockup strong {
  color: var(--sba-brand);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(48px, auto);
  gap: var(--sba-space-1);
  margin: 0;
  padding: 0;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--sba-ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 15px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item:hover {
  color: var(--sba-ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item.active {
  color: var(--sba-brand);
  background: linear-gradient(135deg, rgba(209, 8, 47, 0.1), rgba(255, 255, 255, 0.64));
  border-color: rgba(209, 8, 47, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -17px;
  width: 3px;
  border-radius: 999px;
  background: var(--sba-brand);
  content: "";
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item > :where(svg, .svg-icon) {
  width: 20px;
  height: 20px;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item > span {
  min-width: 0;
  white-space: normal;
}

.customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item > em {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px;
  place-items: center;
  color: #fff;
  background: var(--sba-brand);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(209, 8, 47, 0.2);
}

.customer-portal-shell.sba-vnext > .portal-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-portal-shell.sba-vnext > .portal-main > .portal-topbar {
  min-height: var(--sba-topbar-height);
  padding: 10px var(--sba-space-2);
  border-radius: 24px;
}

.customer-portal-shell.sba-vnext .sba-vnext-page {
  width: min(100%, 1480px);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: var(--sba-space-3) clamp(16px, 2.4vw, 32px) var(--sba-space-6);
}

.customer-portal-shell.sba-vnext .sba-vnext-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sba-space-2);
  min-width: 0;
  margin-bottom: var(--sba-space-3);
}

.customer-portal-shell.sba-vnext .sba-vnext-heading > div {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-heading :where(h1, h2) {
  max-width: 22ch;
  margin: 0;
  color: var(--sba-ink);
  font-size: 48px;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-heading p {
  max-width: 66ch;
  margin: 10px 0 0;
  color: var(--sba-muted);
  font-size: 15px;
}

.customer-portal-shell.sba-vnext .sba-vnext-heading > :where(button, a) {
  flex: 0 0 auto;
  min-height: 44px;
}

.customer-portal-shell.sba-vnext .sba-vnext-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.82fr);
  grid-template-areas:
    "property next"
    "projects next"
    "quick quick";
  gap: var(--sba-space-2);
  min-width: 0;
  align-items: start;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero {
  position: relative;
  grid-area: property;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  min-height: 296px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #181a1e 0%, #272a30 58%, #111215 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--sba-radius-panel);
  box-shadow: var(--sba-shadow-lg);
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero::after,
.customer-portal-shell.sba-vnext .sba-vnext-protection-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 5%, rgba(209, 8, 47, 0.3), transparent 38%),
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.04));
  content: "";
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__media {
  position: relative;
  min-height: 296px;
  overflow: hidden;
  background: #24262b;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__media :where(img, picture) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-portal-shell.sba-vnext img[data-image-fallback="property"]:not([data-image-ready="true"]) {
  visibility: hidden;
}

.customer-portal-shell.sba-vnext img[data-image-fallback="property"][data-image-ready="true"] {
  visibility: visible;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 58%, rgba(24, 26, 30, 0.8));
  content: "";
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sba-space-2);
  padding: clamp(24px, 3vw, 40px);
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__content :where(h2, h3) {
  margin: 0;
  color: #fff;
  font-size: 44px;
  font-weight: 740;
  line-height: 1.05;
  letter-spacing: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sba-space-1) var(--sba-space-2);
  margin: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__facts > div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__facts dt {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero__facts dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 680;
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step {
  position: relative;
  grid-area: next;
  display: flex;
  min-width: 0;
  min-height: 296px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  color: var(--sba-ink);
  background: var(--sba-surface);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-panel);
  box-shadow: var(--sba-shadow-md);
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step::before {
  width: 56px;
  height: 5px;
  margin-bottom: var(--sba-space-3);
  background: linear-gradient(90deg, var(--sba-brand), var(--sba-brand-deep));
  border-radius: 999px;
  content: "";
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step__eyebrow {
  margin: 0 0 var(--sba-space-1);
  color: var(--sba-brand);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step :where(h2, h3) {
  margin: 0;
  color: var(--sba-ink);
  font-size: 34px;
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step > p {
  margin: 12px 0 0;
  color: var(--sba-muted);
  font-size: 14px;
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sba-space-1);
  margin: auto 0 0;
  padding-top: var(--sba-space-3);
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step__meta > span {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  padding: 9px 11px;
  color: var(--sba-ink-soft);
  background: var(--sba-canvas);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 620;
}

.customer-portal-shell.sba-vnext .sba-vnext-section {
  min-width: 0;
  padding: var(--sba-space-3);
  background: var(--sba-surface-glass);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-panel);
  box-shadow: var(--sba-shadow-sm);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.customer-portal-shell.sba-vnext .sba-vnext-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sba-space-2);
  min-width: 0;
  margin-bottom: var(--sba-space-2);
}

.customer-portal-shell.sba-vnext .sba-vnext-section__head > div {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-section__head :where(h2, h3) {
  margin: 0;
  color: var(--sba-ink);
  font-size: 25px;
  font-weight: 720;
  line-height: 1.16;
  letter-spacing: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-section__head p {
  margin: 4px 0 0;
  color: var(--sba-muted);
  font-size: 13px;
}

.customer-portal-shell.sba-vnext .sba-vnext-section__head > :where(button, a) {
  flex: 0 0 auto;
  min-height: 44px;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(180px, 0.55fr) 44px;
  align-items: center;
  gap: var(--sba-space-2);
  min-width: 0;
  min-height: 112px;
  padding: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sba-line);
  border-radius: var(--sba-radius-card);
  box-shadow: 0 4px 16px rgba(24, 29, 38, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row + .sba-vnext-project-row {
  margin-top: var(--sba-space-1);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row:hover {
  border-color: rgba(209, 8, 47, 0.16);
  box-shadow: var(--sba-shadow-sm);
  transform: translateY(-2px);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__media {
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e6e8eb;
  border-radius: 14px;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__main,
.customer-portal-shell.sba-vnext .sba-vnext-project-row__status {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__main :where(h3, h4) {
  margin: 0;
  color: var(--sba-ink);
  font-size: 16px;
  font-weight: 710;
  line-height: 1.2;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__main p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 9px;
  color: var(--sba-muted);
  font-size: 11px;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__status {
  display: grid;
  gap: 8px;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #e2e4e8;
  border-radius: 999px;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__progress > span {
  display: block;
  width: var(--progress, 0%);
  max-width: 100%;
  height: 100%;
  background: var(--sba-success);
  border-radius: inherit;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__action {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--sba-line);
  border-radius: 50%;
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-grid {
  grid-area: quick;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--sba-space-2);
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 144px;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sba-space-2);
  padding: var(--sba-space-3);
  overflow: hidden;
  color: var(--sba-ink);
  background: var(--sba-surface);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-card);
  box-shadow: var(--sba-shadow-sm);
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card:hover {
  border-color: rgba(209, 8, 47, 0.15);
  box-shadow: var(--sba-shadow-md);
  transform: translateY(-2px);
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card__icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--sba-ink-soft);
  background: var(--sba-canvas);
  border: 1px solid rgba(22, 23, 26, 0.05);
  border-radius: 14px;
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card :where(h3, h4) {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--sba-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .sba-vnext-list {
  display: grid;
  gap: var(--sba-space-1);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(96px, auto) 44px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  min-height: 72px;
  padding: 11px 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--sba-line);
  border-radius: 16px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(209, 8, 47, 0.13);
  transform: translateY(-1px);
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--sba-ink-soft);
  background: var(--sba-canvas);
  border-radius: 13px;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__main {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__main :where(h3, h4, strong) {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--sba-ink);
  font-size: 14px;
  font-weight: 690;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__main p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__aside {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--sba-ink-soft);
  font-size: 12px;
  font-weight: 640;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__action {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
}

.customer-portal-shell.sba-vnext .sba-vnext-list-row__action:hover {
  background: var(--sba-canvas);
  border-color: var(--sba-line);
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  align-items: end;
  gap: var(--sba-space-3);
  min-width: 0;
  min-height: 272px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(132deg, #17191d 0%, #292c32 62%, #111215 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--sba-radius-panel);
  box-shadow: var(--sba-shadow-lg);
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero :where(h1, h2) {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-size: 56px;
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero__status {
  display: grid;
  gap: var(--sba-space-1);
  padding: var(--sba-space-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero__status strong {
  color: #fff;
  font-size: 25px;
  font-weight: 720;
}

.customer-portal-shell.sba-vnext .sba-vnext-protection-hero__status span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.customer-portal-shell.sba-vnext .sba-vnext-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--sba-space-2);
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-summary-grid > * {
  min-width: 0;
  max-width: 100%;
  min-height: 152px;
  height: 100%;
  overflow: hidden;
  padding: var(--sba-space-3);
  background: var(--sba-surface);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-card);
  box-shadow: var(--sba-shadow-sm);
}

.customer-portal-shell.sba-vnext .sba-vnext-summary-grid :where(h3, h4) {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--sba-muted);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .sba-vnext-summary-grid strong {
  display: block;
  margin-top: var(--sba-space-2);
  color: var(--sba-ink);
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(22px, 2.25vw, 34px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-summary-grid p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: var(--sba-space-2);
  min-width: 0;
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > * {
  min-width: 0;
  max-width: 100%;
  min-height: 184px;
  height: auto;
  overflow: visible;
  padding: var(--sba-space-3);
  background: var(--sba-surface);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-card);
  box-shadow: var(--sba-shadow-sm);
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > :first-child {
  color: #fff;
  background: linear-gradient(135deg, #202227, #101114);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--sba-shadow-md);
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > :first-child :where(h2, h3, h4, strong) {
  color: #fff;
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > :first-child :where(p, span, small) {
  color: rgba(255, 255, 255, 0.68);
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) :where(h2, h3, h4) {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--sba-ink);
  font-size: 17px;
  font-weight: 710;
  line-height: 1.18;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) p {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) strong {
  display: block;
  margin-top: var(--sba-space-2);
  color: var(--sba-ink);
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 720;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) .project-command-card.cost strong {
  font-size: clamp(20px, 1.75vw, 25px);
}

.customer-portal-shell.sba-vnext .project-command-card.next strong {
  font-size: clamp(19px, 1.65vw, 24px);
  word-break: normal;
  overflow-wrap: normal;
}

.customer-portal-shell.sba-vnext .sba-vnext-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--sba-ink-soft);
  background: var(--sba-canvas);
  border: 1px solid rgba(22, 23, 26, 0.06);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-status[data-tone="success"] {
  color: var(--sba-success);
  background: var(--sba-success-soft);
}

.customer-portal-shell.sba-vnext .sba-vnext-status[data-tone="warning"] {
  color: var(--sba-warning);
  background: var(--sba-warning-soft);
}

.customer-portal-shell.sba-vnext .sba-vnext-status[data-tone="planning"] {
  color: var(--sba-planning);
  background: var(--sba-planning-soft);
}

.customer-portal-shell.sba-vnext .sba-vnext-status[data-tone="danger"] {
  color: var(--sba-brand);
  background: var(--sba-danger-soft);
}

.customer-portal-shell.sba-vnext .sba-vnext-empty,
.customer-portal-shell.sba-vnext .sba-vnext-error,
.customer-portal-shell.sba-vnext .sba-vnext-loading,
.customer-portal-shell.sba-vnext .sba-vnext-no-access {
  display: grid;
  min-height: 224px;
  padding: var(--sba-space-4);
  place-items: center;
  color: var(--sba-muted);
  background: var(--sba-surface);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-panel);
  box-shadow: var(--sba-shadow-sm);
  text-align: center;
}

.customer-portal-shell.sba-vnext .sba-vnext-error {
  color: var(--sba-brand-deep);
  background: linear-gradient(145deg, #fff, rgba(209, 8, 47, 0.055));
}

/* Markup compatibility and component details. All rules stay inside VNext. */
.customer-portal-shell.sba-vnext > .portal-sidebar .customer-sidebar-foot {
  display: grid;
  width: 100%;
  margin-top: auto;
  padding-top: var(--sba-space-2);
}

.customer-portal-shell.sba-vnext > .portal-sidebar .customer-sidebar-foot .portal-nav-item {
  width: 100%;
  min-height: 48px;
}

.customer-portal-shell.sba-vnext .sba-vnext-page > .sba-vnext-section,
.customer-portal-shell.sba-vnext .sba-vnext-page > .sba-vnext-summary-grid,
.customer-portal-shell.sba-vnext .sba-vnext-page > .sba-vnext-protection-hero,
.customer-portal-shell.sba-vnext .sba-vnext-page > .sba-vnext-quick-grid {
  margin-top: var(--sba-space-2);
}

.customer-portal-shell.sba-vnext .sba-vnext-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero .title-select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 0;
  color: #fff;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 740;
  line-height: 1.08;
}

.customer-portal-shell.sba-vnext .sba-vnext-property-hero .title-select option {
  color: var(--sba-ink);
  background: #fff;
  font-size: 16px;
}

.customer-portal-shell.sba-vnext .sba-vnext-hero-actions,
.customer-portal-shell.sba-vnext .sba-vnext-inline-actions,
.customer-portal-shell.sba-vnext .sba-vnext-filter-pills {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--sba-space-1);
}

.customer-portal-shell.sba-vnext .sba-vnext-hero-actions .secondary-button {
  min-height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  margin-top: var(--sba-space-2);
  padding: 12px;
  background: var(--sba-success-soft);
  border: 1px solid rgba(31, 138, 98, 0.14);
  border-radius: 15px;
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action.required {
  background: var(--sba-warning-soft);
  border-color: rgba(154, 105, 24, 0.18);
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--sba-success);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action.required > span {
  color: var(--sba-warning);
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action :where(small, strong, p) {
  display: block;
  margin: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action small {
  color: var(--sba-muted);
  font-size: 10px;
  font-weight: 740;
  text-transform: uppercase;
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action strong {
  margin-top: 2px;
  color: var(--sba-ink);
  font-size: 14px;
}

.customer-portal-shell.sba-vnext .sba-vnext-customer-action p {
  margin-top: 3px;
  color: var(--sba-muted);
  font-size: 12px;
}

.customer-portal-shell.sba-vnext .sba-vnext-next-step > .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: var(--sba-space-2);
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card > div {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card > .svg-icon:last-child {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  color: var(--sba-muted);
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-card.active {
  border-color: rgba(209, 8, 47, 0.24);
  box-shadow: 0 14px 34px rgba(209, 8, 47, 0.1);
}

.customer-portal-shell.sba-vnext .sba-vnext-quick-value {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: var(--sba-ink);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 740;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 4px;
  color: var(--sba-brand);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 680;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row__status small {
  color: var(--sba-muted);
  font-size: 11px;
  line-height: 1.3;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row.signal-danger .sba-vnext-project-row__progress > span {
  background: var(--sba-brand);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row.signal-attention .sba-vnext-project-row__progress > span {
  background: var(--sba-warning);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-row.signal-incomplete .sba-vnext-project-row__progress > span {
  background: var(--sba-planning);
}

.customer-portal-shell.sba-vnext .sba-vnext-archive-folders {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-portal-shell.sba-vnext .sba-vnext-filter-pills {
  justify-content: flex-end;
}

.customer-portal-shell.sba-vnext .sba-vnext-filter-pills > button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--sba-muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--sba-line);
  border-radius: 999px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
}

.customer-portal-shell.sba-vnext .sba-vnext-filter-pills > button.active {
  color: var(--sba-brand);
  background: var(--sba-danger-soft);
  border-color: rgba(209, 8, 47, 0.16);
}

.customer-portal-shell.sba-vnext .sba-vnext-filter-pills em {
  font-style: normal;
}

.customer-portal-shell.sba-vnext .sba-vnext-document-list .document-actions {
  position: relative;
  display: flex;
  width: 44px;
  min-width: 44px;
  justify-content: flex-end;
}

.customer-portal-shell.sba-vnext .sba-vnext-document-list .document-row-preview {
  padding: 0;
  border: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-document-list .document-row-preview:disabled {
  opacity: 0.62;
}

.customer-portal-shell.sba-vnext .sba-vnext-summary-grid > button {
  color: inherit;
  text-align: left;
}

.customer-portal-shell.sba-vnext .sba-vnext-postbox .messages-hub-grid,
.customer-portal-shell.sba-vnext .sba-vnext-postbox .split-grid {
  gap: var(--sba-space-2);
}

.customer-portal-shell.sba-vnext .sba-vnext-postbox :where(.message-focus-card, .panel) {
  background: var(--sba-surface-glass);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-panel);
  box-shadow: var(--sba-shadow-sm);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail > :where(.project-command-center, .project-flow-panel, .project-widget-grid, .project-widget-detail) {
  margin-top: var(--sba-space-2);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-command-center,
.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-flow-panel {
  border-color: var(--sba-line-light);
  box-shadow: var(--sba-shadow-sm);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-command-card {
  min-height: 142px;
  border-color: var(--sba-line);
  border-radius: var(--sba-radius-card);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 136px;
  height: 100%;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 5px 10px;
  padding: 14px;
  overflow: hidden;
  background: var(--sba-surface);
  border: 1px solid var(--sba-line-light);
  border-radius: var(--sba-radius-card);
  box-shadow: var(--sba-shadow-sm);
  text-align: left;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card.active {
  border-color: rgba(209, 8, 47, 0.22);
  box-shadow: 0 12px 30px rgba(209, 8, 47, 0.08);
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card .widget-icon {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > strong,
.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > em,
.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > small {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > strong {
  display: -webkit-box;
  grid-column: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > em {
  grid-column: 2;
  overflow: hidden;
  font-size: 17px;
  font-style: normal;
  font-weight: 730;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > small {
  display: -webkit-box;
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card .widget-subdetail {
  -webkit-line-clamp: 1;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card .widget-status-bar {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 3px;
}

.customer-portal-shell.sba-vnext :where(
  .sba-vnext-quick-card,
  .sba-vnext-summary-grid > button,
  .project-widget-card,
  .sba-vnext-list-row__action,
  .sba-vnext-filter-pills > button,
  .sba-vnext-project-row__action
) {
  min-height: 44px;
}

.customer-portal-shell.sba-vnext :where(
  .sba-vnext-start-grid,
  .sba-vnext-quick-grid,
  .sba-vnext-summary-grid,
  .sba-vnext-command-grid,
  .project-command-grid,
  .project-widget-grid,
  .sba-vnext-list
) > * {
  min-width: 0;
  max-width: 100%;
}

.customer-portal-shell.sba-vnext .customer-mobile-bottom-nav {
  display: none;
}

@media (min-width: 1180px) {
  .customer-portal-shell.sba-vnext {
    display: grid;
    grid-template-columns: var(--sba-sidebar-width) minmax(0, 1fr);
    gap: var(--sba-space-3);
    padding: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar {
    position: fixed;
    top: var(--sba-space-2);
    bottom: var(--sba-space-2);
    left: var(--sba-space-2);
    z-index: 100;
    display: flex !important;
    height: auto;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav {
    flex: 0 0 auto;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .nav-mode-toggle,
  .customer-portal-shell.sba-vnext > .portal-sidebar .sba-vnext-sidebar-footer,
  .customer-portal-shell.sba-vnext > .portal-sidebar .customer-sidebar-foot {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
  }

  .customer-portal-shell.sba-vnext > .portal-main {
    grid-column: 2;
    display: flex;
    min-height: calc(100dvh - (var(--sba-space-2) * 2));
    flex-direction: column;
    gap: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar {
    display: flex !important;
    position: sticky;
    top: var(--sba-space-2);
    z-index: 200;
  }

  .customer-portal-shell.sba-vnext .mobile-portal-topbar,
  .customer-portal-shell.sba-vnext .mobile-nav-drawer,
  .customer-portal-shell.sba-vnext .mobile-drawer-backdrop {
    display: none !important;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-command-card.cost {
    grid-column: span 2;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .customer-portal-shell.sba-vnext {
    --sba-sidebar-width: 88px;
    display: grid;
    grid-template-columns: var(--sba-sidebar-width) minmax(0, 1fr);
    gap: var(--sba-space-2);
    padding: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar {
    position: fixed;
    top: var(--sba-space-2);
    bottom: var(--sba-space-2);
    left: var(--sba-space-2);
    z-index: 100;
    display: flex !important;
    width: var(--sba-sidebar-width);
    min-width: var(--sba-sidebar-width);
    height: auto;
    flex-direction: column;
    padding: var(--sba-space-2) 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .logo-lockup {
    justify-content: center;
    margin: 0 0 var(--sba-space-3);
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .logo-lockup strong,
  .customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item {
    display: grid;
    grid-template-columns: 1fr;
    width: 52px;
    min-height: 52px;
    margin-inline: auto;
    padding: 0;
    place-items: center;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item.active::before {
    left: -12px;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .portal-nav-item > em {
    position: absolute;
    top: 2px;
    right: 1px;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar .nav-mode-toggle,
  .customer-portal-shell.sba-vnext > .portal-sidebar .sba-vnext-sidebar-footer,
  .customer-portal-shell.sba-vnext > .portal-sidebar .customer-sidebar-foot {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    margin: auto auto 0;
    padding: 0;
  }

  .customer-portal-shell.sba-vnext > .portal-main {
    grid-column: 2;
    min-width: 0;
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar {
    display: flex !important;
    position: sticky;
    top: var(--sba-space-2);
    z-index: 200;
  }

  .customer-portal-shell.sba-vnext .mobile-portal-topbar,
  .customer-portal-shell.sba-vnext .mobile-nav-drawer,
  .customer-portal-shell.sba-vnext .mobile-drawer-backdrop {
    display: none;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-page {
    padding-inline: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading :where(h1, h2) {
    font-size: 40px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero__content :where(h2, h3) {
    font-size: 36px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-next-step :where(h2, h3) {
    font-size: 30px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-protection-hero :where(h1, h2) {
    font-size: 44px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-start-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "property"
      "next"
      "projects"
      "quick";
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero {
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-quick-grid,
  .customer-portal-shell.sba-vnext .sba-vnext-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > :first-child {
    grid-column: auto;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row {
    grid-template-columns: 72px minmax(0, 1fr) 44px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__media {
    width: 72px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__status {
    grid-column: 2 / 3;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__action {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .customer-portal-shell.sba-vnext :is(.top-icon, .kebab) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-command-card.cost {
    grid-column: auto;
  }

  .customer-portal-shell.sba-vnext
    :is(.sba-vnext-command-grid, .project-command-grid)
    .project-command-card :is(h2, h3, h4, p, strong, small) {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar {
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: center;
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar .topbar-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar .greeting-chip,
  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar > .topbar-actions > [data-logout] {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar .greeting-chip,
  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar > .topbar-actions > [data-logout] {
    display: none;
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar .account-chip {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 4px;
  }

  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar .account-chip > div {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 767px) {
  .customer-portal-shell.sba-vnext {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .customer-portal-shell.sba-vnext > .portal-sidebar,
  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar {
    display: none;
  }

  .customer-portal-shell.sba-vnext > .portal-main {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-bottom: 24px;
  }

  .customer-portal-shell.sba-vnext .mobile-portal-topbar {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    z-index: 300;
    display: flex;
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    background: rgba(248, 249, 251, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(24, 29, 38, 0.055);
    -webkit-backdrop-filter: blur(24px) saturate(138%);
    backdrop-filter: blur(24px) saturate(138%);
  }

  .customer-portal-shell.sba-vnext .mobile-portal-topbar :where(button, a) {
    min-width: 44px;
    min-height: 44px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-page {
    width: 100%;
    padding: var(--sba-space-2) 12px var(--sba-space-4);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading :where(h1, h2) {
    font-size: 36px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading p {
    font-size: 14px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading > :where(button, a) {
    min-width: 44px;
    padding-inline: 12px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading > :where(button, a) {
    max-width: 100%;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-start-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "property"
      "next"
      "projects"
      "quick";
    gap: 12px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero__media {
    min-height: 196px;
    aspect-ratio: 16 / 10;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero__media::after {
    background: linear-gradient(0deg, rgba(24, 26, 30, 0.92), transparent 48%);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero__content {
    padding: var(--sba-space-3);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero__content :where(h2, h3) {
    font-size: 29px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-next-step {
    min-height: 260px;
    padding: var(--sba-space-3);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-next-step__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-section {
    padding: var(--sba-space-2);
    border-radius: 22px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-section__head {
    align-items: flex-start;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-section__head > :where(button, a) {
    min-width: 44px;
    padding-inline: 10px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    gap: 10px;
    min-height: 96px;
    padding: 10px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__media {
    width: 64px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__status {
    grid-column: 2 / 3;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__action {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__main p {
    -webkit-line-clamp: 1;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-quick-grid,
  .customer-portal-shell.sba-vnext .sba-vnext-summary-grid,
  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-quick-card {
    min-height: 132px;
    padding: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-quick-card__icon {
    width: 44px;
    height: 44px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-summary-grid > *,
  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > * {
    min-height: 144px;
    padding: var(--sba-space-2);
  }

  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > :first-child {
    grid-column: 1 / -1;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-list-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 72px;
    padding: 10px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-list-row__aside {
    grid-column: 2 / 3;
    text-align: left;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-list-row__action {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-right: 28px;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-filter-pills > button {
    flex: 0 0 auto;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext .sba-vnext-protection-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 312px;
    padding: var(--sba-space-3);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-protection-hero :where(h1, h2) {
    font-size: 38px;
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    grid-row: 3;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    margin: 0 10px calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px env(safe-area-inset-bottom, 0px);
    background: rgba(249, 250, 252, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(24, 29, 38, 0.18), inset 0 1px rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
    backdrop-filter: blur(28px) saturate(145%);
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav > button {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    color: var(--sba-muted);
    background: transparent;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.05;
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav > button.active {
    color: var(--sba-brand);
    background: var(--sba-danger-soft);
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav > button :where(svg, .svg-icon) {
    width: 21px;
    height: 21px;
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav > button > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-portal-shell.sba-vnext .mobile-nav-drawer {
    max-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .customer-portal-shell.sba-vnext .mobile-drawer-item,
  .customer-portal-shell.sba-vnext .mobile-expert-toggle,
  .customer-portal-shell.sba-vnext .mobile-logout-button,
  .customer-portal-shell.sba-vnext .mobile-drawer-close {
    min-height: 44px;
  }

  .customer-portal-shell.sba-vnext :is(
    .mobile-menu-button,
    .mobile-bell-button,
    .mobile-avatar-button,
    .mobile-drawer-close,
    .top-icon,
    .kebab
  ) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .customer-portal-shell.sba-vnext .sba-vnext-quick-grid,
  .customer-portal-shell.sba-vnext .sba-vnext-summary-grid,
  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext :is(.sba-vnext-command-grid, .project-command-grid) > :first-child {
    grid-column: auto;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-property-hero__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-heading :where(h1, h2) {
    font-size: 32px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-protection-hero :where(h1, h2) {
    font-size: 34px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row {
    grid-template-columns: 56px minmax(0, 1fr) 44px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-row__media {
    width: 56px;
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav {
    right: auto;
    left: auto;
    margin-right: 6px;
    margin-left: 6px;
  }

  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav > button {
    font-size: 10px;
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .customer-portal-shell.sba-vnext > .portal-sidebar,
  .customer-portal-shell.sba-vnext > .portal-main > .portal-topbar,
  .customer-portal-shell.sba-vnext .sba-vnext-glass,
  .customer-portal-shell.sba-vnext .sba-vnext-section,
  .customer-portal-shell.sba-vnext .mobile-portal-topbar,
  .customer-portal-shell.sba-vnext .customer-mobile-bottom-nav {
    background: rgba(250, 250, 251, 0.98);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-protection-hero__status {
    background: rgba(255, 255, 255, 0.13);
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-portal-shell.sba-vnext *,
  .customer-portal-shell.sba-vnext *::before,
  .customer-portal-shell.sba-vnext *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* v0.5.9: customer construction calendar and contract-cost cockpit */
.customer-portal-shell.sba-vnext .project-command-grid {
  grid-auto-flow: row dense;
}

.customer-portal-shell.sba-vnext .project-command-grid .project-cost-dashboard {
  grid-column: span 2;
  display: block;
  min-height: 0;
  padding: clamp(18px, 2vw, 24px);
  color: var(--sba-ink);
  background: rgba(255, 255, 255, 0.88);
}

.customer-portal-shell.sba-vnext .project-cost-dashboard-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.customer-portal-shell.sba-vnext .project-cost-dashboard-head > div {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .project-cost-dashboard-head strong {
  margin-top: 4px;
  font-size: clamp(19px, 1.7vw, 25px);
}

.customer-portal-shell.sba-vnext .project-cost-dashboard-head small {
  max-width: 62ch;
}

.customer-portal-shell.sba-vnext .project-cost-ring {
  --cost-progress: 0deg;
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(#31343a var(--cost-progress), rgba(28, 30, 35, 0.1) 0);
}

.customer-portal-shell.sba-vnext .project-cost-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(15, 18, 28, 0.06);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.98);
}

.customer-portal-shell.sba-vnext .project-cost-ring :is(b, span) {
  position: relative;
  z-index: 1;
}

.customer-portal-shell.sba-vnext .project-cost-ring b {
  font-size: 1rem;
  line-height: 1;
}

.customer-portal-shell.sba-vnext .project-cost-ring span {
  margin-top: 3px;
  color: var(--sba-muted);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: none;
}

.customer-portal-shell.sba-vnext .project-cost-balance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.customer-portal-shell.sba-vnext .project-cost-balance > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(15, 18, 28, 0.07);
  border-radius: 15px;
  background: rgba(244, 245, 247, 0.72);
}

.customer-portal-shell.sba-vnext .project-cost-balance span {
  color: var(--sba-muted);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.customer-portal-shell.sba-vnext .project-cost-balance strong {
  margin-top: 6px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.18;
}

.customer-portal-shell.sba-vnext .project-cost-chart {
  margin-top: 14px;
}

.customer-portal-shell.sba-vnext .project-cost-track {
  display: flex;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 30, 35, 0.08);
}

.customer-portal-shell.sba-vnext .project-cost-track > span {
  flex: 0 0 var(--segment-width);
  min-width: 0;
  height: 100%;
}

.customer-portal-shell.sba-vnext .segment-confirmed { background: #2e6a51; }
.customer-portal-shell.sba-vnext .segment-reported { background: #739181; }
.customer-portal-shell.sba-vnext .segment-credits { background: #aeb8b2; }
.customer-portal-shell.sba-vnext .segment-remaining { background: #c8cbd0; }

.customer-portal-shell.sba-vnext .project-cost-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.customer-portal-shell.sba-vnext .project-cost-legend > span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 1px 6px;
  min-width: 0;
  color: var(--sba-ink-soft);
  font-size: 0.68rem;
  text-transform: none;
}

.customer-portal-shell.sba-vnext .project-cost-legend i {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #aeb8b2;
}

.customer-portal-shell.sba-vnext .project-cost-legend .legend-confirmed i { background: #2e6a51; }
.customer-portal-shell.sba-vnext .project-cost-legend .legend-reported i { background: #739181; }
.customer-portal-shell.sba-vnext .project-cost-legend .legend-remaining i { background: #c8cbd0; }

.customer-portal-shell.sba-vnext .project-cost-legend :is(b, small) {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
}

.customer-portal-shell.sba-vnext .project-cost-pending {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(160, 112, 43, 0.09);
  color: #725329;
  font-size: 0.72rem;
}

.customer-portal-shell.sba-vnext .project-cost-pending .svg-icon {
  width: 15px;
  vertical-align: -3px;
}

.customer-portal-shell.sba-vnext .project-calendar-week {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 28, 0.09);
  border-radius: 22px;
  background: rgba(250, 250, 251, 0.78);
  box-shadow: 0 12px 32px rgba(15, 18, 28, 0.055);
  animation: sba-calendar-reveal 260ms ease-out both;
}

.customer-portal-shell.sba-vnext .project-calendar-week-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 18, 28, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.customer-portal-shell.sba-vnext .project-calendar-week-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.customer-portal-shell.sba-vnext .project-calendar-week-heading > div:last-child {
  justify-content: flex-end;
  color: var(--sba-muted);
  font-size: 0.72rem;
}

.customer-portal-shell.sba-vnext .project-calendar-week-heading > div:first-child > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(28, 30, 35, 0.07);
  color: var(--sba-ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.customer-portal-shell.sba-vnext .project-calendar-week-heading strong {
  min-width: 0;
  font-size: 0.83rem;
  overflow-wrap: break-word;
}

.customer-portal-shell.sba-vnext .project-calendar-week-heading .svg-icon {
  width: 15px;
}

.customer-portal-shell.sba-vnext .project-calendar-desktop {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.customer-portal-shell.sba-vnext .project-calendar-day-head,
.customer-portal-shell.sba-vnext .project-calendar-untimed-row {
  display: grid;
  grid-template-columns: 70px repeat(7, minmax(120px, 1fr));
  min-width: 910px;
}

.customer-portal-shell.sba-vnext .project-calendar-day-head > :first-child,
.customer-portal-shell.sba-vnext .project-calendar-untimed-row > :first-child {
  border-right: 1px solid rgba(15, 18, 28, 0.08);
}

.customer-portal-shell.sba-vnext .project-calendar-day-head > div {
  min-width: 0;
  padding: 9px 6px;
  border-left: 1px solid rgba(15, 18, 28, 0.055);
  text-align: center;
}

.customer-portal-shell.sba-vnext .project-calendar-day-head > div span,
.customer-portal-shell.sba-vnext .project-calendar-day-head > div b {
  display: block;
}

.customer-portal-shell.sba-vnext .project-calendar-day-head > div span {
  color: var(--sba-ink-soft);
  font-size: 0.7rem;
  font-weight: 760;
}

.customer-portal-shell.sba-vnext .project-calendar-day-head > div b {
  margin-top: 2px;
  color: var(--sba-brand);
  font-size: 0.62rem;
}

.customer-portal-shell.sba-vnext .project-calendar-day-head > div.is-today,
.customer-portal-shell.sba-vnext .project-calendar-untimed-row > div.is-today,
.customer-portal-shell.sba-vnext .project-calendar-day-column.is-today {
  background: rgba(210, 11, 47, 0.025);
}

.customer-portal-shell.sba-vnext .project-calendar-corner,
.customer-portal-shell.sba-vnext .project-calendar-untimed-row > span {
  display: grid;
  place-content: center;
  padding: 8px 4px;
  color: var(--sba-muted);
  font-size: 0.64rem;
  font-weight: 760;
  text-align: center;
}

.customer-portal-shell.sba-vnext .project-calendar-untimed-row {
  border-top: 1px solid rgba(15, 18, 28, 0.06);
  border-bottom: 1px solid rgba(15, 18, 28, 0.08);
  background: rgba(245, 246, 248, 0.68);
}

.customer-portal-shell.sba-vnext .project-calendar-untimed-row > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 5px;
  border-left: 1px solid rgba(15, 18, 28, 0.055);
}

.customer-portal-shell.sba-vnext .project-calendar-untimed-entry {
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 28, 0.08);
  border-left: 3px solid #777d86;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sba-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-portal-shell.sba-vnext .project-calendar-untimed-entry :is(strong, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .project-calendar-untimed-entry strong { font-size: 0.67rem; }
.customer-portal-shell.sba-vnext .project-calendar-untimed-entry small { margin-top: 2px; color: var(--sba-muted); font-size: 0.6rem; }

.customer-portal-shell.sba-vnext .project-calendar-grid {
  display: grid;
  grid-template-columns: 70px minmax(840px, 1fr);
  min-width: 910px;
}

.customer-portal-shell.sba-vnext .project-calendar-time-axis {
  position: relative;
  height: var(--calendar-height);
  border-right: 1px solid rgba(15, 18, 28, 0.08);
  background: rgba(247, 248, 250, 0.74);
}

.customer-portal-shell.sba-vnext .project-calendar-time-axis > span {
  position: absolute;
  top: var(--hour-top);
  right: 8px;
  transform: translateY(-50%);
  color: var(--sba-muted);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.customer-portal-shell.sba-vnext .project-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
}

.customer-portal-shell.sba-vnext .project-calendar-day-column {
  position: relative;
  min-width: 0;
  height: var(--calendar-height);
  border-left: 1px solid rgba(15, 18, 28, 0.055);
  background: rgba(255, 255, 255, 0.55);
}

.customer-portal-shell.sba-vnext .project-calendar-hour-line {
  position: absolute;
  top: var(--hour-top);
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(15, 18, 28, 0.065);
}

.customer-portal-shell.sba-vnext .project-calendar-event {
  position: absolute;
  z-index: 2;
  top: var(--event-top);
  left: calc((100% / var(--event-lanes)) * var(--event-lane) + 3px);
  width: calc((100% / var(--event-lanes)) - 6px);
  height: var(--event-height);
  min-height: 44px;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 28, 0.1);
  border-left: 3px solid #737a84;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 7px 18px rgba(15, 18, 28, 0.08);
  color: var(--sba-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.customer-portal-shell.sba-vnext .project-calendar-event:hover,
.customer-portal-shell.sba-vnext .project-calendar-event:focus-visible {
  z-index: 4;
  transform: translateY(-1px);
  border-color: rgba(15, 18, 28, 0.2);
  box-shadow: 0 12px 25px rgba(15, 18, 28, 0.13);
}

.customer-portal-shell.sba-vnext.admin-preview-surface :is(
  .project-calendar-event,
  .project-calendar-untimed-entry,
  .project-calendar-agenda-entry
):disabled {
  opacity: 1;
  cursor: default;
}

.customer-portal-shell.sba-vnext .project-calendar-event-time {
  color: var(--sba-muted);
  font-size: 0.59rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.customer-portal-shell.sba-vnext .project-calendar-event strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-portal-shell.sba-vnext .project-calendar-event :is(small, em) {
  overflow: hidden;
  color: var(--sba-muted);
  font-size: 0.58rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext :is(.project-calendar-event, .project-calendar-untimed-entry).tone-confirmed { border-left-color: #587187; }
.customer-portal-shell.sba-vnext :is(.project-calendar-event, .project-calendar-untimed-entry).tone-active { border-left-color: #a76b21; }
.customer-portal-shell.sba-vnext :is(.project-calendar-event, .project-calendar-untimed-entry).tone-done { border-left-color: #347457; }
.customer-portal-shell.sba-vnext :is(.project-calendar-event, .project-calendar-untimed-entry).tone-delayed { border-left-color: #a76b21; }
.customer-portal-shell.sba-vnext :is(.project-calendar-event, .project-calendar-untimed-entry).impact-blocker { border-left-color: #bf243b; }

.customer-portal-shell.sba-vnext .project-calendar-agenda {
  display: none;
}

.customer-portal-shell.sba-vnext .project-calendar-hint {
  margin: 0;
  padding: 10px 14px 12px;
  color: var(--sba-muted);
  font-size: 0.68rem;
}

.customer-portal-shell.sba-vnext .project-flow-row.is-calendar-focus {
  outline: 3px solid rgba(210, 11, 47, 0.18);
  outline-offset: 3px;
  box-shadow: 0 15px 35px rgba(15, 18, 28, 0.12);
}

@keyframes sba-calendar-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1366px) {
  .customer-portal-shell.sba-vnext .project-command-grid .project-cost-dashboard {
    grid-column: span 2;
  }

  .customer-portal-shell.sba-vnext .project-cost-balance,
  .customer-portal-shell.sba-vnext .project-cost-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1366px) {
  .customer-portal-shell.sba-vnext .project-calendar-desktop {
    display: none;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-day {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 18, 28, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(15, 18, 28, 0.07);
    color: var(--sba-ink-soft);
    font-size: 0.72rem;
    font-weight: 780;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-day > header b {
    color: var(--sba-brand);
    font-size: 0.62rem;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-day > div {
    display: grid;
    gap: 5px;
    padding: 7px;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-day > div > p {
    margin: 0;
    padding: 10px;
    color: var(--sba-muted);
    font-size: 0.7rem;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(15, 18, 28, 0.08);
    border-left: 3px solid #737a84;
    border-radius: 11px;
    background: rgba(248, 249, 250, 0.94);
    color: var(--sba-ink);
    font: inherit;
    text-align: left;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry time {
    color: var(--sba-ink-soft);
    font-size: 0.65rem;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry span {
    min-width: 0;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry :is(strong, small) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry strong { font-size: 0.72rem; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry small { margin-top: 2px; color: var(--sba-muted); font-size: 0.63rem; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry em { color: var(--sba-muted); font-size: 0.62rem; font-style: normal; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry.tone-confirmed { border-left-color: #587187; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry.tone-active { border-left-color: #a76b21; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry.tone-done { border-left-color: #347457; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry.tone-delayed { border-left-color: #a76b21; }
  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry.impact-blocker { border-left-color: #bf243b; }

  .customer-portal-shell.sba-vnext .project-flow-panel .project-flow-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
  }

  .customer-portal-shell.sba-vnext .project-flow-panel .project-timeline-mode {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .customer-portal-shell.sba-vnext .project-command-grid .project-cost-dashboard {
    grid-column: 1;
  }

  .customer-portal-shell.sba-vnext .project-cost-dashboard-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .project-cost-ring {
    grid-column: 1 / -1;
    width: 100%;
    height: 9px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #31343a var(--cost-percent), rgba(28, 30, 35, 0.1) 0);
  }

  .customer-portal-shell.sba-vnext .project-cost-ring::before,
  .customer-portal-shell.sba-vnext .project-cost-ring :is(b, span) {
    display: none;
  }

  .customer-portal-shell.sba-vnext .project-cost-balance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext .project-cost-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .project-calendar-week-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-portal-shell.sba-vnext .project-calendar-week-heading > div:last-child {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .project-calendar-agenda-entry em {
    grid-column: 2;
  }

  .customer-portal-shell.sba-vnext .project-flow-panel .project-flow-actions {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .customer-portal-shell.sba-vnext .project-flow-panel .project-flow-actions > * {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .customer-portal-shell.sba-vnext .project-cost-balance {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-portal-shell.sba-vnext .project-calendar-week {
    animation: none;
  }
}

/* Project planner V2: scoped calendar navigation, truthful live state and customer proposals. */
.customer-portal-shell.sba-vnext .project-planner-livebar {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(247, 248, 250, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(15, 18, 28, 0.055);
  -webkit-backdrop-filter: blur(20px) saturate(116%);
  backdrop-filter: blur(20px) saturate(116%);
}

.customer-portal-shell.sba-vnext .project-planner-live-status,
.customer-portal-shell.sba-vnext .project-planner-toolbar,
.customer-portal-shell.sba-vnext .project-planner-navigation,
.customer-portal-shell.sba-vnext .project-live-time {
  min-width: 0;
}

.customer-portal-shell.sba-vnext .project-planner-live-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.customer-portal-shell.sba-vnext .project-live-button {
  min-width: 78px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(15, 18, 28, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--sba-ink-soft);
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0;
  cursor: pointer;
}

.customer-portal-shell.sba-vnext .project-live-button.is-live {
  border-color: rgba(202, 23, 52, 0.24);
  color: #b20f2c;
  box-shadow: 0 7px 18px rgba(202, 23, 52, 0.08);
}

.customer-portal-shell.sba-vnext .project-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a8adb5;
}

.customer-portal-shell.sba-vnext .project-live-button.is-live .project-live-dot {
  background: #d10b2f;
  box-shadow: 0 0 0 0 rgba(209, 11, 47, 0.34);
  animation: sba-live-pulse 1.8s ease-out infinite;
}

.customer-portal-shell.sba-vnext .project-live-time {
  display: grid;
  gap: 2px;
}

.customer-portal-shell.sba-vnext .project-live-time time {
  color: var(--sba-ink);
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.customer-portal-shell.sba-vnext .project-live-time small,
.customer-portal-shell.sba-vnext .project-live-sync {
  color: var(--sba-muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.customer-portal-shell.sba-vnext .project-live-sync {
  max-width: 170px;
  text-align: right;
}

.customer-portal-shell.sba-vnext .project-planner-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.customer-portal-shell.sba-vnext .project-planner-toolbar.is-details {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer-portal-shell.sba-vnext .project-planner-navigation,
.customer-portal-shell.sba-vnext .project-timeline-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(15, 18, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.customer-portal-shell.sba-vnext :is(.project-planner-nav-button, .project-planner-today),
.customer-portal-shell.sba-vnext .project-timeline-mode > button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--sba-ink-soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: normal;
  cursor: pointer;
}

.customer-portal-shell.sba-vnext .project-planner-nav-button {
  padding: 0;
  font-size: 1.25rem;
}

.customer-portal-shell.sba-vnext .project-timeline-mode > button.active {
  background: rgba(28, 30, 35, 0.92);
  color: #fff;
  box-shadow: 0 7px 18px rgba(15, 18, 28, 0.12);
}

.customer-portal-shell.sba-vnext .project-planner-period {
  min-width: 0;
  color: var(--sba-ink);
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
}

.customer-portal-shell.sba-vnext .project-calendar-period-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 44px 18px;
  color: var(--sba-muted);
  text-align: center;
}

.customer-portal-shell.sba-vnext .project-calendar-period-empty strong {
  color: var(--sba-ink);
  font-size: 0.9rem;
}

.customer-portal-shell.sba-vnext .project-calendar-now-line {
  position: absolute;
  z-index: 5;
  top: var(--now-top);
  right: 0;
  left: 0;
  height: 2px;
  background: #d10b2f;
  pointer-events: none;
}

.customer-portal-shell.sba-vnext .project-calendar-now-line i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d10b2f;
  transform: translateY(-50%);
}

.customer-portal-shell.sba-vnext .project-calendar-now-line b {
  position: absolute;
  top: -9px;
  right: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #d10b2f;
  color: #fff;
  font-size: 0.55rem;
}

.customer-portal-shell.sba-vnext .project-month-calendar {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 28, 0.09);
  border-radius: 20px;
  background: rgba(250, 250, 251, 0.78);
  box-shadow: 0 12px 32px rgba(15, 18, 28, 0.055);
}

.customer-portal-shell.sba-vnext .project-month-weekdays,
.customer-portal-shell.sba-vnext .project-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.customer-portal-shell.sba-vnext .project-month-weekdays {
  border-bottom: 1px solid rgba(15, 18, 28, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.customer-portal-shell.sba-vnext .project-month-weekdays span {
  padding: 10px 6px;
  color: var(--sba-muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.customer-portal-shell.sba-vnext .project-month-day {
  min-width: 0;
  min-height: 128px;
  padding: 7px;
  overflow: hidden;
  border-right: 1px solid rgba(15, 18, 28, 0.055);
  border-bottom: 1px solid rgba(15, 18, 28, 0.055);
  background: rgba(255, 255, 255, 0.56);
}

.customer-portal-shell.sba-vnext .project-month-day.is-outside {
  background: rgba(244, 245, 247, 0.56);
  opacity: 0.62;
}

.customer-portal-shell.sba-vnext .project-month-day.is-today {
  background: rgba(209, 11, 47, 0.04);
  box-shadow: inset 0 0 0 1px rgba(209, 11, 47, 0.16);
}

.customer-portal-shell.sba-vnext .project-month-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--sba-ink-soft);
  font-size: 0.63rem;
  font-weight: 780;
}

.customer-portal-shell.sba-vnext .project-month-day > header b {
  color: var(--sba-brand);
  font-size: 0.55rem;
}

.customer-portal-shell.sba-vnext .project-month-day > div {
  display: grid;
  gap: 4px;
}

.customer-portal-shell.sba-vnext .project-month-event {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1px 5px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 28, 0.08);
  border-left: 3px solid #737a84;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sba-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-portal-shell.sba-vnext .project-month-event time {
  color: var(--sba-muted);
  font-size: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.customer-portal-shell.sba-vnext .project-month-event :is(strong, small) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-portal-shell.sba-vnext .project-month-event strong {
  font-size: 0.62rem;
}

.customer-portal-shell.sba-vnext .project-month-event small {
  grid-column: 2;
  color: var(--sba-muted);
  font-size: 0.55rem;
}

.customer-portal-shell.sba-vnext .project-month-more,
.customer-portal-shell.sba-vnext .project-month-empty {
  color: var(--sba-muted);
  font-size: 0.56rem;
}

.customer-portal-shell.sba-vnext :is(
  .project-calendar-event,
  .project-calendar-untimed-entry,
  .project-calendar-agenda-entry,
  .project-month-event,
  .project-flow-row
).is-proposal {
  border-left-color: #4f6680;
  background: rgba(238, 243, 248, 0.95);
}

.customer-portal-shell.sba-vnext .flow-proposal-label {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(79, 102, 128, 0.1);
  color: #455d77;
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1.25;
}

.customer-portal-shell.sba-vnext .flow-proposal-label .svg-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

/* Keep project widgets legible without breaking German words at narrower widths. */
.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > :is(strong, em, small) {
  overflow-wrap: break-word;
  word-break: normal;
}

.customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card > em {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes sba-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(209, 11, 47, 0.34); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(209, 11, 47, 0); }
}

@media (max-width: 1480px) {
  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext .project-planner-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .project-planner-toolbar .project-timeline-mode {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .customer-portal-shell.sba-vnext .project-planner-toolbar .project-timeline-mode > button {
    flex: 1 1 0;
  }
}

@media (max-width: 900px) {
  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-shell.sba-vnext .project-planner-live-status {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .project-live-sync {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }

  .customer-portal-shell.sba-vnext .project-month-calendar {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .customer-portal-shell.sba-vnext .project-month-weekdays,
  .customer-portal-shell.sba-vnext .project-month-grid {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .sba-vnext-project-detail .project-widget-card {
    min-height: 116px;
  }

  .customer-portal-shell.sba-vnext .project-planner-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-shell.sba-vnext .project-planner-navigation,
  .customer-portal-shell.sba-vnext .project-timeline-mode {
    width: 100%;
  }

  .customer-portal-shell.sba-vnext .project-planner-navigation > *,
  .customer-portal-shell.sba-vnext .project-timeline-mode > button {
    flex: 1 1 0;
  }

  .customer-portal-shell.sba-vnext .project-planner-period {
    order: -1;
    text-align: left;
  }

  .customer-portal-shell.sba-vnext .project-live-time time {
    font-size: 0.76rem;
  }

  .customer-portal-shell.sba-vnext .project-month-weekdays,
  .customer-portal-shell.sba-vnext .project-month-grid {
    min-width: 700px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-portal-shell.sba-vnext .project-live-button.is-live .project-live-dot {
    animation: none;
  }
}
