/* Netsocs login theme.
   Same components as the Netsocs console: neutral dark surfaces, 1 px gray
   borders, 6 px radius, blue primary action, green only for the logo and
   status, small uppercase section labels, no effects on controls.
   System fonts only (offline installs, nothing loaded from the internet). */

:root {
  color-scheme: dark;
  --bg-page: #111113; --bg-container: #18181a; --bg-input: #141414; --bg-hover: rgba(255,255,255,.06);
  --border: #303030; --border-input: #424242;
  --text: rgba(255,255,255,.88); --text-2: rgba(255,255,255,.65); --text-3: rgba(255,255,255,.45); --text-4: rgba(255,255,255,.25);
  --primary: #1677ff; --primary-hover: #4096ff; --primary-active: #0958d9; --link: #4096ff; --link-hover: #69b1ff;
  --ok: #06da61; --error: #dc4446; --error-bg: #2c1618; --error-border: #5b2526;
  --warn: #d89614; --warn-bg: #2b2111; --warn-border: #594214;
  --success: #49aa19; --success-bg: #162312; --success-border: #274916;
  --info-bg: #111a2c; --info-border: #15325b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.nx {
  background: var(--bg-page) center / cover no-repeat fixed;
  color: var(--text); font: 14px/1.5715 var(--font);
  overflow-x: hidden; overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

/* ---- Animated background ---- */
#nx-bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; cursor: pointer; }
body.nx-custom-bg #nx-bg { display: none; }

.nx-switch {
  position: fixed; right: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(20,20,22,.88); border: 1px solid var(--border);
  font: 12px var(--font); color: var(--text-3); user-select: none;
}
.nx-switch b { color: var(--text); font-weight: 600; letter-spacing: .02em; }
.nx-dot { width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; border: 0; padding: 0; background: rgba(121,121,142,.45); cursor: pointer; }
.nx-dot[aria-current="true"] { background: var(--ok); }
.nx-dot:focus-visible { outline: 2px solid rgba(64,150,255,.6); outline-offset: 2px; }

/* ---- Layout ---- */
.nx-main {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: center; padding: 3rem 6rem 5rem;
  pointer-events: none; /* clicks outside the card reach the background */
}
.nx-card {
  position: relative; pointer-events: auto; width: 100%; max-width: 25rem;
  padding: 1.75rem 1.75rem 1rem; border-radius: 8px;
  background: var(--bg-container); border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}

.nx-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.nx-brand { display: flex; gap: .5rem; align-items: center; min-width: 0; font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -.01em; }
.nx-wordmark { height: 24px; width: auto; flex: none; display: block; }
.nx-logo { max-height: 32px; max-width: 180px; object-fit: contain; }
.nx-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 10rem;
  padding: 1px 6px; border-radius: 4px; color: var(--link);
  background: rgba(22,119,255,.15); border: 1px solid rgba(22,119,255,.4);
}
.nx-lang {
  appearance: none; -webkit-appearance: none; flex: none;
  font: 12px var(--font); color: var(--text-2); cursor: pointer;
  padding: 4px 24px 4px 10px; border-radius: 6px; border: 1px solid var(--border-input);
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center;
}
.nx-lang:hover, .nx-lang:focus { outline: none; border-color: var(--primary-hover); }
.nx-lang option { background: var(--bg-container); color: var(--text); }

.nx-head { margin-bottom: 1.5rem; }
.nx-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 .35rem; }
.nx-head h1 { font-size: 1.35rem; line-height: 1.35; font-weight: 600; margin: 0; color: var(--text); }
.nx-sub { color: var(--text-3); font-size: 13px; margin: .3rem 0 0; }
.nx-required-note { color: var(--text-3); font-size: 12px; margin: .5rem 0 0; }
.required { color: var(--error); margin-left: 2px; }
.nx-optional { color: var(--text-3); font-weight: 400; margin-left: 4px; }
.nx-optional::before { content: "("; } .nx-optional::after { content: ")"; }

.nx-user {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; max-width: 100%;
  padding: 3px 4px 3px 10px; border-radius: 6px; border: 1px solid var(--border-input); background: var(--bg-input); font-size: 13px;
}
.nx-user #kc-attempted-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-user .nx-link { font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.nx-user .nx-link:hover { background: var(--bg-hover); }

/* ---- Fields ---- */
.nx-form { margin: 0; }
.nx-field { margin-bottom: 1rem; }
.nx-label, .nx-field > label, .nx-label-wrap label { display: block; font-size: 13px; color: var(--text); margin: 0 0 .4rem; }
.nx-label-wrap { display: block; }
.nx-control { position: relative; display: flex; align-items: center; }
.nx-control > .nx-ic { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }

.nx-input,
.nx-card input[type="text"], .nx-card input[type="password"], .nx-card input[type="email"],
.nx-card input[type="tel"], .nx-card input[type="number"], .nx-card select:not(.nx-lang), .nx-card textarea {
  width: 100%; height: 40px; padding: 0 11px; border-radius: 6px; margin: 0;
  background: var(--bg-input); border: 1px solid var(--border-input); color: var(--text);
  font: 14px var(--font); transition: border-color .2s, box-shadow .2s;
}
.nx-card textarea { height: auto; min-height: 80px; padding: 8px 11px; }
.nx-card .nx-has-icon .nx-input { padding-left: 34px; }
.nx-card .nx-control .nx-eye ~ .nx-input, .nx-card .nx-control .nx-input:has(+ .nx-eye) { padding-right: 40px; }
.nx-card input::placeholder { color: var(--text-4); }
.nx-input:hover, .nx-card input[type="text"]:hover, .nx-card input[type="password"]:hover, .nx-card input[type="email"]:hover,
.nx-card select:not(.nx-lang):hover, .nx-card textarea:hover { border-color: var(--primary-hover); }
.nx-input:focus, .nx-card input[type="text"]:focus, .nx-card input[type="password"]:focus, .nx-card input[type="email"]:focus,
.nx-card input[type="tel"]:focus, .nx-card input[type="number"]:focus, .nx-card select:not(.nx-lang):focus, .nx-card textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(5,145,255,.12);
}
.nx-card input[aria-invalid="true"], .nx-card select[aria-invalid="true"] { border-color: var(--error); }
.nx-card input[aria-invalid="true"]:focus { box-shadow: 0 0 0 2px rgba(255,38,5,.1); }
.nx-card input:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px var(--bg-input) inset; transition: background-color 9999s;
}
.nx-error { display: block; margin-top: .35rem; color: var(--error); font-size: 13px; line-height: 1.45; }
.nx-help { display: block; margin-top: .3rem; color: var(--text-3); font-size: 12px; }

.nx-eye {
  position: absolute; right: 4px; width: 32px; height: 32px; border: 0; padding: 0; border-radius: 4px;
  background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center;
}
.nx-eye:hover { background: var(--bg-hover); color: var(--text-2); }
.nx-eye:focus-visible { outline: 2px solid rgba(64,150,255,.6); outline-offset: 0; }

.nx-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .25rem 0 1.4rem; font-size: 13px; }
.nx-options { margin: .25rem 0 1.25rem; font-size: 13px; }

/* Checkbox and radio like the console */
.nx-check, .nx-card .checkbox label, .nx-card .radio label { display: inline-flex; gap: .5rem; align-items: center; color: var(--text); cursor: pointer; font-size: 13px; }
.nx-card input[type="checkbox"], .nx-card input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; cursor: pointer;
  border: 1px solid var(--border-input); background: var(--bg-input); display: inline-grid; place-items: center;
}
.nx-card input[type="checkbox"] { border-radius: 4px; }
.nx-card input[type="radio"] { border-radius: 50%; }
.nx-card input[type="checkbox"]:hover, .nx-card input[type="radio"]:hover { border-color: var(--primary-hover); }
.nx-card input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.nx-card input[type="checkbox"]:checked::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.nx-card input[type="radio"]:checked { border-color: var(--primary); }
.nx-card input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.nx-card input[type="checkbox"]:focus-visible, .nx-card input[type="radio"]:focus-visible { outline: 2px solid rgba(64,150,255,.5); outline-offset: 1px; }

/* ---- Links and buttons ---- */
.nx-card a, .nx-link { color: var(--link); text-decoration: none; }
.nx-card a:hover, .nx-link:hover { color: var(--link-hover); }
.nx-linkbtn { border: 0; padding: 0; background: none; color: var(--link); font: 13px var(--font); cursor: pointer; }
.nx-linkbtn:hover { color: var(--link-hover); }
.nx-aside { margin-top: 1rem; text-align: center; }

.nx-btn, .nx-card input[type="submit"], .nx-card button[type="submit"]:not(.nx-linkbtn) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 40px; padding: 0 15px; border-radius: 6px; cursor: pointer;
  font: 500 14px var(--font); color: #fff; background: var(--primary); border: 1px solid var(--primary);
  transition: background .15s, border-color .15s, color .15s; text-decoration: none;
}
.nx-btn:hover, .nx-card input[type="submit"]:hover, .nx-card button[type="submit"]:not(.nx-linkbtn):hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.nx-btn:active, .nx-card input[type="submit"]:active { background: var(--primary-active); border-color: var(--primary-active); }
.nx-btn:focus-visible, .nx-card input[type="submit"]:focus-visible { outline: 2px solid rgba(64,150,255,.6); outline-offset: 2px; }
.nx-btn-block { display: flex; width: 100%; }
.nx-card .nx-btn-default, .nx-card input[type="submit"].nx-btn-default, .nx-card button.nx-btn-default {
  background: transparent; color: var(--text); border-color: var(--border-input);
}
.nx-card .nx-btn-default:hover { background: transparent; color: var(--primary-hover); border-color: var(--primary-hover); }
.nx-buttons { display: grid; gap: .5rem; margin-top: .25rem; }
.nx-buttons > * { width: 100%; }
.nx-btn.nx-loading, .nx-btn:disabled { pointer-events: none; }
.nx-btn.nx-loading { color: transparent !important; }
.nx-btn.nx-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -9px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: nx-spin .7s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

.nx-note { margin: 1rem 0 0; text-align: center; color: var(--text-3); font-size: 12px; }
.nx-info { margin-top: 1rem; text-align: center; font-size: 13px; color: var(--text-2); }
.nx-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 .75rem; color: var(--text-3); font-size: 12px; }
.nx-divider::before, .nx-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.nx-social .nx-btn + .nx-btn { margin-top: .5rem; }

/* ---- Status line (like CONNECTED in the console bar) ---- */
.nx-status {
  display: flex; justify-content: space-between; gap: 1rem; margin: 1.25rem -1.75rem 0; padding: .75rem 1.75rem 0;
  border-top: 1px solid var(--border); font: 11px var(--mono); color: var(--text-3); letter-spacing: .04em;
}
.nx-status b { font-weight: 600; color: var(--ok); text-transform: uppercase; white-space: nowrap; }
.nx-status b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.nx-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* ---- Alerts ---- */
.nx-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 6px; font-size: 13px; line-height: 1.5; margin: 0 0 1.25rem; border: 1px solid; color: var(--text); }
.nx-alert > .nx-ic { margin-top: 2px; }
.nx-alert-error { background: var(--error-bg); border-color: var(--error-border); }
.nx-alert-error > .nx-ic { color: var(--error); }
.nx-alert-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.nx-alert-warning > .nx-ic { color: var(--warn); }
.nx-alert-success { background: var(--success-bg); border-color: var(--success-border); }
.nx-alert-success > .nx-ic { color: var(--success); }
.nx-alert-info { background: var(--info-bg); border-color: var(--info-border); }
.nx-alert-info > .nx-ic { color: var(--primary-hover); }

/* ---- Authenticator setup ---- */
.nx-steps { list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: s; }
.nx-steps > li { position: relative; padding-left: 2.1rem; margin-bottom: 1.25rem; color: var(--text); font-size: 13px; line-height: 1.55; }
.nx-steps > li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--link); border: 1px solid var(--border-input); background: var(--bg-input);
}
.nx-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: -1.1rem; width: 1px; background: var(--border); }
.nx-steps > li > label { display: block; }
.nx-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.nx-chip { font-size: 12px; padding: 1px 8px; border-radius: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--border-input); color: var(--text-2); }
.nx-qr { width: 164px; height: 164px; margin: .6rem 0 .35rem; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-input); }
.nx-qr img { width: 100%; height: 100%; display: block; border-radius: 4px; background: #fff; image-rendering: pixelated; }
.nx-secret {
  margin: .5rem 0; padding: .5rem .75rem; border-radius: 6px; border: 1px solid var(--border-input); background: var(--bg-input);
  font: 600 13px var(--mono); letter-spacing: .08em; word-break: break-all; user-select: all;
}
.nx-policy { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; margin: .6rem 0 0; font-size: 12px; }
.nx-policy dt { color: var(--text-3); }
.nx-policy dd { margin: 0; font-family: var(--mono); }

/* One box per digit (built by netsocs-login.js) */
.nx-code { display: flex; gap: .4rem; margin-top: .55rem; align-items: center; }
.nx-card .nx-code input {
  width: 40px; height: 44px; padding: 0; text-align: center; font: 600 18px var(--mono);
}
.nx-code-sep { width: 8px; height: 1px; background: var(--border-input); }
.nx-card input.nx-code-input { font: 600 18px var(--mono); letter-spacing: .4em; } /* without JavaScript */

/* Several authenticator devices */
.nx-devices { display: grid; gap: .4rem; }
.nx-device { display: flex; gap: .6rem; align-items: center; padding: .5rem .75rem; border-radius: 6px; border: 1px solid var(--border-input); background: var(--bg-input); cursor: pointer; }
.nx-device:has(input:checked) { border-color: var(--primary); }
.nx-device .nx-ic { color: var(--text-3); }

/* "Try another way" list (base template) */
.nx-auth-list { display: grid; gap: .5rem; }
.nx-auth-item { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: 6px; border: 1px solid var(--border-input); background: var(--bg-input); cursor: pointer; }
.nx-auth-item:hover { border-color: var(--primary-hover); }
.nx-auth-body { flex: 1; }
.nx-auth-title { font-weight: 600; }
.nx-auth-desc { color: var(--text-3); font-size: 12px; }

/* Base info/error pages */
#kc-info-message p, #kc-error-message p { margin: 0 0 1rem; color: var(--text-2); }
#kc-info-message .instruction { color: var(--text-2); }

/* ---- Icons (line icons, color from currentColor) ---- */
.nx-ic {
  display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; font-style: normal;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.nx-ic-user    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.nx-ic-lock    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.nx-ic-eye     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.nx-ic-eye-off { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.4 10.4 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.5 7 10 7c1.9 0 3.5-.6 4.9-1.4M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.nx-ic-phone   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.nx-ic-key     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M17 6l3 3M15 8l2 2'/%3E%3C/svg%3E"); }
.nx-ic-warning { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 3l10 18H2L12 3z'/%3E%3Cpath d='M12 10v5M12 18v.5'/%3E%3C/svg%3E"); }
.nx-ic-error   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
.nx-ic-success { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.nx-ic-info    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.nx-ic-restart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 4v6h6'/%3E%3Cpath d='M5 15a8 8 0 1 0 1.5-8.5L4 10'/%3E%3C/svg%3E"); }
.nx-ic-chevron { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* ---- Page footer ---- */
.nx-footer {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  padding: 6px 14px; border-radius: 6px; background: rgba(20,20,22,.88); border: 1px solid var(--border);
  font: 12px var(--font); color: var(--text-3); white-space: nowrap;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 820px) {
  .nx-main { padding: 1.5rem 1rem; align-items: flex-start; min-height: 0; }
  .nx-card { max-width: 100%; padding: 1.5rem 1.25rem .9rem; }
  .nx-status { margin: 1.25rem -1.25rem 0; padding: .75rem 1.25rem 0; }
  /* phones: the footer and scene switch follow the form instead of floating over it */
  .nx-footer { position: relative; left: auto; bottom: auto; transform: none; display: block; width: max-content; max-width: calc(100% - 2rem); margin: 0 auto 1rem; white-space: normal; text-align: center; }
  .nx-switch { display: none; }
}
@media (min-width: 821px) and (max-width: 1099px) {
  .nx-main { justify-content: center; padding: 3rem 2rem 5rem; }
}
