* { box-sizing: border-box; }
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
body {
  touch-action: pan-y;
  overscroll-behavior-y: none;
}
body.modal-open { overflow: hidden; }
body {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.24), transparent 28%),
    linear-gradient(180deg, var(--theme-color-soft, #a7d2ea) 0%, var(--theme-color, #8db8d1) 38%, var(--theme-color-dark, #6f9db9) 100%);
  color: #163044;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.26), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.12), transparent 28%),
    radial-gradient(circle at 50% 78%, color-mix(in srgb, var(--theme-color, #8db8d1) 26%, transparent), transparent 42%);
  opacity: 0.85;
  z-index: 0;
}
a, .page-shell, .topbar, main, .modal-mask, .admin-layout {
  position: relative;
  z-index: 1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell,
.poster-page,
.poster-main,
.poster-stage,
.poster-shell,
.poster-frame,
.form-wrap,
.sheet-mask,
.modal-mask {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 28px;
}

.topbar {
  display: none;
}

.poster-page .poster-main {
  padding: 0 0 72px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)), var(--theme-color, #8db8d1);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(8, 29, 44, 0.12);
}
.topbar .title { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.topbar .nav-left, .topbar .nav-right {
  position: absolute;
  top: 0;
  height: 74px;
  display: flex;
  align-items: center;
}
.topbar .nav-left { left: 18px; }
.topbar .nav-right { right: 18px; gap: 10px; }
.chip {
  width: 18px; height: 18px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.95);
}
.back-arrow {
  width: 16px; height: 16px; border-left: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

.poster-stage {
  padding: 4px 0 18px;
}
.poster-stage-hero {
  position: relative;
  padding-bottom: 26px;
}
.poster-stage-clean {
  padding: 0 0 12px;
}
.poster-shell {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(10, 28, 44, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12));
}
.poster-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(10, 28, 44, 0.12);
  max-width: 100%;
}
.poster-frame-clean {
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(10, 28, 44, 0.14);
}
.poster-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.poster-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.42;
}
.poster-glow-left {
  width: 240px;
  height: 240px;
  left: -60px;
  top: 120px;
  background: rgba(255,255,255,0.42);
}
.poster-glow-right {
  width: 220px;
  height: 220px;
  right: -70px;
  top: 180px;
  background: rgba(255, 165, 194, 0.34);
}
.poster-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  color: #fff;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.poster-kicker {
  font-size: 14px;
  letter-spacing: 0.12em;
  opacity: 0.95;
}
.poster-title {
  margin-top: 12px;
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
}
.poster-subtitle {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.92;
}
.poster-badge {
  position: absolute;
  right: 16px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.poster-safe-zone {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.8vw, 24px);
  transform: translateX(-50%);
  max-width: 880px;
  width: min(880px, calc(100% - 24px));
  margin: 0;
  padding: 0;
  z-index: 8;
  pointer-events: auto;
}
.embedded-form-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.embedded-form { display: grid; gap: 3px; }
.embedded-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.embedded-grid .field label { font-size: 12px; color: rgba(32, 65, 92, 0.92); }
.embedded-grid .field input {
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  background: rgba(247, 248, 251, 0.58);
  border-color: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
}
.embedded-grid .field .hint { font-size: 10px; min-height: 0; color: rgba(95, 116, 132, 0.92); }

.floating-tools {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.tool-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 14px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow:
    0 16px 32px rgba(15, 95, 145, 0.22),
    0 0 0 1px rgba(255,255,255,0.18) inset;
  backdrop-filter: blur(10px);
}
.tool-button-primary {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06)),
    linear-gradient(135deg, var(--theme-color, #1f88c8), var(--theme-color-dark, #0f5f91));
}
.tool-button-secondary {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(135deg, rgba(33, 80, 118, 0.92), rgba(20, 57, 90, 0.92));
}
.tool-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 10px 28px;
}
.floating-form {
  position: relative;
  z-index: 4;
  margin-top: -18px;
}
.form-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.50), rgba(255,255,255,0.35)),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-radius: 24px;
  padding: 14px 14px 13px;
  box-shadow:
    0 14px 28px rgba(10, 28, 44, 0.10),
    0 0 0 1px rgba(255,255,255,0.55) inset;
  border: 1px solid rgba(255,255,255,0.48);
  backdrop-filter: blur(18px) saturate(130%);
}
.form-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--theme-color-soft, #a7d2ea) 18%, var(--theme-color, #8db8d1) 50%, var(--theme-color-dark, #6f9db9) 82%, transparent 100%);
  opacity: 0.95;
}
.form-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -34px -20%;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--theme-color, #8db8d1) 24%, transparent), transparent 66%);
  pointer-events: none;
  z-index: -1;
}

.form-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: #20415c;
  text-align: center;
}
.form-intro {
  margin: 0 0 10px;
  text-align: center;
  color: #607386;
  line-height: 1.4;
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 700; color: #244055; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(227, 231, 236, 0.9);
  border-radius: 11px;
  background: rgba(247, 248, 251, 0.78);
  padding: 10px 11px;
  font-size: 13px;
  color: #1d3040;
  outline: none;
}
.field textarea { min-height: 76px; resize: vertical; }
.field .hint { font-size: 10px; color: #6f8292; line-height: 1.3; }
.full { grid-column: 1 / -1; }
.radio-row, .checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f7f8fb;
  border: 1px solid #e3e7ec;
  font-size: 13px;
}
.submit-row {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  padding: 0 2px 0;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--theme-color, #1f88c8), var(--theme-color-dark, #0f5f91));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(15, 95, 145, 0.2);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-wide {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-shadow:
    0 14px 24px rgba(15, 95, 145, 0.22),
    0 0 0 1px rgba(255,255,255,0.26) inset;
}

.floating-cta {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9999 !important;
  width: min(320px, calc(100% - 110px));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-button {
  border: 0;
  border-radius: 999px;
  padding: 17px 28px;
  width: 100%;
  min-width: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,0.82), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08)),
    linear-gradient(135deg, #2d9cff, #0d6ad8 50%, #044fbd);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow:
    0 22px 44px rgba(13, 106, 216, 0.34),
    0 0 0 1px rgba(255,255,255,0.28) inset;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: ctaPulse 2.2s ease-in-out infinite;
}
.cta-button:active {
  transform: translateY(1px);
}
.cta-button::after {
  content: '';
  position: absolute;
  inset: -35% -20%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55), transparent 70%);
  transform: translateX(-60%) skewX(-18deg);
  animation: ctaShine 3.8s ease-in-out infinite;
  pointer-events: none;
}
@media (min-width: 721px) {
  .floating-cta {
    bottom: 40px !important;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-bottom: 20px;
  }
  .poster-main {
    padding-bottom: 42px;
  }
  .floating-drawer {
    right: 10px;
    top: clamp(116px, 18vh, 220px);
  }
  .drawer-action {
    width: 48px;
    height: 48px;
  }
  .floating-cta {
    width: min(310px, calc(100% - 72px)) !important;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.floating-drawer {
  position: fixed;
  right: 14px;
  top: clamp(124px, 22vh, 240px);
  bottom: auto;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  align-items: flex-end;
  transform-origin: right center;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: transform 0.22s ease;
}
.drawer-action {
  border: 0;
  border-radius: 999px;
  padding: 0;
  width: 52px;
  height: 52px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.45), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    linear-gradient(135deg, rgba(31, 136, 200, 0.96), rgba(11, 84, 141, 0.96));
  box-shadow:
    0 18px 34px rgba(10, 28, 44, 0.22),
    0 0 0 1px rgba(255,255,255,0.18) inset;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.drawer-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.drawer-icon {
  width: 100%;
  text-align: center;
  font-size: 21px;
  line-height: 1;
  flex: 0 0 auto;
}
.drawer-action:hover { transform: translateY(-1px) scale(1.02); }
.drawer-action:active { transform: translateY(1px) scale(0.98); }

.sheet-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 20, 34, 0.38);
  backdrop-filter: blur(6px);
  z-index: 78;
}
.sheet-mask.show {
  display: flex;
}
.sheet-panel {
  width: min(720px, 100%);
  border-radius: 28px 28px 22px 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 28px 60px rgba(10, 28, 44, 0.26);
  transform: translateY(16px);
}
.sheet-handle {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  margin: 12px auto 10px;
  background: rgba(82, 103, 120, 0.22);
}
.sheet-form {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sheet-grid .field {
  gap: 0;
}
.sheet-grid .field input {
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 14px;
  background: rgba(247, 248, 251, 0.90);
  border: 1px solid rgba(227, 231, 236, 0.92);
}
.sheet-grid .field input::placeholder {
  color: #8a96a6;
}
.sheet-form .submit-row {
  margin-top: 2px;
  padding: 0;
}

.color-preview-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #dfe6ee;
  background: #f7f8fb;
}
.color-preview-chip {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.color-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.color-preview-row span {
  display: block;
  height: 18px;
  border-radius: 999px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}
.modal-mask.show { display: flex; }
.modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.modal-sheet {
  width: min(620px, 100%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
    linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.58);
  backdrop-filter: blur(18px) saturate(130%);
}
.modal-success {
  width: min(420px, 100%);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}
.modal-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #6f8292;
  text-transform: uppercase;
}
.modal-head h3 {
  margin: 6px 0 0;
  color: #20415c;
  font-size: 24px;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 65, 92, 0.08);
  color: #244055;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal .modal-body { padding: 22px; text-align: center; }
.modal-sheet .modal-body {
  text-align: left;
  padding-top: 14px;
}
.modal h3 { margin: 0 0 10px; color: #21425b; font-size: 24px; }
.modal p { color: #607386; line-height: 1.7; }
.modal-intro {
  margin: 0 0 14px;
}
.modal .modal-actions { padding: 0 22px 22px; display: flex; gap: 12px; justify-content: center; }
.share-actions { flex-wrap: wrap; }
.ghost-btn {
  border: 1px solid #d7e0e7;
  background: #fff;
  color: #244055;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.qr-wrap {
  max-width: 240px;
  margin: 16px auto 0;
  padding: 10px;
  border-radius: 22px;
  background: rgba(32, 65, 92, 0.04);
}
.qr-wrap img {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: #f6f8fb;
}
.qr-large {
  max-width: 280px;
}
.share-poster-preview {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(223, 230, 238, 0.9);
  box-shadow: 0 14px 28px rgba(10, 28, 44, 0.12);
  background: #fff;
}
.share-poster-preview img {
  width: 100%;
  display: block;
}

body.modal-open {
  overflow: hidden;
}

.poster-empty {
  min-height: 220px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed #d7e0e7;
  background: #f7f8fb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #345066;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #f3f7fb;
}
.sidebar {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #13263a, #183c5c);
  color: #dfe9f3;
  padding: 24px 18px;
}
.sidebar h1 { margin: 0 0 18px; font-size: 20px; }
.nav-list { display: grid; gap: 10px; }
.nav-list a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #e5eef6;
  background: rgba(255,255,255,0.06);
}
.nav-list a.active { background: rgba(79, 179, 255, 0.18); }
.admin-main { padding: 24px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(15, 35, 58, 0.08);
}
.admin-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.table-wrap {
  overflow: auto;
}
.poster-preview-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e4ebf2;
  background: #f7f8fb;
  box-shadow: 0 12px 28px rgba(10, 28, 44, 0.08);
}
.poster-preview-frame img {
  width: 100%;
  display: block;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  border-bottom: 1px solid #edf1f5;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
.table th { color: #355066; font-size: 14px; }
.muted { color: #6f8292; }
.form-line { display: grid; gap: 14px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
}
.textarea { min-height: 120px; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #1f88c8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.danger-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #d94848;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #18314b, #0f2133);
  padding: 20px;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; }
}
@media (max-width: 720px) {
  .feature-grid, .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .poster-stage { padding: 4px 0 14px; }
  .poster-shell { padding: 7px; border-radius: 20px; }
  .poster-page .poster-main { padding-bottom: 42px; }
  .poster-safe-zone {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2.4vw, 20px);
    transform: translateX(-50%);
    width: min(880px, calc(100% - 16px));
    margin: 0;
    padding: 0;
  }
  .embedded-form-card { padding-top: 0; }
  .embedded-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .embedded-grid .field input { padding: 12px 12px; font-size: 13px; background: rgba(247, 248, 251, 0.54); }
  .embedded-grid .field .hint { min-height: 0; }
  .floating-cta {
    width: min(280px, calc(100% - 96px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .floating-drawer {
    right: 10px;
    top: clamp(96px, 18vh, 190px);
  }
  .drawer-action {
    width: 48px;
    height: 48px;
  }
  .sheet-panel {
    border-radius: 24px 24px 18px 18px;
  }
  .sheet-grid {
    grid-template-columns: 1fr;
  }
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal-sheet {
    width: 100%;
    border-radius: 24px 24px 18px 18px;
  }
  .modal-head { padding: 14px 14px 0; }
  .modal-head h3 { font-size: 20px; }
  .modal-close { width: 32px; height: 32px; font-size: 22px; }
  .modal-sheet .modal-body { padding: 12px 14px 14px; }
  .modal-intro { display: none; }
  .form-grid { gap: 7px; }
  .field label { font-size: 12px; }
  .field input, .field select, .field textarea { padding: 9px 10px; font-size: 13px; }
  .choice { padding: 8px 10px; }
  .btn { padding: 10px 16px; }
  .btn-wide { width: 100%; min-width: 0; max-width: 100%; }
  .submit-row { margin-top: 8px; padding: 0 1px 0; }
  .qr-wrap { margin-top: 12px; max-width: 210px; }
}

@keyframes ctaPulse {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-2px) scale(1.02); }
}
@keyframes ctaShine {
  0% { transform: translateX(-65%) skewX(-18deg); opacity: 0; }
  30% { opacity: 0.9; }
  55% { transform: translateX(65%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(65%) skewX(-18deg); opacity: 0; }
}
