:root {
  color-scheme: dark;
  font-family: "Metropolis", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08090b;
  color: #f8f6f2;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #08090b;
}

main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

header { margin-bottom: 36px; text-align: center; }

h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 8vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #11151a;
  color: #b6bec4;
  font-size: 0.9rem;
  line-height: 1.5;
}

.notice.danger { border-color: #7e4037; color: #ffc0b5; }
.notice h2 { margin: 20px 0 8px; }
.notice p { margin: 0 0 12px; }
.notice ol { margin: 0 0 12px; padding-left: 24px; }
.notice a { color: #d43e78; }
.notice pre { overflow: auto; margin: 0 0 12px; }
code { color: #d43e78; }

.panel, .status-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #11151a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 112px;
  padding: 24px;
}

.grow { flex: 1; min-width: 0; }
.step { color: #d43e78; font: 700 0.8rem ui-monospace, monospace; }
h2 { margin: 0 0 7px; font-size: 1rem; }
.row p { overflow-wrap: anywhere; margin: 0; color: #7b858d; font-size: 0.88rem; }
.divider { height: 1px; margin-left: 64px; background: rgba(255, 255, 255, 0.1); }

button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: #1a2026;
  color: #f8f6f2;
  font: 700 0.82rem inherit;
  cursor: pointer;
  transition: border-color 120ms, background 120ms, transform 120ms;
}

button:hover:not(:disabled), .button:hover { border-color: #d43e78; background: #222a31; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
button:focus-visible, .button:focus-within { outline: 2px solid #d43e78; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: 0.35; }
.primary { border-color: #d43e78; background: #d43e78; color: #fff; }
.primary:hover:not(:disabled) { border-color: #b82d65; background: #b82d65; }
.secondary input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.status-panel { margin-top: 16px; padding: 20px 24px 24px; }
.status-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; font-size: 0.85rem; }
.log {
  display: block;
  min-height: 112px;
  max-height: 220px;
  overflow: auto;
  margin-top: 18px;
  color: #7b858d;
  font: 0.76rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

@media (max-width: 650px) {
  main { padding: 38px 0; }
  .row { align-items: flex-start; flex-wrap: wrap; }
  .grow { width: calc(100% - 48px); flex-basis: calc(100% - 48px); }
  .row button, .row .button { width: 100%; margin-left: 40px; }
  .divider { margin-left: 24px; }
}
