/* ============================================================
   Bevri POS — Purchase application flow
   Step shell, progress, select cards, fields, nav, helper.
   ============================================================ */

/* ---------------- flow shell ---------------- */
.flow {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.flow-col {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 24px 48px;
  display: flex;
  flex-direction: column;
}

/* fade/slide between steps */
.step {
  animation: stepIn .34s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

/* ---------------- progress indicator ---------------- */
.progress { margin: 6px 0 30px; }
.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.progress-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.progress-count {
  font-size: 11.5px;
  color: var(--sage);
  letter-spacing: .04em;
}
.progress-track {
  display: flex;
  gap: 6px;
}
.progress-seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--sage-soft);
  overflow: hidden;
  position: relative;
}
.progress-seg.done { background: var(--sage); }
.progress-seg.active::after {
  content: '';
  position: absolute; inset: 0;
  width: var(--fill, 0%);
  background: var(--sage);
  border-radius: 999px;
  transition: width .4s ease;
}

/* ---------------- step header ---------------- */
.step-head { margin-bottom: 24px; }
.step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 14px;
}
.step-eyebrow .ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mint-tint);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.step-title {
  font-size: clamp(26px, 4vw, 33px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--forest);
  text-wrap: pretty;
}
.step-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 12px 0 0;
  text-wrap: pretty;
}

/* ---------------- select cards (options) ---------------- */
.opt-list { display: flex; flex-direction: column; gap: 12px; }
.opt-list.two-up {
  flex-direction: row;
}
.opt-list.two-up .opt { flex: 1; flex-direction: column; align-items: flex-start; min-height: 120px; }
.opt {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  min-height: 68px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s, transform .14s, box-shadow .15s;
  overflow: hidden;
}
.opt::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sage);
  opacity: 0;
  transition: opacity .15s;
}
.opt:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.opt.sel {
  border-color: var(--sage);
  background: linear-gradient(135deg, var(--mint-tint), rgba(255,255,255,.5));
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(73,118,91,.10);
}
.opt.sel::before { opacity: 1; }
.opt-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--mint-tint);
  color: var(--sage);
  display: grid; place-items: center;
}
.opt.sel .opt-icon { background: var(--mint); color: var(--forest); }
.opt-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.opt-title { font-size: 16.5px; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; }
.opt-sub { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.opt-radio {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.opt.sel .opt-radio { border-color: var(--sage); background: var(--sage); box-shadow: 0 0 0 3px rgba(73,118,91,.15); }
.opt-radio svg { opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s cubic-bezier(.2,.7,.3,1); }
.opt.sel .opt-radio svg { opacity: 1; transform: scale(1); }
.two-up .opt-radio { position: absolute; top: 16px; right: 16px; }
.two-up .opt-icon { margin-bottom: 4px; }

/* ---------------- form fields ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }
.field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.field label .opt-tag { color: var(--faint); font-weight: 400; }
.input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 15px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: 0; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(73,118,91,.14); }
.input.err { border-color: #bf4631; }
.input.err:focus { box-shadow: 0 0 0 3px rgba(191,70,49,.14); }
.field-err { font-size: 12.5px; color: #bf4631; margin-top: -1px; }
.input-prefix { position: relative; display: flex; align-items: center; }
.input-prefix > span {
  position: absolute; left: 15px;
  font-size: 16px; color: var(--muted); pointer-events: none;
}
.input-prefix .input { padding-left: 30px; }
.input-suffix > span { position: absolute; right: 15px; left: auto; }
.input-suffix .input { padding-left: 15px; padding-right: 34px; }

/* ---------------- checkbox / agreements ---------------- */
.agree-list { display: flex; flex-direction: column; }
.agree-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.agree-row:last-child { border-bottom: 0; }
.checkbox {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  background: var(--surface);
  transition: border-color .15s, background .15s;
}
.checkbox.on { border-color: var(--sage); background: var(--sage); }
.checkbox svg { opacity: 0; transform: scale(.5); transition: .15s; }
.checkbox.on svg { opacity: 1; transform: scale(1); }
.agree-text { font-size: 15px; line-height: 1.5; color: var(--text); }
.agree-link { color: var(--sage); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.agree-link:hover { color: var(--forest); }

/* ---------------- nav footer ---------------- */
.step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  border: 0;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  min-height: 54px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .14s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary {
  flex: 1;
  background: var(--forest);
  color: #eef6f0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.09);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.09); }
.btn-primary:disabled {
  background: var(--sage-soft);
  color: var(--faint);
  cursor: default;
  box-shadow: none;
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--sage); }
.btn-block { width: 100%; }

/* ---------------- review summary cards ---------------- */
.summary { display: flex; flex-direction: column; gap: 14px; }
.sum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.sum-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sum-head > div:first-child { flex: 1; min-width: 0; }
.sum-label {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 8px;
}
.sum-q { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
.sum-value { font-size: 16px; color: var(--forest); line-height: 1.55; font-weight: 500; }
.sum-value .muted { color: var(--muted); font-weight: 400; }
.sum-edit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}
.sum-edit:hover { background: var(--mint-tint); border-color: var(--sage); }

/* ---------------- intro / start card ---------------- */
.start-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.start-cta {
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--mint-tint);
  border: 1.5px solid var(--mint);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: transform .14s, box-shadow .15s;
}
.start-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.start-cta .opt-icon { background: var(--forest); color: var(--mint); }
.start-cta-text { flex: 1; }
.start-cta-title { display: block; font-size: 17px; font-weight: 600; color: var(--forest); }
.start-cta-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* celebratory check for app-start */
.start-burst {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--mint);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  color: var(--forest);
}

/* ---------------- helper (Bevri Operator assistant) ---------------- */
.helper-wrap { position: relative; margin-top: 16px; }
.helper-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px 9px 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sage);
  transition: background .15s, border-color .15s;
}
.helper-btn:hover { background: var(--surface); border-color: var(--sage); }
.helper-btn .ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint-tint); display: grid; place-items: center;
}
.helper-pop {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  animation: popIn .22s ease both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.helper-pop-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.helper-pop-head .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--mint-tint); display: grid; place-items: center; }
.helper-pop-head b { font-size: 14px; color: var(--forest); }
.helper-pop-head span { font-size: 11px; color: var(--sage); letter-spacing: .04em; }
.helper-pop dl { margin: 0; display: flex; flex-direction: column; gap: 11px; }
.helper-pop dt { font-size: 14px; font-weight: 600; color: var(--forest); }
.helper-pop dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* small expandable helper links (price/down payment) */
.help-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none; border: 0;
  color: var(--sage);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.help-link:hover { color: var(--forest); }
.help-link .chev { transition: transform .2s; color: var(--faint); }
.help-link.open .chev { transform: rotate(180deg); }
.help-body {
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  padding: 0 0 14px;
}

/* down payment connector */
.dp-grid { display: flex; align-items: stretch; gap: 12px; }
.dp-grid .field { flex: 1; margin-bottom: 0; }
.dp-eq {
  display: grid; place-items: center;
  color: var(--faint);
  font-size: 18px;
  padding-top: 26px;
}

/* save & exit in topbar during flow */
.topbar-step {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

@media (max-width: 540px) {
  .opt-list.two-up { flex-direction: row; }
  .field-row { flex-direction: column; gap: 0; }
  .step-nav { flex-direction: row; }
  .btn-secondary { padding: 0 18px; }
}

/* ---------------- select dropdown ---------------- */
.select-wrap { position: relative; display: flex; align-items: center; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-color: var(--surface);
}
.select.placeholder { color: var(--faint); }
.select-chev {
  position: absolute; right: 14px;
  color: var(--muted);
  pointer-events: none;
  display: grid; place-items: center;
}

/* ---------------- borrower info: grouped section cards ---------------- */
.bi-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 22px 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.bi-section > .field:last-child,
.bi-section > .field-row:last-child { margin-bottom: 16px; }
.bi-sec-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.bi-sec-num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--mint-tint);
  color: var(--sage);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.bi-sec-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--forest);
}
/* inline checkbox inside a section (no card border) */
.bi-inline-check {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 2px 14px;
}
.bi-inline-check .agree-row { border-bottom: 0; padding: 13px 2px; }
.bi-inline-check .agree-text { font-size: 14px; }
/* sub-label for grouped yes/no question */
.bi-q {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 10px;
}
.bi-yesno { display: flex; gap: 12px; margin-bottom: 16px; }
.bi-yesno .opt { min-height: 56px; padding: 14px 18px; }
.bi-helper-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: -4px 0 16px;
}

/* ---------------- collapsible primary borrower ---------------- */
.person-block { display: flex; flex-direction: column; gap: 14px; }
.person-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.person-bar:hover { border-color: var(--sage); box-shadow: var(--shadow-md); }
.person-bar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.person-bar-tag {
  font-size: 12px;
  color: var(--sage);
  font-weight: 500;
}
.person-chev { flex: 0 0 auto; color: var(--muted); transition: transform .2s; display: grid; place-items: center; }
.person-chev.open { transform: rotate(180deg); }
.person-cards { animation: stepIn .26s ease both; }

/* ---------------- co-borrowers ---------------- */
.co-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}.co-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.co-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--forest); }
.co-desc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.co-count {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--sage);
  background: var(--mint-tint);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 500;
}
.co-empty {
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin-bottom: 14px;
}
.co-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.co-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.co-card-ava {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}
.co-card-body { flex: 1; min-width: 0; }
.co-card-name { font-size: 16px; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; }
.co-card-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.co-card-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--sage);
  background: var(--mint-tint);
  border-radius: 999px;
  padding: 3px 10px;
}
.co-card-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.co-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}
.co-act:hover { background: var(--mint-tint); border-color: var(--sage); color: var(--sage); }
.co-act.danger:hover { background: #fbeae6; border-color: #bf4631; color: #bf4631; }

.co-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--mint-tint);
  border: 1.5px dashed var(--sage);
  color: var(--sage);
  font-size: 15px;
  font-weight: 600;
  padding: 15px;
  border-radius: 14px;
  transition: background .15s, transform .14s;
}
.co-add:hover { background: var(--sage-soft); transform: translateY(-1px); }
.co-add-icon { display: grid; place-items: center; }
.co-limit {
  font-size: 13px;
  color: var(--muted);
  background: var(--mint-tint);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

/* ---------------- employment & income hub ---------------- */
.ei-list { display: flex; flex-direction: column; gap: 18px; }
.ei-borrower {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.ei-bhead { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.ei-bmeta { flex: 1; min-width: 0; }
.ei-empty-state { margin-bottom: 12px; }
.ei-empty {
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 12px 12px 0 0;
  padding: 16px;
  text-align: center;
  margin-bottom: 0;
}
.ei-reo-skip {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 10px 16px;
  text-align: center;
}
.ei-upload-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  background: var(--mint-tint);
  border: 1px solid var(--sage-soft);
  border-top: none;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  transition: background .15s;
}
.ei-upload-cta:hover { background: var(--sage-soft); }
.ei-sources { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ei-source {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
}
.ei-source-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--mint-tint);
  color: var(--sage);
  display: grid; place-items: center;
}
.ei-source-body { flex: 1; min-width: 0; }
.ei-source-title { font-size: 15px; font-weight: 600; color: var(--forest); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ei-source-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ei-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: #1f8a5b;
  background: #e4f4ec;
  border-radius: 999px;
  padding: 2px 8px;
}
.ei-autofill-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--sage);
  background: var(--mint-tint);
  border: 1px solid var(--sage-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.ei-source-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 7px; }
.ei-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mint-tint);
  border: 1.5px dashed var(--sage);
  color: var(--sage);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  transition: background .15s;
}
.ei-add:hover { background: var(--sage-soft); }
.ei-prompt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: var(--mint-tint);
  border-radius: 12px;
  padding: 14px;
  margin-top: 18px;
}

/* ---------------- real estate owned ---------------- */
.reo-props { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.reo-prop {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.reo-prop-top { display: flex; gap: 12px; }
.reo-prop-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--mint-tint);
  color: var(--sage);
  display: grid; place-items: center;
}
.reo-prop-body { flex: 1; min-width: 0; }
.reo-prop-addr {
  font-size: 15px; font-weight: 600; color: var(--forest);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.reo-auto-tag {
  font-size: 11px; font-weight: 600;
  color: var(--sage);
  background: var(--mint-tint);
  border: 1px solid var(--sage-soft);
  border-radius: 999px;
  padding: 2px 9px;
}
.reo-prop-line { font-size: 13px; color: var(--muted); margin-top: 3px; }
.reo-prop-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--line);
}

/* ---------------- credit authorization ---------------- */
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.cr-borrower {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.cr-binfo { flex: 1; min-width: 0; }
.cr-invite-note { font-size: 12.5px; color: var(--sage); margin-top: 5px; }
.cr-bright { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: 0 0 auto; }
.cr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  color: var(--muted);
  background: rgba(16,24,19,.05);
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.cr-badge.ok { color: #1f8a5b; background: #e4f4ec; }
.cr-badge.pending { color: #9a6a14; background: #fcf3e2; }

/* SSN field */
.ssn-wrap { position: relative; display: flex; align-items: center; }
.ssn-ico { position: absolute; left: 14px; color: var(--sage); display: grid; place-items: center; pointer-events: none; }
.ssn-input { padding-left: 42px; letter-spacing: .08em; font-family: var(--mono); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* consent box */
.consent-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 4px;
  max-height: 200px; overflow-y: auto;
}
.consent-box p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; }
.consent-box p:last-child { margin-bottom: 0; }
.consent-box strong { color: var(--text); font-weight: 600; }

/* review rows in modal */
.cr-review { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.cr-review-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.cr-review-row > div:first-child { flex: 1; }

/* larger modal with internal scroll */
.modal-lg { max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; }
.modal-scroll { overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }

/* ---------------- pulling state ---------------- */
.cr-pulling { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 40px; }
.cr-pull-mark {
  position: relative; width: 96px; height: 96px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff, var(--mint-tint));
  box-shadow: var(--shadow-md); margin-bottom: 24px;
}
.cr-pull-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--mint); border-top-color: var(--sage); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cr-pull-dots { display: flex; gap: 7px; margin-top: 26px; }
.cr-pull-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); opacity: .35; animation: blink 1.2s infinite ease-in-out; }
.cr-pull-dots span:nth-child(2) { animation-delay: .2s; }
.cr-pull-dots span:nth-child(3) { animation-delay: .4s; }

/* ---------------- liabilities ---------------- */
.flow-col-wide { max-width: 760px; }
.liab-list { display: flex; flex-direction: column; gap: 12px; }
.liab-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.liab-main { display: flex; align-items: flex-start; gap: 13px; width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; }
.liab-main:hover { background: var(--mint-tint); }
.liab-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--mint-tint); color: var(--sage); display: grid; place-items: center; }
.liab-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.liab-cred { font-size: 16px; font-weight: 600; color: var(--forest); }
.liab-type { font-size: 12.5px; color: var(--sage); font-weight: 500; }
.liab-nums { display: flex; gap: 18px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.liab-nums strong { color: var(--text); font-weight: 600; }
.liab-attached { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #1f8a5b; margin-top: 8px; font-weight: 500; }
.liab-chev { flex: 0 0 auto; color: var(--faint); align-self: center; }
.liab-actions { padding: 0 18px 16px; display: flex; gap: 8px; }
.liab-helper { background: var(--mint-tint); border-radius: 14px; padding: 16px 18px; margin-top: 18px; }
.liab-helper-title { font-size: 14px; font-weight: 600; color: var(--forest); margin-bottom: 5px; }
.liab-helper p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.liab-notice { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 13px 15px; margin-top: 18px; }
.liab-notice svg { flex: 0 0 auto; color: var(--sage); margin-top: 1px; }

/* detail drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(16,24,19,.45); display: flex; justify-content: flex-end; animation: popIn .18s ease both; }
.drawer { width: 420px; max-width: 92vw; background: var(--surface); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: drawerIn .26s cubic-bezier(.2,.7,.3,1) both; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--mint-tint); }
.drawer-title { font-size: 17px; font-weight: 700; color: var(--forest); letter-spacing: -0.01em; }
.drawer-body { padding: 18px 20px; overflow-y: auto; }
.drawer-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.drawer-row strong { color: var(--forest); font-weight: 600; }

/* mortgage line on REO property card */
.reo-mortgage { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; background: var(--mint-tint); border-radius: 10px; font-size: 12.5px; color: var(--forest); }

/* ---------------- declarations ---------------- */
.input-textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 12px 14px;
  font-family: var(--sans);
  line-height: 1.5;
}
.decl-q {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.decl-q:last-of-type { border-bottom: 0; }
.decl-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 12px;
}
.decl-reveal {
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--sage-soft);
}

/* ---------------- demographics ---------------- */
.demo-list { display: flex; flex-direction: column; gap: 10px; }
.demo-check {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color .15s;
}
.demo-check.on { border-color: var(--sage); }
.demo-check.disabled { opacity: .45; }
.demo-check .agree-row { border-bottom: 0; padding: 15px 16px; }
.demo-sub { padding: 2px 16px 14px; border-top: 1px solid var(--line); background: var(--bg); }
.demo-sub .field:first-child { margin-top: 14px; }
.demo-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  padding-top: 8px;
}
.demo-subgrid .agree-row { border-bottom: 0; padding: 9px 2px; }
.demo-subgrid .agree-text { font-size: 14px; }
@media (max-width: 540px) { .demo-subgrid { grid-template-columns: 1fr; } }

/* ---------------- review & submit ---------------- */
.rs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.rs-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--mint-tint);
}
.rs-card-titles { display: flex; flex-direction: column; gap: 7px; }
.rs-card-title { font-size: 16px; font-weight: 700; color: var(--forest); letter-spacing: -0.01em; }
.rs-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.rs-card-body { padding: 14px 18px; }
.rs-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; }
.rs-row > span:first-child { color: var(--muted); flex: 0 0 auto; max-width: 52%; }
.rs-row-v { color: var(--forest); font-weight: 500; text-align: right; }
.rs-person { padding: 10px 0; border-top: 1px solid var(--line); }
.rs-person:first-child { border-top: 0; padding-top: 0; }
.rs-person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.co-card-ava.sm { width: 32px; height: 32px; font-size: 11px; }
.rs-person-name { font-size: 15px; font-weight: 600; color: var(--forest); }
.rs-person-name.sm { font-size: 14px; margin-bottom: 6px; }
.rs-muted { font-size: 13.5px; color: var(--muted); }
.rs-prop { padding: 6px 0; }
.rs-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rs-sub.mort { display: inline-flex; align-items: center; gap: 5px; color: var(--sage); margin-top: 5px; background: var(--mint-tint); padding: 3px 9px; border-radius: 999px; }
.rs-liab { padding: 4px 0; }
.rs-confirm {
  background: var(--mint-tint);
  border: 1px solid var(--sage-soft);
  border-radius: 14px;
  padding: 6px 16px;
  margin: 22px 0 8px;
}
.rs-confirm .agree-row { border-bottom: 0; }
/* handoff readiness moment above the confirmation */
.rs-readiness {
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.5;
}
.rs-readiness.ok {
  background: #e4f4ec;
  border: 1px solid #bfe3d0;
  color: #1f8a5b;
}
.rs-readiness.warn {
  background: #fcf3e2;
  border: 1px solid #edd3a4;
  color: #7a5410;
}
.rs-readiness.warn .rs-readiness-msg { font-weight: 600; }
.rs-readiness-list { margin: 8px 0 4px; padding-left: 20px; }
.rs-readiness-list li { margin-bottom: 3px; }
.rs-readiness.warn .agree-row { border-bottom: 0; margin-top: 6px; }

/* edit-from-review banner */
.review-banner {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  background: var(--forest); color: #eef6f0;
  padding: 11px 18px;
  font-size: 13.5px; font-weight: 500;
}
.review-banner button {
  margin-left: auto;
  background: var(--mint); color: var(--forest);
  border: 0; border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* success */
.rs-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 24px; }
.rs-success-burst { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 22px; }
.rs-success-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--forest); color: var(--mint); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.rs-burst-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); animation: burst 1.8s ease-out infinite; }
.rs-burst-ring.r2 { animation-delay: .6s; }
@keyframes burst { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rs-burst-ring { animation: none; } }
.rs-next { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin: 28px 0; text-align: left; box-shadow: var(--shadow-sm); }
.rs-next-title { font-size: 13px; font-weight: 700; color: var(--forest); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.rs-next-step { display: flex; gap: 13px; padding: 10px 0; }
.rs-next-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-tint); color: var(--sage); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.rs-next-h { font-size: 15px; font-weight: 600; color: var(--forest); }
.rs-next-d { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.rs-success-actions { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }

/* featured (recommended) option card */
.opt-feature {
  position: relative;
  border-color: var(--sage);
  background: linear-gradient(180deg, var(--mint-tint), var(--surface));
}
.opt-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--sage);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}

/* Argyle connect card */
.argyle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.argyle-logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.argyle-logos .ava { width: 52px; height: 52px; border-radius: 14px; background: var(--mint-tint); display: grid; place-items: center; border: 1px solid var(--line); }
.argyle-provider { width: 52px; height: 52px; border-radius: 14px; background: var(--forest); color: var(--mint); display: grid; place-items: center; }
.argyle-link-dots { display: flex; gap: 5px; }
.argyle-link-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); opacity: .5; animation: blink 1.2s infinite ease-in-out; }
.argyle-link-dots i:nth-child(2) { animation-delay: .2s; }
.argyle-link-dots i:nth-child(3) { animation-delay: .4s; }
.argyle-trust { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* employment income component toggles */
.inc-toggle {
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.inc-toggle.on { border-color: var(--sage); }
.inc-toggle .agree-row { border-bottom: 0; padding: 14px 16px; }
.inc-toggle-body { padding: 4px 16px 14px; border-top: 1px solid var(--line); background: var(--bg); }
.inc-toggle-body .field:first-child { margin-top: 14px; }

/* ---------------- confirmation modal ---------------- */.modal-scrim {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(16,24,19,.45);
  display: grid; place-items: center;
  padding: 24px;
  animation: popIn .18s ease both;
}
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  animation: dockIn .24s cubic-bezier(.2,.7,.3,1) both;
}
.modal-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--forest); }
.modal-body { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 12px 0 24px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }
.btn-danger { background: #bf4631; color: #fff; }
.btn-danger:hover { background: #a83a28; }

/* ---------------- neutralize browser autofill yellow ---------------- */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 50px var(--surface) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------------- IDP auto-fill field highlight ---------------- */
@keyframes idpFillPop {
  0%   { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(73,118,91,.22); background: var(--mint-tint); }
  65%  { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(73,118,91,.08); background: var(--mint-tint); }
  100% { border-color: var(--line-strong); box-shadow: none; background: var(--surface); }
}
.input.idp-filled { animation: idpFillPop 2.4s ease forwards; }

/* ---------------- keyboard focus-visible refinement ---------------- */
.btn:focus-visible,
.opt:focus-visible,
.resume-primary:focus-visible,
.resume-secondary:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.input:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; }

/* ---------------- document status rows (ReviewSubmit upload card) ---------------- */
.doc-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.doc-status-row:first-child { border-top: 0; }
.doc-status-name { color: var(--forest); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.doc-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
}
.doc-status-badge.analyzing { color: #9a6a14; background: #fcf3e2; }
.doc-status-badge.filled    { color: #1f8a5b; background: #e4f4ec; }
.doc-status-badge.uploaded  { color: var(--muted); background: rgba(16,24,19,.05); }
.doc-status-spin {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #d4a017; border-top-color: transparent;
  animation: spin .8s linear infinite;
  display: inline-block;
}

/* ---------------- skeleton loader for qualification snapshot ---------------- */
.skel {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sage-soft) 25%, var(--mint-tint) 50%, var(--sage-soft) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.6s ease-in-out infinite;
}
@keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-row { height: 16px; margin-bottom: 10px; }
.skel-row.w-60 { width: 60%; }
.skel-row.w-40 { width: 40%; }
.skel-row.w-80 { width: 80%; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; background: var(--sage-soft); } }

/* ============================================================
   Mobile responsive additions
   ============================================================ */
@media (max-width: 480px) {
  /* Reduce horizontal padding so content has room on 360–375px screens */
  .flow-col { padding: 8px 16px 40px; }

  /* Income / asset source cards: wrap action buttons below the content row
     so the title/detail text isn't squeezed by the button column */
  .ei-source { flex-wrap: wrap; }
  .ei-source-body { min-width: 0; }
  .ei-source-actions {
    flex-direction: row;
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .ei-source-actions .co-act { flex: 1; }

  /* Co-borrower cards: wrap action buttons below the name/email block */
  .co-card { flex-wrap: wrap; }
  .co-card-actions {
    flex-direction: row;
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .co-card-actions .co-act { flex: 1; }

  /* Nav footer: ensure primary button text doesn't overflow on tiny screens */
  .btn { font-size: 14.5px; padding: 0 18px; min-height: 50px; }
  .btn-secondary { flex: 0 0 auto; }

  /* Review & Submit cards: let title and edit button wrap gracefully */
  .rs-card-head { flex-wrap: wrap; gap: 8px; }
  .rs-card-actions { width: 100%; justify-content: flex-start; }

  /* Borrower info step counter bar */
  .bi-step-pill { font-size: 10px; }

  /* Reduce modal padding on small screens */
  .modal { padding: 22px 18px 18px; margin: 12px; }

  /* Upload CTA: full-width is already set, just ensure tap target */
  .ei-upload-cta { min-height: 44px; }
}

/* ---------------- loan tracker ("where is my loan?") ---------------- */
.trk-attention {
  background: #fcf3e2;
  border: 1px solid #edd3a4;
  color: #7a5410;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}
.trk-stages { margin: 6px 0 18px; }
.trk-stage { display: flex; align-items: flex-start; gap: 13px; padding: 0 0 22px; position: relative; }
.trk-marker-wrap { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.trk-marker {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  background: var(--surface);
  border: 2px solid var(--sage-soft);
  color: var(--faint);
}
.trk-line { position: absolute; top: 28px; bottom: -22px; width: 2px; background: var(--sage-soft); left: 50%; transform: translateX(-50%); }
.trk-stage.done .trk-marker { background: var(--sage); border-color: var(--sage); color: #fff; }
.trk-stage.done .trk-line { background: var(--sage); }
.trk-stage.current .trk-marker { border-color: var(--sage); color: var(--sage); box-shadow: 0 0 0 4px rgba(73,118,91,.14); }
.trk-body { flex: 1; min-width: 0; padding-top: 3px; }
.trk-label { display: block; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.trk-stage.done .trk-label { color: var(--text); }
.trk-stage.current .trk-label { color: var(--forest); font-weight: 600; }
.trk-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; max-width: 460px; }
.trk-receipt {
  background: var(--mint-tint);
  border: 1px solid var(--sage-soft);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--forest);
  margin-bottom: 18px;
}
.trk-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ZIP lookup spinner (inside the ZIP field while city/state resolve) */
.zip-spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--sage-soft);
  border-top-color: var(--sage);
  border-radius: 50%;
  display: inline-block;
  animation: zip-spin-rotate .7s linear infinite;
}
@keyframes zip-spin-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zip-spin { animation: none; opacity: .5; } }
