/* The client's home page, PASS 3 (PC 1, Oct 16 2026): the approved M2 home look
   (chatgpt-pass5\M2-client-home-phone.png). The pieces come from client-pass3.css (see
   PASS3-PC1-FOUNDATION.md); only what is special to this page lives here: layout and sizes.
   No colors and no font names in this file (only the look's names, var(--...)).

   Phone (up to 699): one column in this order: the photo banner with the greeting, What we need from you,
   Your month, (Your own QuickBooks), Coming up, Send us your papers, Ask us something, our last answer.
   Computer (1024 and up): the banner across the page, then two columns (7 to 5): what needs her and her
   month on the left, what is coming and the ways to reach us on the right. */

/* ---- the business that is open, above the greeting (Oct 17 2026, his ask: a client with two
   businesses must see which one this is) ---- */
.home-banner .p3-hello-biz {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
  color: var(--p3-photo-ink);
  font: 700 1.1875rem/1.3 var(--font-body);
  letter-spacing: .01em;
}

.home-banner .p3-hello-biz [data-icon],
.home-banner .p3-hello-biz svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--p3-gold-ink);
}

.home-banner .p3-hello-biz[hidden] {
  display: none;
}

/* ---- the greeting: never one word alone on a line ---- */
.home-banner .p3-hello {
  text-wrap: balance;
}

/* the van stands at the left of the photo: on a phone (the photo is cut at the sides) keep the whole van in,
   as in the mockup. On a computer the photo is cut only at the top and bottom, so the first number does nothing there. */
.home-banner .p3-banner-img {
  --p3-focus: 4% 40%;
}

/* Phone: a lower banner (about 0.7 of the width, was 0.92), so "What we need from you" and its first
   button show on the first screen, above the phone bar (review, Oct 16). */
@media (max-width: 699px) {
  .p3-banner.bleed.home-banner {
    min-height: 280px;
  }
}

/* Computer: a lighter veil, so the lit van shows as in the mockup and is not a grey ghost behind the
   greeting. The words keep a dark band under them (the bottom of the veil) and their shadow.
   The look's own photo veil colour, mixed lighter (no colour is written in this file). */
@media (min-width: 700px) {
  .home-banner::after {
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--p3-photo-veil) 55%, transparent) 0%,
        color-mix(in srgb, var(--p3-photo-veil) 20%, transparent) 30%,
        transparent 50%),
      linear-gradient(180deg,
        transparent 0%,
        transparent 52%,
        color-mix(in srgb, var(--p3-photo-veil) 78%, transparent) 74%,
        color-mix(in srgb, var(--p3-photo-veil) 95%, transparent) 100%);
  }
}

/* "Customize" (INTEGRATION-CONTRACT.md section 8, PC 2's shared piece): at the top right of the photo banner,
   on its own dark glass, clear of the greeting at the bottom and of "Your look" and "Menu" in the top bar. */
.home-banner .home-customize {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

@media (max-width: 699px) {
  .home-banner .home-customize {
    top: 12px;
    right: var(--gutter);
  }
}

/* Up to 1023 wide every card stands in the first column wrapper, in the person's order (home.js placeCards):
   the empty second wrapper takes no room and adds no gap. */
.home-cols > .p3-col.home-col-off {
  display: none;
}

/* ---- 1. what we need from you ---- */
.needs-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One thing has two faces, the question and "Saved". Only one shows. The thing itself keeps the
   height it had with its question (home.js sets it), so an answer moves nothing on the page. */
.need {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* a hairline only BETWEEN two things that show, never above the first */
.need:not([hidden]) ~ .need:not([hidden]) {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.need-face {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.need-words {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* the question in the look's own words type (--font-ui: sans in Night sky, as in the mockup); the card heading stays serif */
.need-title {
  font: var(--w-strong) 1.375rem/1.25 var(--font-ui);
  letter-spacing: 0;
  text-wrap: balance;
}

.need-what {
  font-family: var(--font-ui);
  font-size: var(--text);
  line-height: 1.38;
  text-wrap: balance;   /* never "Oct 13" alone on the last line */
}

.need-acts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
}

/* the second, quieter way ("I do not have it", "Undo"): as wide as its words */
.need-acts > .btn-inline {
  align-self: flex-start;
}

.need-acts.across {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

/* "Saved": the line and its Undo sit together in the middle of the room the question left */
.need-saved {
  justify-content: center;
}

.need-saved .need-acts {
  margin-top: 0;
}

.need-saved-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: var(--w-strong) 1.375rem/1.3 var(--font-ui);
  text-wrap: balance;
}

.need-saved-line > .icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  margin-top: .08em;
  stroke-width: 2;
  color: var(--good);
}

/* the line under "Saved" ("We will ask you about it."), before the button: it is about the answer */
.need-more {
  min-width: 0;
  color: var(--soft);
  text-wrap: balance;
}

.needs-none {
  color: var(--soft);
  text-wrap: pretty;
}

/* answered before the page was opened: one line each, with Undo beside it, under a hairline */
.answered {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.answered-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: var(--w-strong) 1.25rem/1.3 var(--font-ui);
}

.answered-title > .icon {
  flex: none;
  width: 26px;
  height: 26px;
  stroke-width: 2;
  color: var(--good);
}

.done-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  padding: 10px 0;
}

/* a line only BETWEEN two rows that show, never under the last one */
.done-row:not([hidden]) ~ .done-row:not([hidden]) {
  border-top: 1px solid var(--rule);
}

.done-row .thanks {
  flex: 1 1 300px;
}

/* ---- 2. your month ---- */
.month-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* "Your month" can stand in the narrow right column (a person's own order with Customize): its two buttons then
   go one under the other, instead of wrapping "See October so far" over three lines. */
.month-card {
  container-type: inline-size;
}

@container (max-width: 500px) {
  .month-acts.p3-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the newest week: one quiet row you can press, under a hairline */
.week-row {
  align-items: center;
  margin-top: 2px;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 6px 6px;
}

.week-row .p3-row-r {
  margin-left: auto;
}

.week-go {
  flex: none;
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
  color: var(--p3-gold-ink);
}

.month-bank {
  color: var(--soft);
}

/* ---- 2b. a one-time cleanup (instead of "Your month"): status, the period, four small figures ---- */
.clean-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.clean-period {
  margin-top: -6px;
  color: var(--soft);
}

.clean-figs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 20px;
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
}

.clean-figs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* cream figures, as "came in" and "went out" on "Your month": gold stays for the few things that need her */
.clean-figs .p3-fig-n {
  font-size: 2.125rem;
  line-height: 1.05;
}

.clean-figs .p3-fig-l {
  text-wrap: balance;
}

/* ---- a client with no payroll: "Coming up" has no payroll day, so its list has no line above it ---- */
.next-up[hidden] + .later {
  padding-top: 0;
  border-top: 0;
}

.month-bank b {
  color: var(--ink);
}

/* ---- for a client with their own QuickBooks ---- */
.qb-words {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qb > .btn {
  align-self: flex-start;
}

/* ---- 3. coming up: the one date with something to do, set large; then the later dates ---- */
.next-up {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.next-date {
  display: flex;
  flex-direction: column;
}

.next-date .p3-fig-n {
  font-size: 2.375rem;
}

.next-up .btn {
  margin-top: 8px;
}

.later {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.later li {
  display: grid;
  grid-template-columns: minmax(4.75rem, max-content) minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 14px;
  color: var(--soft);
}

.later b {
  color: var(--ink);
}

/* ---- 4. sending papers ---- */
.papers-what {
  color: var(--soft);
}

/* the two ways, one under the other: the side column is too narrow for both on one line */
.papers-acts {
  flex-direction: column;
  align-items: stretch;
}

/* ---- 5. asking ---- */
.ask-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The question box is the shared textarea, but it starts one line tall, as tall as "Send"
   beside it, and home.js lets it grow with the words. "Send" stays where it is while it grows. */
.ask {
  --ask-h: var(--btn-h, var(--press));
}

.ask .send-row > textarea.input {
  min-height: var(--ask-h);
  max-height: 232px;
  padding-top: calc((var(--ask-h) - 2px - 1.35em) / 2);
  padding-bottom: calc((var(--ask-h) - 2px - 1.35em) / 2);
  resize: none;
  overflow-y: auto;
}

@media (min-width: 700px) {
  .ask .send-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* "Send" stays beside the box while the box has room for "Type your question here" on one line.
     In a narrow column "Send" goes under the box, as wide as the box, instead of the empty box
     growing to two lines. The large grow number keeps the spare room in the box. */
  .ask .send-row > textarea.input {
    flex: 1000 1 270px;
  }

  .ask .send-row > .btn {
    flex: 1 0 auto;
  }
}

.ask-sent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- 6. our answer: the thing to read here, a little larger ---- */
.answer .talk {
  font-size: 1.375rem;
  line-height: 1.42;
}

/* ---- line breaks, all over the page: no word alone on the last line ---- */
.later span,
.answer .talk p,
.ask-said,
.page .thanks,
.qb-words p,
#pop-hours .quiet,
#pop-answer .answer-note {
  text-wrap: pretty;
}

.page .p3-h2,
.next-note,
.foot p {
  text-wrap: balance;
}

/* ---- the foot: real buttons, and the answer to "Download everything" right under them ---- */
.foot {
  gap: 10px 14px;
  padding-top: 14px;
  padding-bottom: 12px;
}

/* ---- the answer pop-up: one big button per answer ---- */
.answer-picks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-note {
  color: var(--soft);
}

/* never "charge?" alone on the second line of the pop-up title */
#pop-answer .popup-head .h2 {
  text-wrap: balance;
}

/* ---- the hours pop-up: one line above the buttons in both states, and two button places of
   the same width, so nothing in it moves when the hours are approved or the OK is taken back ---- */
.hours-said {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.hours-acts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hours-acts .btn {
  padding-left: 12px;
  padding-right: 12px;
}

/* a wide but short window (a laptop at 125 percent): the pop-ups close up a little */
@media (min-width: 700px) and (max-height: 640px) {
  #pop-hours .stack.loose,
  #pop-answer .stack.loose {
    gap: 12px;
  }

  /* 3 people since joining step 2 (one row more): the rows close up a little more */
  .hours-rows .row {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

/* ---- phone ---- */
@media (max-width: 699px) {
  .need-title,
  .need-saved-line {
    font-size: 1.3125rem;
  }

  .next-date .p3-fig-n {
    font-size: 2.125rem;
  }

  .ask {
    --ask-h: var(--field-h, var(--press));
  }

  .answer .talk {
    font-size: 1.25rem;
  }

  .hours-acts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================================
   THE REAL PAGE (home.js "live"). The demo shows these pieces only with #live=1.
   Every card has a waiting, an empty, an offline and a "could not load" state, each with a
   way on. Text sizes in rem, so the browser's own text size setting reaches them.
   ===================================================================================== */

/* waiting for the data: a small turning ring and the words of what is coming */
.home-wait {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--press);
  color: var(--soft);
}

.home-spin {
  flex: none;
  width: 24px;
  height: 24px;
  border: 3px solid var(--rule);
  border-top-color: var(--p3-gold);
  border-radius: 50%;
  animation: home-turn 1s linear infinite;
}

@keyframes home-turn {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home-spin { animation: none; }
}

/* could not load: what happened, then "Try again" under it */
.home-fail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.home-fail .notice {
  align-self: stretch;
}

/* nothing here yet: the kit's empty piece, a little closer inside a card */
.home-empty {
  padding: 26px 20px;
}

/* "Saved: ..." takes the keyboard focus after an answer (home.js): its ring (3px, 3px out) must not run
   over the line under it */
.need-saved-line {
  margin-bottom: 6px;
}

/* what we need from you, while it waits or could not load */
.need.home-state-card {
  justify-content: center;
}

/* papers: how many she has sent, under the heading */
.papers-count {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.papers-count .home-wait {
  min-height: 0;
}

.papers-hold,
.answer-wait,
.hours-wrote {
  color: var(--soft);
}

/* the missing receipt, picked on this page: her photo, its name and size */
.home-paper {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.home-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 72px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.home-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-thumb .icon {
  width: 36px;
  height: 36px;
  color: var(--p3-gold-ink);
}

.home-paper-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* decision 332 (Oct 24 2026): the paper that just reached us stays on its card, with "We have it" in green */
.need-got[hidden] { display: none; }
.need-got .home-paper-words { gap: 2px; }

/* sending: a bar that fills, and how far it is in words */
.home-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--p3-bar-track);
}

.home-bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--p3-bar-out);
  transition: width .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .home-bar > span { transition: none; }
}

/* a question with no answers to pick from: her words and "Send" (in the answer pop-up) */
.need-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.need-form textarea.input {
  min-height: calc(var(--field-h, var(--press)) * 2);
  resize: vertical;
}
/* audit C7: "38 letters left." near the end of the 200 letters the answer can have */
.need-form .need-count { margin: -4px 0 0; }

/* the business picker (a login with more than one business): "Switch business" sits in a row of
   its own under the greeting. The pop-up lists the businesses, the open one marked. */
.biz-list .btn {
  justify-content: flex-start;
  text-align: left;
}

.biz-name {
  min-width: 0;
}

.biz-here {
  margin-left: auto;
  padding-left: 12px;
}

/* The owner, looking at the page as the client sees it. A card of the kit is a column
   (client-pass3.css .panel.p3-card, two class names): a phone keeps that, and the words take only their own
   height (the old "flex: 1 1 320px" became a 320px HEIGHT in a column: an empty hole, review must-fix).
   From 700 wide the words and "Back to the owner screen" sit side by side. */
.home-as {
  gap: 14px 24px;
}

.home-as p {
  flex: 0 1 auto;
}

@media (min-width: 700px) {
  .panel.p3-card.home-as {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .panel.p3-card.home-as p {
    flex: 1 1 320px;
  }
}

/* every card of the real page could not load: one notice under the greeting, one "Try again" */
.home-trouble {
  align-items: flex-start;
}

.home-trouble .notice {
  align-self: stretch;
}

/* that card, while the notice above speaks for it */
.home-later {
  color: var(--soft);
}

/* the page could not open: what happened, "Try again", "Sign out" */
.home-problem,
.home-noscript {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.home-problem .notice {
  align-self: stretch;
}

/* ---- fix list item 5 (Oct 17 2026): Take a photo / Upload a receipt on the banner, and the drop zone ----
   Computer: bottom right of the photo, on its own dark glass so the words read on any photo she picks.
   Phone: two full-width buttons under the greeting, still on the photo. The look's names only. */
.home-drop-strip {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 var(--gutter, 16px) 16px;
  background: color-mix(in srgb, var(--pop-bg) 82%, transparent);
  border: 1px solid var(--p3-card-line);
  border-radius: var(--p3-radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.home-drop-line {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}
/* decision 331 (Oct 24 2026): three ways in. "Take a photo" on its own row, "From my photos" and "Upload a file"
   side by side under it (a phone; the photo strip of a computer); one row of three in the short band. Buttons
   that do not fit side by side go under each other, never over each other, and their words never break. */
.home-drop-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-drop-btns .btn {
  flex: 1 1 auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-drop-btns .home-drop-photo { flex-basis: 100%; }
.home-drop-photo {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--pop-bg);
}
.home-drop-upload,
.home-drop-gallery {
  background: color-mix(in srgb, var(--pop-bg) 60%, transparent);
  border: 2px solid var(--accent);
  color: var(--ink);
}
/* while papers go (and for the owner "as the client"): the buttons wait, dashed, and their words stay readable on
   any photo in every look (dimmed, they read 1 to 1 on a dark photo) */
.home-banner .home-drop-btns .btn:disabled {
  --b-icon: #fbf8f2;
  background: rgba(8, 21, 35, .82);
  border: 2px dashed rgba(232, 194, 122, .75);
  box-shadow: none;
  color: #fbf8f2;
  cursor: not-allowed;
  opacity: 1;
}
.home-banner .home-drop-btns .btn:disabled svg,
.home-banner .home-drop-btns .btn:disabled i { color: #fbf8f2; }

/* the drop line only where a mouse can drag: never on a phone or a touch screen */
@media (pointer: coarse), (max-width: 699px) {
  .home-drop-line { display: none; }
}

@media (max-width: 699px) {
  .p3-banner.home-banner { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .home-drop-strip { margin: 0 12px 12px; padding: 10px; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .home-drop-btns { gap: 8px; }
  /* two side by side at 390 wide in every look (the cream look's serif words are the widest); width auto, not
     the full width every button takes on a phone */
  .home-drop-btns .btn { --btn-icon: 22px; width: auto; padding: 4px 8px; gap: 4px; }
}

@media (min-width: 700px) {
  .home-drop-strip {
    position: absolute;
    right: 16px;
    bottom: 16px;
    margin: 0;
    width: 460px;
    max-width: calc(100% - 32px);
  }
  /* the greeting keeps clear of the strip at the bottom right */
  .home-banner .p3-banner-text { padding-right: 46%; }
}
@media (min-width: 980px) {
  /* the photo strip: From my photos and Upload a file side by side under Take a photo; the greeting keeps clear
     of the whole strip (460 wide, 16 from the edge) */
  .home-banner:not(.is-compact) .p3-banner-text { padding-right: 508px; }
  .home-banner:not(.is-compact) .home-drop-btns .btn { padding-left: 14px; padding-right: 14px; }
}
/* a narrow computer or a tablet without the short band (700 to 979): the strip under the greeting, the three
   buttons in one row, so the strip never lies over the greeting */
@media (min-width: 700px) and (max-width: 979px) {
  .p3-banner.home-banner:not(.is-compact) { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .home-banner:not(.is-compact) .p3-banner-text { padding-right: 32px; }
  .home-banner:not(.is-compact) .home-drop-strip { position: relative; right: auto; bottom: auto; width: auto; max-width: none; margin: 0 16px 16px; }
}

/* ---- decision 332 (Oct 24 2026): what happened to a receipt, big and in sight ----
   One box (a panel, so every look gives it its own card colours and it reads the same on any banner photo):
   a round mark (turning while it goes, a green check, or the sign for a problem), the big words, the small
   words, the bar, the papers of the round with "We have it", and Try again or OK. home.js puts it under the
   banner or under "Send a receipt", wherever the button was pressed. */
.home-sent {
  display: grid;
  gap: 14px;
  border-width: 2px;
  scroll-margin: 96px 0 112px;
}
.home-sent[hidden],
.home-sent-bar[hidden],
.home-sent-list[hidden],
.home-sent-acts .btn[hidden] { display: none; }
.home-sent.is-good { border-color: var(--good-line); }
.home-sent.is-bad { border-color: var(--bad-line); }
.home-sent-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.home-sent.is-good .home-sent-ring { border-color: var(--good-line); background: var(--good-bg); color: var(--good); }
.home-sent.is-bad .home-sent-ring { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.home-sent-ring .icon { stroke-width: 2.4; }
/* while it goes: a ring that turns (still when the person asked for less movement) */
.home-spin {
  display: block;
  width: 34px;
  height: 34px;
  border: 4px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: home-spin .9s linear infinite;
}
@keyframes home-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .home-spin { animation: none; border-color: var(--accent); }
}
.home-sent-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-sent-big {
  margin: 0;
  color: var(--ink);
  font: var(--w-strong, 700) 1.5rem/1.25 var(--font-ui);
  text-wrap: balance;
}
.home-sent-big:focus { outline-offset: 4px; }
.home-sent-small {
  margin: 0;
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.home-sent-bar { height: 12px; }
.home-sent-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-sent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.home-thumb.home-sent-thumb { width: 54px; height: 72px; }
.home-thumb.home-sent-thumb .icon { width: 30px; height: 30px; }
.home-sent-row-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-sent-name { color: var(--ink); overflow-wrap: anywhere; }
/* "We have it" in green with its check; "Did not reach us" in the colour of a problem */
.home-sent-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 1.125rem;
}
.home-sent-state .icon { flex: none; width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.home-sent-state.is-good { color: var(--good); font-weight: 700; }
.home-sent-state.is-bad { color: var(--bad); font-weight: 700; }
.home-sent-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-sent-acts:not(:has(.btn:not([hidden]))) { display: none; }
.home-sent-acts .btn { min-height: 52px; min-width: 9rem; }
@media (max-width: 699px) {
  .home-sent-acts .btn { flex: 1 1 100%; }
  .home-sent-big { font-size: 1.375rem; }
}

/* dragging files over the page: the whole banner is the place to drop */
.home-drop-veil {
  position: absolute;
  z-index: 3;
  inset: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--ink);
  background: color-mix(in srgb, var(--pop-bg) 72%, transparent);
  border: 3px dashed var(--accent);
  border-radius: var(--p3-radius);
  pointer-events: none;
}
.home-drop-veil[hidden] { display: none; }
.home-drop-veil svg, .home-drop-veil i { width: 72px; height: 72px; color: var(--accent); }
.home-drop-big { margin: 0; font: 600 clamp(1.75rem, 3.4vw, 2.75rem)/1.1 var(--serif); }
.home-drop-small { margin: 0; font-size: 1.125rem; max-width: 34em; }
@media (prefers-reduced-motion: no-preference) {
  .home-banner.is-dropping .home-drop-veil { box-shadow: 0 0 28px -6px var(--accent); }
}
/* the camera drawing on the gold button takes the button's dark words colour, not gold on gold */
.home-drop-photo svg, .home-drop-photo i { color: var(--pop-bg); stroke: currentColor; }
/* phone: the greeting sits under "Customize", never behind it */
@media (max-width: 699px) {
  .home-banner .p3-banner-text { padding-top: 76px; }
}

/* ---- fix list item 10 (Oct 17 2026): the Activity card ---- */
.activity .head-row { display: flex; align-items: center; gap: 10px; }
.activity .head-row svg, .activity .head-row i { width: 28px; height: 28px; color: var(--accent); }
.activity-sub { margin: 4px 0 8px; color: var(--soft); }
.activity-list { list-style: none; margin: 0 0 12px; padding: 0; }
.activity-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.activity-list time { color: var(--accent); font-size: 1rem; }
.activity-list span { color: var(--ink); }
/* change 018: who did it, after the words, "(Stingray Bookkeeping)"; it moves to the next line whole */
.activity-list li { position: relative; }
.activity-list .act-by { color: var(--soft); white-space: nowrap; }
.activity .btn { min-height: 48px; }
@media (max-width: 699px) { .activity-list time { font-size: 1.125rem; } }
/* Engraved cream only (Oct 20 2026): the gold --accent on the cream card measured about 4.1 to 1, below 4.5 to 1.
   A deeper gold reads about 6 to 1 there. The shared --accent token stays as it is, so nothing else moves. */
[data-theme="engraved-cream"] .activity-list time { color: #7a5a1f; }

/* his number by the upload buttons (Oct 17 2026): readable on every banner photo, a big tap target on a phone */
.home-help-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(8, 16, 24, .72); color: #eef3f5; font-size: 1rem; line-height: 1.45; }
.home-help-line [data-icon], .home-help-line svg { flex: none; color: #e8c27a; }
.home-help-line a { color: #e8c27a; font-weight: 700; text-decoration: underline; white-space: nowrap;
  display: inline-block; min-height: 44px; line-height: 44px; }

/* =====================================================================================================
   THE MONEY RIVER (Oct 20 2026, PC 1; strategy\MONEY-RIVER-BUILD.md; pictures B-client-pc.jpg and
   B-client-phone.jpg). Right under the greeting: "Your money this month" (the river, inside the "Your month"
   card), what is owed beside it on a computer, then Your latest report | Statements | Invoices from us in one row,
   then Send a receipt. Up to 1023 wide every card stands under the one before (as the phone picture). The river
   itself is money-river.css. Words 18px and up, buttons 48px with words, chips with words (never colour only):
   Open gold with navy words, Paid and Checked deep teal #157F78 with white words (4.8:1), Late coral with navy
   words (CHECKS.md).
   ===================================================================================================== */
.home-money {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
  min-width: 0;
}
.home-money > * { grid-column: span 12; min-width: 0; }
@media (min-width: 1024px) {
  .home-money.has-pair > #month-card { grid-column: span 8; }
  .home-money.has-pair > #owed-card { grid-column: span 4; }
  .home-money[data-trio="3"] > .home-latest,
  .home-money[data-trio="3"] > .home-stmts,
  .home-money[data-trio="3"] > .home-inv { grid-column: span 4; }
  .home-money[data-trio="2"] > .home-latest,
  .home-money[data-trio="2"] > .home-stmts,
  .home-money[data-trio="2"] > .home-inv { grid-column: span 6; }
}

/* "Your money this month" */
.month-card.has-river { gap: 10px; }
.home-river-mark {
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.4;
}
.home-river { min-width: 0; margin-top: 6px; }
.home-river-acts { display: flex; justify-content: flex-end; margin-top: 4px; }

/* what is owed */
.home-owed { gap: 0; }
.home-owed-part {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 18px;
}
.home-owed-part + .home-owed-part {
  padding-top: 18px;
  border-top: 1px solid var(--p3-card-line, var(--line));
}
.home-owed-big b {
  color: var(--ink);
  font: 700 clamp(2.5rem, 3.6vw, 3.25rem)/1.08 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.home-owed-rows {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.home-owed-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 1.125rem;
}
.home-owed-rows b { color: var(--ink); }
.home-owed-asof { color: var(--soft); font-size: 1.0625rem; line-height: 1.4; }

/* the chips: always words */
.home-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 2px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 1.0625rem/1.2 var(--sans);
  white-space: nowrap;
  vertical-align: middle;
}
.home-chip.is-open { background: #f2c766; border-color: #f7dc9c; color: #1c1405; }
.home-chip.is-paid, .home-chip.is-done { background: #157f78; border-color: #3fb0a5; color: #ffffff; }
.home-chip.is-late { background: #f08c7f; border-color: #f6b2a8; color: #0b1a2a; }

/* Your latest report */
.home-latest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 1.1875rem;
}
.home-latest .btn { margin-top: auto; }

/* Statements */
.home-stmt-btns { display: grid; gap: 12px; }
.home-stmt-from { color: var(--soft); font-size: 1.0625rem; }

/* Invoices from us: number, due or paid day, a chip. Never a price here. */
.home-inv-list { display: grid; margin: 0; padding: 0; list-style: none; }
.home-inv-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p3-card-line, var(--line));
  font-size: 1.125rem;
}
.home-inv-row:last-child { border-bottom: 0; }
.home-inv-no { font-weight: 700; color: var(--ink); white-space: nowrap; }
.home-inv-when { color: var(--soft); min-width: 0; }

/* Send a receipt: a dashed strip on a computer, a teal button with words on a phone */
.home-send { display: flex; flex-direction: column; gap: 8px; }
.btn.home-send-btn {
  --b-bg: transparent;
  --b-ink: var(--ink);
  --b-line: var(--p3-gold, var(--accent));
  --b-icon: var(--p3-gold-ink, var(--accent));
  --b-shadow: none;
  width: 100%;
  min-height: 64px;
  justify-content: center;
  border-style: dashed;
  border-width: 2px;
}
.home-send-short { display: none; }
/* decision 331: "From my photos" where "Send a receipt" opens the camera (a phone, a tablet); a computer's file
   window already takes photos */
.btn.home-send-photos { display: none; width: 100%; min-height: 56px; justify-content: center; }
@media (max-width: 699px), (pointer: coarse) {
  .btn.home-send-photos { display: inline-flex; }
}
@media (max-width: 699px) {
  .btn.home-send-btn {
    --b-bg: #157f78;
    --b-ink: #ffffff;
    --b-icon: #ffffff;
    --b-line: #3fb0a5;
    border-style: solid;
    min-height: 56px;
  }
  .home-send-long { display: none; }
  .home-send-short { display: inline; }
  .home-chip { font-size: 1.125rem; }
  .home-owed-asof, .home-stmt-from, .home-river-mark { font-size: 1.125rem; }
}
@media (forced-colors: active) {
  .home-chip { border-color: CanvasText; }
}

/* =====================================================================================================
   THE COMPACT GREETING (Money river fixes, Oct 20 2026; pictures B-client-pc.jpg and B-client-phone.jpg).
   While the river shows (home.js bannerFit: .home-banner.is-compact) the photo banner is a short band: the
   company name, "Hello, Dana." with its count, "Updated today, 9:42 PM.", Customize, and the Take a photo /
   Upload a receipt buttons (his fix list item 5, Oct 17), so the river's Came in, Kept and Cash in the bank are
   on the first screen of a computer (1280 x 900) and the river's title and its start on a phone (390 x 844).
   Dropping files on the banner still works; "Send a receipt" under the cards says "drop the file here" too.
   ===================================================================================================== */
.home-updated {
  margin: 6px 0 0;
  color: var(--p3-photo-ink);
  font: 400 1.125rem/1.35 var(--font-body);
}
.p3-banner.home-banner.is-compact { min-height: 0; }
.home-banner.is-compact .p3-hello { font-size: clamp(2.25rem, 3.4vw, 3rem); }
.home-banner.is-compact .p3-hello-biz { margin-bottom: 4px; }
/* a computer: the greeting on the left; Customize at the top right and the two buttons under it, in the flow (no
   overlap whatever the look's button sizes are) */
@media (min-width: 700px) {
  .p3-banner.home-banner.is-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: end;
  }
  .home-banner.is-compact .p3-banner-text { grid-column: 1; grid-row: 1 / span 2; padding: 18px 20px 18px 28px; }
  .home-banner.is-compact .home-customize { position: static; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin: 16px 16px 0 0; }
  .home-banner.is-compact .home-drop-strip {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin: 10px 16px 16px 0;
    width: auto;
    max-width: none;
    padding: 0;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* "2 things need you." beside "Hello, Dana."; when it goes to the next line it starts at the left, in line
     with "Updated today" (a gap between the two, not a margin in front of the second) */
  .home-banner.is-compact .p3-hello { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
  .home-banner.is-compact .p3-hello-2 {
    display: inline-block !important;
    margin: 0;
    font-size: 1.5rem;
  }
  .home-banner.is-compact .home-drop-line { display: none; }
  /* the short band: Take a photo, From my photos and Upload a file in one row, a little closer together */
  .home-banner.is-compact .home-drop-btns { flex-wrap: nowrap; }
  .home-banner.is-compact .home-drop-btns .home-drop-photo { flex-basis: auto; }
  .home-banner.is-compact .home-drop-btns .btn { padding-left: 16px; padding-right: 16px; }
  /* the greeting's dark fall-off reaches across a short band, so the words keep their contrast */
  .home-banner.is-compact::after {
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--p3-photo-veil) 80%, transparent) 0%,
        color-mix(in srgb, var(--p3-photo-veil) 55%, transparent) 40%,
        color-mix(in srgb, var(--p3-photo-veil) 30%, transparent) 70%,
        color-mix(in srgb, var(--p3-photo-veil) 45%, transparent) 100%);
  }
}
/* a phone (tighter, Oct 20 2026): four short rows, so the river starts high on the first screen.
   Row 1: the company name, Customize at its right. Row 2: "Hello, Dana." and "2 things need you." (one line when
   they fit, else two). Row 3: "Updated today, 9:42 PM.". Row 4: Take a photo and Upload a receipt side by side,
   48px tall with their words (his fix list item 5, Oct 17: the receipt buttons stay on the banner).
   Every word 18px and up. The words box (.p3-banner-text) lets its three lines sit in the banner's grid; they
   keep its colour and shadow. Buttons too wide for one row go under each other, never over each other. */
@media (max-width: 699px) {
  .p3-banner.bleed.home-banner.is-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: center;
    column-gap: 10px;
    min-height: 0;
    padding: 10px var(--gutter) 12px;
  }
  .home-banner.is-compact .p3-banner-text { display: contents; }
  .home-banner.is-compact .p3-hello-biz { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; font-size: 1.125rem; }
  .home-banner.is-compact .home-customize {
    --btn-h: 48px;
    --btn-icon: 24px;
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    padding: 4px 12px;
    gap: 8px;
  }
  .home-banner.is-compact .p3-hello { grid-column: 1 / -1; grid-row: 2; margin: 6px 0 0; font-size: 2.25rem; }
  .home-banner.is-compact .p3-hello-2 { display: inline-block !important; margin: 0; font-size: 1.125rem; }
  .home-banner.is-compact .home-updated { grid-column: 1 / -1; grid-row: 3; margin: 2px 0 0; }
  .home-banner.is-compact .home-drop-strip { grid-column: 1 / -1; grid-row: 4; margin: 10px 0 0; padding: 0; gap: 8px; }
  .home-banner.is-compact .home-drop-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .home-banner.is-compact .home-drop-btns .btn {
    --btn-icon: 22px;
    flex: 1 1 auto;
    width: auto;
    min-height: 48px;
    padding: 4px 10px;
    gap: 6px;
    white-space: nowrap;
  }
  /* decision 331: Take a photo on its own row, From my photos and Upload a file side by side under it */
  .home-banner.is-compact .home-drop-btns .home-drop-photo { flex-basis: 100%; }
  .home-banner.is-compact .home-help-line { margin: 0; padding: 4px 12px; font-size: 1.125rem; line-height: 1.35; }
  /* the words now start at the top of a short band, where the phone veil was nearly clear: an even veil keeps
     every word at 4.5 to 1 or more on the brightest part of the photo, and the photo still shows */
  .home-banner.is-compact::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--p3-photo-veil) 50%, transparent) 0%,
      color-mix(in srgb, var(--p3-photo-veil) 46%, transparent) 55%,
      color-mix(in srgb, var(--p3-photo-veil) 72%, transparent) 100%);
  }
}
/* a small phone (under 380 wide): the buttons leave out their small drawings, so From my photos and Upload a
   file still fit side by side (the words say what each one does) */
@media (max-width: 379px) {
  .home-banner.is-compact .home-drop-btns .btn .icon,
  .home-banner.is-compact .home-drop-btns .btn svg,
  .home-banner.is-compact .home-drop-btns .btn i { display: none; }
}
/* Engraved cream: the banner's two buttons sit on the photo, so they take photo colours (dark words on the gold
   button, light words on dark glass) and read on any photo; the cream look gave them cream words on gold before */
[data-theme="engraved-cream"] .home-banner .home-drop-photo { color: #1c1405; }
[data-theme="engraved-cream"] .home-banner .home-drop-photo svg,
[data-theme="engraved-cream"] .home-banner .home-drop-photo i { color: #1c1405; }
[data-theme="engraved-cream"] .home-banner .home-drop-upload,
[data-theme="engraved-cream"] .home-banner .home-drop-gallery { background: rgba(8, 21, 35, .72); color: #fbf8f2; }
/* (the words of a round and "Try again" left the photo on Oct 24 2026: the box under the banner is a panel, so
   the cream look gives it its own cream card) */
/* the camera on the gold "Take a photo" button takes the button's dark words colour in every look (in Northern
   lights it was gold on gold, so it did not show) */
.home-banner .home-drop-photo { --b-icon: currentColor; }
/* a narrow computer (700 to 979): the greeting beside Customize, the three buttons on their own row under them, and
   "2 things need you." on its own line under "Hello, Dana." */
@media (min-width: 700px) and (max-width: 979px) {
  .p3-banner.home-banner.is-compact { grid-template-rows: auto auto; }
  .home-banner.is-compact .p3-banner-text { grid-row: 1; padding-bottom: 6px; }
  .home-banner.is-compact .home-drop-strip { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 4px 16px 16px 28px; }
  .home-banner.is-compact .p3-hello { display: block; }
  .home-banner.is-compact .p3-hello-2 { display: block !important; margin: 2px 0 0; font-size: 1.25rem; }
}
