/* ITEM 217 (2026-10-24): the new question flow's one screen, #screen-newflow.
 *
 * The look is the mockup's (briefs-return/question-flow-mockup-2026-10-23/
 * Main.dc.html: large type, white cards with thin borders, few pill shapes),
 * drawn with the app's own tokens from base.css: --coral for the mockup's
 * #E8641C, --text for its #1F2A37, --bone-0 for its #FAF7F2, the two radii
 * and Plus Jakarta Sans (.claude/rules/design-handoff-format.md, section
 * 5). Headlines are weight 700, the app's rule. The mockup is a 390px
 * phone; on a wider screen the same column is centered, as today's
 * question card is (.q-container, 520px).
 *
 * No em dash and no character outside ASCII in this file.
 */

#screen-newflow .nf-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - var(--shell-top-gap, 10px) - var(--shell-nav-h, 60px));
  padding: 24px 16px 40px;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}
/* ITEM 218 (2026-10-24): the controls take the screen's font and its navy
 * through :where(), so this rule weighs no more than a bare element and
 * every class rule that colours a control wins over it: the coral
 * button's words are white (.nf-btn), the dark button's words are white
 * (.nf-btn-dark), and a button that is off is gray (.nf-btn-off). With
 * the id in the selector this rule outranked all three, and their words
 * showed navy. */
:where(#screen-newflow) button,
:where(#screen-newflow) input,
:where(#screen-newflow) textarea { font-family: inherit; color: var(--text); }

.nf-page, .nf-q {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
}
.nf-center {
  width: 100%;
  max-width: 520px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.nf-spacer { flex: 1 1 auto; min-height: 20px; }
.nf-nowrap { white-space: nowrap; }

/* Type */
.nf-h1 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.nf-sub {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(var(--text-rgb), 0.72);
  text-wrap: pretty;
}
.nf-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--coral);
  text-transform: uppercase;
}
.nf-answered {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(var(--text-rgb), 0.62);
}
.nf-label, .nf-section-title, .nf-list-title {
  display: block;
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(var(--text-rgb), 0.62);
  text-transform: uppercase;
}
.nf-count-line {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(var(--text-rgb), 0.62);
  text-transform: uppercase;
}

/* The found screen */
.nf-found { align-items: flex-start; padding-top: 12px; }
.nf-circle {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(var(--coral-rgb), 0.32);
}
.nf-found .nf-h1 { margin-top: 22px; }

/* Cards and notes */
.nf-card {
  margin-top: 22px;
  width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.nf-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nf-card-sub { margin: 6px 0 0; font-size: 15px; font-weight: 500; color: rgba(var(--text-rgb), 0.72); }
.nf-note-row, .nf-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
}
.nf-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.nf-note-text { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 500; color: rgba(var(--text-rgb), 0.78); }
.nf-info-icon { flex-shrink: 0; color: var(--coral); margin-top: 1px; }
.nf-unreadable { margin-top: 18px; }

/* ITEM 255 (R-255-4, R-255-5; C1 to C3): the line that says skipping the
 * discharge date can hide findings, on a light coral wash (the wash
 * report-view.css already uses beside coral), never a new color token.
 * Inside the found screen's card, inside the skipped card under its button,
 * or alone in the skipped card's spot on the results page.
 * THE DISPUTE CHECK (David, 2026-11-04) takes the same treatment under the
 * results page's "Write my dispute letters" button, by its own class names
 * added to these rules: no new value and no new token. */
.nf-discharge-line,
.nf-dispute-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--coral-rgb), 0.08);
  text-align: left;
}
.nf-results > .nf-discharge-line,
.nf-results > .nf-dispute-line { margin-top: 22px; }
.nf-discharge-icon { flex-shrink: 0; color: var(--coral); margin-top: 1px; }
.nf-discharge-body,
.nf-dispute-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.nf-discharge-text,
.nf-dispute-text { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--text); }
/* The link under the line: .nf-link-btn's underlined words, closer to the
 * line, a 44px target. */
.nf-discharge-link,
.nf-dispute-link { margin-top: 2px; padding: 0; min-height: 44px; font-size: 15px; }

/* Buttons */
.nf-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  flex-shrink: 0;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(var(--coral-rgb), 0.28);
}
.nf-btn:hover { filter: brightness(0.97); }
.nf-btn-off { background: rgba(var(--text-rgb), 0.14); color: rgba(var(--text-rgb), 0.45); box-shadow: none; cursor: default; }
.nf-btn-dark {
  margin-top: 12px;
  min-height: 46px;
  padding: 0 20px;
  background: var(--ink-0);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.nf-link-btn {
  margin-top: 16px;
  padding: 10px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nf-inline-link {
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nf-results-btn { margin-top: 26px; }

/* The question screens */
.nf-q-top { display: flex; align-items: center; gap: 14px; }
.nf-back {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--line-rgb), 0.15);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nf-progress { flex: 1 1 auto; display: flex; gap: 6px; }
.nf-seg { height: 5px; flex: 1 1 0; border-radius: 3px; background: rgba(var(--line-rgb), 0.1); }
.nf-seg-on { background: var(--coral); }
.nf-q-body { display: flex; flex-direction: column; }
.nf-q-title {
  margin: 22px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.nf-q-help { margin: 12px 0 0; font-size: 16px; line-height: 1.45; font-weight: 500; color: rgba(var(--text-rgb), 0.72); text-wrap: pretty; }

/* Tap rows */
.nf-section { display: flex; flex-direction: column; }
.nf-row {
  width: 100%;
  min-height: 60px;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 12px 14px 12px 16px;
  background: var(--white);
  border: 1.5px solid rgba(var(--line-rgb), 0.15);
  border-radius: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.nf-row-on {
  background: rgba(var(--coral-rgb), 0.06);
  border: 2px solid var(--coral);
  box-shadow: 0 0 0 4px rgba(var(--coral-rgb), 0.15);
}
.nf-row-text { display: flex; flex-direction: column; min-width: 0; }
.nf-row-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.nf-row-detail { margin-top: 2px; font-size: 14px; font-weight: 500; color: rgba(var(--text-rgb), 0.62); }
.nf-row-carried { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--coral); }
.nf-tag {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--line-rgb), 0.18);
  font-size: 13px;
  font-weight: 700;
  color: rgba(var(--text-rgb), 0.72);
  background: var(--white);
}
.nf-tag-on { background: var(--coral); border-color: var(--coral); color: var(--white); }

/* Pills (single-answer screens) */
.nf-pills { display: flex; flex-direction: column; margin-top: 22px; }
.nf-pill {
  width: 100%;
  min-height: 60px;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 15px 18px;
  background: var(--white);
  border: 1.5px solid rgba(var(--line-rgb), 0.18);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.nf-pill-on {
  background: rgba(var(--coral-rgb), 0.06);
  border: 2px solid var(--coral);
  box-shadow: 0 0 0 5px rgba(var(--coral-rgb), 0.16);
  font-weight: 700;
}
.nf-pill-text { display: flex; flex-direction: column; }
.nf-pill-sub { margin-top: 3px; font-size: 14px; font-weight: 500; color: rgba(var(--text-rgb), 0.62); }
.nf-check { flex-shrink: 0; color: var(--coral); }

/* The accounts screen: one at a time */
.nf-closest { display: flex; flex-direction: column; margin-top: 18px; }
.nf-closest-open { margin-bottom: 8px; }
.nf-closest-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.nf-closest-detail { margin-top: 3px; font-size: 15px; font-weight: 500; color: rgba(var(--text-rgb), 0.62); }
.nf-closest-pills { display: flex; flex-direction: column; margin-top: 14px; }
.nf-waiting-row {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1.5px dashed rgba(var(--line-rgb), 0.15);
  opacity: 0.55;
}
.nf-answered-head { margin-top: 18px; }
.nf-done-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  margin-bottom: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.nf-done-row .nf-row-text { flex: 1 1 auto; }
.nf-change {
  flex-shrink: 0;
  padding: 8px 12px;
  background: none;
  border: 1px solid rgba(var(--line-rgb), 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
@keyframes nfnexta { 0% { opacity: 0; transform: translateX(32px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes nfnextb { 0% { opacity: 0; transform: translateX(32px); } 100% { opacity: 1; transform: translateX(0); } }
.nf-next-a { animation: nfnexta 0.4s ease-out; }
.nf-next-b { animation: nfnextb 0.4s ease-out; }

/* The same-debt pair */
.nf-dup { display: flex; flex-direction: column; align-items: stretch; margin-top: 18px; }
.nf-dup-card { margin-top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; }
.nf-dup-amount { font-size: 18px; font-weight: 700; white-space: nowrap; }
.nf-dup-same { align-self: center; margin: 8px 0; font-size: 13px; font-weight: 800; letter-spacing: 1px; color: rgba(var(--text-rgb), 0.62); text-transform: uppercase; }

/* The date screens */
.nf-date-card { margin-top: 18px; }
.nf-date-sentence { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.nf-date-fact-head { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: rgba(var(--text-rgb), 0.62); text-transform: uppercase; }
.nf-date-fact { margin-top: 6px; font-size: 17px; font-weight: 700; }
.nf-date-help { margin: 14px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: rgba(var(--text-rgb), 0.72); }
.nf-input, .nf-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid rgba(var(--line-rgb), 0.18);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.nf-textarea { font-size: 16px; font-weight: 500; resize: vertical; }
.nf-input::placeholder, .nf-textarea::placeholder { color: rgba(var(--text-rgb), 0.45); font-weight: 500; }
.nf-input:focus, .nf-textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(var(--coral-rgb), 0.15); }

/* Footer */
.nf-footer { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.nf-footer-note { margin: 0; align-self: stretch; font-size: 14px; line-height: 1.45; font-weight: 500; color: rgba(var(--text-rgb), 0.62); text-align: center; }
.nf-footer .nf-btn { margin-top: 14px; }
.nf-footer-link { margin-top: 12px; }
.nf-footer-after { margin: 10px 0 0; font-size: 14px; line-height: 1.45; font-weight: 500; color: rgba(var(--text-rgb), 0.62); text-align: center; }

/* The checking line and the spinner */
.nf-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(var(--coral-rgb), 0.22);
  border-top-color: var(--coral);
  animation: nfspin 0.9s linear infinite;
}
@keyframes nfspin { to { transform: rotate(360deg); } }
.nf-checking-line { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

/* The results page */
.nf-results { padding-top: 12px; }
.nf-list { margin-top: 0; padding: 0 18px; }
.nf-list-row { padding: 16px 0; }
.nf-list-heading { font-size: 16px; font-weight: 700; line-height: 1.35; }
.nf-list-who { margin-top: 4px; font-size: 14px; font-weight: 500; color: rgba(var(--text-rgb), 0.62); }
.nf-list-lock { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 400; color: rgba(var(--text-rgb), 0.62); }
.nf-lock { flex-shrink: 0; }
.nf-divider { height: 1px; background: rgba(var(--line-rgb), 0.1); }
.nf-skipped { display: flex; flex-direction: column; align-items: flex-start; }
.nf-repeat-line { margin: 18px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: rgba(var(--text-rgb), 0.72); }
.nf-add-report { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .nf-next-a, .nf-next-b, .nf-spinner { animation: none; }
}
