/* The Send page (captures/new, captures/show): a link or a PDF with your note,
   and the share sheet's confirm page. Tokens come from application.css, so
   dark mode follows them; nothing here sets a width that could scroll at
   390 px. Your words keep your teal (--mine), a passage you picked the
   marker's yellow (--mark). */
.send-focus { width: min(480px, 100%); display: flex; flex-direction: column; gap: 14px; }
.send-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.send-brand img { display: block; border-radius: 8px; }
.send-brand h1 { font-size: 22px; }
.send-foot { text-align: center; font-size: 14px; }
.send-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* A part the form shows only when it has something (a share's passage, its text): hidden beats .field's flex. */
.send-form [hidden] { display: none; }
.send-form .field label.label-optional::after { content: " (optional)"; color: var(--muted); font-weight: 400; }
/* A placeholder reads as advice, not as a value */
.send-form ::placeholder { font-style: italic; }
.send-form textarea { min-height: 44px; }
/* Your note: your teal down its side, so at rest it doesn't look focused */
.send-form textarea.mine-input { border-left: 3px solid var(--mine-line); }
.send-form textarea.mine-input:focus-visible { outline-color: var(--mine); }
.send-form textarea.passage { background: color-mix(in srgb, var(--mark) 28%, var(--surface)); }
.send-hint { font-size: 13px; color: var(--muted); text-wrap: pretty; }
.send-actions { display: flex; }
.send-form .send-button { min-height: 44px; padding: 0 20px; }

/* The PDF: a drop zone that is also the picker's label. */
.drop { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 112px; padding: 16px; border: 2px dashed var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2); text-align: center; cursor: pointer; text-wrap: pretty;
}
.drop-zone:hover, .drop-zone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop-input:focus-visible + .drop-zone { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-pick { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.drop-icon {
  flex: none; display: inline-block; padding: 2px 6px; border-radius: 4px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink);
  font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 0.04em;
}
.drop-file {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.drop-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.drop-size { white-space: nowrap; color: var(--muted); }
.drop-file .btn { flex: none; }
.field-error { color: var(--danger); font-size: 13px; overflow-wrap: anywhere; }

/* Sent, and where it stands. */
.send-sent { display: flex; flex-direction: column; gap: 14px; }
.send-sent .actions-row { margin: 0; }
.send-status { display: block; }
.send-state { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.send-sent-label { display: flex; align-items: center; gap: 8px; font: 500 12px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-ink); }
.send-check {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 600 12px "IBM Plex Sans", sans-serif;
}
.send-what { color: var(--muted); font-size: 14px; }
.send-headline { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.send-state-failed .send-headline { color: var(--danger); }
.send-detail { color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.send-note-link { display: inline-block; padding: 10px 0; font-size: 16px; font-weight: 600; text-wrap: pretty; }
/* Your words, as they were kept: your teal. */
.send-yours { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 10px 12px; border-left: 3px solid var(--mine-line); background: var(--mine-soft); border-radius: 0 8px 8px 0; }
.send-yours-label { font: 500 11px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mine); }
.send-yours-text { color: var(--ink); font-size: 14px; white-space: pre-line; }
.send-yours-quote { margin: 0; padding: 2px 6px; background: var(--mark); color: var(--ink); font-size: 14px; border-radius: 3px; width: fit-content; max-width: 100%; }
.send-state .small a { display: inline-flex; align-items: center; min-height: 44px; }
.send-spinner {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--accent-line); border-top-color: var(--accent);
  animation: send-spin 0.9s linear infinite;
}
@keyframes send-spin { to { transform: rotate(360deg); } }
/* Waiting with nothing happening (six is off): a still mark, not a spinner. */
.send-pause { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); }
@media (prefers-reduced-motion: reduce) { .send-spinner { animation: none; border-color: var(--accent); } }

/* Account: sending from your phone and iPad. */
.ways-in .sub-title { margin-top: 4px; }
.ways-in form.button_to + p { margin-top: 8px; }

@media (max-width: 720px) {
  .send-form .send-button { width: 100%; min-height: 48px; }
  .drop-zone { min-height: 96px; }
}

/* The iPad Shortcut's steps (accounts/shortcut, from docs/shortcut.md). */
.doc h2 { margin-top: 1.6em; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.3em; }
/* Tables fit the page and wrap by words (prose's own scroll and anywhere-breaks are for wide text). */
.doc table { display: table; width: 100%; table-layout: fixed; font-size: 13.5px; }
.doc th, .doc td { vertical-align: top; overflow-wrap: break-word; padding: 6px 8px; }
.doc code { overflow-wrap: break-word; }
/* A code span in running text shows all of itself: a long one (an address) wraps rather than hide its end. */
.doc li code, .doc p code { overflow-wrap: anywhere; }
/* Actions inside an action are numbered as the text names them: 13.1, 13.2… */
.doc ol ol > li::marker { content: counters(list-item, ".") ". "; }
.doc ol > li::marker { font-weight: 600; color: var(--muted); }
