/* SimpleFIN Bridge (v21): the chooser's two cards and the confirm sheet's account rows. Everything else reuses the
 * app's existing sheet, field, select, tag and row classes. */

/* The two cards are the same four rows (head, strengths, drawbacks, button). Side by side they share the grid's rows
   (subgrid), so each section starts on one line across both and the buttons sit on one bottom line. */
.ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 0; margin-top: 16px;
  align-items: stretch; }
.way { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 14px; border: 1px solid var(--line2);
  border-radius: 16px; padding: 16px; background: var(--card2); min-width: 0; }
.way-h { display: flex; align-items: flex-start; gap: 12px; }
.way-h .grow { min-width: 0; }
.way-h b { display: block; font-size: 16px; }
.way-h span span, .way-h .grow > span { display: block; font-size: 13.5px; color: var(--mut); margin-top: 2px; white-space: normal; }
.way-pro, .way-con { min-width: 0; }
.way-pro h4, .way-con h4 { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; margin: 0 0 5px; }
.way-pro h4 svg.i { color: var(--ok); width: 16px; height: 16px; }
.way-con h4 svg.i { color: var(--warn); width: 16px; height: 16px; }
.way-pro ul, .way-con ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.way-pro li, .way-con li { font-size: 13.5px; line-height: 1.45; color: var(--fg); }
.way-con li { color: var(--mut); }
.way .btn.w { align-self: end; width: 100%; height: 48px; margin: 0; flex: none; }
.way .btn.w:disabled { opacity: .55; cursor: not-allowed; }
/* Plaid has no connection left: one line above the cards says why its button is off */
.way-full { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  font-size: 15px; line-height: 1.4; background: color-mix(in srgb, var(--warn) 12%, transparent); }
.way-full svg.i { flex: none; margin-top: 2px; color: var(--warn); }

.sf-acct { align-items: flex-start; gap: 10px 14px; flex-wrap: wrap; }
.sf-acct .grow { min-width: 190px; }
.sf-acct .meta2 { display: flex; align-items: baseline; min-width: 0; color: var(--mut); font-size: 13px; }
.sf-acct .meta2 > .mt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-acct .meta2 > .chip2, .sf-acct .meta2 > .sf-bal { flex: none; white-space: pre; }
.sf-acct .meta2 > .chip2.bk { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-acct select.selv { margin-left: auto; max-width: 100%; }
.sf-acct.dup { color: var(--mut); }
.sf-acct.dup .nm { color: var(--mut); }
.sf-second { display: inline-flex; }
.sf-second[hidden] { display: none; }
.tag.sf { color: var(--acc); border-color: var(--line2); background: rgba(142, 168, 255, .10); }

.help-line { display: flex; align-items: center; gap: 6px; }
.help-line .help-trigger.labelled { font-size: 13px; }

@media (max-width: 751.98px) {
  .ways { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .way { display: flex; flex-direction: column; grid-row: auto; padding: 14px; }
}
