:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --accent-text: #ffffff;
  --ok: #047857;
  --warn: #b45309;
  --err: #b91c1c;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --line: #2a2f38;
    --accent: #f3f4f6;
    --accent-text: #0f1115;
    --ok: #34d399;
    --warn: #fbbf24;
    --err: #f87171;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.who { color: var(--muted); font-size: 14px; }
.who a { margin-left: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
p.muted, .muted { color: var(--muted); }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font: inherit;
}
textarea { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
button, .btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-text); text-decoration: none;
}
button.secondary, .btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.small { padding: 6px 12px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; margin-top: 14px; }
.drop.over { border-color: var(--text); color: var(--text); }
ul.files { list-style: none; padding: 0; margin: 12px 0 0; }
ul.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
ul.files li:first-child { border-top: 0; }
ul.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.files .size { color: var(--muted); font-size: 14px; white-space: nowrap; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--text); transition: width .2s; }
.status { font-size: 14px; color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.linkbox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: 0; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
.pill.sent { color: var(--ok); }
.pill.revoked, .pill.expired { color: var(--err); }
.hidden { display: none !important; }
footer { margin-top: 32px; color: var(--muted); font-size: 13px; }
