/* Snapshots: the Snapshots block on the page of a delivery you keep up to
   date, the block on a frozen delivery's page, the Make a snapshot sheet,
   the family line in the Retract and Reinstate sheets, the snapshots named
   in the Delete and Erase sheets, and the client's block. Loaded after
   availability.css (whose sheet and row classes it reuses) and files.css
   (the checksum line). Scripts: js/delivery-snapshots.js,
   delivery-snapshot-links.js, delivery-snapshot-sheet.js, delivery-frozen.js,
   delivery-availability-family.js, delivery-snapshot-erase.js,
   recipient-snapshot.js.

   The Snapshots block:

     Snapshots
     v2.4.1   [Deleted]  20 October 2026, 2 files, 48 MB
       Checksum of the file list  5d0e…77a1  [Copy]
       Alex  Opened 3 times, first ..., last ....  Started a download ...

   Colours and spacing are tokens; the tags are app.css's .tag. */

/* --- the block on the working delivery's page ------------------------------- */

.snapshots > .s { margin: 0 0 var(--space-3); }
/* The list bleeds to the card's edges (components.css `.panel .list`) and
   each row pads itself back in by --row-x: keep that padding (without it a
   phone shows the Copy link button against the card's edge), and drop the
   browser's own indent of a `ul`. */
.snapshot-list { margin-block: 0 var(--space-3); padding: 0; list-style: none; }
.snapshot-row { --cols: minmax(0, 1fr); }
.snapshot-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  min-width: 0;
}
.snapshot-main b { min-width: 0; overflow-wrap: anywhere; }
/* A tag is the producer's word next to ours: it keeps its own direction. */
[data-part=snapshot-tag],
[data-part=frozen-tag],
[data-part=rc-snapshot-tag] { unicode-bidi: isolate; }
.snapshot-digest { margin-top: var(--space-1); }

/* Wholly shown, a checksum wraps where it must rather than push the page. */
.snapshot-digest code { overflow-wrap: anywhere; }
.snapshot-digest code.is-whole { user-select: all; }

.snapshot-links { margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.snapshot-link {
  display: grid;
  grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-1) 0;
}
.snapshot-link-name { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.snapshot-link .s { min-width: 0; overflow-wrap: anywhere; }

.snapshots-how { margin-top: var(--space-3); }
.snapshots-how > summary { cursor: pointer; color: var(--ink2); font: 500 var(--text-m)/18px var(--font-sans); min-height: var(--control-s); display: flex; align-items: center; }
.snapshots-how > .s { margin: var(--space-2) 0 0; }

/* --- a frozen delivery's page ------------------------------------------------- */

.frozen-block h2 { margin-bottom: var(--space-3); }
.frozen-block p { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
.frozen-block .actions { margin: 0; }
.frozen-block .snapshot-digest code { font-size: var(--text-m); }

/* --- the Make a snapshot sheet ------------------------------------------------- */

#snapshot-sheet .body p { margin: 0 0 var(--space-3); }
#snapshot-sheet textarea { min-height: 88px; }
#snapshot-sheet .field { margin-top: var(--space-3); }
.snapshot-picks { margin-top: var(--space-4); }
.snapshot-picks .check { min-height: var(--control); align-items: center; }
.snapshot-picks .check input { margin-top: 0; }
.snapshot-picks .check b { display: inline; }
.snapshot-picks .check .s { display: inline; margin-left: var(--space-2); }

/* The files the server refused for the snapshot: one line each, the name
   first. */
[data-part=snapshot-refusals] { margin-top: var(--space-4); }
[data-part=snapshot-refusals] p { margin: 0 0 var(--space-2); }
.snapshot-refusals-list { margin: 0 0 var(--space-3); padding-left: var(--space-5); overflow-wrap: anywhere; }
.snapshot-refusals-list li { padding: var(--space-1) 0; }

/* --- the other deliveries a retraction can reach --------------------------------- */

.family-choice { margin-top: var(--space-3); }
.family-choice .check { min-height: var(--control); align-items: center; }
.family-choice .check input { margin-top: 0; }
.family-choice .check b { display: inline; }
.family-result p { margin: 0 0 var(--space-3); }
.family-list { margin: 0 0 var(--space-3); padding-left: var(--space-5); overflow-wrap: anywhere; }
.family-reason { white-space: pre-line; }

/* --- the snapshots named in the Delete and Erase sheets ------------------------- */

.snapshots-named { margin-top: var(--space-3); }
.snapshots-named p { margin: 0 0 var(--space-2); }
.snapshots-named .check { min-height: var(--control); align-items: center; }
.snapshots-named .check input { margin-top: 0; }
.snapshots-named .check b { display: inline; overflow-wrap: anywhere; }

/* --- the client's block ----------------------------------------------------------- */

.rc-snapshot { margin: 0 0 var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.rc-snapshot p { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
.rc-snapshot .actions { margin: 0 0 var(--space-3); }
.rc-snapshot .snapshot-digest { margin-bottom: var(--space-3); }
.rc-snapshot-line { font-weight: 500; }
.rc-check-how { margin: 0; }
.rc-check-how > summary { cursor: pointer; min-height: var(--control-s); display: flex; align-items: center; font: 500 var(--text-m)/18px var(--font-sans); color: var(--ink2); }
.rc-check-how code { font: 400 var(--text-m)/18px var(--font-mono); overflow-wrap: anywhere; }
.rc-check-how p { margin: var(--space-2) 0 0; }

/* --- the client's page of a snapshot ------------------------------------------------ */

/* A snapshot's title ends in its tag (a producer's word, up to 40 characters
   with no break), which would push the client's page sideways on a phone.
   recipient.css styles the same heading; this file loads before it and sets
   no property that one does, so neither overrides the other. */
.rc-files h1 { overflow-wrap: anywhere; }

/* --- on a phone: finger-sized controls ---------------------------------------------- */

@media (max-width: 820px) {
  .snapshot-digest .btn,
  .snapshot-link .btn,
  .frozen-block .btn,
  .rc-snapshot .btn { min-height: var(--control-l); }
  .snapshot-link { grid-template-columns: minmax(0, 1fr); }
  .snapshots-how > summary,
  .rc-check-how > summary { min-height: var(--control-l); }
}
