:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--reel-section-alt, #e8eef7);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--reel-section-alt, #e8eef7);
  color: var(--reel-text, #0b1220);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

.reel-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--reel-surface, #fff);
}

.reel-ad {
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(14px, env(safe-area-inset-top))
    18px
    max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background: var(--reel-dark, #0b1220);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--reel-accent, #6366f1) 34%, transparent), transparent 36%),
    radial-gradient(circle at 0 42%, color-mix(in srgb, var(--reel-primary, #1e5fe0) 22%, transparent), transparent 42%),
    linear-gradient(165deg, var(--reel-dark, #0b1220) 0%, color-mix(in srgb, var(--reel-dark, #0b1220) 84%, var(--reel-primary, #1e5fe0)) 55%, color-mix(in srgb, var(--reel-dark, #0b1220) 86%, #000) 100%);
  color: var(--reel-dark-text, #fff);
}

.reel-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reel-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--reel-dark-text, #fff);
  text-decoration: none;
}

.reel-brand-mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--reel-accent);
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--reel-accent);
  font-family: serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.reel-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.reel-brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-brand-copy small {
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 68%, var(--reel-dark, #0b1220));
  font-size: 10px;
  font-weight: 600;
}

.reel-header-link {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--reel-dark-text, #fff);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.reel-ad-body {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.reel-badge {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 86%, var(--reel-dark, #0b1220));
  font-size: 12px;
  font-weight: 800;
}

.reel-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--reel-accent);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06);
}

.reel-ad h1 {
  max-width: 100%;
  margin: 0;
  color: var(--reel-dark-text, #fff);
  font-size: clamp(36px, min(var(--reel-headline-size), 15vw), 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.reel-headline-controls {
  margin-top: 9px;
  display: flex;
  gap: 6px;
}

.reel-headline-controls button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--reel-accent);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.reel-headline-controls button:hover {
  border-color: var(--reel-accent);
  background: rgba(255, 255, 255, 0.1);
}

.reel-subheadline {
  margin: 16px 0 0;
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 76%, var(--reel-dark, #0b1220));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-line;
}

.reel-highlight {
  width: 100%;
  min-height: 122px;
  margin-top: 24px;
  padding: 19px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--reel-dark-text, #fff);
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(10px);
}

.reel-highlight span {
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 74%, var(--reel-dark, #0b1220));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reel-highlight strong {
  color: var(--reel-dark-text, #fff);
  font-size: clamp(32px, 11vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.reel-highlight small {
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 74%, var(--reel-dark, #0b1220));
  font-size: 11px;
  line-height: 1.5;
}

.reel-promo {
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--reel-dark-text, #fff);
  cursor: pointer;
  text-align: left;
}

.reel-promo > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.reel-promo strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.reel-promo small {
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 70%, var(--reel-dark, #0b1220));
  font-size: 11px;
  line-height: 1.5;
}

.reel-promo b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--reel-accent);
  color: var(--reel-accent-ink);
  font-size: 22px;
  font-weight: 500;
}

.reel-benefits {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.reel-benefits article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.reel-benefits strong {
  display: block;
  color: var(--reel-dark-text, #fff);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.reel-benefits p {
  margin: 7px 0 0;
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 70%, var(--reel-dark, #0b1220));
  font-size: 10.5px;
  line-height: 1.55;
}

.reel-reviews {
  width: calc(100% + 36px);
  margin: 18px -18px 0;
  overflow: hidden;
}

.reel-review-track {
  padding: 0 18px;
  display: flex;
  gap: 10px;
}

.reel-review-track.is-moving {
  width: max-content;
  animation: reel-review-marquee 32s linear infinite;
}

.reel-review-track article {
  width: min(270px, calc(100vw - 72px));
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
}

.reel-review-track article > p {
  margin: 0;
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 94%, var(--reel-dark, #0b1220));
  font-size: 12px;
  line-height: 1.62;
}

.reel-review-track article > .reel-review-rating {
  margin-bottom: 7px;
  color: #f5b800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 8px rgba(245, 184, 0, 0.2);
}

.reel-review-track footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 70%, var(--reel-dark, #0b1220));
  font-size: 10px;
}

.reel-review-track footer strong {
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 86%, var(--reel-dark, #0b1220));
}

.reel-hook {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 90%, var(--reel-dark, #0b1220));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.reel-cta,
.reel-submit {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--reel-accent);
  color: var(--reel-accent-ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.reel-cta {
  margin-top: 16px;
  animation: reel-cta-pulse 2.6s ease-in-out infinite;
}

.reel-cta span {
  font-size: 24px;
  font-weight: 500;
}

.reel-ticker {
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.reel-ticker-track {
  display: flex;
  justify-content: center;
  gap: 32px;
  color: color-mix(in srgb, var(--reel-dark-text, #fff) 70%, var(--reel-dark, #0b1220));
  font-size: 11px;
  white-space: nowrap;
}

.reel-ticker-track.is-moving {
  width: max-content;
  justify-content: flex-start;
  animation: reel-ticker-marquee 28s linear infinite;
}

.reel-ticker-track span {
  display: inline-flex;
  align-items: center;
}

.reel-ticker-track span::before {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--reel-accent);
  content: "";
}

.reel-form-section {
  padding:
    48px
    18px
    max(48px, calc(32px + env(safe-area-inset-bottom)));
  scroll-margin-top: 0;
  background: var(--reel-page-bg, #f6f8fb);
}

.reel-form-heading {
  margin-bottom: 24px;
}

.reel-form-heading > p {
  margin: 0 0 8px;
  color: var(--reel-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.reel-form-heading h2 {
  margin: 0;
  color: var(--reel-text, #0b1220);
  font-size: clamp(27px, 8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}

.reel-form-heading > div {
  margin-top: 12px;
  color: var(--reel-muted, #526076);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.reel-form-benefits {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--reel-primary, #1e5fe0) 16%, var(--reel-border, #dfe6f0));
  border-radius: 18px;
  background: var(--reel-surface, #fff);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.reel-form-benefits > p {
  margin: 0 0 14px;
  color: var(--reel-primary, #1e5fe0);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.reel-form-benefits ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.reel-form-benefits li {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.reel-form-benefits li > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--reel-primary, #1e5fe0) 12%, var(--reel-surface, #fff));
  color: var(--reel-primary, #1e5fe0);
  font-size: 12px;
  font-weight: 900;
}

.reel-form-benefits li > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reel-form-benefits strong {
  color: var(--reel-text, #0b1220);
  font-size: 13.5px;
  line-height: 1.45;
}

.reel-form-benefits small {
  color: var(--reel-muted, #526076);
  font-size: 12px;
  line-height: 1.55;
}

.reel-form-branch {
  margin: -6px 0 14px;
  padding: 13px 15px;
  border: 1px solid var(--reel-border, #dfe6f0);
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  background: color-mix(in srgb, var(--reel-section-alt, #e8eef7) 62%, var(--reel-surface, #fff));
}

.reel-form-branch > span {
  color: var(--reel-primary, #1e5fe0);
  font-size: 11px;
  font-weight: 800;
}

.reel-form-branch > strong {
  min-width: 0;
  color: var(--reel-text, #0b1220);
  font-size: 13px;
  text-align: right;
}

.reel-form-branch > small {
  grid-column: 1 / -1;
  color: var(--reel-muted, #526076);
  font-size: 11px;
  line-height: 1.45;
}

.reel-form {
  position: relative;
  padding: 20px;
  border: 1px solid var(--reel-border, #dfe6f0);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  background: var(--reel-surface, #fff);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.lp-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.lp-field label,
.lp-field-label {
  color: var(--reel-text, #182235);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.lp-field label span,
.lp-field-label span {
  color: #dc2626;
  font-size: 10px;
}

.lp-field > input,
.lp-field > select,
.lp-field > textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--reel-border, #d9e1ec);
  border-radius: 10px;
  background: var(--reel-surface, #fff);
  color: var(--reel-text, #0b1220);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.lp-field > textarea {
  min-height: 104px;
  resize: vertical;
}

.lp-field > input:focus,
.lp-field > select:focus,
.lp-field > textarea:focus {
  border-color: var(--reel-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(30, 95, 224, 0.14);
}

.lp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lp-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.lp-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lp-options label > span {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--reel-border, #d9e1ec);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--reel-surface, #fff);
  color: var(--reel-muted, #526076);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.lp-options input:focus-visible + span {
  outline: 3px solid rgba(30, 95, 224, 0.18);
  outline-offset: 2px;
}

.lp-options input:checked + span {
  border-color: var(--reel-accent);
  background: color-mix(in srgb, var(--reel-accent, #6366f1) 10%, var(--reel-surface, #fff));
  color: var(--reel-primary, #1545a6);
  font-weight: 800;
}

.lp-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--reel-muted, #526076);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.lp-consent input {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--reel-accent);
}

.reel-submit {
  margin-top: 2px;
  box-shadow: none;
}

.reel-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.lp-form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.lp-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lp-success {
  padding: 34px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #ecfdf5;
  color: #14532d;
  text-align: center;
}

.lp-success strong {
  display: block;
  font-size: 18px;
  line-height: 1.4;
}

.lp-success p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.reel-footer {
  padding: 24px 18px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--reel-surface, #fff);
  color: var(--reel-muted, #94a3b8);
  font-size: 11px;
  text-align: center;
}

.reel-footer strong {
  color: var(--reel-muted, #526076);
}

/* 테스트 수강생 릴스 전용 화이트·블루 상단 스타일 */
body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) {
  --student-reel-blue: #155eef;
  --student-reel-blue-dark: #123b79;
  --student-reel-blue-soft: #eef5ff;
  --student-reel-blue-line: #c9dcfb;
  --student-reel-ink: #102a56;
  --student-reel-muted: #526987;
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-ad {
  background:
    radial-gradient(circle at 100% 0, rgba(21, 94, 239, 0.16), transparent 34%),
    radial-gradient(circle at 0 54%, rgba(71, 139, 255, 0.1), transparent 42%),
    linear-gradient(165deg, #ffffff 0%, #f7faff 52%, #edf5ff 100%);
  color: var(--student-reel-ink);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-brand {
  color: var(--student-reel-ink);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-brand-mark {
  border-color: var(--student-reel-blue);
  color: var(--student-reel-blue);
  background: #ffffff;
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-brand-copy small {
  color: var(--student-reel-muted);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-header-link {
  border-color: var(--student-reel-blue-line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--student-reel-blue);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-badge {
  border-color: var(--student-reel-blue-line);
  background: var(--student-reel-blue-soft);
  color: var(--student-reel-blue-dark);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-badge span {
  background: var(--student-reel-blue);
  box-shadow: 0 0 0 5px rgba(21, 94, 239, 0.08);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-ad h1 {
  color: var(--student-reel-ink);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-headline-controls button {
  border-color: var(--student-reel-blue-line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--student-reel-blue);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-subheadline {
  color: var(--student-reel-muted);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-highlight {
  border-color: var(--student-reel-blue-line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--student-reel-ink);
  box-shadow: 0 18px 42px rgba(21, 94, 239, 0.1);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-highlight span,
body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-highlight small {
  color: var(--student-reel-muted);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-highlight strong {
  color: var(--student-reel-blue);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-promo {
  border-color: var(--student-reel-blue-line);
  background: var(--student-reel-blue-soft);
  color: var(--student-reel-ink);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-promo small {
  color: var(--student-reel-muted);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-promo b {
  background: var(--student-reel-blue);
  color: #ffffff;
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-review-track article {
  border-color: var(--student-reel-blue-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(21, 94, 239, 0.08);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-review-track article > p:not(.reel-review-rating) {
  color: var(--student-reel-ink);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-review-track footer {
  color: var(--student-reel-muted);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-review-track footer strong {
  color: var(--student-reel-blue-dark);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-hook {
  border-color: var(--student-reel-blue-line);
  background: rgba(238, 245, 255, 0.92);
  color: var(--student-reel-blue-dark);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-cta {
  background: var(--student-reel-blue);
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 94, 239, 0.24);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-ticker {
  border-color: var(--student-reel-blue-line);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-ticker-track {
  color: var(--student-reel-muted);
}

body.fbv2-reels-public:has(input[name="slug"][value="pos-table-order-8xwfkf8z"]) .reel-ticker-track span::before {
  background: var(--student-reel-blue);
}

.lp-toast-region,
.fbv2-toast-region {
  position: fixed;
  z-index: 100;
  right: max(12px, calc(50% - 228px));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(456px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
}

.fbv2-toast {
  padding: 13px 14px;
  border: 1px solid var(--reel-border, #dfe6f0);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: var(--reel-surface, #fff);
  color: var(--reel-text, #0b1220);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.fbv2-toast-message {
  font-size: 13px;
  line-height: 1.5;
}

.fbv2-toast-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--reel-muted, #94a3b8);
  cursor: pointer;
  font-size: 18px;
}

.fbv2-toast-success {
  border-color: #86efac;
}

.fbv2-toast-error {
  border-color: #fca5a5;
}

.reel-header-link:focus-visible,
.reel-headline-controls button:focus-visible,
.reel-highlight:focus-visible,
.reel-promo:focus-visible,
.reel-cta:focus-visible,
.reel-submit:focus-visible,
.fbv2-toast-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.reel-form-section .reel-submit:focus-visible,
.fbv2-toast-close:focus-visible {
  outline-color: rgba(30, 95, 224, 0.32);
}

@keyframes reel-cta-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  }
}

@keyframes reel-review-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@keyframes reel-ticker-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 16px));
  }
}

@media (min-width: 600px) {
  .reel-shell {
    box-shadow: 0 0 70px rgba(15, 23, 42, 0.24);
  }
}

@media (max-width: 360px) {
  .reel-ad,
  .reel-form-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .reel-ad h1 {
    letter-spacing: -0.04em;
  }

  .reel-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .reel-reviews {
    width: calc(100% + 28px);
    margin-right: -14px;
    margin-left: -14px;
  }

  .reel-review-track {
    padding-right: 14px;
    padding-left: 14px;
  }

  .reel-form {
    padding: 16px;
  }

  .lp-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reel-cta,
  .reel-review-track.is-moving,
  .reel-ticker-track.is-moving {
    animation: none;
    transform: none;
  }

  .reel-reviews,
  .reel-ticker {
    overflow-x: auto;
    scrollbar-width: thin;
  }
}
