/* The pages where the client sends things in, asks, and keeps their account:
   papers.html, ask.html, account.html.
   Only what is special to these three pages lives here: everything else comes from portal.css.
   No colors and no font names in this file. Text sizes are in rem, so the browser's own
   font-size setting makes them larger (decision 7, Oct 15); 1rem is 16px at the browser's normal size. */

/* ==========================================================================
   SHARED BY THE THREE PAGES
   The first piece of each page is one wide band under the greeting: the thing the page is for.
   On the two sky looks the band is a row (the action on the left, a plain line on the right).
   On the two engraved looks the greeting and the band are one framed piece, everything starts
   at the left, and the engraving has the right side to itself.
   ========================================================================== */

.lead-set {
  position: relative;
}

.band {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 44px;
}

/* The big buttons of a band ("Take a photo", "Choose a file", "Send"): 64px tall, and never under
   the height of a normal button of the look. This rule is the one that sets their height, at
   every width; only the two engraved looks on a computer go higher (78px, further down). */
.band .btn.big {
  min-height: max(64px, var(--btn-h));
}

.step-btns {
  flex: 0 0 auto;
}

.step-btns .btn {
  min-width: 168px;
}

/* a name that must be allowed to break anywhere: a file name, an email address */
.file-name {
  overflow-wrap: anywhere;
}

/* a note never ends on one lonely word */
.page .notice p,
.page .thanks > span,
.done-words p,
.q-note > span {
  text-wrap: pretty;
}

/* The lake of the first piece needs a wide window: on a narrow one it would only show as a
   sliver behind the box to type in. "No picture" is said on the piece itself as well, so a phone
   does not download a lake it never shows. */
@media (max-width: 899px) {
  .wide-art.has-lake::after {
    content: none;
    background-image: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* the good-news state of a band: a ring with a check, a heading, one line */
.done {
  display: flex;
  flex: 1 1 420px;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.done-words {
  min-width: 0;
}

.done-words .h2 {
  margin-bottom: 4px;
}

.done-words .h2:focus {
  outline: none;
}

/* the lists under the band: two pieces side by side, each as tall as it needs */
.want,
.sent,
.q-list,
.mails,
.keys {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 900px) {
  [data-theme^="engraved"] .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  [data-theme^="engraved"] .done {
    flex: none;
    max-width: 62%;
  }

  [data-theme^="engraved"] .lead-set {
    gap: 22px;
    padding-bottom: 32px;
  }
}

/* ==========================================================================
   PAPERS.HTML, PASS 3 (Oct 16 2026, from the approved mockup M2-client-papers-phone.png)
   The pieces come from client-pass3.css (p3-*: title, card, buttons, pills, note). This part is the
   layout of this page only (pp-*): the sending card with its photo, the list of what will be sent,
   "What we still need" with "Send it" on each row, and "What you sent" with a picture, a short day
   and the state on each row. No colors and no font names here: only the names of portal.css and
   client-pass3.css. One reading column (760 wide) on a computer, as PASS3-PC1-FOUNDATION.md says.
   ========================================================================== */

/* ---- the sending card: the photo runs edge to edge at its top, the steps sit under it ---- */
.pp-page .panel.pp-send {
  position: relative;   /* the drop veil lies over it while papers are dragged (audit C8) */
  gap: 0;
  padding: 0 0 var(--pad);
  overflow: hidden;
}

/* audit C8 (Oct 24 2026): papers dragged over the page. The card says where they go; a drop anywhere on the page
   puts them on the list (papers.js), so a dropped PDF never opens in the browser and leaves the page. */
.pp-drop-veil {
  position: absolute;
  z-index: 3;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--ink);
  background: color-mix(in srgb, var(--pop-bg) 90%, transparent);
  border: 3px dashed var(--accent);
  border-radius: var(--p3-radius);
}
.pp-drop-veil[hidden] { display: none; }
.pp-drop-veil svg, .pp-drop-veil i { width: 64px; height: 64px; color: var(--accent); }
.pp-drop-big { margin: 0; font: 600 clamp(1.75rem, 3.4vw, 2.5rem)/1.1 var(--serif); }
.pp-drop-small { margin: 0; font-size: 1.125rem; max-width: 30em; }
@media (prefers-reduced-motion: no-preference) {
  .pp-send.is-dropping .pp-drop-veil { box-shadow: 0 0 28px -6px var(--accent); }
}
/* the small line on the photo strip: only on a computer with a mouse, where the strip is 200px tall (below), and
   never when the photo gives way to the list */
.pp-drop-chip {
  display: none;
}
@media (min-width: 900px) and (pointer: fine) {
  .pp-drop-chip {
    position: absolute;
    z-index: 2;
    top: 144px;
    left: var(--pad);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 2 * var(--pad));
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--p3-card-line);
    border-radius: 999px;
    background: var(--pop-bg);
    color: var(--ink);
    font-size: var(--text-quiet);
    font-weight: 600;
  }
  .pp-drop-chip svg, .pp-drop-chip i { width: 22px; height: 22px; color: var(--accent); flex: none; }
  .pp-has-queue .pp-drop-chip, .pp-drop-chip[hidden] { display: none; }
  .pp-send.is-dropping .pp-drop-chip { visibility: hidden; }   /* the veil says it now, never two words on top of each other */
}

.pp-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 55%;
  border-bottom: 1px solid var(--p3-card-line);
}

/* papers picked, on their way or not arrived: the photo gives way at every width, so the list, its
   bars and "Send it" are on the first screen (review, Oct 17: on a computer it stayed) */
.pp-has-queue .pp-photo {
  display: none;
}

.pp-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: var(--pad) var(--pad) 0;
  /* decision 332: brought into sight clear of the top bar and the phone's bottom bar */
  scroll-margin: 96px 0 112px;
}

/* the big buttons ("Take a photo", "From my photos", "Choose a file"), as in the mockup: large words, one
   under the other on a phone; from 700 wide "Take a photo" across the card and the two others side by side
   under it (decision 331, Oct 24 2026) */
.pp-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.pp-two > [data-pick="photo"] {
  grid-column: 1 / -1;
}

.pp-two > .btn {
  width: 100%;
  min-height: max(64px, var(--btn-h));
  font-size: 1.4375rem;
}

/* a computer (900 and wider): the three side by side, a little smaller, so "What we still need" and its
   "Send it" stay on the first screen (1360 x 860) */
@media (min-width: 900px) {
  .pp-two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-two > [data-pick="photo"] {
    grid-column: auto;
  }

  .pp-two > .btn {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 1.25rem;
  }
}

/* the line under the two buttons: every sentence starts its own line, so a line never ends in the
   middle of one. The first says what to send; the rest is calmer. */
.pp-fine {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--soft);
  font-size: var(--text-quiet);
  line-height: 1.42;
}

.pp-fine > span {
  text-wrap: pretty;
}

.pp-fine > .pp-fine-main {
  color: var(--ink);
  font-size: var(--text);
}

/* What "Take a photo" does on a phone is said on a computer only, where that button looks out of
   place. A phone does not need the line. */
.pp-fine > .pp-on-desk {
  display: none;
}

@media (min-width: 900px) {
  .pp-fine > .pp-on-desk {
    display: block;
  }

  /* a short strip on a computer, so "What we still need" and its "Send it" are on the first screen */
  .pp-photo {
    aspect-ratio: auto;
    height: 200px;
  }
}

/* the real file fields are never seen: the big buttons open them */
.file-field {
  display: none;
}

/* the lines that say a file cannot be sent */
.pp-errors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-errors .error b {
  overflow-wrap: anywhere;
}

/* a row of buttons; a column on a phone (portal.css makes each one full width there) */
.pp-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pp-btns > .btn.big {
  min-height: max(64px, var(--btn-h));
  min-width: 11rem;
}

/* "Send it", "Add more" and "Remove it" side by side: one height, not three */
@media (min-width: 700px) {
  #queue-ready > .btn,
  #queue-failed > .btn {
    min-height: max(64px, var(--btn-h));
  }
}

/* ---- a line that says something is on its way: a small turning ring and the words ---- */
.pp-busy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--press);
  color: var(--soft);
}

.pp-busy::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border: 3px solid var(--p3-gold);
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-turn .9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pp-busy::before {
    animation: none;
  }
}

/* ---- what will be sent: each paper with its picture, its name, its own progress ---- */
.pp-queue-top .p3-h2 {
  margin-bottom: 4px;
}

.pp-queue-top .p3-h2:focus,
.pp-done-words .p3-h2:focus {
  outline: none;
}

.pp-queue-what {
  color: var(--soft);
}

.pp-queue {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.pp-qrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.pp-q-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pp-q-name {
  font-weight: var(--w-strong);
  overflow-wrap: anywhere;
}

.pp-q-kind,
.pp-q-for {
  color: var(--soft);
  font-size: var(--text-quiet);
}

/* how far a paper is: Waiting, Sending 45%, We have it, or what went wrong */
.pp-q-state {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  color: var(--soft);
  font-size: var(--text-quiet);
  line-height: 1.4;
}

.pp-q-state .icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--p3-gold-ink);
}

.pp-q-state.is-good,
.pp-q-state.is-good .icon {
  color: var(--ink);
}

.pp-q-state.is-bad,
.pp-q-state.is-bad .icon {
  color: var(--bad);
}

.pp-q-state.is-bad {
  font-weight: 600;
}

.pp-q-state > span {
  min-width: 0;
  text-wrap: pretty;
}

/* the bar of one paper: a quiet track, the part that arrived in gold */
.pp-meter {
  display: block;
  width: 100%;
  max-width: 440px;
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--p3-bar-track);
}

.pp-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--p3-bar-kept);
  transition: width .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pp-meter-fill {
    transition: none;
  }
}

.pp-keep {
  font-size: var(--text);
}

/* ---- the thank-you ---- */
.pp-done {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.pp-done-words {
  min-width: 0;
}

.pp-done-words .p3-h2 {
  margin-bottom: 6px;
}

.pp-done-words p {
  text-wrap: pretty;
}

/* ---- a paper's picture: small, framed, landscape as in the mockup ---- */
.pp-thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--box-bg);
  color: var(--p3-gold-ink);
}

.pp-thumb .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.pp-thumb .shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the photo she just picked: a little taller, so a receipt shows more of itself */
.pp-qrow .pp-thumb {
  width: 68px;
  height: 84px;
}

.pp-thumb-big {
  width: 72px;
  height: 88px;
}

.pp-thumb-big .icon {
  width: 40px;
  height: 40px;
}

/* ---- the two lists: a hairline under the heading, as in the mockup ---- */
.pp-needs,
.pp-sent-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

/* ---- what we still need: the thing, its day, and "Send it" ---- */
.pp-need {
  padding: 16px 0 14px;
}

.pp-need + .pp-need {
  border-top: 1px solid var(--rule);
}

.pp-need:last-child {
  padding-bottom: 0;
}

.pp-need-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-need-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.pp-need-words {
  display: flex;
  flex: 1 1 11rem;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pp-need-name {
  font-weight: var(--w-strong);
}

.pp-need-when {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.pp-need-top > .pp-need-act {
  flex: none;
}

.pp-need-top > .pp-need-act .btn {
  width: auto;
  min-width: 7.5rem;
  padding-left: 22px;
  padding-right: 22px;
}

/* "Choose a file" and "I do not have it": two calm text buttons, their words in line with the name */
.pp-need-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin-left: -10px;
}

.pp-need-more .btn,
.pp-qrow > .pp-remove {
  padding-left: 10px;
  padding-right: 10px;
}

.pp-need-none {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.pp-need-none .thanks {
  flex: 1 1 260px;
}

/* while papers wait to be sent the buttons of a row give way to one calm line */
.pp-wait {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--press);
  text-wrap: pretty;
}

/* it takes the focus only by script (after Undo), never by Tab: no ring, like the headings above */
.pp-wait:focus {
  outline: none;
}

.pp-wait > .icon {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--p3-gold-ink);
}

.pp-nothing > span,
.pp-need .thanks > span {
  text-wrap: pretty;
}

/* a list that could not load: the reason and Try again on one line where there is room */
.pp-list-problem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.pp-list-problem .error {
  flex: 1 1 240px;
}

/* ---- what you sent: each row is one button that opens the paper ---- */
.pp-sent-row + .pp-sent-row {
  border-top: 1px solid var(--rule);
}

.pp-sent-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "thumb words state";
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  min-height: 80px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pp-sent-open:hover {
  background: var(--box-bg);
}

/* the ring sits right on the edge of the row, clear of the hairlines above and below */
.pp-sent-open:focus-visible {
  outline-offset: 0;
}

.pp-sent-open > .pp-thumb { grid-area: thumb; }
.pp-sent-open > .pp-sent-words { grid-area: words; }
.pp-sent-open > .pp-sent-state { grid-area: state; }

/* decision 468: a photo she sent shows big (portal.css .paper-shot): on a phone on top, full width, with the
   name, the day and the state under it; on a computer left of the words. No photo to show (.preview-none): the
   row as before, with its small icon. */
.pp-sent-row.has-shot:not(.preview-none) .pp-sent-open {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "shot shot"
    "words words"
    "state state";
  align-items: start;
  padding-top: 16px;
  padding-bottom: 16px;
}

.pp-sent-open > .paper-shot { grid-area: shot; }

.pp-sent-row.has-shot:not(.preview-none) .pp-sent-open > .pp-thumb,
.pp-sent-row.has-shot.preview-none .pp-sent-open > .paper-shot {
  display: none;
}

.pp-sent-row.has-shot:not(.preview-none) .pp-sent-state {
  justify-content: space-between;
}

@media (min-width: 700px) {
  .pp-sent-row.has-shot:not(.preview-none) .pp-sent-open {
    grid-template-columns: 260px minmax(0, 1fr) auto;
    grid-template-areas: "shot words state";
  }
}

.pp-sent-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pp-sent-name {
  font-weight: var(--w-strong);
  overflow-wrap: anywhere;
}

.pp-sent-when {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.pp-sent-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* the state of a sent paper: quiet words, no bright chip (review, Oct 17). "Done" in the light teal
   of the look with its check, "We have it" in the cream of the words. Higher than client-pass3.css
   on purpose, so the order of the two files does not matter. */
.pp-page .pp-sent-state .p3-pill {
  min-height: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.pp-page .pp-sent-state .p3-pill.have {
  color: var(--ink);
}

.pp-page .pp-sent-state .p3-pill.done {
  color: var(--p3-pill-done-line);
}

/* The old ".done" of this file (the thank-you of ask.html and account.html, at the top and in the
   phone part) would also grab the pass-3 pill "Done" (class "p3-pill done"): flex, a 22px gap and, in
   the engraved looks, a width cap. The pill keeps its own shape here. */
.pp-page .p3-pill.done {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: none;
}

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

.pp-more {
  display: flex;
}

.pp-sent .empty {
  border: 1px solid var(--rule);
}

#sent-empty .h3 {
  text-wrap: balance;
}

.pp-empty-how {
  text-wrap: pretty;
}

/* the lock line at the foot of "What you sent", with the two safety lines under it */
.pp-safe {
  padding-top: 4px;
}

.pp-safe-words {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pp-safe-words p {
  text-wrap: pretty;
}

.pp-safe-main {
  color: var(--ink);
  font-size: var(--text);
}

.safe-keep .tag {
  margin-left: 4px;
  vertical-align: 2px;
}

/* ---- the large viewer ----
   The paper is as large as the window allows and the whole viewer still fits it, also on a short
   laptop window: its height follows the window (100vh less the title bar and the air around it). */
.pp-view-figure {
  display: grid;
  place-items: center;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  background: var(--box-bg);
}

.pp-view-figure img {
  display: block;
  max-width: 100%;
  max-height: min(760px, max(160px, calc(100vh - 250px)));
  width: auto;
  height: auto;
  object-fit: contain;
}

/* the name of a paper is often one long word (a file name from a phone or a scanner): it breaks
   inside the title, so the title never pushes Close out of the window */
.pp-view-box .popup-head .h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pp-view-file {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pp-view-file p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pp-view-main .notice {
  margin-bottom: 16px;
}

.pp-view-meta {
  margin-bottom: 16px;
  color: var(--soft);
  text-wrap: pretty;
}

.pp-view-meta b {
  color: var(--ink);
}

.pp-view-meta:empty {
  display: none;
}

.pp-view-fine {
  margin-top: 14px;
}

@media (min-width: 900px) {
  .pp-view-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 26px;
  }

  .pp-view-main > :last-child,
  .pp-view-side > :last-child {
    margin-bottom: 0;
  }

  .pp-view-btns {
    flex-direction: column;
    align-items: stretch;
  }

  /* a file with no picture (a PDF, a spreadsheet): one column, the file and its state together */
  .pp-view-body.is-file {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pp-view-body.is-file .pp-view-btns {
    flex-direction: row;
    align-items: center;
  }
}

.pp-leave-btns {
  margin-top: 18px;
}

/* ---- phone ---- */
@media (max-width: 699px) {
  .pp-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .pp-two > .btn {
    font-size: 1.375rem;
  }

  .pp-btns {
    flex-direction: column;
    align-items: stretch;
  }

  /* "Send it" of a thing we still need: full width under its words, like every phone button */
  .pp-need-top > .pp-need-act {
    flex: 1 1 100%;
  }

  .pp-need-top > .pp-need-act .btn {
    width: 100%;
  }

  .pp-done .ring {
    width: 48px;
    height: 48px;
  }

  /* a paper on its way: the picture and the words side by side, Remove under the words */
  .pp-qrow {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .pp-qrow > .btn {
    grid-column: 2;
    justify-self: start;
    margin-left: -10px;
  }

  .pp-meter {
    max-width: none;
  }

  .pp-view-file {
    align-items: flex-start;
  }
}

/* under 480 wide the state of a sent paper moves under its name, so a name never squeezes into one
   word a line */
@media (max-width: 479px) {
  .pp-sent-open {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "thumb words"
      "thumb state";
    align-items: start;
  }

  .pp-sent-state {
    justify-content: space-between;
  }
}

@media print {
  .pp-photo,
  .pp-go {
    display: none !important;
  }
}


/* ==========================================================================
   ASK.HTML
   ========================================================================== */

.q-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-write {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.q-write .input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 132px;
}

.q-write .btn {
  flex: none;
  min-width: 196px;
  font-size: 1.5625rem;
}

.q-note,
.q-wait {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.q-note > .icon,
.q-wait > .icon {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--accent);
}

@media (min-width: 900px) {
  /* engraved: the box stays on the left, the lake has the right side */
  [data-theme^="engraved"] .q-form {
    max-width: 61%;
  }

  [data-theme^="engraved"] .q-write .btn {
    min-width: 150px;
    min-height: 78px;
    font-size: 1.5rem;
  }
}

/* ---- earlier questions: yours on the left, our written answer on the right ---- */
.q-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.q-item:first-child {
  padding-top: 4px;
}

.q-item:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

@media (min-width: 900px) {
  .q-item.talk {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 12px 48px;
  }
}

/* who wrote it and when: the name stands out, the day is calm */
.q-who {
  color: var(--quiet);
  font-size: var(--text-quiet);
  line-height: 1.4;
}

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

/* a question keeps the line breaks she typed */
.q-text {
  margin-top: 6px;
  white-space: pre-line;
}

.a-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.a-who .firm-logo {
  width: 46px;
  height: 46px;
}

/* our name on one line, the day under it */
.a-when {
  display: block;
}

.q-item .talk-a {
  padding-left: 22px;
}


/* ==========================================================================
   ACCOUNT.HTML
   ========================================================================== */

.you-who {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.you-words {
  min-width: 0;
}

.you-note {
  flex: 1 1 320px;
  max-width: 470px;
  margin-left: auto;
  color: var(--soft);
  text-wrap: balance;
}

@media (min-width: 900px) {
  [data-theme^="engraved"] .you-note {
    flex: none;
    margin-left: 0;
  }
}

.acct-duo {
  align-items: start;
}

@media (min-width: 900px) {
  .acct-duo {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  }
}

.mails .file-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.mails .file-row:first-child {
  padding-top: 2px;
}

.mail-gone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.mail-gone .thanks {
  flex: 1 1 300px;
}

.mail-add .send-row > .btn {
  min-width: 132px;
}

.keys-btns {
  flex-direction: column;
  align-items: stretch;
}


/* ==========================================================================
   NARROWER WINDOWS (ask.html and account.html; papers.html has its own above)
   ========================================================================== */

@media (max-width: 899px) {
  .you-note {
    margin-left: 0;
  }
}

/* ---- phone ---- */
@media (max-width: 699px) {
  .step {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .done {
    flex: none;
    align-items: flex-start;
    gap: 16px;
  }

  .done .ring {
    width: 48px;
    height: 48px;
  }

  .q-write {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .q-write .input {
    flex: none;
  }

  .q-write .btn {
    font-size: 1.4375rem;
  }

  .q-item {
    padding: 20px 0;
  }

  .q-item .talk-a {
    padding-left: 16px;
  }

  /* the name beside the ring, the email under both: it needs the whole width */
  .you-who {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 14px;
  }

  .you-words {
    display: contents;
  }

  .you-mail {
    grid-column: 1 / -1;
  }

  .you-who .ring {
    width: 48px;
    height: 48px;
  }

  /* an email address needs the whole width of a phone: the small picture in front gives way */
  .mails .file-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mails .file-icon {
    display: none;
  }

  .you-note {
    flex: none;
    max-width: none;
  }
}
