:root { --bg: #fff; --fg: #1a1a1a; --dim: #777; --line: #ddd; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --fg: #ddd; --dim: #777; --line: #2a2a2a; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  display: flex; flex-direction: column;
}
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.logo { color: var(--fg); text-decoration: none; font-weight: bold; }
nav { display: flex; align-items: center; gap: 14px; }
button {
  font: inherit; color: var(--dim); background: none; border: 0; padding: 0;
  cursor: pointer; border-radius: 0;
}
button:hover, button:focus-visible { color: var(--fg); outline: none; text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; text-decoration: none; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
input { font: inherit; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; outline: 0; padding: 2px 0; width: 100%; }
input:focus { border-bottom-color: var(--dim); }
input::placeholder { color: var(--dim); }
.page { padding: 16px; max-width: 72ch; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.key { font-weight: bold; font-size: 1.1em; user-select: all; word-break: break-all; padding: 10px 0; }
.dim { color: var(--dim); }
[hidden] { display: none !important; }
@media (max-width: 520px) { header { padding: 8px 12px; } .page { padding: 12px; } }
