/* Area: incoming documents — styles for src/next/views/documents-incoming.js (the Documents page and its
   pick sheet). Tokens only (see next.css :root). */

/* the waiting cards: one per forwarded document, stacked on a phone */
.indoc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 16px; align-items: start; margin-bottom: 36px; }
.indoc { display: flex; flex-direction: column; gap: 16px; }
.indoc-top { display: flex; align-items: center; gap: 14px; }
.indoc-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.indoc-what .h3 { overflow-wrap: anywhere; }
.indoc-looks { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--olive-tint); }
.indoc-reason { margin: 0; }
.indoc .actions .btn { white-space: nowrap; }
.indoc-x.armed { background: var(--alert); border-color: var(--alert); color: var(--on-dark); }

/* Due and Signed: a card per client */
.indoc-block { margin-bottom: 36px; }
.indoc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: start; }
.indoc-group .section-t { margin-bottom: 8px; }

/* the pick sheet: a search field, the agent's people as rows, the chosen one marked */
.indoc-pick .field input[type="search"] { appearance: none; }
.indoc-people { max-height: 46vh; overflow: auto; overscroll-behavior: contain; }
.indoc-person { width: 100%; text-align: left; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.indoc-person[aria-pressed="true"] { background: var(--olive-tint); box-shadow: inset 3px 0 0 var(--olive); }
.indoc-tick { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--olive); color: var(--on-dark); }
.indoc-tick svg { width: 16px; height: 16px; }
.indoc-deals { display: flex; flex-direction: column; gap: 10px; }
/* who sees it: two radio tiles, 44px tall, the chosen one marked like a chosen person */
.indoc-vis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.indoc-vis-tile { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.indoc-vis-tile[aria-checked="true"] { background: var(--olive-tint); border-color: var(--olive); box-shadow: inset 3px 0 0 var(--olive); }
.indoc-vis-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.indoc-vis-tile[aria-checked="true"] .indoc-vis-dot { border-color: var(--olive); background: radial-gradient(circle, var(--olive) 0 5px, transparent 6px); }
.indoc-vis-t { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.3; }
.indoc-vis-t b { font-size: 15px; }
.indoc-vis-tile:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }

.phone .indoc .actions { flex-direction: column; align-items: stretch; }
.phone .indoc .actions > .btn { width: 100%; }
.phone .indoc-people { max-height: 40vh; }
.phone .page-head .actions .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* "How to" sheet under the forwarding address (2026-10-03) */
.indoc-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.howto { margin: 4px 0 16px; padding-left: 22px; display: grid; gap: 12px; font-size: 16px; line-height: 1.5; }
.howto code { font-family: inherit; font-weight: 700; word-break: break-all; }
.gmail-code { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2); display: grid; gap: 6px; }
.gmail-code .num { font-size: 28px; letter-spacing: .04em; }
.gmail-code.waiting .btn { justify-self: start; margin-top: 4px; }
.gmail-code.ready { border-color: var(--ink); }
.gmail-code.done { background: var(--olive-tint, var(--card-2)); }
.gmail-code.done b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.howto.sub { margin-top: 8px; padding-left: 18px; }
.howto.sub li { margin: 6px 0; }
.howto svg { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- Setting up Inbound: the wizard (Tovah, 2026-10-05) ---------- */
/* one step at a time, with the step it is on shown at the top */
.gsteps { display: flex; gap: 6px; margin: 0 0 14px; }
.gsteps i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); }
.gsteps i.on { background: var(--ink); }
.gsteps i.done { background: var(--accent); }
/* a drawing of Gmail, not a screenshot: a screenshot goes stale the week they redesign, and a
   drawing can put an arrow on the thing they have to press */
.gpic { margin: 10px 0 0; padding: 0; }
.gpic svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
/* the exact words to paste, with a Copy beside them */
.gcopy { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunk); }
.gcopy code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.45; word-break: break-word; }
/* which kinds to forward: three things to press, not three paragraphs */
.gkinds { display: grid; gap: 10px; margin: 6px 0 14px; }
.gkind { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); }
.gkind:hover { border-color: var(--ink); }
.gkind b { font-size: 17px; }
.gkind span { font-size: 14px; color: var(--ink-2); }
.gkind-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.gkind-go svg { width: 15px; height: 15px; }
/* ⚠️ "How to forward …" used to be a .btn-ghost in a muted sentence: no border, no fill, so it read
   as bolded text rather than a button (Tovah: "the how to buttons are invisible"). */
.indoc-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.indoc-empty .btn svg { width: 15px; height: 15px; }
