:root {
  color-scheme: light;
  --ink: #0a2841;
  --muted: #5f6f7c;
  --line: #d7e3ea;
  --surface: #ffffff;
  --page: #f4f8fb;
  --brand: #0a2841;
  --brand-strong: #061d31;
  --cyan: #3ae5f6;
  --pink: #fd4570;
  --orange: #fda843;
  --coral: #fc7c40;
  --accent: #3ae5f6;
  --danger: #b42318;
  --success: #067647;
  --button: #fd4570;
  --button-hover: #df2f5b;
  --button-shadow: rgba(253, 69, 112, 0.26);
  --brand-gradient: linear-gradient(135deg, #fd4570 0%, #fc7c40 42%, #fda843 70%, #3ae5f6 100%);
  --soft-brand-gradient: linear-gradient(145deg, rgba(58, 229, 246, 0.18), rgba(253, 168, 67, 0.16), rgba(253, 69, 112, 0.12));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(58, 229, 246, 0.17), transparent 34rem), radial-gradient(circle at bottom right, rgba(253, 168, 67, 0.2), transparent 34rem), var(--page);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--button);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 30px var(--button-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
}

button:hover {
  background: var(--button-hover);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(253, 69, 112, 0.3);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(58, 229, 246, 0.42);
  outline-offset: 2px;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 248, 251, 0.86);
  backdrop-filter: blur(6px);
}

.loading-panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid rgba(58, 229, 246, 0.28);
  border-radius: 8px;
  padding: 12px 18px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 20px 60px rgba(10, 40, 65, 0.2);
  font-weight: 800;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(58, 229, 246, 0.22);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  border: 1px solid rgba(253, 69, 112, 0.22);
  background: #fff;
  color: var(--button);
  box-shadow: none;
}

.secondary-button:hover {
  background: rgba(253, 69, 112, 0.08);
  color: var(--button-hover);
  box-shadow: none;
}

.gate-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(58, 229, 246, 0.18), transparent 22rem), radial-gradient(circle at 18% 78%, rgba(253, 69, 112, 0.22), transparent 26rem),
    linear-gradient(145deg, #061d31, #0a2841 62%, #0e3552);
}

.gate-shell::before {
  content: '';
  position: absolute;
  inset: auto -12rem -20rem auto;
  width: min(60vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(253, 69, 112, 0.32), rgba(253, 168, 67, 0.32), rgba(58, 229, 246, 0.34), rgba(253, 69, 112, 0.32));
  filter: blur(2px);
  opacity: 0.82;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border: 1px solid rgba(252, 252, 252, 0.16);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.96), rgba(252, 252, 252, 0.91)), var(--soft-brand-gradient);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.gate-brand,
.provider-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gate-brand {
  margin-bottom: 28px;
}

.gate-brand img {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background: var(--brand);
  object-fit: contain;
}

.gate-brand strong {
  display: block;
  color: var(--brand);
  font-size: 1.45rem;
  line-height: 1;
}

.brand-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gate-form {
  width: 100%;
}

.gate-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 850;
  line-height: 1;
  text-align: left;
}

.gate-helper {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.gate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(10, 40, 65, 0.16);
}

.gate-row input {
  min-height: 64px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 1.38rem;
  font-weight: 700;
  outline: 1px solid transparent;
}

.gate-row input:focus {
  outline-color: var(--cyan);
}

.gate-row button {
  min-width: 132px;
  min-height: 64px;
}

.gate-secondary-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.gate-secondary-row .secondary-button {
  min-height: 44px;
  padding: 0 18px;
}

.gate-shell .feedback {
  position: relative;
  z-index: 1;
  color: rgba(252, 252, 252, 0.82);
}

.gate-shell .feedback.error {
  color: #ffd5df;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.provider-bar {
  width: fit-content;
  min-height: 48px;
  margin-bottom: 16px;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  box-shadow: 0 12px 30px rgba(10, 40, 65, 0.08);
  font-weight: 750;
}

.provider-bar img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--brand);
  object-fit: contain;
}

.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(58, 229, 246, 0.12), rgba(255, 255, 255, 0.94) 34%), rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(10, 40, 65, 0.09);
}

.client-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.client-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.client-kicker,
.eyebrow,
.step-label {
  display: block;
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-logotype {
  display: grid;
  width: 112px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  background: rgba(10, 40, 65, 0.24);
}

.customer-logotype[hidden] {
  display: none;
}

.customer-logotype img {
  display: block;
  max-width: 92px;
  max-height: 52px;
  object-fit: contain;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.section-helper {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
}

.intro-copy {
  max-width: 390px;
  margin-bottom: 2px;
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(10, 40, 65, 0.08);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(58, 229, 246, 0.36);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(58, 229, 246, 0.14);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

input[type='text'],
input[type='number'],
input[type='date'],
select,
input[type='file'] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

input[type='text']:focus,
input[type='number']:focus,
input[type='date']:focus,
select:focus,
input[type='file']:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(58, 229, 246, 0.18);
  outline: 0;
}

.date-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(124px, 0.75fr);
  gap: 10px;
  min-height: 68px;
  border-radius: 8px;
}

.date-time-control {
  display: grid !important;
  grid-template-rows: auto 1fr;
  gap: 5px;
  min-width: 0;
  min-height: 68px;
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px 9px;
  background: linear-gradient(180deg, rgba(58, 229, 246, 0.08), #fff);
  color: var(--ink);
}

.date-time-control span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.date-time-control input[type='date'],
.date-time-control select {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
}

.date-time-control select {
  appearance: none;
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px;
}

.date-time-control:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(58, 229, 246, 0.18);
}

.date-time-control:hover {
  border-color: rgba(10, 40, 65, 0.34);
}

.date-time-control select:invalid,
.date-time-control input:invalid {
  color: var(--muted);
}

.date-time-field small {
  margin-top: 8px;
}

input[type='color'] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.event-details-primary {
  display: grid;
  gap: 18px;
}

.themes-panel {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.themes-panel::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -15px;
  width: 1px;
  background: var(--line);
}

.themes-panel label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--brand);
}

.theme-helper {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 800;
}

.delivery-field h3 {
  margin-bottom: 10px;
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.form-band {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.advanced-options summary {
  width: fit-content;
  min-height: 40px;
  border: 1px solid rgba(10, 40, 65, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 850;
}

.advanced-options summary:hover,
.advanced-options summary:focus-visible {
  background: rgba(58, 229, 246, 0.11);
  outline: 0;
}

.advanced-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 750;
}

.toggle-field input {
  flex: 0 0 auto;
}

.toggle-field span {
  overflow-wrap: anywhere;
}

.color-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.visual-upload-list {
  display: grid;
  gap: 14px;
}

.visual-upload-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(154px, 190px);
  align-items: stretch;
  gap: 16px;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(58, 229, 246, 0.07), rgba(255, 255, 255, 0.98));
}

.visual-upload-field {
  align-self: center;
}

.visual-reference {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.visual-reference-button {
  display: block;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.visual-reference-button:hover,
.visual-reference-button:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(58, 229, 246, 0.18);
}

.visual-reference img {
  display: block;
  width: 100%;
  height: 148px;
  background: #fff;
  object-fit: contain;
}

.visual-reference figcaption {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.download-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid rgba(10, 40, 65, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(58, 229, 246, 0.1);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.download-link:hover,
.download-link:focus-visible {
  border-color: var(--cyan);
  background: rgba(58, 229, 246, 0.16);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.theme-list {
  display: grid;
  min-height: 44px;
  gap: 8px;
}

.theme-list-status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
}

.check-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  font-weight: 750;
}

.check-card input,
.theme-check input,
.toggle-field input {
  accent-color: var(--button);
}

.theme-row {
  display: grid;
  grid-template-columns: 38.4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 6px 0 0;
  background: #fff;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.theme-row:has(input:checked) {
  border-color: var(--line);
  background: #fff;
}

.theme-check {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 4px 0;
  font-weight: 750;
  margin-bottom: 0 !important;
}

.theme-check span {
  overflow-wrap: anywhere;
}

.theme-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38.4px;
  min-width: 38.4px;
  min-height: 48px;
  align-self: stretch;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 7px 0 0 7px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
}

.theme-drag-handle::before {
  content: '';
  width: 2.76px;
  height: 2.76px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow:
    0 5.52px 0 var(--muted),
    0 11.04px 0 var(--muted),
    5.52px 0 0 var(--muted),
    5.52px 5.52px 0 var(--muted),
    5.52px 11.04px 0 var(--muted);
  transform: translate(-2.76px, -5.52px);
}

.theme-drag-handle:hover,
.theme-drag-handle:focus-visible {
  background: rgba(10, 40, 65, 0.05);
  filter: none;
  box-shadow: none;
  transform: none;
}

.theme-drag-handle:active {
  cursor: grabbing;
}

.theme-list.is-dragging-theme .theme-row {
  transition:
    transform 0.18s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease;
}

.theme-row.is-dragging {
  border-style: dashed;
  background: rgba(10, 40, 65, 0.035);
  box-shadow: inset 0 0 0 1px rgba(10, 40, 65, 0.04);
  opacity: 0.62;
}

.theme-drag-preview {
  position: fixed;
  top: -1000px;
  left: -1000px;
  z-index: 9999;
  width: min(520px, calc(100vw - 32px));
  box-shadow: 0 18px 36px rgba(10, 40, 65, 0.18);
  opacity: 0.96;
  pointer-events: none;
  transform: scale(1.02);
}

.theme-preview-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
  white-space: nowrap;
  box-shadow: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 40, 65, 0.54);
}

.modal-panel {
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 40, 65, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.confirmation-modal-panel {
  width: min(560px, 100%);
}

.confirmation-modal-content {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink);
  line-height: 1.55;
}

.confirmation-modal-content p {
  margin: 0;
}

.confirmation-modal-content p:first-child {
  font-weight: 800;
}

.submit-success-modal-panel {
  width: min(520px, 100%);
}

.submit-error-modal-panel {
  width: min(560px, 100%);
}

.submit-error-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: center;
}

.submit-error-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
  font-size: 1.55rem;
  font-weight: 900;
}

.submit-error-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.submit-error-message {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(180, 35, 24, 0.26);
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger) !important;
  font-weight: 800;
}

.submit-success-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: center;
}

.submit-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(58, 229, 246, 0.14);
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 900;
}

.submit-success-content h3 {
  margin: 0;
  font-size: 1.25rem;
}

.submit-success-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.activation-code-card {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
  padding: 14px;
  border: 1px solid rgba(58, 229, 246, 0.3);
  border-radius: 8px;
  background: rgba(58, 229, 246, 0.08);
}

.activation-code-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activation-code-card strong {
  color: var(--brand);
  font-size: 1.9rem;
  letter-spacing: 0.08em;
}

.activation-code-card p {
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.visual-reference-backdrop {
  padding: 24px;
  background: rgba(5, 10, 18, 0.92);
}

.visual-reference-modal-panel {
  display: grid;
  width: min(1040px, 100%);
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.visual-reference-modal-panel .modal-header {
  width: min(100%, 1040px);
  margin-bottom: 14px;
  color: #fff;
}

.visual-reference-modal-panel .icon-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.visual-reference-modal-panel .icon-button:hover,
.visual-reference-modal-panel .icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.visual-reference-modal-image {
  display: block;
  max-width: min(100%, calc(100vw - 48px));
  max-height: min(800px, calc(100vh - 120px));
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.theme-option-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.theme-option-card img {
  display: block;
  width: 100%;
  aspect-ratio: var(--theme-thumb-aspect-ratio, 1);
  object-fit: cover;
  background: var(--page);
}

.theme-option-card p {
  margin: 0;
  padding: 10px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.gradient-preview {
  margin-top: 0;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #0a2841, #3ae5f6);
}

.gradient-preview h3,
.gradient-preview label {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.button-colors-preview {
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid rgba(10, 40, 65, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(253, 168, 67, 0.11), rgba(255, 255, 255, 0.98));
}

.button-colors-preview h3 {
  margin-bottom: 0;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.feedback {
  min-height: 22px;
  margin: 14px auto 0;
  color: var(--muted);
  text-align: center;
}

.feedback.error {
  color: var(--danger);
}

.feedback.success {
  color: var(--success);
}

#event-feedback {
  text-align: left;
}

@media (max-width: 760px) {
  .gate-shell {
    padding: 18px;
  }

  .gate-brand {
    align-items: flex-start;
  }

  .gate-brand img {
    width: 64px;
    height: 64px;
  }

  .gate-row {
    grid-template-columns: 1fr;
  }

  .gate-row button {
    width: 100%;
  }

  .gate-secondary-row {
    justify-content: stretch;
  }

  .gate-secondary-row .secondary-button {
    width: 100%;
  }

  .page-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 20px;
  }

  .provider-bar {
    width: 100%;
  }

  .client-header,
  .client-identity,
  .client-actions,
  .intro,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-logotype {
    width: 100%;
    height: 82px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .color-config-grid {
    grid-template-columns: 1fr;
  }

  .advanced-options-grid {
    grid-template-columns: 1fr;
  }

  .event-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .themes-panel {
    min-height: auto;
    margin-top: 4px;
  }

  .themes-panel::before {
    top: -13px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .date-time-row {
    grid-template-columns: 1fr;
  }

  .visual-upload-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .visual-reference img {
    height: 200px;
  }

  .panel {
    padding: 18px;
  }

  .theme-row {
    grid-template-columns: 38.4px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    row-gap: 6px;
    padding: 0 6px 0 0;
  }

  .theme-check {
    align-self: center;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .theme-drag-handle {
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .theme-actions {
    grid-column: 2;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
  }

  .theme-preview-button {
    min-height: 32px;
    width: min(100%, 220px);
  }

  .actions button {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

  .client-actions button,
  .panel-heading button {
    width: 100%;
  }
}
