/* Sprint 019 — bounded workflow continuity and shared feedback emphasis. */

.professional-panel--attention,
.professional-renewal-card {
  border-color: rgba(var(--antique-brass-rgb), 0.46);
  background:
    linear-gradient(145deg, rgba(var(--honey-sunset-rgb), 0.1), rgba(var(--warm-ivory-rgb), 0.88)),
    var(--paper-grain);
}

.professional-quick-action[data-pro-action="share-feedback"] {
  position: relative;
  border-color: rgba(var(--antique-brass-rgb), 0.48);
  background:
    linear-gradient(135deg, rgba(var(--honey-sunset-rgb), 0.18), rgba(var(--sage-rgb), 0.13)),
    rgba(var(--warm-ivory-rgb), 0.92);
  box-shadow: inset 4px 0 0 rgba(var(--moss-rgb), 0.72);
}

.professional-quick-action[data-pro-action="share-feedback"] .professional-quick-action__icon {
  border: 1px solid rgba(var(--antique-brass-rgb), 0.42);
  background: rgba(var(--warm-ivory-rgb), 0.84);
}

.professional-feedback-eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
}

.professional-feedback-intro {
  box-shadow: inset 3px 0 0 rgba(var(--moss-rgb), 0.42);
}

.professional-workflow-subsection {
  display: grid;
  gap: 14px;
}

.professional-workflow-subsection + .professional-workflow-subsection {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(var(--antique-brass-rgb), 0.24);
}

.professional-workflow-subsection > h3,
.professional-operations-card h3,
.professional-calendar-template-card h3 {
  margin: 0;
  color: var(--evening-navy);
}

.professional-founder-grid--nested {
  margin-top: 8px;
}

.professional-operations-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(var(--stone-rgb), 0.62);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.professional-operations-card p,
.professional-calendar-template-card p {
  margin: 0;
}

.professional-calendar-template-control {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
}

.professional-calendar-template-control > span {
  font: 600 0.72rem/1.2 Montserrat, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
}

.professional-modal-subsection {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(var(--antique-brass-rgb), 0.24);
}

.professional-calendar-template-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(var(--stone-rgb), 0.58);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
}

.professional-calendar-template-card.is-archived {
  opacity: 0.72;
}

.app-account-menu__action--remove-context {
  color: var(--brick);
  border-color: rgba(var(--brick-rgb), 0.34);
  background: rgba(var(--brick-rgb), 0.05);
}

.professional-data-reliability__actions {
  align-items: center;
  flex-wrap: wrap;
}

.professional-status-setup-action {
  min-height: 42px;
  padding-inline: 16px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(var(--walnut-rgb), 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.professional-status-setup-action:hover {
  transform: translateY(-1px);
  background: rgba(var(--honey-sunset-rgb), 0.28);
  box-shadow: 0 8px 18px rgba(var(--walnut-rgb), 0.14);
}

.professional-status-setup-action:focus-visible {
  outline: 3px solid rgba(var(--antique-brass-rgb), 0.34);
  outline-offset: 3px;
}

.homeowner-profile-card--account-access {
  overflow: hidden;
  gap: 22px;
  border: 1px solid rgba(var(--antique-brass-rgb), 0.38);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(var(--warm-ivory-rgb), 0.98);
  box-shadow:
    0 12px 28px rgba(var(--charcoal-rgb), 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.homeowner-account-access__header {
  padding: 2px 0 20px;
  border-bottom: 1px solid rgba(var(--antique-brass-rgb), 0.24);
  background: transparent;
}

.homeowner-account-access {
  display: grid;
  gap: 22px;
}

.homeowner-profile-card--account-access .homeowner-account-access {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.homeowner-account-access__benefits {
  padding: 2px 0 2px 20px;
  border: 0;
  border-left: 3px solid rgba(var(--antique-brass-rgb), 0.52);
  border-radius: 0;
  background: transparent;
}

.homeowner-account-access__benefits p,
.homeowner-account-access__benefits ul,
.homeowner-account-access__note {
  margin: 0;
}

.homeowner-account-access__benefits ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 22px;
}

.homeowner-account-access__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.homeowner-account-access__note {
  color: var(--walnut);
  font-size: 0.95rem;
}

.invitation-household-name {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--evening-navy);
  font-weight: 650;
}

.invitation-household-name input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--walnut-rgb), 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 252, 0.98);
  color: var(--charcoal);
  font: inherit;
}

/* Keep completion actions inside the approved editorial composition. */
body.journey-complete .journey-completion-actions {
  margin-top: 8px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(var(--walnut-rgb), 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/*
 * The core completion layout switches to its phone composition below 720px
 * and its two-column desktop composition at 960px. Keep the in-between
 * tablet/small-window range concise so the next action is discoverable
 * without removing the approved illustration or completion copy.
 */
@media (min-width: 720px) and (max-width: 959px) {
  body.journey-complete .app {
    align-items: flex-start;
    padding: 8px 10px 16px;
  }

  body.journey-complete .completion-panel {
    align-content: start;
    gap: 7px;
    min-height: 0;
    padding: 10px 12px 16px;
  }

  body.journey-complete .completion-brand-banner {
    height: 68px;
  }

  body.journey-complete .journey-illustration--completion {
    width: 100%;
    height: clamp(160px, 28dvh, 190px);
    aspect-ratio: auto;
  }

  body.journey-complete .journey-illustration--completion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
  }

  body.journey-complete #completionScreen > h1 {
    font-size: clamp(2.35rem, 7vw, 3.2rem);
    line-height: 0.96;
  }

  body.journey-complete #completionScreen > h2 {
    margin-top: 0;
    font-size: 1.05rem;
  }

  body.journey-complete #completionScreen > p {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  body.journey-complete .journey-completion-actions {
    margin-top: 2px;
    padding-top: 9px;
  }

  body.journey-complete .journey-completion-actions__status {
    margin-bottom: 7px;
    line-height: 1.35;
  }
}

@media (max-width: 759px) {
  body.journey-complete .journey-completion-actions {
    margin-top: 6px;
    padding: 12px 0 0;
  }

  .professional-panel--attention {
    padding: 18px;
  }

  .professional-renewal-card .professional-card-actions,
  .professional-invite-entry-actions > .flow-button {
    display: grid;
    width: 100%;
  }

  .professional-calendar-template-control {
    align-content: start;
  }

  .homeowner-account-access__actions {
    grid-template-columns: 1fr;
  }
}

/* Issue 6 final design polish: preserve one page surface on mobile, show the
 * complete celebration artwork, and reuse the canonical Alderwell Home route. */
body.journey-complete .journey-illustration--completion {
  height: auto;
  aspect-ratio: 1402 / 1122;
}

body.journey-complete .journey-illustration--completion img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.completion-home-link {
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--moss);
  font: 600 0.92rem/1.35 var(--ui-sans);
  text-decoration: underline;
  text-decoration-color: rgba(var(--moss-rgb), 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.completion-home-link:hover {
  color: var(--evening-navy);
  text-decoration-color: currentColor;
}

.completion-home-link:focus-visible {
  outline: 3px solid rgba(var(--moss-rgb), 0.3);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (min-width: 1024px) {
  body.journey-complete .completion-home-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 759px) {
  .app-screen,
  .app-screen.profile-screen.agent-panel {
    padding-inline: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .journey-overview__card:first-child {
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(var(--walnut-rgb), 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.journey-complete .completion-panel {
    padding-inline: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.journey-complete .completion-home-link {
    justify-self: center;
  }
}
