.gr-form, .gr-grid { display:grid; min-width:0; gap:12px; }
.gr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.gr-field {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-self:start;
  gap:5px;
  box-sizing:border-box;
  min-width:0;
  min-height:62px;
  margin:0;
  padding:10px 14px;
  border:1px solid var(--form-edge);
  border-radius:var(--form-radius);
  background:var(--form-fill);
  color:var(--form-text);
  cursor:text;
  transition:background .15s, border-color .15s, box-shadow .15s;
}
.gr-field > span { color:#e6e6e3; font-size:var(--label-size); line-height:1.4; font-weight:650; }
.gr-field :is(input,textarea) {
  box-sizing:border-box;
  flex:1;
  width:100%;
  min-width:0;
  min-height:24px;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  color:var(--form-text);
  font-family:inherit;
  font-size:var(--body-size);
  font-weight:400;
  line-height:1.45;
  caret-color:var(--form-gold);
}
[data-registration-page] :is(input,textarea)::placeholder { color:#adb0b3; opacity:.25; font-weight:400; }
[data-registration-page] :is(input,textarea):focus::placeholder { opacity:0; }
.gr-field:focus-within { border-color:var(--form-gold); box-shadow:0 0 0 2px #e9b96935; background:#2d2c29; }
.gr-field:focus-within > span { color:#f2cf93; }
.gr-field :is(input,textarea):focus { outline:0; }
.gr-field:has(:user-invalid) { border-color:#eea997; }
.gr-field:has(textarea) { padding-block:12px; }
.gr-field textarea { resize:vertical; }
.gr-form > details > summary, .gr-back {
  width:fit-content;
  max-width:100%;
  min-height:44px;
  font:inherit;
  font-size:15px;
  font-weight:600;
  color:var(--form-text);
  text-decoration:none;
  cursor:pointer;
}
.gr-form > details > summary { display:flex; align-items:center; gap:10px; list-style:none; }
.gr-form > details > summary::-webkit-details-marker { display:none; }
.gr-form > details > summary::after {
  display:inline-grid;
  place-items:center;
  content:"+";
  width:18px;
  height:18px;
  border-radius:50%;
  background:#323535;
  color:#e7e3da;
  font:400 14px/1 var(--form-font);
}
.gr-form > details[open] > summary::after { content:"−"; }
.gr-form > details[open] > .gr-field { margin:4px 0 8px; }
.gr-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:12px; }
.gr-back, .gr-toggle { border:0; background:transparent; padding:8px 0; cursor:pointer; }
.gr-back { margin-right:auto; }
.gr-actions .gr-primary, [data-registration-flow] > .gr-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  max-width:100%;
  min-width:132px;
  padding:12px 24px;
  border:0;
  border-radius:999px;
  background:var(--form-gold);
  color:var(--form-ink);
  font-size:var(--body-size);
  line-height:1.4;
  font-weight:700;
  transition:background .15s, transform .15s;
}
.gr-actions .gr-primary:enabled:active, .gr-city:enabled:active { transform:translateY(1px); }
.gr-content .gr-primary:disabled { opacity:.58; cursor:default; }
.gr-cities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px var(--choice-column-gap); }
.gr-city {
  display:flex;
  box-sizing:border-box;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  min-height:72px;
  padding:15px 16px;
  border:1px solid var(--form-edge);
  border-radius:var(--form-radius);
  background:var(--form-fill);
  color:var(--form-text);
  font-family:inherit;
  font-size:var(--choice-title);
  font-weight:650;
  letter-spacing:-.025em;
  line-height:1.25;
  text-align:start;
  text-decoration:none;
  cursor:pointer;
}
.gr-city [aria-hidden="true"] { color:var(--form-gold); }
.gr-city:focus-visible, .gr-city[aria-pressed="true"] { outline:2px solid var(--form-gold); outline-offset:1px; }
.gr-city-hint { margin:15px 0 0; color:var(--form-muted); font-size:var(--body-size); font-weight:450; line-height:1.45; }
.gr-gearbox-note {
  max-width:65ch;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--form-rule);
}
.gr-content .gr-gearbox-note h2 {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 6px;
  font-size:var(--body-size);
}
.gr-gearbox-note svg { flex:0 0 20px; width:20px; height:20px; color:var(--form-gold); }
.gr-gearbox-note p { margin:0; color:var(--form-muted); font-size:15px; line-height:1.5; }
.gr-login { font:inherit; color:var(--form-gold); text-decoration:underline; text-underline-offset:3px; }
.gr-contract { width:100%; box-sizing:border-box; overflow:hidden; background:#fff; border-radius:8px; }
.gr-paper { display:block; margin:0; width:100%; height:150px; border:0; background:#fff; }
.gr-contract[data-expanded="true"] .gr-paper { height:max(150px,var(--gr-document-height,150px)); }
.gr-toggle { display:block; margin:0 auto 12px; padding:11px 8px; min-height:44px; color:var(--form-text); font:inherit; font-size:15px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.gr-error { color:#ffbfaa; }
.gr-status { color:#bec1c3; }
@media (hover:hover) {
  .gr-field:hover:not(:focus-within), .gr-city:hover { border-color:#999890; }
  .gr-actions .gr-primary:enabled:hover { background:#f6cb81; }
  .gr-form > details > summary:hover, .gr-back:hover { color:var(--form-gold); }
}
@container registration (min-width:581px) {
  .gr-form { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:12px; align-items:start; }
  .gr-form:has(> .gr-grid) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gr-form > .gr-grid { grid-column:span 2; }
  .gr-form > details, .gr-form > .gr-actions { grid-column:1/-1; }
}
@container registration (max-width:580px) {
  .gr-grid, .gr-cities { grid-template-columns:minmax(0,1fr); }
  .gr-city { min-height:58px; padding:13px; }
}
@media (prefers-reduced-motion:reduce) {
  .gr-field, .gr-actions .gr-primary { transition:none; }
}
@media (forced-colors:active) {
  .gr-field:focus-within { outline:2px solid Highlight; }
}
