.customer-shell { display: block; }
.customer-flow { max-width: 780px; margin: 0 auto; padding: 20px 24px 44px; }
.customer-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.customer-tools .status { margin-left: auto; font-size: 12px; }
.customer-heading h1 { font-size: 28px; margin: 4px 0 8px; }
.customer-heading p { margin: 0 0 12px; color: #526662; }
.journey { display: flex; padding: 0; margin: 24px 0; gap: 12px; list-style: none; }
.journey li { flex: 1; display: flex; align-items: center; gap: 8px; color: #63756f; font-size: 14px; }
.journey li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e4ece8; }
.journey [aria-current] { color: #087b61; font-weight: 700; }
.journey [aria-current] span { background: #087b61; color: white; }
.customer-flow .modelbar { display: block; padding: 14px 18px; margin-bottom: 16px; background: #eef5f1; }
.customer-flow .modelbar > div:first-child { display: flex; align-items: center; gap: 14px; }
.customer-flow .modelbar label { margin: 0; white-space: nowrap; }
.customer-flow .modelbar select { flex: 1; min-width: 0; max-width: 100%; }
.customer-flow .modelbar > div:nth-child(2) { display: none; }
.customer-flow .step-panel { padding: 24px; }
.customer-flow .question-card { border: 0; padding: 0; background: none; box-shadow: none; }
.customer-flow .question-card h3 { font-size: 24px; margin: 14px 0; }
.customer-flow .question-card:focus { outline: none; }
.customer-flow .step-toolbar { margin-bottom: 18px; color: #64766f; font-size: 13px; }
.customer-flow .step-toolbar .text { font-size: 13px; }
.customer-flow .answer-cards { gap: 12px; }
.customer-flow .answer-cards button { min-height: 60px; border-radius: 12px; padding: 16px 18px; text-align: left; background: #f8fbf9; }
.customer-flow .answer-cards button:hover { background: #e8f4ee; border-color: #087b61; }
.customer-flow .answer-cards strong { font-size: 17px; }
.customer-flow .symptom-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-flow .symptom-cards button { min-height: 76px; border-radius: 12px; }
.customer-flow .inline-help { border-bottom: 1px solid #dbe5df; padding: 18px 4px; margin: 0; }
.customer-flow .inline-help > summary { color: #496358; font-size: 14px; cursor: pointer; }
.customer-flow .inline-help > .card { border: 0; box-shadow: none; padding: 16px 0 0; margin: 0; background: transparent; }
.customer-flow .inline-help .card h2 { font-size: 18px; }
.checked-history { padding-left: 22px; }
.checked-history li { padding: 10px 0; color: #60756b; }
.checked-history strong { display: block; color: #234536; margin-top: 4px; }
.customer-flow .actions { font-size: 12px; color: #64766f; align-items: center; flex-wrap: wrap; }
.customer-history .sidebar { display: block; width: auto; border: 1px solid #dbe5df; border-radius: 14px; margin-bottom: 20px; }
.customer-history .sidebar-records { display: block; }
.customer-history .sidebar > button { display: none; }
.source-debug-label { padding: 8px 20px; text-align: center; font-size: 12px; background: #eaf0f9; color: #38537a; }
.customer-active .customer-heading h1 { font-size: 22px; }
.customer-active .customer-heading p { font-size: 14px; }
.customer-active .journey { margin: 8px 0 16px; }
.step-navigation { margin: 12px 0; padding: 12px 16px; border: 1px solid #dbe5df; border-radius: 14px; background: #fff; }
.step-navigation .row { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.step-navigation label { font-size: 13px; margin-top: 8px; }
.step-navigation select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.service-guide li { margin: 8px 0; line-height: 1.7; overflow-wrap: anywhere; }
.service-guide code { white-space: normal; }
.customer-flow .question-card .card-extras { margin-bottom: 0; }
button.secondary, .customer-tools button.text {
  background: var(--surface-green);
  border: 1px solid #9ab7aa;
  color: #204f3e;
  min-height: 46px;
  padding: 10px 14px;
  font-weight: 600;
}
button.secondary:hover, .customer-tools button.text:hover { background: #d7ede1; border-color: var(--green); }
.customer-flow .next-check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 100px;
  padding: 24px;
  margin: 12px 0 20px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 4px 10px #257d5820;
}
.customer-flow .next-check-card:hover { background: #1d6547; }
.next-check-card > span { font-size: 28px; }
.step-navigation { background: transparent; border: 0; padding: 0; margin: 16px 0; }
.step-navigation .row { justify-content: flex-start; }
.history-picker { margin-top: 10px; }
.history-picker > summary, .step-help > summary, .help-escalation > summary {
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px;
  min-height: 46px;
  border: 1px solid #9ab7aa;
  border-radius: 10px;
  background: var(--surface-green);
  color: #204f3e;
  font-weight: 600;
  cursor: pointer;
}
.history-picker select { background: var(--surface-green); border-color: #9ab7aa; }
.step-help { margin: 18px 0; }
.step-help[open] { background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: 14px; }
.step-help[open] > summary { margin-bottom: 16px; }
.step-help button { margin: 6px 8px 6px 0; }
.help-escalation { margin-top: 14px; }
.assistant-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.readable-summary { overflow-wrap: anywhere; }
.readable-summary h3 { color: #204f3e; margin: 18px 0 6px; font-size: 16px; }
.readable-summary .checked-history { padding-left: 24px; }
.readable-summary .checked-history li { border-bottom: 1px solid var(--line); }
.readable-summary p, .readable-summary li { white-space: pre-line; }
.customer-flow button:focus-visible, .customer-flow summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (max-width: 600px) {
  .customer-flow { padding: 12px 16px 28px; }
  .customer-heading h1 { font-size: 24px; }
  .customer-tools { gap: 4px; flex-wrap: wrap; }
  .customer-tools .text { padding: 8px; font-size: 12px; }
  .customer-flow .step-panel, .customer-flow .intake { padding: 20px 16px; }
  .customer-flow .question-card h3 { font-size: 22px; }
  .customer-flow .modelbar { padding: 10px 12px; }
  .customer-flow .modelbar label { font-size: 13px; }
  .journey { gap: 8px; margin: 20px 0; }
  .journey li { font-size: 12px; gap: 6px; }
  .customer-flow .symptom-cards button { min-width: 0; padding: 14px 10px; }
  .customer-flow .symptom-cards strong { font-size: 15px; }
  .customer-flow .card-extras { font-size: 13px; }
  .customer-flow .next-check-card { min-height: 96px; padding: 20px 16px; font-size: 20px; }
  .customer-active .customer-heading h1 { font-size: 20px; }
  .step-navigation .row button { flex: 1; }
  .history-picker > summary { width: 100%; }
}
