:root {
  color-scheme: light;
  --bg: #f7f9fd;
  --text: #202c42;
  --muted: #657187;
  --green: #4c88ff;
  --green-dark: #285bb8;
  --button-bg: #4c88ff;
  --button-hover: #326ed8;
  --card: #ffffff;
  --border: #dde4f0;
  --header-bg: rgba(247, 249, 253, 0.95);
  --button-text: #ffffff;
  --secondary-button: #e8f0ff;
  --secondary-button-hover: #d8e6ff;
  --screen: #17233a;
  --screen-border: transparent;
  --screen-shadow: rgba(32, 44, 66, 0.22);
  --slide-start: #1f3768;
  --slide-end: #4c88ff;
  --controls: #657590;
  --soft: #edf3ff;
  --support-cta: #e8f0ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111827;
    --text: #eff4ff;
    --muted: #aab7ce;
    --green: #6b9cff;
    --green-dark: #a9c5ff;
    --button-bg: #4c88ff;
    --button-hover: #6b9cff;
    --card: #192338;
    --border: #32405b;
    --header-bg: rgba(17, 24, 39, 0.95);
    --secondary-button: #233453;
    --secondary-button-hover: #2c4269;
    --screen: #243656;
    --screen-border: #49638f;
    --screen-shadow: rgba(0, 0, 0, 0.38);
    --slide-start: #1c315c;
    --slide-end: #396fcf;
    --controls: #50668d;
    --soft: #17243b;
    --support-cta: #1c2d4a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 720px;
  text-align: center;
}

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.small-link {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  padding: 72px 0;
}

.support-hero {
  padding: 86px 0 78px;
  text-align: center;
}

.register-main {
  padding-bottom: 72px;
}

.login-main {
  min-height: calc(100vh - 138px);
  padding-bottom: 72px;
}

.logout-main {
  min-height: calc(100vh - 138px);
  display: grid;
  place-items: center;
}

.logout-section {
  width: 100%;
  padding: 72px 0;
}

.logout-card {
  padding: 48px 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px var(--screen-shadow);
  text-align: center;
}

.logout-card h1,
.logout-card .lead {
  margin-left: auto;
  margin-right: auto;
}

.logout-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.logout-card .lead {
  margin-bottom: 0;
}

.logout-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border: 5px solid var(--secondary-button);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: logout-spin 0.8s linear infinite;
}

.logout-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.logout-retry {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.logout-retry:disabled {
  cursor: wait;
  opacity: 0.7;
}

@keyframes logout-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logout-spinner {
    animation: none;
  }
}

.login-intro {
  padding: 62px 0 34px;
  text-align: center;
}

.login-intro h1,
.login-intro .lead {
  margin-left: auto;
  margin-right: auto;
}

.login-intro h1 {
  margin-bottom: 16px;
}

.login-intro .lead {
  margin-bottom: 0;
}

.login-container {
  max-width: 560px;
}

.login-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px var(--screen-shadow);
}

.login-button,
.login-register-button {
  width: 100%;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
}

.login-button {
  cursor: pointer;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.login-help {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.login-help a {
  color: var(--green-dark);
}

.login-success {
  padding: 16px 0 8px;
  text-align: center;
}

.login-success h2 {
  margin-bottom: 12px;
}

.login-success p {
  margin-bottom: 24px;
  color: var(--muted);
}

.registered-main {
  min-height: calc(100vh - 138px);
  display: grid;
  place-items: center;
}

.registered-section {
  width: 100%;
  padding: 72px 0;
}

.registered-container {
  max-width: 920px;
}

.registered-card {
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 50px var(--screen-shadow);
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--button-text);
  background: var(--button-bg);
  font-size: 1.7rem;
  font-weight: 700;
}

.registered-card h1,
.registered-card .lead {
  margin-left: auto;
  margin-right: auto;
}

.registered-card h1 {
  margin-bottom: 16px;
}

.registered-card .lead {
  margin-bottom: 30px;
}

.registered-note {
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--soft);
  text-align: left;
}

.registered-note h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.registered-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.registered-pitch {
  padding-top: 68px;
  text-align: center;
}

.registered-pitch > h2 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.registered-pitch-intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.registered-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}

.registered-benefit {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.registered-benefit > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--button-text);
  background: var(--button-bg);
  font-weight: 700;
}

.registered-benefit p {
  margin-bottom: 0;
  color: var(--muted);
}

.registered-cta {
  margin-top: 28px;
  padding: 36px;
  border-radius: 16px;
  background: var(--soft);
}

.registered-cta h2 {
  margin-bottom: 10px;
}

.registered-cta > p {
  margin-bottom: 0;
  color: var(--muted);
}

.registered-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.registered-help {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.registered-help a {
  color: var(--green-dark);
  font-weight: 700;
}

.register-intro {
  padding: 62px 0 34px;
  text-align: center;
}

.register-intro h1,
.register-intro .lead {
  margin-left: auto;
  margin-right: auto;
}

.register-intro h1 {
  margin-bottom: 16px;
}

.register-intro .lead {
  margin-bottom: 0;
}

.register-container {
  max-width: 680px;
}

.register-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px var(--screen-shadow);
}

.form-field + .form-field {
  margin-top: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--green);
  outline: 3px solid var(--secondary-button);
  outline-offset: 1px;
}

.form-field select:disabled {
  color: var(--muted);
  cursor: wait;
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-message {
  min-height: 24px;
  margin: 22px 0 8px;
  color: var(--green-dark);
  font-weight: 700;
}

.form-message.error {
  color: #a33d35;
}

.register-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.register-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-legal,
.form-signin {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.form-legal {
  margin: 20px 0 8px;
}

.form-signin {
  margin-bottom: 0;
}

.form-legal a,
.form-signin a {
  color: var(--green-dark);
}

.download-hero {
  padding: 82px 0 52px;
  text-align: center;
}

.legal-hero {
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--border);
}

.legal-hero-inner {
  max-width: 820px;
}

.legal-hero h1 {
  margin-bottom: 18px;
}

.legal-hero .lead {
  margin-bottom: 12px;
}

.legal-date {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-promise {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--soft);
  color: var(--muted);
}

.privacy-promise strong {
  color: var(--text);
}

.download-intro h1,
.download-intro .lead {
  margin-left: auto;
  margin-right: auto;
}

.availability-note {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 700;
}

.support-intro h1 {
  margin-left: auto;
  margin-right: auto;
}

.support-intro .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-eyebrow {
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: var(--button-hover);
}

.button.secondary {
  color: var(--green-dark);
  background: var(--secondary-button);
}

.button.secondary:hover {
  background: var(--secondary-button-hover);
}

.preview {
  display: flex;
  justify-content: center;
}

.screen {
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid var(--screen-border);
  border-radius: 18px;
  background: var(--screen);
  box-shadow: 0 24px 60px var(--screen-shadow);
}

.slide {
  min-height: 260px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--slide-start), var(--slide-end));
  color: var(--button-text);
  padding: 28px;
}

.slide p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.controls {
  display: flex;
  gap: 8px;
  padding-top: 14px;
}

.controls span {
  display: block;
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: var(--controls);
}

.section {
  padding: 62px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.download-section {
  padding-top: 34px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-card {
  min-height: 330px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.platform-mark {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  padding: 0 9px;
  border-radius: 13px;
  color: var(--button-text);
  background: var(--button-bg);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.platform-copy {
  flex: 1;
}

.platform-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.platform-copy > p:last-child {
  max-width: 440px;
  color: var(--muted);
}

.platform-type {
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button.unavailable {
  border: 0;
  cursor: not-allowed;
  background: var(--secondary-button);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
}

.download-support-link {
  margin-top: 24px;
}

.card p,
.narrow p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-heading {
  max-width: 620px;
}

.support-cards {
  counter-reset: support-step;
}

.step-card {
  position: relative;
  padding-top: 70px;
}

.step-number {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--button-text);
  background: var(--button-bg);
  font-weight: 700;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 32px;
}

.faq-heading > p:last-child {
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 650px;
  margin: -4px 42px 22px 0;
  color: var(--muted);
}

.soft {
  background: var(--soft);
}

.cta {
  text-align: center;
}

.cta p {
  margin-bottom: 26px;
}

.support-cta {
  background: var(--support-cta);
}

.support-cta .eyebrow {
  margin-bottom: 12px;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.legal-section {
  padding-top: 44px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 72px;
  justify-content: center;
  align-items: start;
}

.legal-nav {
  min-width: 0;
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.legal-content {
  min-width: 0;
}

.legal-nav .eyebrow {
  margin-bottom: 4px;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.legal-nav a:hover {
  color: var(--green-dark);
}

.legal-content section {
  scroll-margin-top: 28px;
  padding-bottom: 38px;
}

.legal-content section + section {
  padding-top: 38px;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: var(--muted);
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content a {
  color: var(--green-dark);
}

.legal-content address {
  margin: 18px 0;
  font-style: normal;
}

.trading-address {
  display: inline-block;
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.8em;
  line-height: 1.45;
}

.legal-content mark {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--secondary-button);
  color: var(--text);
}

.legal-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: var(--card);
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  background: var(--soft);
  font-size: 0.85rem;
}

.legal-table td {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-main {
  min-height: calc(100vh - 138px);
}

.admin-heading {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--border);
}

.admin-heading h1 {
  margin-bottom: 14px;
}

.admin-heading .lead {
  margin-bottom: 0;
}

.admin-content {
  padding: 38px 0 72px;
}

.admin-status {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--card);
}

.admin-status.error {
  border-color: #a33d35;
  color: #a33d35;
}

.admin-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.admin-link-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--card);
  font-weight: 700;
  text-decoration: none;
}

.admin-link-card:hover {
  border-color: var(--green);
  background: var(--soft);
}

.admin-toolbar,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  max-width: 420px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  white-space: nowrap;
}

.admin-table th {
  background: var(--soft);
  color: var(--text);
  font-size: 0.84rem;
}

.admin-table td {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-data-table th:first-child,
.admin-data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.admin-data-table thead th:first-child {
  z-index: 3;
  background: var(--soft);
}

.admin-filter-row input,
.admin-cell-input {
  width: 100%;
  min-width: 120px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}

textarea.admin-cell-input {
  min-width: 420px;
  min-height: 110px;
  white-space: pre-wrap;
}

.admin-row-actions {
  display: flex;
  gap: 7px;
}

.admin-row-button {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--green-dark);
  background: var(--card);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-row-button.primary {
  border-color: var(--button-bg);
  color: var(--button-text);
  background: var(--button-bg);
}

.admin-row-button.danger {
  color: #a33d35;
}

.admin-related {
  margin-top: 42px;
}

.admin-related h2 {
  font-size: 1.5rem;
}

.report-query-card {
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.report-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.report-fields .form-field + .form-field {
  margin-top: 0;
}

.report-query-card .admin-actions {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .hero {
    padding: 46px 0;
  }

  .hero-grid,
  .cards,
  .registered-benefits,
  .faq-layout,
  .download-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .admin-heading {
    padding: 46px 0 30px;
  }

  .admin-content {
    padding: 30px 0 52px;
  }

  .support-hero {
    padding: 54px 0 50px;
  }

  .download-hero {
    padding: 54px 0 34px;
  }

  .legal-hero {
    padding: 50px 0 34px;
  }

  .legal-layout {
    gap: 34px;
  }

  .legal-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-nav .eyebrow {
    grid-column: 1 / -1;
  }

  .faq-layout {
    gap: 28px;
  }

  .faq-heading {
    position: static;
  }

  .preview {
    justify-content: flex-start;
  }

  .screen {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1100px);
  }

  .header-nav {
    gap: 14px;
  }

  .register-main {
    padding-bottom: 46px;
  }

  .login-main {
    padding-bottom: 46px;
  }

  .logout-section {
    padding: 46px 0;
  }

  .register-intro,
  .login-intro {
    padding: 46px 0 26px;
  }

  .register-card,
  .login-card {
    padding: 24px 20px;
  }

  .logout-card {
    padding: 38px 20px;
  }

  .logout-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .registered-section {
    padding: 46px 0;
  }

  .registered-card {
    padding: 34px 20px;
  }

  .registered-pitch {
    padding-top: 48px;
  }

  .registered-benefits {
    grid-template-columns: 1fr;
  }

  .registered-cta {
    padding: 28px 20px;
  }

  .registered-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar > *,
  .admin-actions > * {
    width: 100%;
    text-align: center;
  }
}
