/* Teach WatchFlow (Accounting › Banks & cards, Hal 2026-11-03): the groups left on the QuickBooks registers, one answer each.
   WatchFlow's own look: app font (Absans via var(--font-body)), theme tokens (navy / blue accent, day + night), soft cards like the bank cards,
   44px targets, >=16px inputs on phone. Reuses the shared .wfb-* pieces from qb-bank.css (icons, segmented control). */
.lrn-card, .lrn-card button, .lrn-card input, .lrn-card select { font-family: var(--font-body); }
.lrn-card { margin: 20px 0 8px; padding: 20px 22px 22px; border: 1px solid var(--border-light, var(--border)); border-radius: 16px; background: var(--bg-raised);
  box-shadow: 0 1px 2px rgba(15, 24, 34, .04), 0 6px 18px rgba(15, 24, 34, .05); }
.lrn-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.lrn-head-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lrn-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--white); }
.lrn-sub { margin-top: 3px; font-size: 13.5px; color: var(--off-white); }
.lrn-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; min-width: 220px; }
.lrn-search-ic { position: absolute; left: 12px; display: inline-flex; color: var(--muted); pointer-events: none; }
.lrn-search-ic svg { width: 17px; height: 17px; }
.lrn-search input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-void); color: var(--white); font-size: 14px; box-sizing: border-box; }
.lrn-search input:focus, .lrn-in:focus { outline: none; border-color: var(--accent, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--gold)) 14%, transparent); }
.lrn-empty { margin-top: 18px; padding: 24px 18px; text-align: center; font-size: 14px; color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; }

/* the sure-only bar */
.lrn-sure, .lrn-done { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--wfs-in, var(--green)) 8%, transparent); border: 1px solid color-mix(in srgb, var(--wfs-in, var(--green)) 22%, transparent); }
.lrn-sure-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-width: 32px; min-height: 32px; flex: 0 0 32px; aspect-ratio: 1 / 1; box-sizing: border-box;
  border-radius: 50%; color: var(--wfs-in, var(--green)); background: color-mix(in srgb, var(--wfs-in, var(--green)) 14%, transparent); }
.lrn-sure-ic svg { width: 18px; height: 18px; }
.lrn-sure-t { flex: 1 1 280px; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--off-white); }
.lrn-sure-t b { color: var(--white); font-weight: 700; }
.lrn-done { margin-top: 12px; }

/* the groups */
.lrn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); align-items: start; gap: 14px; margin-top: 18px; }
.lrn-g { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; border: 1px solid var(--border-light, var(--border)); border-radius: 14px; background: var(--bg-base, var(--bg-raised)); }
.lrn-g.is-open { border-color: color-mix(in srgb, var(--accent, var(--gold)) 45%, var(--border)); }
.lrn-g.is-done { opacity: .92; }
.lrn-g-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.lrn-g-main { flex: 1 1 auto; min-width: 0; }
.lrn-g-t { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrn-g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lrn-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--off-white);
  background: color-mix(in srgb, var(--muted) 12%, transparent); font-variant-numeric: tabular-nums; }
.lrn-chip.is-strong { color: var(--accent, var(--gold)); background: color-mix(in srgb, var(--accent, var(--gold)) 12%, transparent); }
.lrn-chip.is-quiet { color: var(--muted); background: none; padding: 0 4px; }
.lrn-ex { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--bg-void); font-size: 13px; color: var(--off-white); }
.lrn-ex-l { font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.lrn-ex-d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrn-ex-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.lrn-ex-a { font-weight: 700; color: var(--wfs-in, var(--green)); white-space: nowrap; }
.lrn-ex-a.is-out { color: var(--white); }
.lrn-sugg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; font-size: 13.5px; }
.lrn-sugg-l { font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent, var(--gold)); }
.lrn-sugg-v { min-width: 0; font-weight: 700; color: var(--white); overflow-wrap: anywhere; }
.lrn-sugg-why { grid-column: 2; font-size: 12.5px; line-height: 1.45; color: var(--off-white); }
.lrn-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lrn-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* the answer form */
.lrn-form { display: flex; flex-direction: column; gap: 12px; padding-top: 2px; }
.lrn-seg { align-self: flex-start; }
.lrn-field { display: flex; flex-direction: column; gap: 6px; }
.lrn-field > span { font-size: 11px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--off-white); }
.lrn-in { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg-void); color: var(--white); font-size: 14px; box-sizing: border-box; }
.lrn-results { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); }
.lrn-res { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--border-light, var(--border)); background: none; color: var(--white); font-size: 14px; text-align: left; cursor: pointer; }
.lrn-res:last-child { border-bottom: 0; }
.lrn-res:hover { background: var(--bg-hover); }
.lrn-res small { color: var(--muted); font-size: 12px; }
.lrn-picked { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent, var(--gold)) 8%, transparent); color: var(--white); font-weight: 600; font-size: 14px; }
.lrn-picked svg { width: 18px; height: 18px; color: var(--accent, var(--gold)); flex: 0 0 18px; }
.lrn-picked span { flex: 1 1 auto; min-width: 0; }
.lrn-picked .qbb-linkbtn { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--accent, var(--gold)); font-size: 13px; font-weight: 600; cursor: pointer; }
.lrn-hint { font-size: 12.5px; line-height: 1.45; color: var(--off-white); }

/* the preview */
.lrn-prev { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg-void); }
.lrn-prev-rule { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--off-white); }
.lrn-prev-rule svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--wfs-in, var(--green)); }
.lrn-prev-rule b { color: var(--white); }
.lrn-prev-t { font-size: 14px; line-height: 1.5; color: var(--off-white); }
.lrn-prev-t b { color: var(--white); }
.lrn-prog { height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--muted) 14%, transparent); }
.lrn-prog i { display: block; height: 100%; background: var(--accent, var(--gold)); transition: width .2s; }
.lrn-more { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) { .lrn-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .lrn-card { padding: 16px 14px 18px; border-radius: 14px; }
  .lrn-search { flex: 1 1 100%; min-width: 0; }
  .lrn-search input, .lrn-in { font-size: 16px; }
  .lrn-g { padding: 14px; }
  .lrn-g-t { white-space: normal; }
  .lrn-ex { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lrn-ex-l { display: none; }
  .lrn-acts .lrn-btn { flex: 1 1 140px; min-height: 44px; }
  .lrn-seg { align-self: stretch; }
  .lrn-seg .wfb-seg-btn { flex: 1 1 0; justify-content: center; }
  .lrn-sure .lrn-acts, .lrn-sure > .lrn-btn, .lrn-done > .lrn-btn { flex: 1 1 100%; }
}
