.status-shell {
  padding-bottom: 80px;
}

.portal-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 27, 62, 0.72);
}

.portal-welcome-overlay[hidden] {
  display: none;
}

.portal-welcome-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.portal-welcome-card .brand-logo {
  height: 34px;
  margin-bottom: 18px;
}

.portal-welcome-card h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #0d1b3e;
  margin: 0 0 12px;
}

.portal-welcome-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #384259;
  margin: 0 0 22px;
  white-space: pre-line;
  text-align: left;
}

.portal-welcome-card button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: #008037;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.portal-welcome-card button:hover {
  filter: brightness(1.06);
}

.cross-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 9px 16px;
  border: 1px solid rgba(0, 128, 55, 0.25);
  border-radius: 999px;
  background: #f0faf4;
  color: #008037;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.cross-nav-link[hidden] {
  display: none;
}

.ask-question-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ask-question-fab {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #008037;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 128, 55, 0.35);
}

.ask-question-fab:hover {
  filter: brightness(1.06);
}

.ask-question-panel {
  width: min(320px, calc(100vw - 36px));
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.ask-question-panel[hidden] {
  display: none;
}

.aqp-head {
  font-size: 0.98rem;
  font-weight: 900;
  color: #0d1b3e;
  margin-bottom: 8px;
}

.ask-question-panel textarea {
  width: 100%;
  border: 1px solid #d7dbe4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 10px;
}

.aqp-send {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #008037;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.aqp-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.aqp-status {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.4;
}

.aqp-history {
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.aqp-history-item {
  padding: 9px 0;
  border-top: 1px solid #e7e9ee;
}

.aqp-history-item:first-child {
  border-top: none;
}

.aqp-history-q {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0d1b3e;
}

.aqp-history-a {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #1d2330;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 7px 9px;
}

.aqp-history-a b {
  color: #008037;
}

.aqp-history-pending {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #9a8a2e;
}

.status-view-mode-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  border: 1px solid rgba(0, 128, 55, 0.18);
  border-left: 6px solid #008037;
  border-radius: 8px;
  padding: 13px 16px;
  background:
    linear-gradient(135deg, rgba(236, 249, 242, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 14px 34px rgba(13, 27, 62, 0.08);
}

.status-view-mode-label[hidden] {
  display: none;
}

.canceled-file-banner {
  margin: 0 0 14px;
  border: 1px solid rgba(180, 120, 0, 0.3);
  border-left: 6px solid #b45300;
  border-radius: 8px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #fff7e6, #fffdf5);
  box-shadow: 0 14px 34px rgba(13, 27, 62, 0.08);
}

.canceled-file-banner[hidden] {
  display: none;
}

.canceled-file-banner strong,
.canceled-file-banner span {
  display: block;
}

.canceled-file-banner strong {
  color: #7a4a00;
  font-size: 0.92rem;
  font-weight: 900;
}

.canceled-file-banner span {
  margin-top: 4px;
  color: #5b4a00;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.status-view-mode-label strong,
.status-view-mode-label span {
  display: block;
}

.status-view-mode-label strong {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-view-mode-label span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.status-view-mode-label nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-view-mode-label a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(0, 128, 55, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--green);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.status-view-mode-label a:first-child {
  color: #fff;
  background: var(--green);
}

.status-view-mode-label.sandbox-mode {
  border-color: rgba(124, 58, 237, 0.22);
  border-left-color: #7c3aed;
  background:
    radial-gradient(circle at 92% 18%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(135deg, #f5f3ff, #ffffff 58%, #eef2ff);
}

.status-view-mode-label.sandbox-mode strong,
.status-view-mode-label.sandbox-mode span {
  color: #3b0764;
}

.status-view-mode-label.sandbox-mode a:first-child {
  background: #7c3aed;
}

.status-view-mode-label.client-pov-mode {
  border-color: rgba(13, 148, 136, 0.22);
  border-left-color: #0d9488;
  background:
    radial-gradient(circle at 92% 18%, rgba(13, 148, 136, 0.12), transparent 34%),
    linear-gradient(135deg, #ecfdf5, #ffffff 58%, #f0fdfa);
}

.status-view-mode-label.client-pov-mode strong,
.status-view-mode-label.client-pov-mode span {
  color: #0f4c4a;
}

.status-view-mode-label.client-pov-mode a:first-child {
  background: #0d9488;
}

.status-view-mode-label.no-client-mode {
  border-color: rgba(217, 119, 6, 0.3);
  border-left-color: #d97706;
  background:
    radial-gradient(circle at 92% 18%, rgba(217, 119, 6, 0.14), transparent 34%),
    linear-gradient(135deg, #fffbeb, #ffffff 58%, #fff7ed);
}

.status-view-mode-label.no-client-mode strong,
.status-view-mode-label.no-client-mode span {
  color: #78350f;
}

.status-view-mode-label.no-client-mode a:first-child {
  background: #d97706;
}

.status-hero {
  margin-bottom: 22px;
  padding: clamp(18px, 2.7vw, 30px);
  border-color: rgba(0, 128, 55, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 48%, rgba(255, 255, 255, 0.5) 100%),
    url("../assets/portal-hero.png") right center / auto 118% no-repeat,
    #fff;
}

.admin-return-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: #008037;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-return-link[hidden] {
  display: none;
}

.status-hero .hero-copy {
  max-width: 100%;
}

.progress-card-link {
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.progress-card-link:hover {
  border-color: rgba(0, 128, 55, 0.4);
  box-shadow: 0 10px 26px rgba(0, 128, 55, 0.14);
}

.progress-card-cta {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-hero .signal-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 980px);
}

.status-hero .signal-row span {
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 6px 10px 6px 7px;
  box-shadow: 0 8px 22px rgba(13, 27, 62, 0.06);
  font-size: 0.92rem;
}

.status-hero .signal-row b {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.status-jump-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(13, 27, 62, 0.08);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.status-jump-nav::-webkit-scrollbar {
  display: none;
}

.status-jump-nav span,
.status-jump-nav a {
  white-space: nowrap;
}

.status-jump-nav span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-jump-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--navy);
  background: #f8fafc;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.status-jump-nav a:first-of-type {
  color: #fff;
  background: var(--green);
}

.status-jump-nav a:focus-visible,
.status-jump-nav a:hover {
  border-color: rgba(0, 128, 55, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 128, 55, 0.1);
}

.next-step-panel,
.custom-note-panel,
.status-card {
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.needs-panel {
  margin-top: 4px;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 231, 0, 0.55);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--warn-bg), #fff 68%);
  box-shadow: var(--shadow-soft);
}

.needs-panel h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
}

.needs-panel > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.needs-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.needs-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font-weight: 900;
}

.needs-tag {
  border-radius: 999px;
  padding: 2px 9px;
  background: #edf1f6;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.needs-more {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.needs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.next-step-panel,
.status-card {
  position: relative;
  overflow: hidden;
}

.next-step-panel::before,
.status-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--green), rgba(255, 231, 0, 0.9));
}

.custom-note-panel {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-color: rgba(0, 128, 55, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 244, 0.95)),
    #fff;
}

.custom-note-panel h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.28rem, 2.5vw, 1.85rem);
  line-height: 1.08;
}

.custom-note-panel p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.55;
}

.custom-note-panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
}

.next-step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 3.2vw, 34px);
  background: linear-gradient(135deg, #ffffff, #f4fbf7 62%, #fffbe6);
}

.next-step-panel h2,
.status-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
}

.next-step-panel p,
.status-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.next-step-actions,
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-primary,
.status-secondary {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}

.status-primary {
  color: #fff;
  background: var(--green);
}

.status-secondary {
  color: var(--navy);
  background: #edf1f6;
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 24px;
  margin-top: 24px;
}

.status-main,
.status-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.status-card {
  padding: clamp(22px, 2.6vw, 30px);
}

.milestone-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 231, 0, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(0, 128, 55, 0.1), rgba(255, 231, 0, 0.14), rgba(13, 27, 62, 0.05)),
    #fbfcfe;
}

.journey-map::before {
  position: absolute;
  right: 9%;
  left: 9%;
  top: 37px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 128, 55, 0.72), rgba(255, 231, 0, 0.78), rgba(13, 27, 62, 0.16));
}

.journey-phase {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.journey-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #e7ebf1;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -5px 8px rgba(13, 27, 62, 0.12),
    0 8px 16px rgba(13, 27, 62, 0.12);
  font-weight: 900;
}

.journey-phase.done .journey-number,
.journey-phase.active .journey-number {
  color: #fff;
  background: var(--green);
}

.journey-phase.active {
  border-color: rgba(0, 128, 55, 0.28);
  box-shadow: 0 12px 24px rgba(0, 128, 55, 0.1);
}

.journey-label {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-phase strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.18;
}

.journey-phase small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.milestone {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.milestone.active {
  border-color: rgba(0, 128, 55, 0.2);
  background: #f0faf4;
}

.milestone.done {
  background: #f6fbf8;
}

.milestone-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #e7ebf1;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -5px 8px rgba(13, 27, 62, 0.12),
    0 8px 16px rgba(13, 27, 62, 0.12);
  font-weight: 900;
}

.milestone.done .milestone-dot,
.milestone.active .milestone-dot {
  color: #fff;
  background: var(--green);
}

.milestone strong,
.milestone small {
  display: block;
}

.milestone small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--navy);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.snapshot-grid,
.team-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.snapshot-item,
.team-item {
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.snapshot-item span,
.team-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot-item strong,
.team-item strong {
  color: var(--navy);
  line-height: 1.25;
}

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

.insurance-choice {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  min-height: 92px;
  padding: 16px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.insurance-choice span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
}

.insurance-choice.selected {
  border-color: rgba(0, 128, 55, 0.28);
  background: #f0faf4;
  box-shadow: inset 0 0 0 2px rgba(0, 128, 55, 0.08);
}

.insurance-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.insurance-form label {
  display: grid;
  gap: 7px;
}

.insurance-form .span-2 {
  grid-column: 1 / -1;
}

.insurance-form label span {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
}

.insurance-form input,
.insurance-form textarea {
  width: 100%;
}

.saved-note {
  margin-top: 12px;
  color: var(--green);
  font-weight: 900;
}

.admin-preview {
  border-color: rgba(255, 231, 0, 0.74);
  background: linear-gradient(180deg, #fffdf0, #ffffff);
}

.admin-controls {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-controls label {
  display: grid;
  gap: 7px;
}

#dialogBody {
  color: var(--muted);
  line-height: 1.45;
}

.calendar-frame {
  display: block;
  width: min(760px, 100%);
  height: min(72vh, 720px);
  border: 1px solid rgba(13, 27, 62, 0.1);
  border-radius: 8px;
}

@media (min-width: 900px) {
  .status-shell {
    width: min(1320px, calc(100% - 72px));
    padding-top: 26px;
  }

  .status-hero {
    min-height: 300px;
  }

  .status-hero .progress-card {
    width: min(620px, 100%);
  }

  .status-hero .hero-subtitle {
    max-width: 680px;
  }

  .status-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .status-shell {
    width: min(100% - 18px, 520px);
    padding-top: 8px;
  }

  .next-step-panel,
  .status-layout,
  .status-view-mode-label,
  .snapshot-grid,
  .insurance-choice-grid,
  .insurance-form {
    grid-template-columns: 1fr;
  }

  .status-view-mode-label nav {
    justify-content: flex-start;
  }

  .status-hero .signal-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .status-hero .signal-row::-webkit-scrollbar {
    display: none;
  }

  .status-hero .signal-row span {
    flex: 0 0 auto;
    min-height: 36px;
    font-size: 0.84rem;
  }

  .status-card,
  .next-step-panel,
  .custom-note-panel {
    padding: 18px;
  }

  .status-jump-nav {
    top: 4px;
    margin-inline: -1px;
    margin-bottom: 14px;
    padding: 8px;
  }

  .status-jump-nav a {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.95rem;
  }

  .next-step-panel {
    gap: 16px;
    margin-top: 14px;
  }

  .next-step-panel h2,
  .status-card h2 {
    font-size: clamp(1.42rem, 7vw, 1.85rem);
    line-height: 1.08;
  }

  .next-step-panel p,
  .status-card p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .milestone {
    grid-template-columns: 34px 1fr;
  }

  .journey-map {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }

  .journey-map::before {
    top: 24px;
    bottom: 24px;
    left: 26px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, rgba(0, 128, 55, 0.72), rgba(255, 231, 0, 0.78), rgba(13, 27, 62, 0.16));
  }

  .journey-phase {
    min-height: 0;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    justify-items: start;
    align-items: center;
    padding: 12px;
    text-align: left;
  }

  .journey-label {
    display: none;
  }

  .status-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .status-primary,
  .status-secondary {
    width: 100%;
  }

  .snapshot-item,
  .team-item,
  .insurance-choice,
  .milestone {
    padding: 13px;
  }
}

/* ── Mobile: action above the fold + larger type for readability.
   The "what we need from you" panel is the whole point of the page for a
   borrower on a phone — the hero shrinks, the 1-5 stage chips hide (that
   detail lives in Loan path below), and text/tap targets get bigger. ── */
@media (max-width: 760px) {
  html {
    font-size: 17.5px;
  }

  .status-hero {
    padding: 18px 16px;
  }

  .status-hero .brand-logo {
    width: 128px;
    margin-bottom: 8px;
  }

  .status-hero h1 {
    font-size: 1.5rem;
  }

  .status-hero .hero-subtitle {
    font-size: 0.92rem;
  }

  .status-hero .signal-row {
    display: none;
  }

  .status-hero .progress-card {
    padding: 12px 14px;
  }

  .needs-panel h2 {
    font-size: 1.28rem;
  }

  .needs-list li {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .needs-cta {
    min-height: 54px;
    font-size: 1.05rem;
  }

  .portal-welcome-card button {
    min-height: 54px;
    font-size: 1.08rem;
  }
}

@media (max-width: 760px) {
  .needs-panel {
    padding: 14px 14px 16px;
  }

  .needs-list {
    gap: 6px;
    margin: 8px 0;
  }

  .needs-list li {
    padding: 8px 10px;
  }

  .needs-more {
    margin: 4px 0;
  }
}

/* ── Jump-to nav: desktop keeps pills; mobile collapses to one button ── */
.jump-nav-toggle {
  display: none;
}

.jump-ask {
  border: 1px solid rgba(0, 128, 55, 0.25);
  border-radius: 999px;
  padding: 7px 13px;
  background: #eafaf0;
  color: #008037;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 760px) {
  .jump-nav-toggle {
    display: block;
    width: 100%;
    border: 1px solid rgba(0, 128, 55, 0.25);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    color: #008037;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
  }

  .status-jump-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .status-jump-nav > span,
  .status-jump-nav a,
  .status-jump-nav .jump-ask {
    display: none;
  }

  .status-jump-nav.open a,
  .status-jump-nav.open .jump-ask {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }
}

/* ── Insurance answered → calm completed card instead of an open task ── */
.insurance-done h2 {
  color: #14652f;
}

.insurance-done-note {
  color: var(--muted, #5b6472);
  font-weight: 700;
  margin: 4px 0 12px;
}

.insurance-summary {
  border: 1px solid rgba(0, 128, 55, 0.18);
  border-left: 5px solid #008037;
  border-radius: 10px;
  background: #f4fbf7;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ins-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ins-sum-row span {
  color: var(--muted, #5b6472);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.insurance-edit-btn {
  border: 1px solid rgba(13, 27, 62, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: #0d1b3e;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

/* ── Mobile polish: top buttons and headings centered ── */
@media (max-width: 760px) {
  .admin-return-link,
  .cross-nav-link {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .status-view-mode-label nav {
    justify-content: center;
  }

  .status-hero .hero-copy {
    text-align: center;
  }

  .status-hero .brand-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .status-hero .progress-card {
    text-align: left;
  }

  .needs-panel .eyebrow,
  .needs-panel h2,
  .needs-panel > p,
  .needs-more {
    text-align: center;
  }

  .next-step-panel h2,
  .next-step-panel .eyebrow {
    text-align: center;
  }

  .status-card > .eyebrow,
  .status-card > h2 {
    text-align: center;
  }
}

/* balanced wrapping on headings + needs-list titles */
.needs-panel h2,
.needs-list li strong,
.status-card h2 {
  text-wrap: balance;
}
