:root {
  color-scheme: light;
  --red: #ec3333;
  --ink: #333333;
  --muted: #8d8d8d;
  --line: #9b9b9b;
  --paper: #f5f5f5;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  -webkit-tap-highlight-color: transparent;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.registration-body {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #d7d7d7;
  color: var(--ink);
}

@supports (height: 100dvh) {
  .registration-body {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.form-body,
.qr-body {
  position: fixed;
  inset: 0;
}

.mobile-shell {
  --shell-width: min(100vw, 480px);
  position: relative;
  width: var(--shell-width);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper) center center / 100% 100% no-repeat;
}

@supports (height: 100dvh) {
  .mobile-shell {
    height: 100dvh;
  }
}

.form-shell {
  --form-bottom-height: calc(var(--shell-width) * 0.5573333333);
  --submit-height: clamp(32px, calc(var(--shell-width) * 0.089), 40px);
  --submit-gap: clamp(8px, calc(var(--shell-width) * 0.024), 12px);
  background-image: url("./assets/form/bg.png");
}

.qr-shell {
  --qr-bottom-height: calc(var(--shell-width) * 0.5786666667);
  --qr-tip-height: calc(var(--shell-width) * 0.0787);
  --qr-gap: clamp(12px, calc(var(--shell-width) * 0.042), 18px);
  background-image: url("./assets/qr/bg.png");
  text-align: center;
}

.brand-logo {
  position: absolute;
  z-index: 3;
  top: 6.1%;
  left: 50%;
  display: block;
  width: 31.8%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
}

.event-name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-panel {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
}

.form-panel h1 {
  position: absolute;
  top: 16.7%;
  left: 0;
  width: 100%;
  margin: 0;
  color: #000;
  font-size: clamp(26px, calc(var(--shell-width) * 0.074), 35px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.form-panel form {
  position: absolute;
  left: 50%;
  bottom: calc(var(--form-bottom-height) - var(--submit-height) - var(--submit-gap));
  width: 63.8%;
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.form-field {
  position: relative;
  display: block;
  margin: 0 0 clamp(12px, calc(var(--shell-width) * 0.035), 16px);
}

.form-field > span,
.invitee-heading > span {
  display: block;
  margin: 0 0 4px;
  color: #3a3a3a;
  font-size: clamp(14px, calc(var(--shell-width) * 0.041), 18px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.invitee-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.invitee-field {
  z-index: 40;
}

.invitee-heading small {
  color: #595959;
  font-size: clamp(8px, calc(var(--shell-width) * 0.022), 10px);
  font-weight: 700;
  white-space: nowrap;
}

.form-field input,
.select-trigger {
  width: 100%;
  height: clamp(30px, calc(var(--shell-width) * 0.086), 38px);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: rgba(239, 239, 239, 0.74);
  color: #2f2f2f;
  font-size: clamp(13px, calc(var(--shell-width) * 0.036), 16px);
  font-weight: 700;
  line-height: 1;
  outline: none;
}

.form-field input {
  display: block;
  padding: 0 12px;
}

.form-field input::placeholder {
  color: #8e8e8e;
  opacity: 1;
}

.form-field input:focus,
.select-trigger:focus {
  border-color: #555;
  background: rgba(255, 255, 255, 0.92);
}

.select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 12px;
  color: #8e8e8e;
  text-align: left;
}

.select-trigger.has-value {
  color: #2f2f2f;
}

.select-caret {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-top: 12px solid #c7c7c7;
}

.invitee-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(38svh, 260px);
  overflow-y: auto;
  border: 1px solid #b8b8b8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  -webkit-overflow-scrolling: touch;
}

.invitee-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: transparent;
  color: #2f2f2f;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.invitee-option[aria-selected="true"] {
  color: var(--red);
  background: rgba(236, 51, 51, 0.07);
}

.sanrio-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  align-items: start;
  margin-top: 0;
  color: #4e4e4e;
}

.sanrio-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #444;
}

.sanrio-row strong {
  display: block;
  font-size: clamp(10px, calc(var(--shell-width) * 0.028), 13px);
  font-weight: 800;
  line-height: 1.22;
}

.sanrio-row small {
  display: block;
  margin-top: 2px;
  color: #6f6f6f;
  font-size: clamp(9px, calc(var(--shell-width) * 0.024), 11px);
  font-weight: 700;
  line-height: 1.24;
}

.submit-button {
  display: block;
  width: clamp(124px, calc(var(--shell-width) * 0.372), 154px);
  height: var(--submit-height);
  margin: var(--submit-gap) auto 0;
  border: 0;
  border-radius: 999px;
  background: #c6c6c6;
  color: #222;
  font-size: clamp(18px, calc(var(--shell-width) * 0.049), 23px);
  font-weight: 500;
  line-height: 1;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  opacity: 0.72;
}

.form-message {
  position: absolute;
  left: 50%;
  width: 120%;
  min-height: 20px;
  margin: 8px 0 0;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
}

.form-message[data-type="error"] {
  color: var(--red);
}

.form-bottom,
.qr-bottom {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.form-body .brand-logo,
.form-body .form-panel h1,
.qr-body .brand-logo,
.qr-body .qr-title {
  opacity: 0;
  animation: drop-in 760ms cubic-bezier(0.18, 0.92, 0.22, 1) forwards;
}

.form-body .form-panel h1 {
  animation-name: title-drop-in;
  animation-delay: 70ms;
}

#register-form > .form-field,
.sanrio-row,
.submit-button {
  opacity: 0;
  transform: translateY(18px);
  animation: row-reveal 560ms cubic-bezier(0.2, 0.82, 0.22, 1) forwards;
}

#register-form > .form-field:nth-child(1) {
  animation-delay: 260ms;
}

#register-form > .form-field:nth-child(2) {
  animation-delay: 350ms;
}

#register-form > .form-field:nth-child(3) {
  animation-delay: 440ms;
}

#register-form > .form-field:nth-child(4) {
  animation-delay: 530ms;
}

#register-form > .form-field:nth-child(5) {
  animation-delay: 620ms;
}

.sanrio-row {
  animation-delay: 700ms;
}

.submit-button {
  animation-name: button-fade;
  animation-delay: 830ms;
}

.form-bottom,
.qr-bottom {
  opacity: 0;
  transform: translateY(12%);
  animation: bottom-rise 880ms cubic-bezier(0.16, 0.86, 0.24, 1) 520ms forwards;
}

.qr-title {
  position: absolute;
  z-index: 2;
  top: 18.4%;
  left: 50%;
  display: block;
  width: 53.4%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  animation-delay: 130ms;
}

.qr-body .qr-title {
  animation:
    drop-in 760ms cubic-bezier(0.18, 0.92, 0.22, 1) 130ms forwards,
    ten-breath 9.5s ease-in-out 1.85s infinite;
}

.qr-area {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: calc(var(--qr-bottom-height) + var(--qr-gap));
  left: 50%;
  width: 30.8%;
  margin: 0;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 9%;
  opacity: 0;
  animation: qr-pop 720ms cubic-bezier(0.2, 0.88, 0.18, 1) 360ms forwards;
}

.qr-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.qr-code {
  position: absolute;
  z-index: 2;
  inset: 8%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.qr-area::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 5%;
  border-radius: 8%;
  background:
    linear-gradient(112deg, transparent 0 43%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.32) 51%, transparent 57%),
    linear-gradient(112deg, transparent 0 45%, rgba(236, 51, 51, 0.26) 50%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-120%);
  animation: qr-fine-sweep 4.8s cubic-bezier(0.44, 0, 0.22, 1) infinite;
  pointer-events: none;
}

.qr-area::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 5.2%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8%;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.24),
    0 0 12px rgba(236, 51, 51, 0.12);
  pointer-events: none;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-tip {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: calc(var(--qr-bottom-height) - var(--qr-tip-height));
  left: 50%;
  display: block;
  width: 30.27%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  opacity: 0;
  animation: qr-tip-in 560ms cubic-bezier(0.2, 0.82, 0.22, 1) 700ms forwards;
}

.ticket-holder {
  display: none;
}

.qr-message {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: 72%;
  margin: 0;
  bottom: calc(var(--qr-bottom-height) + var(--qr-gap) + var(--shell-width) * 0.32);
  transform: translateX(-50%);
}

.admin-body {
  min-height: 100svh;
  background: #101010;
  color: #f7f7f7;
}

.admin-app {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.admin-login-app {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.admin-login-app[hidden],
.admin-app[hidden] {
  display: none !important;
}

.admin-login-card {
  width: min(390px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #181818;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.admin-login-card p {
  margin: 0 0 8px;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-card h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.admin-login-card label {
  display: block;
  margin-bottom: 14px;
}

.admin-login-card label span {
  display: block;
  margin-bottom: 7px;
  color: #d6d6d6;
  font-size: 14px;
  font-weight: 800;
}

.admin-login-card input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.admin-login-card input:focus {
  border-color: rgba(236, 51, 51, 0.72);
  background: rgba(255, 255, 255, 0.11);
}

.admin-login-card button {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: #ec3333;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.admin-login-card button:disabled {
  opacity: 0.68;
}

.admin-login-message {
  min-height: 20px;
  margin: 12px 0 0 !important;
  color: #ffb5b5 !important;
}

.admin-header {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-header p {
  margin: 0 0 7px;
  color: #bdbdbd;
  font-size: 14px;
  font-weight: 600;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

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

.admin-actions button,
.admin-link-button,
.admin-toolbar input {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-actions button,
.admin-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
}

.danger-link {
  border-color: rgba(236, 51, 51, 0.38);
  background: rgba(236, 51, 51, 0.14);
  color: #ffb5b5;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stats div,
.admin-stat-button {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #181818;
}

.admin-stat-button {
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.admin-stat-button:hover {
  border-color: rgba(230, 51, 41, 0.58);
  background: #202020;
  transform: translateY(-1px);
}

.admin-stat-button:focus-visible {
  outline: 2px solid rgba(230, 51, 41, 0.9);
  outline-offset: 3px;
}

.admin-stat-button.is-active {
  border-color: rgba(230, 51, 41, 0.82);
  background: linear-gradient(135deg, rgba(230, 51, 41, 0.24), #181818 58%);
}

.admin-stats span {
  display: block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.admin-stats small {
  display: block;
  margin-top: 10px;
  color: #bdbdbd;
  font-size: 14px;
}

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

.admin-toolbar-main {
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.admin-toolbar input {
  width: min(520px, 100%);
  padding: 0 14px;
  outline: none;
}

.admin-delete-selected {
  height: 42px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid rgba(236, 51, 51, 0.46);
  border-radius: 8px;
  background: rgba(236, 51, 51, 0.14);
  color: #ffb5b5;
  font-weight: 800;
}

.admin-delete-selected:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #777;
}

.admin-toolbar p {
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
  text-align: right;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #171717;
}

.admin-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: #bdbdbd;
  font-weight: 700;
}

.admin-table .selection-cell {
  width: 42px;
  padding-right: 6px;
  padding-left: 13px;
  text-align: center;
}

.admin-select {
  width: 17px !important;
  height: 17px !important;
  margin: 0;
  padding: 0 !important;
  accent-color: #ec3333;
}

.admin-table tr.is-selected td {
  background: rgba(236, 51, 51, 0.08);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-width: 58px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-chip.checked {
  background: rgba(63, 205, 129, 0.16);
  color: #77e2a8;
}

.status-chip.pending {
  background: rgba(236, 51, 51, 0.16);
  color: #ff8e8e;
}

.empty-cell {
  height: 120px;
  color: #999;
  text-align: center !important;
}

.admin-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: #a8a8a8;
  font-size: 13px;
}

.clear-app {
  max-width: 980px;
}

.danger-panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(236, 51, 51, 0.36);
  border-radius: 8px;
  background: rgba(236, 51, 51, 0.08);
}

.danger-panel h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.danger-panel p {
  max-width: 760px;
  margin: 0 0 16px;
  color: #d9d9d9;
  font-size: 14px;
  line-height: 1.7;
}

.confirm-input {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-bottom: 12px;
}

.confirm-input span,
.confirm-check {
  color: #f3f3f3;
  font-size: 14px;
  font-weight: 700;
}

.confirm-input input {
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  outline: none;
}

.confirm-check {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.danger-button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.danger-button:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
}

.ticket-body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background: #f5f5f5;
  color: var(--ink);
}

.ticket-card {
  width: min(430px, 100%);
  padding: 34px 28px 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.ticket-logo {
  width: 150px;
  height: auto;
}

.ticket-kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ticket-card h1 {
  margin: 28px 0 24px;
  color: #111;
  font-size: 34px;
  line-height: 1.1;
}

.ticket-info {
  display: grid;
  gap: 10px;
  margin: 0;
  text-align: left;
}

.ticket-info[hidden] {
  display: none;
}

.ticket-info div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f3f3;
}

.ticket-info dt {
  color: #777;
  font-size: 14px;
  font-weight: 700;
}

.ticket-info dd {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  word-break: break-word;
}

#ticket-message {
  margin: 22px 0 0;
  color: #666;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.is-ticket-error .ticket-card {
  border-color: rgba(236, 51, 51, 0.28);
}

.is-ticket-error #ticket-title {
  color: var(--red);
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -28px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
    filter: blur(0);
  }
}

@keyframes title-drop-in {
  from {
    opacity: 0;
    transform: translateY(-28px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes row-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-fade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bottom-rise {
  from {
    opacity: 0;
    transform: translateY(12%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qr-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes qr-tip-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes qr-fine-sweep {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  18% {
    opacity: 0.72;
  }
  46% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes ten-breath {
  0%,
  100% {
    opacity: 0.58;
    filter: grayscale(1) brightness(0.92);
  }
  50% {
    opacity: 0.94;
    filter: grayscale(0.2) brightness(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-body .brand-logo,
  .form-body .form-panel h1,
  .qr-body .brand-logo,
  .qr-body .qr-title,
  #register-form > .form-field,
  .sanrio-row,
  .submit-button,
  .form-bottom,
  .qr-bottom,
  .qr-area,
  .qr-tip {
    opacity: 1;
    animation: none;
    filter: none;
  }

  #register-form > .form-field,
  .sanrio-row,
  .submit-button,
  .form-bottom,
  .qr-bottom,
  .form-body .form-panel h1 {
    transform: none;
  }

  .form-body .brand-logo,
  .qr-body .brand-logo,
  .qr-body .qr-title,
  .qr-area,
  .qr-tip {
    transform: translateX(-50%);
  }

  .qr-area::before {
    display: none;
  }
}

@media (max-height: 720px) {
  .form-shell {
    --submit-gap: calc(var(--shell-width) * 0.045);
  }

  .brand-logo {
    top: 5%;
    width: 30.8%;
  }

  .form-panel h1 {
    top: 13.9%;
    font-size: clamp(24px, calc(var(--shell-width) * 0.066), 31px);
  }

  .form-panel form {
    width: 64.6%;
  }

  .form-field {
    margin-bottom: clamp(10px, calc(var(--shell-width) * 0.03), 13px);
  }

  .form-field > span,
  .invitee-heading > span {
    margin-bottom: 3px;
    font-size: clamp(12px, calc(var(--shell-width) * 0.036), 15px);
  }

  .invitee-heading {
    gap: 5px;
  }

  .invitee-heading small {
    font-size: 8px;
  }

  .form-field input,
  .select-trigger {
    height: clamp(27px, calc(var(--shell-width) * 0.076), 32px);
    border-radius: 8px;
    font-size: clamp(12px, calc(var(--shell-width) * 0.032), 14px);
  }

  .form-field input {
    padding: 0 10px;
  }

  .select-trigger {
    padding: 0 11px 0 10px;
  }

  .select-caret {
    border-right-width: 7px;
    border-left-width: 7px;
    border-top-width: 10px;
  }

  .sanrio-row {
    grid-template-columns: 18px 1fr;
    gap: 5px;
  }

  .sanrio-row input {
    width: 16px;
    height: 16px;
  }

  .sanrio-row strong {
    font-size: clamp(9px, calc(var(--shell-width) * 0.025), 11px);
    line-height: 1.14;
  }

  .sanrio-row small {
    font-size: clamp(8px, calc(var(--shell-width) * 0.021), 9px);
    line-height: 1.14;
  }

  .submit-button {
    width: clamp(116px, calc(var(--shell-width) * 0.34), 140px);
    height: var(--submit-height);
    font-size: clamp(16px, calc(var(--shell-width) * 0.043), 20px);
  }

  .qr-title {
    top: 15.8%;
    width: 48.4%;
  }

  .qr-area {
    width: 29%;
  }

  .qr-tip {
    bottom: calc(var(--qr-bottom-height) - var(--qr-tip-height));
  }

  .qr-message {
    bottom: calc(var(--qr-bottom-height) + var(--qr-gap) + var(--shell-width) * 0.3);
    font-size: 11px;
  }
}

@media (max-height: 620px) {
  .form-shell {
    --submit-gap: calc(var(--shell-width) * 0.038);
  }

  .brand-logo {
    top: 4.2%;
    width: 29%;
  }

  .form-panel h1 {
    top: 11.4%;
    font-size: clamp(22px, calc(var(--shell-width) * 0.06), 28px);
  }

  .form-field {
    margin-bottom: clamp(8px, calc(var(--shell-width) * 0.026), 11px);
  }

  .form-field > span,
  .invitee-heading > span {
    font-size: clamp(11px, calc(var(--shell-width) * 0.033), 14px);
  }

  .form-field input,
  .select-trigger {
    height: clamp(25px, calc(var(--shell-width) * 0.07), 30px);
  }

  .qr-title {
    top: 13.2%;
    width: 43.5%;
  }

  .qr-area {
    width: 27%;
  }

  .qr-tip {
    bottom: calc(var(--qr-bottom-height) - var(--qr-tip-height));
    width: 29%;
  }

  .qr-message {
    bottom: calc(var(--qr-bottom-height) + var(--qr-gap) + var(--shell-width) * 0.28);
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .invitee-heading small {
    font-size: 9px;
  }

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

  .admin-toolbar-main {
    flex-direction: column;
  }

  .admin-delete-selected {
    width: 100%;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions button {
    flex: 1;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}
