/*
  roibot.css: the ROI.bot chat page. Layout, spacing and table style follow
  the CSS of Steve's screens (header, progress bar, member bubble, ROI card,
  fixed input bar). Colors and font are The Fundraising Accountant's own
  (measured from fundraisingaccountant.org, L13). Phones (360-390 px): no
  sideways scroll; tables become stacked rows (L9).
*/

/* Every color, size and gap comes from here, so every screen follows. */
:root {
  /* FAC brand */
  --teal: #104956; /* dark teal: headings, header text, primary dark */
  --green: #50854b; /* FAC's main brand color: active and done progress */
  --green-btn: #4e8149; /* the same green, 3% darker so white text passes AA (4.61:1) */
  --green-hover: #3f6b3b;
  --turq: #0093c7; /* FAC blue: focus rings, accents (not small text) */
  --link: #007aa6; /* FAC blue, dark enough for text on white (4.84:1) */
  --sky: #369cac; /* FAC teal accent */
  --gold: #ffbb34; /* small highlights only (Verify), never text */
  --gold-tint: #fff3d6;
  --gold-ink: #6b4a00;
  --tint: #f4f7f1; /* page and tinted boxes */
  --tint-green: #edf7ed;
  --line: #c2d2d5; /* FAC border: cards, inputs */
  --border: #dde6e8; /* row dividers inside cards */
  --in-border: #c2d2d5;
  --in-fill: #ffffff;
  --future: #eceeea;
  --gray: #43403e; /* body text */
  --tagtext: #5e5c59; /* small and meta text (6.66:1 on white) */
  --placeholder: #5e6b6e;
  --white: #ffffff;
  --danger: #a3262a;
  --danger-tint: #fdf1f1;
  --orange: #b4521c; /* attention marks: blanks to fill, "add a link" (5.04:1) */
  --font:
    Raleway, Calibri, Carlito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(16, 73, 86, 0.04), 0 4px 16px rgba(16, 73, 86, 0.06);
  --ring: 0 0 0 3px rgba(0, 147, 199, 0.25);
  /* One spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  /* One type scale */
  --fs-title: 24px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-meta: 13px;
  /* Controls */
  --ctl-h: 48px;
  --radius: 10px;
  --radius-card: 16px;
  --ease: 150ms ease;
}
* {
  box-sizing: border-box;
}
html,
body {
  background: var(--tint);
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  color: var(--gray);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  /* Raleway draws old-style figures by default; numbers line up instead. */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 104px;
}
a {
  color: var(--teal);
  font-weight: 700;
  text-underline-offset: 2px;
  transition: color var(--ease);
}
a:hover {
  color: var(--link);
}
:focus-visible {
  outline: 2px solid var(--turq);
  outline-offset: 2px;
}
::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
[hidden] {
  display: none !important;
}

/* Header: FAC logo on the left, ROI.bot logo on the right */
.hdr {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hdr-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--s3) max(var(--s4), env(safe-area-inset-right, 0px)) var(--s3)
    max(var(--s4), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.fac-logo {
  height: 44px;
  width: auto;
  max-width: 830px;
  display: block;
}
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.logo {
  height: 48px;
  width: auto;
  display: block;
}

/* Progress: 3 steps on top, the current step's 5 or 6 sub-steps below */
.prog {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.prog-in {
  max-width: 900px;
  box-sizing: border-box;
  overflow-x: auto; /* P2: if the bar is ever wider than the screen, it scrolls inside itself */
  margin: 0 auto;
  padding: var(--s4) max(var(--s4), env(safe-area-inset-right, 0px)) var(--s5)
    max(var(--s4), env(safe-area-inset-left, 0px));
}
.big {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}
.big li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: 12px 12px 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  font-size: var(--fs-small);
  color: var(--tagtext);
  min-width: 0;
}
.big .n {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-small);
  border: 2px solid var(--future);
  background: var(--future);
  color: var(--tagtext);
  padding: 0;
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}
button.n,
button.dot,
.big li.go,
.sub li.go {
  cursor: pointer;
}
.big .lab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.big .lab small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.big .lab b {
  font-size: 15px;
}
.big .done {
  color: var(--teal);
}
.big .done .n {
  background: var(--white);
  border-color: var(--green);
  color: var(--green-btn);
}
.big .cur {
  background: var(--tint);
  border-color: var(--border);
  color: var(--teal);
}
.big .cur .n {
  background: var(--green-btn);
  border-color: var(--green-btn);
  color: var(--white);
}
.sub {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  padding: var(--s4) var(--s2) var(--s3);
}
.sub.s1 {
  border-top-left-radius: 0;
  border-top-right-radius: 12px;
}
.sub.s2 {
  border-radius: 12px;
}
.sub.s3 {
  border-top-right-radius: 0;
  border-top-left-radius: 12px;
}
.sub ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.sub li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  text-align: center;
  font-size: var(--fs-meta);
  line-height: 1.3;
  padding: 0 var(--s1);
  min-width: 0;
  color: var(--tagtext);
}
.sub li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--line);
}
.sub li.done:not(:last-child)::after {
  background: var(--green);
}
.dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-meta);
  border: 2px solid var(--line);
  color: var(--tagtext);
  background: var(--white);
  position: relative;
  z-index: 1;
  padding: 0;
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}
button.dot:hover,
button.n:hover {
  border-color: var(--turq);
  box-shadow: var(--ring);
}
/* P2: every dot and step number is a button; keyboard focus is clearly seen. */
button.dot:focus-visible,
button.n:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.sub .done .dot {
  border-color: var(--green);
  color: var(--green-btn);
}
.sub .cur .dot {
  background: var(--green-btn);
  border-color: var(--green-btn);
  color: var(--white);
}
.sub .cur .nm {
  font-weight: 700;
  color: var(--teal);
}
.sub .done .nm {
  color: var(--teal);
}
.prog .now {
  display: none;
}

/* The page */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--s6) max(var(--s4), env(safe-area-inset-right, 0px)) var(--s6)
    max(var(--s4), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
/* The member's organization: a clean pill on the right */
.me {
  align-self: flex-end;
  max-width: 520px;
  background: var(--teal);
  color: var(--white);
  font-size: var(--fs-body);
  line-height: 1.5;
  padding: var(--s3) var(--s5);
  border-radius: var(--radius-card) var(--radius-card) var(--s1)
    var(--radius-card);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.bot {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}
/* The ROI.bot robot icon beside each card: no circle, top-aligned */
.av {
  flex: none;
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.bubble {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--s1) var(--radius-card) var(--radius-card)
    var(--radius-card);
  padding: var(--s6);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.bubble p {
  margin: 0;
}
/* One vertical rhythm inside a card: 16 px between blocks, 8 px under a
   heading, 24 px above a section heading. */
.bubble .card-body > * {
  margin-top: 0;
  margin-bottom: 0;
}
.bubble .card-body > * + * {
  margin-top: var(--s4);
}
.bubble .card-body > * + h3,
.bubble .card-body > * + div:has(> h3:first-child) {
  margin-top: var(--s5);
}
.bubble .card-body > h2 + * {
  margin-top: var(--s3);
}
.card-body div > h3:first-child + * {
  margin-top: var(--s2);
}
.card-body:empty {
  display: none;
}
h2 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}
.tbl {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
  min-width: 560px;
  font-variant-numeric: lining-nums tabular-nums;
}
th {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: left;
  padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: 2px solid var(--teal);
  vertical-align: bottom;
}
td {
  padding: var(--s3) var(--s3) var(--s3) 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
tr:last-child > td {
  border-bottom: 0;
}
.src {
  font-size: var(--fs-small);
  color: var(--tagtext);
}
/* Source links look the same everywhere */
.src a,
.srcb a,
.footnote a,
td a {
  color: var(--link);
  font-weight: 600;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 28px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--teal);
  border-radius: 999px;
  padding: 2px var(--s3);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
}
.hint {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s4) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: 15px;
}
.nextline {
  text-align: center;
  font-size: 15px;
  color: var(--tagtext);
  margin: 0;
}
.footnote {
  font-size: var(--fs-small);
  color: var(--tagtext);
  text-align: center;
  margin: 0;
}

/* Status line in the card: Updating..., Updated 14:05, errors */
.status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}
/* Working: three soft dots before the words */
.status.work::before {
  content: "";
  flex: none;
  width: 36px;
  height: 8px;
  background: radial-gradient(circle, var(--green) 3.5px, transparent 4px) 0
    50% / 12px 8px repeat-x;
  animation: roibot-dots 1.2s linear infinite;
}
@keyframes roibot-dots {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}
.status.ok {
  align-self: flex-start;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--green-hover);
  background: var(--tint-green);
  border-radius: 999px;
  padding: 2px var(--s3);
}
.status.error {
  background: var(--danger-tint);
  border-left: 4px solid var(--danger);
  border-radius: var(--s2);
  padding: var(--s3) var(--s4);
}
.status.error,
.err {
  color: var(--danger);
  font-weight: 600;
}
.err {
  font-size: var(--fs-small);
}
.status .secs {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--tagtext);
}

/* Limit card (L2): message, then Join and Contact Steve */
.limit-msg {
  margin: 0 0 var(--s3);
}
.limit-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
}
.limit-contact {
  color: var(--teal);
  font-weight: 600;
}

/* Start screens */
.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fld label {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}
.fld input {
  height: var(--ctl-h);
  border: 1px solid var(--in-border);
  background: var(--in-fill);
  border-radius: var(--radius);
  padding: 0 var(--s4);
  font: inherit;
  font-size: var(--fs-body);
  color: var(--gray);
  width: 100%;
  min-width: 0;
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}
.fld input:focus,
.bar input[type="text"]:focus {
  outline: none;
  border-color: var(--turq);
  box-shadow: var(--ring);
}
.fld input[aria-invalid="true"] {
  border-color: var(--danger);
}

/* Previous and Next */
.card-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.card-foot:empty {
  display: none;
}
.happy {
  font-weight: 700;
  color: var(--teal);
}
.btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s1);
  flex-wrap: wrap;
}
/* One button set: primary (FAC green), secondary (outlined teal), quiet */
.prev,
.nextb,
.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--ctl-h);
  border-radius: var(--radius);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease);
}
.prev {
  padding: 0 var(--s5);
  border: 2px solid var(--teal);
  background: var(--white);
  color: var(--teal);
}
.prev:hover {
  background: var(--tint);
}
.nextb {
  padding: 0 40px;
  border: 2px solid var(--green-btn);
  background: var(--green-btn);
  color: var(--white);
  margin-left: auto;
}
.nextb:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--white);
}
.prev:focus-visible,
.nextb:focus-visible,
.send:focus-visible {
  outline: 2px solid var(--turq);
  outline-offset: 2px;
}
.nextb:disabled,
.prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nextb:disabled:hover {
  background: var(--green-btn);
  border-color: var(--green-btn);
}
.linkbtn {
  border: 0;
  background: none;
  padding: var(--s1) 0;
  min-height: 44px;
  font: inherit;
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linkbtn:hover {
  color: var(--link);
}

/* The fixed input bar */
.bar {
  position: fixed;
  z-index: 10; /* above a lifted Step 1.2 card (L15) */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(16, 73, 86, 0.05);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bar form {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--s3) max(var(--s4), env(safe-area-inset-right, 0px)) var(--s3)
    max(var(--s4), env(safe-area-inset-left, 0px));
  display: flex;
  gap: var(--s2);
  align-items: center;
}
.bar label {
  position: absolute;
  left: -9999px;
}
.bar input[type="text"] {
  flex: 1;
  min-width: 0;
  height: var(--ctl-h);
  border: 1px solid var(--in-border);
  background: var(--in-fill);
  border-radius: var(--radius);
  padding: 0 var(--s4);
  font: inherit;
  font-size: var(--fs-body);
  color: var(--gray);
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}
/* Faded green until something is typed, then the full FAC green */
.send {
  padding: 0 var(--s6);
  border: 2px solid transparent;
  background: var(--green-btn);
  color: var(--white);
  opacity: 0.45;
  cursor: default;
}
.send.ready {
  opacity: 1;
  cursor: pointer;
}
.send.ready:hover {
  background: var(--green-hover);
}

@media (max-width: 600px) {
  .fac-logo {
    height: 34px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .logo {
    height: 38px;
  }
  .big {
    gap: var(--s1);
  }
  .big li {
    flex-direction: column;
    gap: var(--s1);
    padding: var(--s2) var(--s1);
    text-align: center;
  }
  .big .lab small {
    display: none;
  }
  .big .lab b {
    font-size: 13px;
  }
  .sub li .nm {
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .sub {
    padding: var(--s3) 2px var(--s3);
  }
  .prog-in {
    padding-bottom: var(--s4);
  }
  .prog .now {
    display: block;
    text-align: center;
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--teal);
    padding-top: var(--s3);
    margin: 0;
  }
  .main {
    padding-top: var(--s5);
    gap: var(--s4);
  }
  h2 {
    font-size: 21px;
  }
  .bubble {
    padding: var(--s5) var(--s4);
  }
  .av {
    width: 32px;
    height: 32px;
  }
  .bot {
    gap: var(--s2);
  }
  .send {
    padding: 0 var(--s4);
  }
  .nextb {
    padding: 0 var(--s6);
  }
  .prev,
  .nextb,
  .send {
    min-height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Step 1.1 card (H2): keyword rows, chips, the numbered questions */
.intro {
  margin: 0;
  font-size: 17px;
}
.fname {
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.kwrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.kwrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.kwrow b {
  min-width: 120px;
  color: var(--teal);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.kwrow .chips {
  margin-top: 0;
}
.tally {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--tagtext);
}
.asks {
  margin: 8px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hint ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hint p {
  margin: 0;
}

/* Step 2.5, Report 3 (H6) */
.r3-head {
  background: var(--teal);
  color: var(--white);
  border-radius: 12px 12px 0 0;
  padding: 16px 24px;
}
.r3-head h3,
.r3-head .r3-sub {
  color: var(--white);
  margin: 4px 0 0;
}
.r3-tag {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.r3-org {
  font-size: 22px;
}
.r3-flag {
  background: #fdecea;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0 0;
}
.r3-lead {
  padding: 16px 0 0;
}
.r3-leadtext {
  font-size: 19px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 4px;
}
.r3-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.r3-tile {
  background: var(--tint);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
}
.r3-tile strong {
  font-size: 24px;
  color: var(--teal);
}
.r3-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.r3-h {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--turq);
}
.r3-note {
  background: #fdf1ea;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
}
.r3-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.r3-math {
  font-family: ui-monospace, Consolas, monospace;
}
.r3-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.r3-verified {
  background: #e3f3e8;
  color: #1d6b3a;
}
.r3-estimate {
  background: #e0f0f8;
  color: #0b5d82;
}
.r3-not_verified,
.r3-not_valued {
  background: #fdf1ea;
  color: #8a3f12;
}
.r3-addlink {
  display: inline-block;
  border: 1px dashed var(--orange);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
  color: var(--orange);
}
.r3-prog,
.r3-amt {
  font-weight: 700;
  color: var(--teal);
}
.r3-total {
  margin: 8px 0 0;
}
.r3-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.r3-bar {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  font-size: 15px;
}
.r3-bar-track {
  background: var(--future);
  border-radius: 4px;
  height: 10px;
}
.r3-bar-fill {
  display: block;
  background: var(--turq);
  border-radius: 4px;
  height: 10px;
}
.r3-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}
.r3-vsel {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--in-border);
  border-radius: 8px;
  background: var(--in-fill);
}
.r3-readonly {
  background: var(--tint);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.r3-copy {
  background: var(--tint);
  border-radius: 10px;
  padding: 14px;
}

/* Step 1.2 (H3): stack ranking with drag and drop. Additive. */
.rk-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rk-view {
  font: inherit;
  font-size: 15px;
  padding: 6px 14px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
}
.rk-view.on {
  background: var(--teal);
  color: var(--white);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Steps 2.1 to 2.4 (H5): cards, gift rows, previews. Phones: one column;
   tables scroll inside their card (.tbl). */
.s2-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s2-card.skipped > :not(h3):not(.s2-choice:first-of-type) {
  opacity: 0.45;
}
.s2-hint {
  font-size: 15px;
  color: var(--tagtext);
}
.s2-lab,
.s2-q {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}
.s2-fld .s2-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.s2-fld textarea,
.s2-select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--in-border, #c3d3d8);
  border-radius: 8px;
  background: var(--in-fill, #f7fafb);
}
.s2-fld .s2-box input {
  flex: 1;
  min-width: 0;
}
.s2-aff {
  font-weight: 700;
  color: var(--teal);
}
.s2-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
}
.s2-choice input {
  width: 22px;
  height: 22px;
  flex: none;
}
.s2-chip {
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 12px;
}
.s2-gift {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--tint);
}
.s2-gifthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--teal);
}
.s2-math,
.s2-flagline {
  font-size: 15px;
  color: var(--tagtext);
}
.s2-out {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s2-line {
  margin: 0;
}
.s2-blank {
  background: #fff0c2;
  color: var(--gray);
  border-radius: 4px;
  padding: 0 4px;
}
.s2-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.s2-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s2-fake {
  align-self: flex-start;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 700;
}
.s2-notes {
  background: #fff0c2;
  border-radius: 8px;
  padding: 8px 12px;
}
.s2-note {
  margin: 0;
  font-size: 15px;
}
.s2-wishrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.s2-x,
.s2-skip {
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
  justify-self: start;
}
.s2-vision {
  font-style: italic;
}
.s2-costline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.s2-costline p {
  margin: 0;
}

/* Steps 3.1 to 3.3 (J4): colors and spacing from Steve's current 3.x screens. */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
}
.from {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tagtext);
}
.srcb {
  font-size: 14px;
  color: var(--tagtext);
}
.srcb a {
  color: var(--teal);
}
.vf {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.vf.ok {
  background: #e3f3ec;
  color: #1f6b46;
}
.vf.no {
  background: #fbeadf;
  color: #9a4a1c;
}
.vf.from {
  background: var(--tint);
  color: var(--tagtext);
}
.s3-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s3-pick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.s3-pick input {
  margin-top: 5px;
}
.draft {
  border: 2px dashed var(--orange);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}
.draft .ph {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a4a1c;
}
.s3-line {
  margin: 0 0 6px;
  line-height: 1.45;
}
.tell {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.tell input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--in-border);
  border-radius: 8px;
  background: var(--in-fill);
  font: inherit;
  font-size: 15px;
}
.s3-change {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.s3-change:disabled {
  opacity: 0.5;
}
.s3-sub {
  margin: 14px 0 2px;
}
.s3-why {
  border-left: 4px solid var(--turq);
  background: var(--tint);
  padding: 8px 12px;
  margin: 8px 0;
}
.s3-whyhead {
  font-weight: 700;
  margin: 0 0 4px;
}
.s3-sec > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
}
.s3-sec > summary h3 {
  margin: 0;
  flex: 1 1 auto;
}
.s3-count {
  font-size: 14px;
  color: var(--tagtext);
}
.s3-body,
.s3-forms,
.s3-story {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s3-body {
  margin-top: 8px;
}
.s3-story {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.s3-idea {
  margin: 0;
  color: var(--gray);
}
.s3-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.s3-row .fld {
  flex: 1 1 auto;
  min-width: 0;
}
.s3-rm,
.s3-add {
  font: inherit;
  cursor: pointer;
  background: var(--white);
  color: var(--teal);
}
.s3-rm {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--in-border);
  border-radius: 8px;
  font-size: 20px;
}
.s3-add {
  align-self: flex-start;
  border: 1px dashed var(--teal);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
}
.s3-pv {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--turq);
  font-size: 15px;
  color: var(--gray);
}
.s3-pv:empty {
  display: none;
}
.s3-rules ul {
  margin: 0;
  padding-left: 20px;
}
.s3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 10px 0;
}
.s3-sbc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: 10px;
  background: var(--white);
}
.s3-sbc h4 {
  margin: 0;
  font-size: 17px;
  color: var(--teal);
}
.s3-sbc ul,
.s3-together {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}
.s3-lb {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tagtext);
}
.s3-sbc b.v {
  color: var(--turq);
}
.s3-nostory,
.s3-story-text {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.s3-nostory {
  border: 2px dashed var(--orange);
  border-radius: 8px;
  padding: 8px 10px;
  color: #9a4a1c;
}
.s3-say {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--tagtext);
}
.s3-cp,
.s3-copyb {
  align-self: flex-start;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}
.s3-copyb {
  min-height: 44px;
  padding: 0 18px;
  border-width: 2px;
  border-radius: 10px;
  font-size: inherit;
}
.s3-copyrow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
}
.s3-copied {
  font-size: 14px;
  color: var(--teal);
}
/* Steps 3.4 and 3.5 (J5): economic impact and story board. Colors and spacing
   are taken from Steve's current 3.4 and 3.5 screens. */
#card .ex {
  font-size: 15px;
  color: var(--tagtext);
  margin: 0;
}
#card .from {
  display: inline-block;
  background: #e3f2f8;
  color: var(--teal);
  font-size: 14px;
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 700;
}
.ec-meth {
  background: var(--tint);
  border-left: 4px solid var(--turq);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  margin: 0;
}
.ec-table {
  min-width: 0;
  font-size: 15px;
}
.ec-table td {
  padding-right: 6px;
}
.ec-table td.p {
  font-weight: 700;
  color: var(--teal);
  width: 150px;
}
.ec-table td.v,
.ec-table th.v {
  text-align: right;
  white-space: nowrap;
}
.ec-table td.v b {
  font-size: 17px;
  color: var(--teal);
}
.ec-table td.v .fx {
  display: block;
}
.ec-table input {
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--in-border);
  background: var(--in-fill);
  border-radius: 6px;
  padding: 4px 6px;
  width: 90px;
  font-weight: 700;
  color: var(--turq);
}
.ec-table input:placeholder-shown {
  border: 2px dashed var(--orange);
  background: var(--white);
  font-weight: 400;
}
.ec-table input:focus {
  outline: none;
  border-color: var(--turq);
  background: var(--white);
}
.ec-rt {
  margin-top: 6px;
  white-space: nowrap;
}
.ec-rt input {
  width: 80px;
}
.ec-note {
  display: block;
  font-size: 13px;
  color: #9a4a1c;
  margin-top: 4px;
}
.ec-from {
  display: inline-block;
  margin-left: 6px;
  background: var(--future);
  color: var(--tagtext);
  font-size: 12px;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.ec-tot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
}
.ec-tot b {
  font-size: 28px;
}
.ec-exc {
  columns: 2 220px;
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}
#card .stg {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--white);
  margin-bottom: 8px;
}
#card .stg h4 {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 16px;
}
#card .stg ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#card .stg li {
  outline: none;
  border-radius: 4px;
}
#card .stg li:focus {
  background: var(--in-fill);
  box-shadow: 0 0 0 2px var(--turq);
}
.ec-copyrow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ec-copyb {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: var(--white);
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ec-copyb.alt {
  border-color: var(--turq);
  color: var(--turq);
}
#card .hint .q {
  font-weight: 700;
  color: var(--teal);
  font-size: 17px;
}
.ec-finish {
  display: flex;
  justify-content: flex-end;
}
.ec-done {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 3.5 */
#card .card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
}
#card .card h3 {
  display: flex;
  align-items: center;
  margin: 0;
}
#card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-right: 8px;
  flex: none;
}
#card .chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--in-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 16px;
  cursor: pointer;
  background: var(--white);
}
#card .chk input {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
}
#card .chk:has(input:checked) {
  border-color: var(--teal);
  background: var(--tint);
  color: var(--teal);
  font-weight: 700;
}
#card .pitch {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
#card .pitch .hd {
  display: block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 700;
}
#card .blk {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
#card .blk.off {
  opacity: 0.5;
}
#card .blk .use {
  margin-top: 6px;
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
}
#card .blk .lb {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turq);
}
#card .blk .tx {
  margin: 0;
  font-size: 17px;
  white-space: pre-line;
}
#card .cp {
  min-height: 36px;
  border: 1px solid var(--in-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}
#card .bank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#card .bank .it {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
#card .bank .it p {
  margin: 0;
}
#card .pkg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#card .pkg div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
}
#card .pkg b {
  display: block;
  color: var(--teal);
}
@media (max-width: 600px) {
  #card .pkg {
    grid-template-columns: 1fr 1fr;
  }
  #card .blk {
    grid-template-columns: auto 1fr;
  }
  #card .blk .cp {
    grid-column: 2;
    justify-self: start;
  }
}

/* J2: Steps 1.3 Your Outputs, 1.4 Add Context, 1.5 Your Outcomes. */
.meter {
  margin: 12px 0;
  font-size: 15px;
  color: var(--tagtext);
}
.mbar {
  height: 8px;
  margin-top: 6px;
  background: var(--future);
  border-radius: 4px;
  overflow: hidden;
}
.mfill {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.2s;
}
.og {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}
.oh {
  display: flex;
  align-items: center;
  gap: 10px;
}
.oh h3,
.oc-prog .pn {
  margin: 0;
  font-size: 18px;
  color: var(--teal);
}
.rk {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.orow,
.crow {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.orow {
  grid-template-columns: 130px minmax(0, 1fr) 34px;
}
.crow {
  grid-template-columns: 24px minmax(0, 1fr) 130px 34px;
}
.orow input.n,
.crow input.n {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--in-border);
  background: var(--in-fill);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  color: var(--gray);
}
.orow input.n.blank,
.crow input.n.blank {
  border: 2px solid var(--orange);
  background: #fdf3ec;
}
.orow textarea.w,
.crow textarea.w,
.paste-box {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--in-border);
  background: var(--in-fill);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--gray);
  resize: vertical;
}
.crow .ck {
  width: 22px;
  height: 22px;
  margin-top: 8px;
}
.rm {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--tagtext);
  font-size: 22px;
  cursor: pointer;
}
.add {
  margin-top: 8px;
  border: 1px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  padding: 6px 14px;
  min-height: 44px;
  cursor: pointer;
}
.vf {
  font-weight: 700;
  margin-left: 4px;
}
.vf.ok {
  color: var(--teal);
}
.vf.est {
  color: var(--orange);
}
.check-box {
  margin: 16px 0;
  padding: 10px 14px;
  background: var(--tint);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
}
.check-box h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--teal);
}
.check-box ul {
  margin: 0;
  padding-left: 20px;
}
.dropzone {
  margin: 8px 0;
  padding: 14px;
  border: 2px dashed var(--in-border);
  border-radius: 10px;
  text-align: center;
}
.dropzone.over {
  border-color: var(--turq);
  background: var(--tint);
}
.attach-btn {
  display: inline-block;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.chips .chip .rm {
  min-width: 28px;
  min-height: 28px;
  font-size: 18px;
}
.oc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0;
}
.oc-meter {
  margin: 4px 0 12px;
  color: var(--tagtext);
}
.oc-prog {
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 14px;
}
.oc-prog summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.oc-said ul {
  margin: 4px 0 10px;
  padding-left: 20px;
}
.peers .peer {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.peers .peer p {
  margin: 2px 0;
}
.sub-note,
th .sub {
  font-weight: 400;
  font-size: 13px;
  color: var(--tagtext);
}
@media (max-width: 600px) {
  .orow {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas: "n x" "w w";
  }
  .orow .n {
    grid-area: n;
  }
  .orow .wcol {
    grid-area: w;
  }
  .orow .rm {
    grid-area: x;
  }
  /* P49: the words take the whole row; the tick box, the number and the
     remove button sit on the line below. The program box has less side
     padding so the row is wide enough to read. */
  .oc-prog {
    padding: 4px 6px;
  }
  .crow {
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    grid-template-areas: "w w w" "c n x";
    align-items: center;
  }
  .crow .ck {
    grid-area: c;
  }
  .crow .wcol {
    grid-area: w;
  }
  .crow .n {
    grid-area: n;
  }
  .crow .rm {
    grid-area: x;
  }
}

/* L1: tap targets. Every checkbox and radio is at least 24 px, and the label
   around it is at least 44 px tall (the 3.1 picks, the 3.5 radios and chips,
   the 1.5 and 2.x checks). */
#card input[type="checkbox"],
#card input[type="radio"],
#card .chk input,
#card .blk .use,
.crow .ck,
.s2-choice input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: none;
}
#card label.s3-pick,
#card label.s2-choice,
#card label.chk {
  min-height: 44px;
  align-items: center;
}
#card label.s3-pick input {
  margin-top: 0;
}
#card label.chk {
  display: inline-flex;
  gap: 8px;
}
.crow .ck {
  margin-top: 10px;
}
#card .blk .use {
  margin-top: 10px;
}

/* L1: "(Optional)" under a progress dot, and the "nothing to change" note. */
.sub .opt {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--tagtext);
}
#card .nochange {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-left: 4px solid var(--orange);
  background: var(--tint);
}

/* L7c: "Verify" mark on facts the fact-check could not confirm */
.vfy {
  display: inline-block;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

/* L9: phones. Below 600 px a data table becomes stacked rows: each row is a
   bordered block, each cell shows its column name (data-label, set by
   js/chat/table.js) above its value. The header row stays for screen readers
   but is not drawn. Nothing scrolls sideways. Desktop is unchanged. */
@media (max-width: 600px) {
  .tbl {
    overflow-x: visible;
    max-width: 100%;
  }
  .tbl table,
  .tbl thead,
  .tbl tbody,
  .tbl tr,
  .tbl td {
    display: block;
    min-width: 0;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }
  .tbl tr:has(> th) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tbl tr:not(:has(> th)) {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 12px;
    margin-bottom: 12px;
  }
  .tbl td {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .tbl td:last-child {
    border-bottom: 0;
  }
  .tbl td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 4px;
  }
  .tbl td.v .fx,
  .tbl td.fname {
    white-space: normal;
  }
  .tbl td a,
  .tbl td .src {
    overflow-wrap: anywhere;
  }
  .tbl td input,
  .tbl td textarea {
    max-width: 100%;
  }
}

/* L11: the join button carries a long sentence: it wraps cleanly, and is full
   width on phones. */
.nextb.join-cta {
  width: 100%;
  height: auto;
  padding: 12px 28px;
  margin: 8px 0 0;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.join-contact {
  margin: 4px 0 0;
}
/* L14: plain small text under the button, no box. */
.join-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--tagtext);
}
.limit-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 640px) {
  .nextb.join-cta {
    width: 100%;
    font-size: 20px;
  }
}

/* L10: the report preview on the join card (js/chat/sample-report.js).
   "Your impact snapshot", then a short sample of a report that fades out. */
.pv-snapshot,
.pv-sample {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}
.pv-snapshot h3,
.pv-sample h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--teal);
}
.pv-figs {
  margin: 8px 0;
  padding-left: 18px;
}
.pv-figs li {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.pv-figs .src {
  display: block;
  overflow-wrap: anywhere;
}
.pv-next {
  margin: 8px 0 0;
  font-weight: 600;
}

/* L13: one style each for badges, notes, small buttons and inputs inside the
   cards, so every step looks the same. Colors come from :root. */

/* Badges: Verify, Updated, Sample, verified/estimate tags */
.vfy,
.vf,
.r3-chip,
.ec-from,
#card .from {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  border-radius: 999px;
  padding: 1px var(--s2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: 0.1em;
}
.vfy {
  margin-left: var(--s1);
  border: 1px solid var(--gold);
  background: var(--gold-tint);
  color: var(--gold-ink);
}
.r3-verified,
.vf.ok {
  background: var(--tint-green);
  color: var(--green-hover);
}
.r3-estimate {
  background: #e6f3f8;
  color: #0b5d82;
}
.r3-not_verified,
.r3-not_valued,
.vf.no {
  background: var(--gold-tint);
  color: var(--gold-ink);
}
.vf.est {
  color: var(--orange);
}
#card .from {
  background: #e6f3f8;
  color: var(--teal);
}

/* Notes and "things to check" boxes: a tinted box with a colored edge */
.check-box,
.s2-notes,
.r3-note,
.r3-flag,
.ec-meth,
.s3-why,
#card .nochange {
  background: var(--tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  border-radius: var(--s2);
  padding: var(--s3) var(--s4);
}
.check-box,
#card .nochange,
.r3-flag {
  border-left-color: var(--gold);
  background: #fffaf0;
}
.check-box h3 {
  font-size: var(--fs-body);
  margin: 0 0 var(--s1);
}

/* Small buttons inside cards: outlined teal, 44 px tall, one radius */
.s3-change,
.s3-copyb,
.ec-copyb,
.add,
.attach-btn,
#card .cp,
.s3-cp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 44px;
  padding: 0 var(--s4);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--ease),
    border-color var(--ease);
}
.s3-change:hover,
.s3-copyb:hover,
.ec-copyb:hover,
.add:hover,
.attach-btn:hover,
#card .cp:hover,
.s3-cp:hover,
.rk-view:hover,
.s3-add:hover {
  background: var(--tint);
}
.ec-copyb.alt {
  border-color: var(--link);
  color: var(--link);
}
.s3-change:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rk-view,
.s3-add {
  min-height: 36px;
  transition: background var(--ease);
}
.rk-view.on,
.rk-view.on:hover {
  background: var(--teal);
}
.s2-fake {
  background: var(--green-btn);
}
.s2-x,
.s2-skip {
  color: var(--orange);
}

/* Inputs inside cards: same border, fill and FAC-blue focus ring */
#card input:not([type="checkbox"]):not([type="radio"]):focus,
#card textarea:focus,
#card select:focus {
  outline: none;
  border-color: var(--turq);
  box-shadow: var(--ring);
}
.tell input,
.s3-row input {
  min-height: 44px;
}

/* Amounts line up on the right (desktop tables) */
@media (min-width: 601px) {
  table .r3-amt {
    text-align: right;
    white-space: nowrap;
  }
}

/* Inner boxes: one radius, the dividers' border */
.og,
.oc-prog,
.s2-card,
.s2-gift,
.s2-tile,
.pv-snapshot,
.pv-sample,
#card .card,
#card .stg,
#card .bank .it,
#card .pkg div,
.s3-sbc {
  border-color: var(--border);
  border-radius: 12px;
}
.pv-snapshot,
.pv-sample {
  padding: var(--s4) var(--s5);
}
@media (max-width: 600px) {
  .pv-snapshot,
  .pv-sample {
    padding: var(--s3) var(--s4);
  }
}
@media (max-width: 600px) {
  /* Step names under the dots break between words, never inside one */
  .sub li {
    padding: 0 1px;
  }
  .sub li .nm {
    font-size: 11px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
}

/* L14: the Report 3 table (2.6) and the economic impact table (3.4) fit the
   card. Long words and web-address labels wrap; nothing is cut off. */
.r3-table {
  min-width: 0;
  font-size: 14px;
}
.r3-table th,
.r3-table td,
.ec-table th,
.ec-table td {
  padding-right: 10px;
  overflow-wrap: break-word;
}
.r3-table th:first-child,
.r3-table td.r3-prog {
  min-width: 104px;
}
.r3-table td:nth-child(4) {
  overflow-wrap: anywhere;
}
.ec-table td.p {
  width: 110px;
}
.ec-table td:nth-child(3),
.ec-table th:nth-child(3) {
  min-width: 96px;
}
.ec-table td.v,
.ec-table th.v {
  min-width: 84px;
}
.ec-table td.src,
.ec-table th:last-child {
  min-width: 150px;
}
.r3-table th:last-child,
.r3-table td:last-child,
.ec-table th:last-child,
.ec-table td:last-child {
  padding-right: 0;
}
.ec-table td.v,
.ec-table th.v {
  white-space: normal;
}
.ec-table td.v .fx {
  white-space: normal;
}

/* L14: an empty status line draws nothing; the drop box's own text is plain
   (not a grey bar); an empty table cell is hidden on a phone. */
.hint:empty {
  display: none;
}
.dropzone .hint {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
}
@media (max-width: 600px) {
  .tbl td:empty {
    display: none;
  }
}

/* L14: the small words under a table heading ("what you did") sit in the
   heading, in line with its column: no box, no wrapping. */
th .th-sub {
  display: block;
  color: var(--tagtext);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

/* L14: on a phone every tap target is at least 44 px high and wide. Small
   things keep their look: the hit area is padding or a larger transparent box. */
@media (max-width: 600px) {
  .dot,
  .big .n {
    width: 44px;
    height: 44px;
  }
  .crow {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .sub li:not(:last-child)::after {
    top: 21px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
  }
  /* Source links: 44 px tall hit area; the negative margin keeps the lines
     of text where they were. */
  .src a,
  .srcb a,
  .footnote a,
  .tally a,
  td a {
    display: inline-block;
    padding: 14px 2px;
    margin: -14px 0;
  }
  .rk-view,
  .rm,
  .s3-rm,
  .s3-add,
  .s2-select,
  .r3-vsel,
  .ec-table input,
  .crow input.n,
  .orow input.n,
  input.n,
  summary {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
  summary {
    display: flex;
    align-items: center;
  }
  /* The tick boxes: a 44 px box that draws a 24 px tick box in its middle. */
  #card .blk input.use,
  #card .crow input.ck {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    border: 0;
    background: transparent center / 24px 24px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='4' fill='white' stroke='%23104956' stroke-width='2'/%3E%3C/svg%3E");
  }
  #card .blk input.use:checked,
  #card .crow input.ck:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='4' fill='%23104956' stroke='%23104956' stroke-width='2'/%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* L15: Step 1.2 as a sortable list. One card per program: grip, rank, name
   and score on top; the three part scores as small labeled values; then
   "Why it ranks here" as readable text you can click into. Colors and
   spacing come from :root (L13). */
.rk-wrap {
  margin-top: var(--s4);
}
.rk-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.rk-card {
  position: relative;
  padding: var(--s3) var(--s4) var(--s4);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(16, 73, 86, 0.05);
  transition:
    transform 180ms ease,
    box-shadow var(--ease),
    border-color var(--ease);
}
.rk-card:hover {
  border-color: #a9bfc3;
}
.rk-top {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
}
.rk-n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}
.rk-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--teal);
  overflow-wrap: break-word;
}
.rk-total {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  white-space: nowrap;
}
.rk-total-l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rk-score {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rk-ctl {
  flex: none;
  display: inline-flex;
  gap: 4px;
}
.rank-handle,
.rk-move {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition:
    background var(--ease),
    border-color var(--ease);
}
.rk-move {
  border-color: var(--border);
}
.rank-handle {
  margin-left: -10px;
  color: #6f8589;
  cursor: grab;
  /* A finger on the grip drags the card instead of scrolling the page. */
  touch-action: none;
  user-select: none;
}
.rank-handle:hover,
.rk-move:hover {
  background: var(--tint);
  color: var(--teal);
}
.rank-handle:focus-visible,
.rk-move:focus-visible {
  outline: 2px solid var(--turq);
  outline-offset: 2px;
}
/* The part scores and the reason line up under the name. */
.rk-subs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  margin: var(--s1) 0 0 70px;
  padding: 0;
}
.rk-sub {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
}
.rk-sub dt {
  color: var(--tagtext);
}
.rk-sub dd {
  margin: 0;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.rk-why {
  margin: var(--s3) 0 0 70px;
  padding: var(--s2) var(--s3) var(--s1);
  border-radius: 8px;
  background: var(--tint);
}
.rk-why-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.rk-why-l {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tagtext);
}
.why-edit {
  display: block;
  width: calc(100% + 12px);
  margin: 2px 0 0 -6px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
  resize: none;
  overflow: hidden;
  cursor: text;
  transition:
    border-color var(--ease),
    background var(--ease);
}
.why-edit:hover {
  border-color: var(--line);
  background: var(--white);
}
#card .why-edit:focus {
  border-color: var(--turq);
  background: var(--white);
  box-shadow: var(--ring);
}
.rk-why .tie {
  margin: var(--s1) 0;
}
/* ROI.bot's order: read only, no grips or buttons. */
.rk-still .rk-subs,
.rk-still .rk-why {
  margin-left: 36px;
}
/* Dragging: the card lifts and follows the pointer, the others slide, and a
   dashed space shows where it will land. */
.rk-sorting .rk-card {
  user-select: none;
}
.rk-card.rank-dragging {
  z-index: 3;
  transition:
    box-shadow var(--ease),
    border-color var(--ease);
  border-color: var(--turq);
  box-shadow:
    0 12px 28px rgba(16, 73, 86, 0.18),
    0 2px 6px rgba(16, 73, 86, 0.1);
}
.rk-card.rank-dragging .rank-handle {
  cursor: grabbing;
}
.rk-sorting .rk-card {
  z-index: 1;
}
.rk-space {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  border: 2px dashed var(--sky);
  border-radius: 12px;
  background: rgba(54, 156, 172, 0.06);
  pointer-events: none;
  transition: top 180ms ease;
}
@media (max-width: 600px) {
  .rk-card {
    padding: var(--s2) var(--s3) var(--s3);
  }
  /* The name gets its own full line under the rank and score, so a long
     name breaks between words, never inside one. */
  .rk-top {
    flex-wrap: wrap;
  }
  .rk-total {
    margin-left: auto;
  }
  .rk-name {
    order: 5;
    flex-basis: 100%;
    padding-top: 2px;
    font-size: 16px;
  }
  /* Up and down sit at the card's bottom right on a phone. */
  .rk-card .rk-ctl {
    position: absolute;
    right: var(--s3);
    bottom: var(--s3);
  }
  .rk-card:has(.rk-ctl) {
    padding-bottom: 64px;
  }
  .rk-subs,
  .rk-why,
  .rk-still .rk-subs,
  .rk-still .rk-why {
    margin-left: 0;
  }
}

/* L15: the join card. The first look at their own report (the top of the
   outcomes table, the dollar values blurred), then the join button with the
   FAC logo on a white chip, a quiet member line and a small Contact link. */
.pv-line {
  margin: 0 0 var(--s3);
  font-size: var(--fs-small);
  color: var(--tagtext);
}
.pv-page {
  position: relative;
}
.pv-table td {
  vertical-align: top;
}
.pv-table .pv-prog {
  font-weight: 700;
  color: var(--teal);
}
.pv-table .src {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-meta);
}
.pv-later {
  color: var(--tagtext);
  font-style: italic;
}
/* The dollar value: a soft blurred placeholder, never a number. */
.pv-locked {
  white-space: nowrap;
}
.pv-blur {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tint-green);
  color: var(--teal);
  font-size: var(--fs-meta);
  font-weight: 600;
  filter: blur(0.6px);
  box-shadow: 0 0 8px 4px var(--tint-green);
  user-select: none;
}
/* After the rows: a faded ghost row, then "The rest is for members." */
.pv-fade {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 0.8fr;
  gap: var(--s3);
  padding: var(--s3) 0 var(--s5);
  border-top: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.pv-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.pv-ghost {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
}
.pv-more {
  margin: 0;
  font-weight: 700;
  color: var(--teal);
}
.nextb.join-cta {
  display: flex;
  gap: var(--s3);
  padding: 10px var(--s5);
  min-height: 56px;
  margin-top: var(--s4);
  font-size: 17px;
  overflow-wrap: normal;
}
.join-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--white);
}
.join-logo img {
  display: block;
  height: 28px;
  width: auto;
}
.join-text {
  text-align: left;
}
.join-hint {
  margin: var(--s3) 0 0;
  font-size: var(--fs-small);
  color: var(--tagtext);
  text-align: center;
}
.join-contact {
  margin: 0;
  text-align: center;
}
.join-contact .limit-contact {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--link);
}
.prev.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--tagtext);
  font-weight: 600;
}
.prev.quiet:hover {
  background: var(--tint);
  color: var(--teal);
}
@media (max-width: 600px) {
  /* On a phone the logo sits above the words, both centered. */
  .nextb.join-cta {
    flex-direction: column;
    gap: var(--s2);
    font-size: 16px;
    padding: var(--s3) var(--s4);
  }
  .join-text {
    text-align: center;
  }
}

/* L15: the member preview. A slim notice under the header (FAC tint, dark
   teal text, a quiet link), the same on the ROI.bot page and the preview
   page; and the preview page itself, calm and short. */
.pvstrip {
  background: var(--tint-green);
  border-bottom: 1px solid var(--line);
  color: var(--teal);
}
.pvstrip-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s4);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  font-size: var(--fs-small);
  text-align: center;
}
.pvstrip .linkbtn {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--teal);
}
.pvp {
  max-width: 640px;
  margin: var(--s6) auto;
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}
.pvp-kicker {
  margin: 0 0 var(--s2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
}
.pvp h1 {
  margin: 0 0 var(--s3);
  font-size: var(--fs-title);
  line-height: 1.25;
  color: var(--teal);
}
.pvp p {
  line-height: 1.6;
}
.pvp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}
.pvp-btns .nextb {
  margin-left: 0;
  padding: 0 var(--s5);
}
@media (max-width: 600px) {
  .pvp {
    margin: var(--s4) 0;
    padding: var(--s5) var(--s4);
  }
  .pvp-btns .nextb,
  .pvp-btns .prev {
    width: 100%;
  }
}

/* L17: no badge or pill alerts. Verify is small gold-underlined text next to
   the fact; From you, Estimate and the source tags are small muted text; the
   "Updated" time is quiet text. Meaning stays, the colored boxes go. */
.vfy,
.vf,
.vf.ok,
.vf.no,
.vf.est,
.vf.from,
.r3-chip,
.r3-verified,
.r3-estimate,
.r3-not_verified,
.r3-not_valued,
.ec-from,
#card .from {
  display: inline;
  border: 0;
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tagtext);
}
.vfy {
  margin-left: var(--s1);
  font-weight: 600;
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.status.ok {
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: var(--fs-meta);
  font-weight: 400;
  color: var(--tagtext);
}

/* L17: the sign-in line and its small box, only when sign-in is on. */
.join-signin {
  text-align: center;
}
.join-signin a {
  color: var(--teal);
  text-decoration: underline;
}
.signin-box {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: 360px;
  margin: var(--s2) auto 0;
  text-align: left;
}

/* P36: the data note on the start screens and the members card. */
.data-note {
  margin: 0 0 var(--s3);
  font-size: 15px;
  color: var(--teal);
}
.members-card h2 {
  margin-bottom: var(--s4);
}
.members-card .btns {
  gap: var(--s3);
}

/* P39: phone polish. Step names under the dots never touch; the members card
   buttons stack full width, login first and Back second. */
@media (max-width: 600px) {
  .sub li {
    padding: 0 4px;
  }
  .sub li .nm {
    font-size: 10.5px;
    letter-spacing: -0.1px;
  }
  .members-card .btns {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .members-card .btns .prev,
  .members-card .btns .nextb {
    width: 100%;
  }
}
