/* sec.vpc.md Send page. Hut design system, as on status.vpc.md and the VPC
   unavailable page: 1px hairlines, system sans for prose, mono for data,
   radius 0, no shadows, colour only for state. No inline styles: the page CSP
   forbids them. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --border-dashed: #adb5bd;
  --link: #1a5fb4;
  --fail: #c0392b;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #ddd;
    --text-muted: #999;
    --border: #333;
    --border-dashed: #666;
    --link: #6ea8e8;
    --fail: #d75e50;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px;
}
nav { border-bottom: 1px solid var(--border); }
.brand { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tagline { color: var(--text-muted); font-size: 13px; }
.links { margin-left: auto; font-size: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.card {
  border: 1px solid var(--border);
  padding: 20px 18px;
}
.card-title { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { max-width: 64ch; margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.send-meta { color: var(--text-muted); font: 12.5px var(--mono); }
.send-file { font: 13px var(--mono); }
.send-status { margin-top: 12px; }
.state-fail {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--fail);
}
.state-fail::before { content: ""; align-self: center; flex: none; width: 9px; height: 9px; background: var(--fail); }
.send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px;
}
.btn {
  font: 13px var(--sans);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-dashed);
  border-radius: 0;
  padding: 6px 14px;
  cursor: pointer;
}
.btn:hover { border-color: var(--text); }
.btn:disabled { color: var(--text-muted); border-color: var(--border); cursor: default; }
.send-text {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font: 13px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.send-text.is-hidden { display: none; }
.pw-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pw-label { width: 100%; color: var(--text-muted); font-size: 14px; }
.pw-input {
  font: 14px var(--mono);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-dashed);
  border-radius: 0;
  padding: 6px 10px;
  min-width: 220px;
}
.pw-input:focus { outline: none; border-color: var(--text); }
.pw-error:empty { display: none; }
.pw-error { width: 100%; margin: 0; }
footer { border-top: 1px solid var(--border); }
footer .bar { padding-top: 12px; padding-bottom: 12px; color: var(--text-muted); font-size: 13px; }
