/* The contributor's page (js/contribute*.js): what a stranger sees when they
   open a file request's link at #/req/<link>. Always light (the page sets
   data-theme="light", app.js), a single calm column, 390px first. Loaded by
   index.html after recipient-lightbox.css; the states without a form (a link
   that doesn't work, a removed request, no network) are the client's
   .rc-dead and .rc-gone parts in recipient.css. Shared pieces (.from .avatar
   .callout .field .hint .drop .actions .bar .list .list-row .rc-foot) are
   app.css's, components.css's and recipient.css's; the buttons are
   button.css's, no new colour.

   The page, top to bottom:

     [A] anna@annaphoto.example
         asked for your photos and videos
     Wedding, 12 September                                    (serif)
     Theirway does not check who people are. ...
     "Please add what you took on Saturday."                  (the message)
     +----------------------------------------------------+
     | Your name (optional) [                           ]   |   .contribute-add
     | .. Drop photos and videos here ..........          |
     | .  [Add files] [Add a folder]            .         |
     | Photos and videos, up to 4 GB each. Open until ... |
     +----------------------------------------------------+
     Sending 2 of 5 files, then one row per file, with a bar while it goes
     Thank you. 3 files were added.                [Add more]
     Your files, one row each, with Remove
     Your files go to ... They, and anyone they send the files to, see them ...
     Privacy   Report this request
                  Sent with (mark) Theirway */

.rv.rv-contribute{padding:var(--space-7) var(--space-4) var(--space-7)}
.contribute-card{max-width:560px}
.contribute-head{margin-bottom:var(--space-5)}
.contribute-head .from{margin-bottom:var(--space-4)}
.contribute-head .from .s{display:block}
.contribute-head h1{font-size:var(--text-3xl);line-height:1.15;overflow-wrap:anywhere}
.contribute-head > .s{margin:var(--space-3) 0 0}
.contribute-owner{font-weight:500;overflow-wrap:anywhere}

/* The owner's message is text, shown as written: line breaks kept, a long
   unbroken string broken rather than let to push the page sideways, and a
   right-to-left override kept inside its own box. */
.contribute-message{margin:0 0 var(--space-5);padding:var(--space-3) var(--space-4);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-control);color:var(--ink2);font:400 var(--text-l)/24px var(--font-sans);white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:isolate}

.contribute-notice{margin:0 0 var(--space-5)}
.contribute-notice b{display:block}

/* --- adding files ------------------------------------------------------- */

.contribute-add{margin-bottom:var(--space-5)}
.contribute-name{margin:0 0 var(--space-4)}
.contribute-sending-as{margin:0 0 var(--space-4);color:var(--ink2);overflow-wrap:anywhere}
.contribute-drop{align-items:flex-start;padding:var(--space-6) var(--space-5);gap:var(--space-4)}
.contribute-drop b{overflow-wrap:anywhere}
/* The heading of the drop zone says Drop where a mouse can, and Add where a
   finger cannot drop anything; one stylesheet decides, no script sniffs. */
.show-coarse{display:none}
@media (pointer:coarse){
 .hide-coarse{display:none}
 .show-coarse{display:inline}
}
.contribute-sending-as .contribute-switch{margin-left:var(--space-2)}
/* The buttons carry the guest's own name ("Not Anna?"), up to 80 unbroken
   characters: they wrap like the name beside them, and never widen the page. */
.contribute-sending-as .btn{height:auto;min-height:var(--control-s);padding-block:var(--space-1);white-space:normal;overflow-wrap:anywhere;text-align:left}
.contribute-failures{margin:var(--space-4) 0 0;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
.contribute-limits{margin:var(--space-3) 0 0}
.contribute-note{margin:var(--space-2) 0 0}
.contribute-add .err{margin:var(--space-3) 0 0}

/* --- files being sent, and the ones already sent ----------------------------- */

.contribute-summary{margin:var(--space-4) 0 var(--space-2);font:500 var(--text-ui)/20px var(--font-sans);font-variant-numeric:tabular-nums}
.contribute-list{--cols:minmax(0,1fr) auto;margin:var(--space-3) 0 0;padding:0;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l)}
.contribute-row{--row-x:var(--space-4);align-items:center}
.contribute-row .who .t,.contribute-row .who .s{white-space:normal;overflow-wrap:anywhere;unicode-bidi:isolate}
.contribute-row .err{margin:0;display:inline}
.contribute-row .bar{grid-column:1 / -1}
.contribute-actions{display:flex;gap:var(--space-2);align-items:center;justify-content:flex-end;flex-wrap:wrap}
.contribute-actions:empty{display:none}
.contribute-ask{font:500 var(--text-m)/18px var(--font-sans);color:var(--ink2)}
.contribute-more{--row-y:var(--space-3)}
.contribute-thanks{margin-top:var(--space-4);display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
.contribute-mine{margin-top:var(--space-6)}
.contribute-mine h2{font-size:var(--text-xl);line-height:24px}
.contribute-mine h2:focus{outline:none}
.contribute-mine .hint{margin-top:var(--space-2)}

/* --- what happens, and the way out ------------------------------------------ */

.contribute-about{margin-top:var(--space-6);padding-top:var(--space-4);border-top:1px solid var(--line)}
.contribute-about p{margin:0;color:var(--ink2);overflow-wrap:anywhere}
.contribute-foot{display:flex;gap:var(--space-5);margin-top:var(--space-4);font-size:var(--text-m)}

/* A phone: the rows run to the edges of the card, the buttons keep their
   full tap height, and the actions drop under the words. */
@media (max-width:520px){
 .rv.rv-contribute{padding-top:var(--space-6)}
 .contribute-list{--cols:minmax(0,1fr)}
 .contribute-actions{justify-content:flex-start}
 .contribute-drop{padding:var(--space-5) var(--space-4)}
 .contribute-drop .actions .btn{flex:1 1 auto}
}
@media (pointer:coarse),(max-width:820px){
 .contribute-foot a{display:inline-flex;align-items:center;min-height:var(--control-l)}
 .contribute-card .btn.sm{min-height:var(--control-l)}
}
