:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #151518;
  --line: #26262b;
  --text: #ececf0;
  --muted: #8b8b94;
  --accent: #6aa7ff;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

main.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

h1 { margin: 0; font-size: 1.4rem; }

.bar { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.bar h1 { flex: 1; }

.row { display: flex; gap: 8px; margin-bottom: 12px; }
.row input { flex: 1; }

input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.button, button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #06101f;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }

.link { color: var(--accent); }
button.plain { background: transparent; color: var(--accent); padding: 0 8px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }

.secret {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.secret label { display: block; margin-bottom: 8px; color: var(--muted); }
.secret input { font-family: ui-monospace, monospace; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .meta { color: var(--muted); font-size: 0.875rem; }

[hidden] { display: none !important; }
