/* EJA Services · files sent by link (Y15): the page the link opens (templates/transfer.html, static/transfer.js) and
   My account › Send files (static/send-files.js). Made for a phone first; colours, radii and shadows from
   eja/eja-tokens.css. Every word wraps, nothing is ever cut. */

/* ---------------------------------------------------------------- the page the link opens */
.tr { padding-top: 16px; padding-bottom: 28px; }
.tr-col { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; min-width: 0; }
.tr-page .eja-card, .tr-card { min-width: 0; display: grid; gap: 14px; }
.tr-page b, .tr-page span, .tr-page p, .tr-page small, .tr-page h1, .tr-page h2, .tr-page li { overflow-wrap: anywhere; }
.tr-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tr-head > div { min-width: 0; flex: 1 1 auto; }
.tr-title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.3; }
.tr-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tr-message { margin: 0; padding: 12px 14px; border-radius: var(--radius-12); background: var(--bg2); font-size: 15.5px; line-height: 1.6; white-space: pre-line; }
.tr-why { margin: 0; color: var(--bad); font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.tr-big { width: 100%; min-height: 56px; font-size: 17px; justify-content: center; box-shadow: var(--shadow-fill); }
.tr-left { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--wait); font-size: 14px; font-weight: 600; }
.tr-left .eja-ic { width: 18px; height: 18px; flex: 0 0 auto; }
.tr-sub { margin: 0; font-size: 16px; font-weight: 700; }
.tr-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-12); background: var(--bg2); min-width: 0; }
.tr-file .ic-plate { width: 38px; height: 38px; }
.tr-file-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.tr-file-text b { font-size: 14.5px; }
.tr-file-text small { color: var(--muted2); font-size: 12.5px; }
.tr-file .eja-btn { flex: 0 0 auto; }
.tr-wide { display: none; }
.tr-lock { display: grid; gap: 12px; }
.tr-foot-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; color: var(--muted2); font-size: 12.5px; text-align: center; }
.tr-foot-note .eja-ic { width: 16px; height: 16px; flex: 0 0 auto; }
@media (min-width: 560px) { .tr-wide { display: inline; } }
@media (min-width: 720px) { .tr { padding-top: 28px; } .tr-title { font-size: 24px; } }

/* ---------------------------------------------------------------- My account › Send files */
.sf-drop { display: grid; justify-items: center; gap: 6px; padding: 22px 14px; border: 2px dashed var(--line); border-radius: var(--radius-12);
  background: var(--bg2); text-align: center; cursor: pointer; }
.sf-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.sf-drop .eja-ic { width: 30px; height: 30px; color: var(--brand); }
.sf-drop b { font-size: 15.5px; }
.sf-pick { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; }
.sf-buttons, .sf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chosen { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.sf-chosen li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-12); background: var(--bg2); font-size: 14px; min-width: 0; }
.sf-chosen li > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sf-total { margin: 0; font-size: 14px; font-weight: 600; }
.sf-total.bad { color: var(--bad); }
.sf-up { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-12); }
.sf-up-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sf-up-head b { overflow-wrap: anywhere; min-width: 0; }
.sf-state { font-size: 13.5px; color: var(--muted); }
.sf-state.bad { color: var(--bad); font-weight: 600; }
.sf-link { display: grid; gap: 8px; }
.sf-qr img { width: 200px; height: 200px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: var(--radius-12); }
.sf-item { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius-12); background: var(--bg2); min-width: 0; }
.sf-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sf-item-head b { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.sf-item small { color: var(--muted2); font-size: 12.5px; }
.sf-item details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.sf-item ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13px; }
.sf-item .sf-actions .eja-btn { min-height: 36px; }
