:root {
  --bg: #fff8f2;
  --ink: #101828;
  --ink-deep: #2d0a4e;
  --muted: #667085;
  --border: #e5e7eb;
  --brand: #7c22e8;
  --brand-deep: #5b16c6;
  --brand-soft: rgba(124, 34, 232, 0.1);
  --white: #ffffff;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 14px 40px rgba(45, 10, 78, 0.08);
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --menu-border: rgba(16, 24, 40, 0.1);
  --brand-mist: #fff8f2;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.page-step1 {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.page-step2 {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

/* Brand — matches fancyboard.org header wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 11px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-wordmark {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-accent {
  color: var(--brand);
  transition: color 0.2s ease;
}

.brand:hover .brand-accent {
  color: var(--brand-deep);
}

/* Step 1 — split screen locked to viewport */
.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5.5fr);
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
}

.split-left,
.split-right {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.split-left {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(255, 120, 80, 0.28), transparent 32%),
    linear-gradient(155deg, #ffe0c8 0%, #ffc58a 48%, #ffb056 100%);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
}

.split-left-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  min-width: 0;
}

.intro-copy {
  min-width: 0;
}

.intro-copy h1 {
  margin: 0 0 0.7rem;
  color: var(--ink-deep);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
  overflow-wrap: break-word;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 34, 232, 0.12);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0;
  color: #3f3a4a;
  font-size: 0.95rem;
}

.step-explain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.step-explain li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.step-explain li.is-current {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(45, 10, 78, 0.08);
}

.step-explain strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink-deep);
  font-size: 0.95rem;
}

.step-explain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.how-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.8rem;
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.site-link:hover {
  color: var(--brand-deep);
}

.split-right {
  background: var(--bg);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.form-section {
  width: 100%;
  max-width: 540px;
  min-width: 0;
}

.form-panel,
.confirm-panel,
.how-it-works,
.empty-state {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.form-panel-head {
  margin-bottom: 1.1rem;
}

.panel-step {
  margin: 0 0 0.4rem;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-panel-head h2,
.how-it-works h2,
.confirm-intro h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.03em;
  color: var(--ink-deep);
  font-weight: 800;
}

.confirm-intro h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.form-panel-head p,
.confirm-intro .lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field span,
.field-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.field em,
.field-label em {
  color: var(--brand);
  font-style: normal;
}

/* WhatsApp-style phone input */
.phone-field {
  position: relative;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3rem;
  padding: 0 0.55rem 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 242, 0.4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.phone-input:focus-within,
.phone-input.is-open {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 34, 232, 0.15);
  background: #fff;
}

.phone-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 34px;
  padding: 0 0.45rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.phone-country-btn:hover {
  background: rgba(16, 24, 40, 0.05);
}

.phone-flag,
.phone-list-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.phone-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #667085;
  margin-left: 0.1rem;
}

.phone-dial {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 2rem;
}

.phone-national {
  flex: 1;
  min-width: 0;
  min-height: 40px !important;
  padding: 0 0.35rem !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.phone-national:focus {
  outline: none;
  box-shadow: none !important;
}

/* Fancyboard.org dropdown menu (contact form select) */
.fb-menu,
.phone-dropdown,
.combo-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 80;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 14rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--menu-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.phone-dropdown {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.phone-dropdown[hidden],
.combo-list[hidden],
.fb-menu[hidden] {
  display: none !important;
}

.phone-search-wrap {
  flex-shrink: 0;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--menu-border);
}

.phone-search {
  min-height: 2.25rem !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(255, 248, 242, 0.55) !important;
}

.phone-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 12.5rem;
  overflow-y: auto;
}

.phone-list-item,
.combo-list-item,
.fb-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.625rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.phone-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.phone-list-item:hover,
.phone-list-item.is-active,
.combo-list-item:hover,
.combo-list-item.is-active,
.fb-menu-item:hover,
.fb-menu-item.is-active {
  background: var(--brand-mist);
}

.phone-list-name,
.combo-list-item,
.fb-menu-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-list-name {
  font-size: 0.875rem;
  color: var(--ink);
}

.phone-list-dial {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.phone-list-empty,
.combo-list-empty,
.fb-menu-empty {
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Billing-style country / state / city / gender */
.combo-field,
.select-field {
  position: relative;
}

.combo-field.is-open > input,
.select-field.is-open > .select-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 34, 232, 0.15);
  background: #fff;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  padding: 0 0.75rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 242, 0.4);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.select-trigger:hover {
  border-color: rgba(16, 24, 40, 0.2);
}

.select-trigger:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 34, 232, 0.15);
  background: #fff;
}

.select-trigger-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-trigger-label.is-placeholder {
  color: #94a3b8;
}

.select-caret {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.select-field.is-open .select-caret {
  transform: rotate(180deg);
  color: var(--brand);
}

.field-span-2 {
  grid-column: span 2;
}

/* Drag & drop attachment — Fancyboard form style */
.dropzone-field {
  min-width: 0;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed rgba(16, 24, 40, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 242, 0.4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(124, 34, 232, 0.45);
  background: #fff;
  outline: none;
}

.dropzone.is-dragover {
  border-color: var(--brand);
  background: rgba(124, 34, 232, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 34, 232, 0.12);
}

.dropzone.has-file {
  align-items: stretch;
  cursor: default;
  border-style: solid;
  border-color: var(--menu-border);
  background: #fff;
}

.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone.has-file .dropzone-input {
  pointer-events: none;
}

.dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.15rem;
  color: var(--brand);
}

.dropzone-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.dropzone-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.dropzone-title span {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dropzone-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.dropzone-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.dropzone-file[hidden] {
  display: none !important;
}

.dropzone-file-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.dropzone-file-meta strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-file-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.dropzone-remove {
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid var(--menu-border);
  border-radius: 10px;
  background: var(--brand-mist);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dropzone-remove:hover {
  border-color: rgba(16, 24, 40, 0.2);
  background: #fff;
}

.dropzone-error {
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 600;
}

.dropzone-error[hidden] {
  display: none !important;
}

.dropzone.is-invalid {
  border-color: rgba(180, 35, 24, 0.55);
  background: rgba(180, 35, 24, 0.04);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 242, 0.4);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.875rem;
}

textarea {
  min-height: 84px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 34, 232, 0.15);
  background: #fff;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}

.form-error {
  margin: 0.85rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(124, 34, 232, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink-deep);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.btn-secondary:hover {
  border-color: rgba(124, 34, 232, 0.35);
  color: var(--brand-deep);
}

.btn-arrow {
  font-size: 1.05rem;
  line-height: 1;
}

/* Step 2 */
.confirm-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 200, 150, 0.35), transparent 35%),
    var(--bg);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  overflow-x: clip;
}

.confirm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(860px, 100%);
  margin: 0 auto 1.1rem;
  min-width: 0;
}

.confirm-main {
  width: min(860px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.confirm-intro {
  margin-bottom: 1rem;
}

.confirm-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}

.qr-block,
.code-block {
  padding: clamp(1.15rem, 2.4vw, 1.85rem);
  min-width: 0;
}

.qr-block {
  background: linear-gradient(180deg, #faf7ff 0%, #fff 100%);
  border-right: 1px solid var(--border);
  text-align: center;
}

.qr-label,
.code-label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-frame {
  display: inline-flex;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px rgba(45, 10, 78, 0.06);
  max-width: 100%;
}

.qr-frame img {
  display: block;
  width: min(240px, 100%);
  height: auto;
}

.code-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.confirmation-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0.85rem;
  border: 1.5px dashed rgba(124, 34, 232, 0.35);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  overflow-wrap: anywhere;
}

.confirmation-code:hover {
  background: rgba(124, 34, 232, 0.16);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.confirmation-code:active {
  transform: scale(0.99);
}

.code-hint,
.code-expiry {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.code-expiry {
  color: var(--brand-deep);
  font-weight: 600;
}

.how-it-works {
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
}

.how-it-works ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.how-it-works li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.how-it-works strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink-deep);
}

.how-it-works p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.empty-state h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: var(--ink-deep);
}

.empty-state p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  max-width: calc(100% - 2rem);
  background: var(--ink-deep);
  color: var(--white);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.25);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 50;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 960px) {
  body.page-step1 {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }

  .split-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .split-left,
  .split-right {
    overflow: visible;
  }

  .split-left {
    min-height: auto;
  }

  .split-left-inner {
    max-width: none;
  }

  .site-link {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .confirm-panel {
    grid-template-columns: 1fr;
  }

  .qr-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .form-actions,
  .confirm-top {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
