.choice-card {
  min-height: 4.8rem;
  justify-content: flex-start;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: .18rem;
}
.choice-card strong { display: block; color: inherit; }
.choice-card span { display: block; opacity: .88; font-weight: 600; font-size: .84rem; }

.comfort-strip {
  display: grid;
  gap: .5rem;
  margin: .9rem 0 .35rem;
}
.comfort-strip .action { min-height: 3.3rem; }

@media (max-width: 430px) {
  .panel { border-radius: 20px; }
  .choice-card { min-height: auto; padding: .78rem .9rem; border-radius: 16px; }
  .choice-card span { font-size: .8rem; line-height: 1.42; }
}

.low-demand-home-panel .direct-home-grid {
  margin-top: .85rem;
}

.direct-home-choice {
  border-color: rgba(54, 171, 156, .22);
  background: rgba(255, 255, 255, .86);
}

.direct-home-choice:focus-visible,
.direct-home-choice:hover {
  border-color: rgba(54, 171, 156, .58);
}

.optional-entry {
  margin-top: .95rem;
  border: 1px solid rgba(54, 171, 156, .18);
  border-radius: 1.1rem;
  background: rgba(239, 250, 248, .72);
  overflow: hidden;
}

.optional-entry summary {
  cursor: pointer;
  padding: .9rem 1rem;
  font-weight: 850;
  color: var(--text);
}

.optional-entry-body {
  display: grid;
  gap: .65rem;
  padding: 0 1rem 1rem;
}

/* The triage panel now ends with the optional typed entry; keep the closing edge compact and balanced. */
.low-demand-home-panel > .optional-entry:last-child {
  margin-bottom: 0;
}

.compact-toolbar {
  margin-top: .2rem;
}

.direct-reset-panel .reset-card-v2 {
  margin-top: .85rem;
}

.direct-reset-panel .reset-card-action-status {
  padding: .72rem .85rem;
  border: 1px solid rgba(54, 171, 156, .18);
  border-radius: .95rem;
  background: rgba(239, 250, 248, .75);
}

@media (max-width: 430px) {
  .low-demand-home-panel .comfort-strip {
    grid-template-columns: 1fr;
  }

  .optional-entry summary {
    padding: .82rem .88rem;
  }

  .optional-entry-body {
    padding: 0 .88rem .88rem;
  }
}

.optional-barrier-panel .lede {
  margin-bottom: .35rem;
}

.optional-barrier-skip {
  margin-top: .8rem;
}

.optional-barrier-grid {
  margin-top: .85rem;
}

.optional-barrier-choice {
  border-color: rgba(121, 113, 234, .2);
  background: rgba(255, 255, 255, .9);
}

.optional-barrier-choice:focus-visible,
.optional-barrier-choice:hover {
  border-color: rgba(121, 113, 234, .52);
}

.optional-barrier-panel .trust-note {
  margin-top: .75rem;
}


.reset-home-handoff-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: .72rem .8rem;
  border: 1px solid rgba(54, 171, 156, .24);
  border-radius: 1rem;
  background: rgba(239, 250, 248, .78);
}

.reset-home-handoff-note__copy {
  min-width: 0;
}

.reset-home-handoff-note .kicker {
  margin-bottom: .18rem;
}

.reset-home-handoff-note p {
  margin: 0;
}

.reset-home-handoff-note .action {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 560px) {
  .reset-home-handoff-note {
    align-items: stretch;
    flex-direction: column;
  }

  .reset-home-handoff-note .action {
    width: 100%;
  }
}

.source-aware-receive-panel .lede {
  margin-bottom: .35rem;
}

.source-aware-action-grid {
  margin-top: .9rem;
}

.source-aware-action {
  border-color: rgba(54, 171, 156, .22);
  background: rgba(255, 255, 255, .9);
}

.source-aware-action.ghost {
  border-color: rgba(121, 113, 234, .18);
  background: rgba(255, 255, 255, .72);
}

.source-aware-action:focus-visible,
.source-aware-action:hover {
  border-color: rgba(54, 171, 156, .58);
}

.source-aware-toolbar {
  margin-top: 1rem;
}

.quick-reset-panel .reset-card-v2 {
  margin-top: .9rem;
}

.quick-reset-status {
  margin-top: .8rem;
  padding: .72rem .85rem;
  border: 1px solid rgba(54, 171, 156, .2);
  border-radius: .95rem;
  background: rgba(239, 250, 248, .78);
}

.quick-reset-choices {
  margin-top: 1rem;
  border: 1px solid rgba(54, 171, 156, .16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .72);
  overflow: hidden;
}

.quick-reset-choices summary {
  cursor: pointer;
  padding: .82rem .95rem;
  font-weight: 800;
}

.quick-reset-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: .7rem;
  padding: 0 .95rem .95rem;
}

.quick-reset-option.active {
  border-color: rgba(54, 171, 156, .62);
  background: rgba(239, 250, 248, .92);
}

.quick-reset-option span:last-child {
  line-height: 1.35;
}

@media (max-width: 430px) {
  .quick-reset-option-grid {
    grid-template-columns: 1fr;
  }
}

.handoff-suggestion-card {
  margin-top: .95rem;
  padding: .95rem;
  border: 1px solid rgba(54, 171, 156, .24);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(239, 250, 248, .94), rgba(255, 255, 255, .88));
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.handoff-suggestion-card h3 {
  margin: .2rem 0 .35rem;
}

.handoff-suggestion-card .action {
  margin-top: .75rem;
}

/* Context-specific reset flow polish */
.context-follow-up-panel {
  scroll-margin-top: 1rem;
}

.context-follow-up-panel h2:focus {
  outline: none;
}

.context-follow-up-anchor {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 .7rem;
  padding: .4rem .62rem;
  border: 1px solid rgba(54, 171, 156, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--brand-dark);
  font-weight: 800;
}

.context-follow-up-panel--calm {
  background: linear-gradient(135deg, #ffffff 0%, rgba(239, 250, 248, .96) 100%);
}

.context-follow-up-actions {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-items: stretch;
  margin-top: .85rem;
}

.context-follow-up-actions .action {
  min-height: 3rem;
}

.context-follow-up-skip-note {
  margin: .42rem 0 0;
  color: var(--muted);
}

.context-follow-up-primary {
  margin-top: .9rem;
}

.context-follow-up-primary .context-follow-up-choice {
  border-color: rgba(245, 138, 72, .34);
  background: rgba(255, 247, 237, .9);
}

.context-follow-up-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem;
}

.context-follow-up-choice {
  border-color: rgba(54, 171, 156, .22);
  background: rgba(255, 255, 255, .92);
  min-height: 5.15rem;
}

.context-follow-up-choice:focus-visible,
.context-follow-up-choice:hover {
  border-color: rgba(54, 171, 156, .58);
}

.context-follow-up-choice.primary-choice {
  min-height: 4.25rem;
}

.context-follow-up-panel--script .lede {
  max-width: 46rem;
}

.context-follow-up-panel--script .context-follow-up-choice {
  justify-content: center;
  min-height: 3.6rem;
  text-align: center;
  align-items: center;
}

.context-follow-up-panel--script .script-sheet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-follow-up-panel--script .context-follow-up-choice strong {
  font-size: 1rem;
}

.context-follow-up-panel--leaving-exit .context-follow-up-primary .context-follow-up-choice {
  align-items: flex-start;
  min-height: 4.7rem;
  text-align: left;
}

.reset-result-context-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 .75rem;
  padding: .38rem .58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(121, 113, 234, .16);
  color: var(--text);
  font-weight: 800;
}

@media (min-width: 720px) {
  .context-follow-up-panel:not(.context-follow-up-panel--script) .context-follow-up-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .context-follow-up-actions,
  .context-follow-up-grid,
  .context-follow-up-panel--script .script-sheet-grid {
    grid-template-columns: 1fr;
  }

  .context-follow-up-anchor,
  .reset-result-context-line {
    width: 100%;
    border-radius: 1rem;
  }

  .context-follow-up-choice,
  .context-follow-up-choice.primary-choice,
  .context-follow-up-panel--script .context-follow-up-choice {
    min-height: 3.25rem;
    padding: .82rem .9rem;
  }
}

@media (max-width: 380px) {
  .context-follow-up-actions .action,
  .context-follow-up-choice {
    font-size: .95rem;
  }
}
