:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #555555;
  --line: #000000;
  --fill: #f4f4f4;
  --error: #000000;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

header, footer {
  padding: 28px 32px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--fg);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 56px 24px 72px;
}

.panel {
  width: 100%;
  max-width: 560px;
}

h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  margin: 0 0 36px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

input[type="email"],
input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  border-radius: 0;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus, textarea:focus {
  background: var(--fill);
}

.field { margin-bottom: 20px; }

.drop {
  border: 1px solid var(--fg);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  background: var(--bg);
}

.drop.drag {
  background: var(--fill);
}

.drop p {
  margin: 0;
  color: var(--muted);
}

.drop strong {
  color: var(--fg);
  font-weight: 600;
}

.file-name {
  margin-top: 10px;
  font-size: 14px;
}

button, .btn {
  display: inline-block;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
}

button.secondary, .btn.secondary {
  background: var(--bg);
  color: var(--fg);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.progress {
  display: none;
  margin-top: 20px;
}

.progress.on { display: block; }

.bar {
  height: 2px;
  background: var(--fill);
  margin: 10px 0 6px;
}

.bar > span {
  display: block;
  height: 2px;
  background: var(--fg);
  width: 0%;
}

.status, .error {
  font-size: 14px;
  margin-top: 16px;
}

.error { font-weight: 500; }

.hidden { display: none !important; }

.meta {
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  padding: 16px 0;
  margin: 0 0 28px;
  font-size: 14px;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; word-break: break-all; }

.keybox {
  border: 1px solid var(--fg);
  padding: 16px;
  margin: 20px 0;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--fill);
}

footer {
  border-top: 1px solid var(--fg);
  color: var(--muted);
  font-size: 12px;
}

table.plain {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 14px;
}

table.plain th,
table.plain td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--fg);
  vertical-align: top;
}

table.plain th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

table.plain .right { text-align: right; }
.muted { color: var(--muted); font-size: 13px; margin-top: 4px; }
button.small { padding: 8px 12px; font-size: 11px; }

.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
}
