:root {
  color: #1d1d1f;
  background: #f5f5f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; }

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

.eyebrow {
  margin: 0 0 8px;
  color: #147a45;
  font-size: 12px;
  font-weight: 700;
}

h1 { margin: 0; font-size: 32px; line-height: 1.2; }
h2 { margin: 0 0 16px; font-size: 20px; }

form {
  display: grid;
  gap: 9px;
  margin-top: 36px;
}

label { margin-top: 10px; font-size: 13px; font-weight: 650; }
input, textarea, button, a { font: inherit; }

input, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8c8c2;
  border-radius: 6px;
  padding: 11px 12px;
  color: inherit;
  background: #fff;
  resize: vertical;
}

button, .space-row a {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #1d1d1f;
  cursor: pointer;
}

button { margin-top: 16px; padding: 0 18px; }
button:disabled { opacity: .55; cursor: wait; }

.lifetime-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.lifetime-row label { margin: 0; }
.check-label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.check-label input { width: 18px; height: 18px; }
.error { margin: 4px 0 0; color: #b42318; font-size: 13px; }

#result {
  margin-top: 40px;
  border-top: 1px solid #d8d8d2;
  padding-top: 28px;
}

.space-links { display: grid; gap: 1px; }
.space-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #deded9;
}

.space-row a {
  display: grid;
  place-items: center;
  min-height: 38px;
  text-decoration: none;
}

[hidden] { display: none !important; }

@media (max-width: 560px) {
  main { padding-top: 32px; }
  .lifetime-row { grid-template-columns: minmax(0, 1fr); }
  .check-label { min-height: 38px; }
}

@media (prefers-color-scheme: dark) {
  :root { color: #f5f5f3; background: #1b1b1a; }
  input, textarea { color: #f5f5f3; background: #292927; border-color: #55554f; }
  button, .space-row a { color: #1d1d1f; background: #f5f5f3; }
  #result, .space-row { border-color: #454540; }
}
