:root {
  --ink: #1d1b26;
  --muted: #6b6480;
  --line: #e6e2ee;
  --surface: #f7f6fa;
  --card: #ffffff;
  --brand: #322558;
  --onbrand: #ffffff;
  --soft: #f1eff5;
  --error: #a3211f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #eeecf3;
    --muted: #a49db6;
    --line: #2f2b3a;
    --surface: #15131b;
    --card: #1d1a25;
    --brand: #b9a6ff;
    --onbrand: #15131b;
    --soft: #27232f;
    --error: #ff9b97;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--surface);
}
.wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 40px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.lead,
.hint {
  margin: 0;
  color: var(--muted);
}
.hint {
  font-size: 13px;
}
.card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
input,
select {
  font: inherit;
  color: inherit;
  min-width: 0;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.row input {
  flex: 1 1 200px;
}
.row select {
  flex: 1 1 200px;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--soft);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.primary {
  color: var(--onbrand);
  background: var(--brand);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.quiet {
  background: none;
  color: var(--muted);
}
.error {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 13px;
}
.error:empty {
  display: none;
}
.log {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
.log:empty {
  display: none;
}
.done {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.copyable {
  width: 100%;
  font-size: 13px;
}
.copies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.copy:first-child {
  border-top: 0;
}
.copy-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
