body { overflow-y: auto; align-items: stretch; }
.setup-wrap { max-width: 560px; margin: 0 auto; padding: 40px 22px 60px; width: 100%; }
.setup-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.setup-sub { margin: 0 0 32px; color: #9aa4bd; font-size: 14px; line-height: 1.5; }
html.light .setup-sub { color: #5a6280; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; color: #aeb8cf; }
html.light .field label { color: #4a5170; }
.field input, .field select {
  font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
  color: #e8ecf4; outline: none; transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus { border-color: var(--accent, #7de3f4); }
html.light .field input, html.light .field select {
  border-color: rgba(79, 70, 229, 0.22); background: rgba(79, 70, 229, 0.04); color: #16192b;
}

.section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
                 color: #7f8ab0; margin: 30px 0 14px; }
html.light .section-title { color: #5a6280; }

.fact-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px; margin-bottom: 10px; align-items: center; }
@media (max-width: 560px) { .fact-row { grid-template-columns: 1fr 1fr; grid-template-areas: "cat cat" "key val" "rm rm"; } }
.fact-remove {
  border: none; background: rgba(244, 96, 96, 0.14); color: #ff9d9d; border-radius: 10px;
  width: 38px; height: 38px; cursor: pointer; font-size: 16px;
}
.add-fact {
  background: none; border: 1px dashed rgba(255, 255, 255, 0.25); color: #aeb8cf;
  border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 13px; cursor: pointer; width: 100%;
}
html.light .add-fact { border-color: rgba(79, 70, 229, 0.3); color: #4a5170; }

.submit-btn {
  width: 100%; margin-top: 30px; padding: 14px; border-radius: 14px; border: none;
  background: var(--accent, #7de3f4); color: #071018; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.form-error { color: #f4809e; font-size: 13.5px; min-height: 1.2em; margin: 14px 0 0; }

.result-card { text-align: center; padding: 20px 0; }
.result-pin { font-size: 44px; font-weight: 800; letter-spacing: 0.18em; margin: 18px 0; color: var(--accent, #7de3f4); }
.result-hint { font-size: 13.5px; color: #9aa4bd; margin-bottom: 24px; }
html.light .result-hint { color: #5a6280; }
.result-link-row { display: flex; gap: 8px; margin-bottom: 14px; }
.result-link-row input {
  flex: 1; font: inherit; font-size: 13px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: #e8ecf4;
}
.result-open {
  display: inline-block; margin-top: 6px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent, #7de3f4); color: #071018; text-decoration: none; font-weight: 700; font-size: 14px;
}
