/* Account entry and newsletter forms only. Shared site chrome retains its
   canonical shell styling. */
body.tvc-public-shell #stay-loop-dialog {
  --tvc-font-sans: "Inter", sans-serif;
  --tvc-form-accent: #b71c1c;
  --tvc-form-primary-text: #111111;
  --tvc-form-quiet-border: #e5e1db;
}
body.tvc-public-shell.tvc-auth-page .auth-main {
  --tvc-font-sans: "Inter", sans-serif;
  --tvc-form-accent: #b71c1c;
  --tvc-form-primary-text: #111111;
  --tvc-form-quiet-border: #e5e1db;
}

/* New forms can explicitly reuse this system without restyling legacy pages. */
body.tvc-public-shell .tvc-reference-form {
  --tvc-font-sans: var(--tvc-reference-font, "Inter", sans-serif);
  --form-text: var(--tvc-reference-ink, #171716);
  --form-muted: var(--tvc-reference-muted, #69635e);
  --form-faint: var(--tvc-reference-faint, #89827a);
  --form-rule: var(--tvc-reference-rule, #e5e1db);
  --form-surface: var(--tvc-reference-field, #f1eee8);
  --form-accent: var(--tvc-reference-accent, #b71c1c);
  --form-primary: var(--tvc-reference-accent, #b71c1c);
  --form-primary-ink: var(--tvc-reference-button-ink, #faf7f2);
  --form-control-radius: var(--tvc-reference-radius, 6px);
  --form-button-radius: 999px;
  --form-input-size: 16px;
  --form-focus-ring: var(--tvc-reference-focus-ring, rgba(183, 28, 28, .16));
}

body.tvc-public-shell.tvc-auth-page .auth-main {
  flex: 1 0 auto;
  min-height: 0;
  justify-content: center;
  align-items: center;
  padding: clamp(26px, 4vh, 42px) 22px;
  color: #171716;
}

body.tvc-public-shell.tvc-auth-page .auth-shell {
  width: min(100%, 410px);
  max-width: 410px;
  margin-inline: auto;
  color: #171716;
}

body.tvc-public-shell.tvc-auth-page #auth-choice[hidden],
body.tvc-public-shell.tvc-auth-page #auth-entry[hidden] {
  display: none !important;
}

body.tvc-public-shell.tvc-auth-page .auth-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(34px, 7vh, 72px) 0;
  text-align: center;
}

body.tvc-public-shell.tvc-auth-page .auth-mark {
  display: block;
  width: 176px;
  height: 100px;
  margin: 0 auto 28px;
  object-fit: contain;
}

body.tvc-public-shell.tvc-auth-page .auth-choice .auth-mark {
  margin-bottom: 32px;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-title {
  max-width: 15ch;
  color: #171716;
  font: 400 clamp(32px, 5vw, 42px)/1.08 var(--tvc-font-sans, "DM Sans", sans-serif);
  letter-spacing: -.045em;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-title span {
  display: block;
  color: #b71c1c;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-copy {
  max-width: 34ch;
  margin: 17px 0 29px;
  color: #68635d;
  font: 400 15px/1.5 var(--tvc-font-sans, "DM Sans", sans-serif);
}

body.tvc-public-shell.tvc-auth-page .auth-choice-actions {
  display: grid;
  width: min(100%, 340px);
  gap: 10px;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid #171716;
  border-radius: 999px;
  background: transparent;
  color: #171716;
  font: 400 14px/1.2 var(--tvc-font-sans, "DM Sans", sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-action.primary {
  border-color: #b71c1c;
  background: #b71c1c;
  color: #fffaf4;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-action:hover {
  border-color: #171716;
  background: #171716;
  color: #faf7f1;
}

body.tvc-public-shell.tvc-auth-page .auth-choice-action.primary:hover {
  border-color: #961717;
  background: #961717;
}

body.tvc-public-shell.tvc-auth-page .auth-entry {
  width: min(100%, 410px);
  margin-inline: auto;
}

body.tvc-public-shell.tvc-auth-page .auth-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  background: none;
  color: #4d4944;
  font: 400 13px/1.3 var(--tvc-font-sans, "DM Sans", sans-serif);
  text-decoration: none;
  cursor: pointer;
}

body.tvc-public-shell.tvc-auth-page .auth-entry > .auth-mark {
  width: 144px;
  height: 82px;
  margin-bottom: 18px;
}

body.tvc-public-shell.tvc-auth-page .auth-entry-copy {
  display: none !important;
}

body.tvc-public-shell.tvc-auth-page .tvc-form {
  --form-text: var(--tvc-form-primary-text);
  --form-muted: #69635e;
  --form-faint: #89827a;
  --form-rule: var(--tvc-form-quiet-border);
  --form-surface: rgba(255, 255, 255, .3);
  --form-control-height: 44px;
  --form-control-padding-x: 13px;
  --form-control-radius: 6px;
  --form-label-size: 9px;
  --form-label-gap: 7px;
  --form-input-size: 15px;
  --form-field-gap: 15px;
  --form-accent: var(--tvc-form-accent);
  --form-focus-ring: rgba(183, 28, 28, .16);
  --form-button-height: 52px;
  --form-button-radius: 999px;
  --form-button-size: 14px;
  --form-primary: var(--tvc-form-accent);
  --form-primary-ink: #fffaf4;
  --form-link-color: #7c1c1c;
  color: #171716;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .field-label {
  color: #34302c;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .text-input {
  min-height: 44px;
  height: 44px;
  margin-bottom: var(--form-field-gap);
  border-radius: 6px;
  background: rgba(255, 255, 255, .32);
  font-size: 15px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .text-input:focus,
body.tvc-public-shell.tvc-auth-page .tvc-form .text-input:focus-visible {
  background: #fffdf9;
  border-color: #b71c1c;
  outline-color: rgba(183, 28, 28, .16) !important;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .password-wrap .text-input {
  margin-bottom: 0;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #password-toggle {
  top: 0;
  right: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  color: #514b45;
  font-size: 0;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #password-toggle svg {
  display: block;
  width: 19px;
  height: 19px;
  margin: auto;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #password-toggle .eye-slash {
  display: none;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #password-toggle.is-visible .eye-slash {
  display: block;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #recovery-password-toggle {
  top: 0;
  right: 5px;
  width: 48px;
  height: 44px;
  font-size: 10px;
  letter-spacing: .06em;
}

body.tvc-public-shell.tvc-auth-page .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -3px 0 15px;
}

body.tvc-public-shell.tvc-auth-page .auth-options .remember-label {
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
  color: #5b5650;
}

body.tvc-public-shell.tvc-auth-page .auth-options .remember-label input[type="checkbox"] {
  --tvc-reference-checkbox-size: 15px;
  margin: 0;
}

body.tvc-public-shell.tvc-auth-page .auth-options .remember-label span {
  color: #514b45;
  font-size: 11px;
  line-height: 1.3;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .auth-options .forgot-btn {
  align-self: center;
  margin: 0;
  padding: 3px 0;
  color: #282421;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .primary-btn {
  min-height: 52px;
  margin-top: 2px;
  border-color: #b71c1c !important;
  border-radius: 999px !important;
  background: #b71c1c !important;
  color: #fffaf4 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .primary-btn:hover:not(:disabled) {
  border-color: #961717 !important;
  background: #961717 !important;
}

body.tvc-public-shell.tvc-auth-page .auth-submit-arrow {
  margin-left: 7px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #marketing-wrap {
  margin: 0 0 14px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #marketing-wrap input[type="checkbox"] {
  --tvc-reference-checkbox-size: 17px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #marketing-wrap span {
  color: #57514b;
  font-size: 12px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #remember-opt:disabled {
  cursor: not-allowed;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .account-consent {
  margin: 0 0 12px;
  color: #69635e;
  font-size: 12px;
  line-height: 1.5;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .account-consent a {
  color: #7c1c1c;
  text-underline-offset: 2px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form #legal-links {
  display: none !important;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .divider {
  gap: 12px;
  margin: 18px 0 12px;
  color: #827b74;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase !important;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .divider::before,
body.tvc-public-shell.tvc-auth-page .tvc-form .divider::after {
  background: rgba(37, 32, 28, .18);
}

body.tvc-public-shell.tvc-auth-page .tvc-form .auth-icons {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .auth-icons .social-btn {
  min-height: 44px;
  height: 44px;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid rgba(37, 32, 28, .25);
  border-radius: 999px;
  background: transparent;
  color: #171716;
  font-size: 11px;
  letter-spacing: 0;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .auth-icons .social-btn svg {
  width: 16px;
  height: 16px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .auth-icons .social-btn:hover {
  border-color: #171716;
  background: #f1eee7;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .switch-copy {
  margin: 17px 0 0;
  color: #69635e;
  font-size: 12px;
}

body.tvc-public-shell.tvc-auth-page .tvc-form .switch-copy button {
  color: #8f1d1d;
  font: 500 12px/1.5 var(--tvc-font-sans, "DM Sans", sans-serif);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.tvc-public-shell.tvc-auth-page .auth-entry .confirmation {
  color: #171716;
}

body.tvc-public-shell.tvc-auth-page .auth-entry .confirmation p {
  color: #69635e;
}

body.tvc-public-shell.tvc-auth-page .auth-entry .confirmation a {
  border-color: #b71c1c;
  border-radius: 999px;
  background: #b71c1c;
  color: #fffaf4;
  letter-spacing: 0;
  text-transform: none;
}

body.tvc-public-shell.tvc-auth-page .auth-entry .recaptcha-notice {
  color: #827b74;
}

@media (max-width: 700px) {
  body.tvc-public-shell.tvc-auth-page .auth-main {
    padding: 22px 18px;
  }

  body.tvc-public-shell.tvc-auth-page .auth-choice {
    padding-block: 28px;
  }

  body.tvc-public-shell.tvc-auth-page .auth-choice-title {
    font-size: clamp(26px, 7vw, 32px);
  }

  body.tvc-public-shell.tvc-auth-page .auth-choice-copy {
    font-size: 14px;
  }

  body.tvc-public-shell.tvc-auth-page .auth-entry {
    max-width: 410px;
  }

  body.tvc-public-shell.tvc-auth-page .auth-entry > .auth-mark {
    margin-bottom: 15px;
  }

  body.tvc-public-shell.tvc-auth-page .tvc-form {
    --form-input-size: 16px;
  }

  body.tvc-public-shell.tvc-auth-page .tvc-form .text-input {
    min-height: 52px;
    height: 52px;
    font-size: 16px;
  }

  body.tvc-public-shell.tvc-auth-page .tvc-form #password-toggle,
  body.tvc-public-shell.tvc-auth-page .tvc-form #recovery-password-toggle {
    height: 52px;
  }

  body.tvc-public-shell.tvc-auth-page .tvc-form .auth-icons {
    grid-template-columns: 1fr 1fr;
  }
}

/* The site-wide newsletter dialog is a light paper card; it shares field and
   button cues with account forms without restyling the rest of the home page. */
body.tvc-public-shell .tvc-field-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
body.tvc-public-shell .tvc-field-row > div { min-width:0; }
body.tvc-public-shell .tvc-field-row[hidden] { display:none!important; }

body.tvc-public-shell #stay-loop-overlay #tvc-overlay-footer { display:none!important; }

@media (min-width:901px) {
  body.tvc-public-shell #stay-loop-overlay {
    grid-template-rows:minmax(min-content,1fr) auto;
    padding:0;
    overflow:auto;
  }
  body.tvc-public-shell #stay-loop-overlay #stay-loop-dialog {
    margin:28px 24px;
    max-width:calc(100% - 48px);
  }
  body.tvc-public-shell #stay-loop-overlay #tvc-overlay-footer {
    display:grid!important;
    align-self:end;
  }
}

body.tvc-public-shell #stay-loop-overlay {
  background: rgba(20, 18, 16, .34);
  backdrop-filter: blur(2px);
}

body.tvc-public-shell #stay-loop-dialog {
  width: min(430px, 100%);
  aspect-ratio: auto;
  min-height: 0;
  padding: 35px 34px 27px;
  overflow: visible;
  border: 1px solid rgba(38, 32, 27, .12);
  border-radius: 7px;
  background: #faf7f1;
  color: #171716;
  box-shadow: 0 24px 72px rgba(16, 14, 12, .22);
}

body.tvc-public-shell #stay-loop-dialog::before {
  display: none;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-close {
  top: 8px;
  right: 9px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #514b45;
  font-weight: 400;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-close:hover {
  background: rgba(23, 23, 22, .06);
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-eyebrow {
  margin: 0 0 17px;
  color: #3d3934;
  font: 500 9px/1.3 var(--tvc-font-sans, "DM Sans", sans-serif);
  letter-spacing: .18em;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-title {
  max-width: 100%;
  color: #171716;
  font: 600 clamp(34px, 5vw, 43px)/.96 var(--tvc-font-sans, "DM Sans", sans-serif);
  letter-spacing: -.055em;
  white-space: normal;
  text-transform: uppercase;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-title span {
  display: block;
  color: #b71c1c;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-copy {
  height: auto;
  margin-top: 10px;
  color: #625c55;
  font: 400 13px/1.45 var(--tvc-font-sans, "DM Sans", sans-serif);
  white-space: normal;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-form {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(37, 32, 28, .2);
  border-radius: 7px;
  background: #f1eee8;
  color: #171716;
  font: 400 16px/1.3 var(--tvc-font-sans, "DM Sans", sans-serif);
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-input::placeholder {
  color: #8a837b;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-input:focus,
body.tvc-public-shell #stay-loop-dialog .stay-loop-input:focus-visible {
  border-color: #b71c1c !important;
  outline: 2px solid rgba(183, 28, 28, .16) !important;
  outline-offset: 1px;
  box-shadow: none;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-status:empty {
  min-height: 0;
  margin-top: 0;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-input[aria-invalid="true"] {
  border-color: #b71c1c;
  background: #fff3f1;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-input.is-success {
  border-color: #608566;
  background: #f0f7ee;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-honeypot {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-consent {
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: #554f49;
  font: 400 10px/1.4 var(--tvc-font-sans, "DM Sans", sans-serif);
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-consent input {
  --tvc-reference-checkbox-size: 15px;
  position: relative;
  margin: 0;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-reassurance {
  order: 4;
  margin-top: 11px;
  color: #625c55;
  font: 400 10px/1.4 var(--tvc-font-sans, "DM Sans", sans-serif);
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-submit {
  order: 3;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin-top: 13px;
  border: 1px solid #b71c1c;
  border-radius: 999px;
  background: #b71c1c;
  color: #fffaf4;
  font: 500 11px/1 var(--tvc-font-sans, "DM Sans", sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .16s ease, border-color .16s ease;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-submit:hover:not(:disabled) {
  border-color: #961717;
  background: #961717;
}

body.tvc-public-shell #stay-loop-dialog .stay-loop-status {
  order: 5;
  min-height: 18px;
  margin-top: 7px;
  color: #514b45;
  font: 400 11px/1.4 var(--tvc-font-sans, "DM Sans", sans-serif);
}

@media (max-width: 520px) {
  body.tvc-public-shell #stay-loop-overlay {
    padding: 20px;
  }

  body.tvc-public-shell #stay-loop-dialog {
    width: min(100%, 410px);
    aspect-ratio: auto;
    min-height: 0;
    padding: 29px 23px 23px;
  }

  body.tvc-public-shell #stay-loop-dialog .stay-loop-title {
    font-size: clamp(31px, 9vw, 38px);
  }

  body.tvc-public-shell #stay-loop-dialog .stay-loop-copy {
    margin-top: 9px;
    font-size: 12px;
  }

  body.tvc-public-shell #stay-loop-dialog .stay-loop-form {
    margin-top: 16px;
  }

  body.tvc-public-shell #stay-loop-dialog .stay-loop-input {
    height: 46px;
    min-height: 46px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tvc-public-shell.tvc-auth-page .auth-choice-action,
  body.tvc-public-shell #stay-loop-dialog .stay-loop-submit {
    transition: none;
  }
}

/* A shared opt-in reference-form system. Page styles provide composition and
   density only; controls, palette, focus, and state live here. */
body.tvc-public-shell .tvc-form.tvc-reference-form {
  --form-primary: var(--tvc-reference-accent, #b71c1c);
  --form-primary-ink: var(--tvc-reference-button-ink, #fffaf4);
  --form-control-padding-x: 13px;
  --form-control-radius: var(--tvc-reference-radius, 6px);
  --form-label-size: 9px;
  --form-label-color: var(--tvc-reference-ink, #171716);
  --form-label-gap: 7px;
  --form-input-size: 16px;
  --form-input-padding-x: 13px;
  --form-field-gap: 15px;
  --form-checkbox-size: 17px;
  --form-checkbox-gap: 10px;
  --form-focus-width: 2px;
  --form-focus-offset: 1px;
  --form-button-height: 52px;
  --form-button-padding: 0 20px;
  --form-button-radius: 999px;
  --form-button-size: 14px;
  --form-textarea-height: 112px;
  color: var(--tvc-reference-ink, #171716);
  font-family: var(--tvc-reference-font, "Inter", sans-serif);
}

body.tvc-public-shell .tvc-form.tvc-reference-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.tvc-public-shell .tvc-form.tvc-reference-form.tvc-reference-form--compact {
  --form-control-height: 45px;
  --form-control-padding-x: 12px;
  --form-input-padding-x: 12px;
  --form-label-gap: 6px;
  --form-field-gap: 0px;
  --form-textarea-height: 78px;
  --form-checkbox-size: 16px;
  --form-checkbox-gap: 9px;
  --form-button-height: 43px;
  --form-button-padding: 0 20px;
  --form-button-radius: var(--tvc-reference-radius, 6px);
  --form-button-size: 10px;
}

body.tvc-public-shell .tvc-form.tvc-reference-form .field-label,
body.tvc-public-shell .tvc-form.tvc-reference-form legend {
  display: block;
  margin: 0 0 var(--form-label-gap);
  color: var(--tvc-reference-ink, #171716);
  font: 500 var(--form-label-size)/1.35 var(--tvc-reference-font, "Inter", sans-serif);
  letter-spacing: .17em;
  text-transform: uppercase;
}

body.tvc-public-shell .tvc-form.tvc-reference-form.tvc-reference-form--compact :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([aria-hidden="true"]),
  textarea,
  select
) {
  box-sizing: border-box;
  width: 100% !important;
  min-height: var(--form-control-height) !important;
  margin: 0 0 var(--form-field-gap) !important;
  padding: 0 var(--form-input-padding-x) !important;
  border: 1px solid var(--tvc-reference-rule, #e5e1db) !important;
  border-radius: var(--tvc-reference-radius, 6px) !important;
  background: var(--tvc-reference-field, #f1eee8) !important;
  color: var(--tvc-reference-ink, #171716) !important;
  font: 400 var(--form-input-size)/1.4 var(--tvc-reference-font, "Inter", sans-serif) !important;
  box-shadow: none !important;
  appearance: none !important;
}

body.tvc-public-shell .tvc-form.tvc-reference-form.tvc-reference-form--compact textarea {
  min-height: var(--form-textarea-height, 112px) !important;
  padding-block: 12px !important;
  resize: vertical;
}

body.tvc-public-shell .tvc-form.tvc-reference-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  textarea,
  select
)::placeholder {
  color: var(--tvc-reference-faint, #89827a);
  opacity: 1;
}

body.tvc-public-shell .tvc-form.tvc-reference-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  textarea,
  select
):focus-visible {
  border-color: var(--tvc-reference-accent, #b71c1c);
  outline: 2px solid var(--tvc-reference-focus-ring, rgba(183, 28, 28, .16));
  outline-offset: 1px;
  background: var(--tvc-reference-input-focus, #fffdf9);
}

/* One square red check state for account, newsletter, and opted-in forms.
   Size and offset remain density/context tokens so existing compositions hold. */
body.tvc-public-shell :is(
  .tvc-auth-page .tvc-form input[type="checkbox"],
  #stay-loop-dialog .stay-loop-consent input[type="checkbox"],
  .tvc-form.tvc-reference-form input[type="checkbox"]
) {
  position: relative;
  box-sizing: border-box;
  width: var(--tvc-reference-checkbox-size, var(--form-checkbox-size, 17px));
  height: var(--tvc-reference-checkbox-size, var(--form-checkbox-size, 17px));
  min-width: var(--tvc-reference-checkbox-size, var(--form-checkbox-size, 17px));
  min-height: var(--tvc-reference-checkbox-size, var(--form-checkbox-size, 17px));
  flex: 0 0 var(--tvc-reference-checkbox-size, var(--form-checkbox-size, 17px));
  margin: var(--tvc-reference-checkbox-margin, 1px 0 0);
  padding: 0;
  border: 1px solid var(--tvc-reference-check-border, #726b64);
  border-radius: 3px;
  background: var(--tvc-reference-check-surface, #fffdf9);
  appearance: none;
  accent-color: var(--tvc-reference-accent, #b71c1c);
  cursor: pointer;
}

body.tvc-public-shell :is(
  .tvc-auth-page .tvc-form input[type="checkbox"],
  #stay-loop-dialog .stay-loop-consent input[type="checkbox"],
  .tvc-form.tvc-reference-form input[type="checkbox"]
):checked {
  border-color: var(--tvc-reference-accent, #b71c1c);
  background: var(--tvc-reference-accent, #b71c1c);
}

body.tvc-public-shell :is(
  .tvc-auth-page .tvc-form input[type="checkbox"],
  #stay-loop-dialog .stay-loop-consent input[type="checkbox"],
  .tvc-form.tvc-reference-form input[type="checkbox"]
):checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--tvc-reference-button-ink, #fffaf4);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

body.tvc-public-shell :is(
  .tvc-auth-page .tvc-form input[type="checkbox"],
  #stay-loop-dialog .stay-loop-consent input[type="checkbox"],
  .tvc-form.tvc-reference-form input[type="checkbox"]
):focus-visible {
  outline: 2px solid var(--tvc-reference-focus-ring, rgba(183, 28, 28, .16));
  outline-offset: 2px;
}

body.tvc-public-shell .tvc-form.tvc-reference-form.tvc-reference-form--compact :is(.check-row, .legal-consent) {
  display: flex;
  align-items: flex-start;
  gap: var(--form-checkbox-gap);
  margin: 8px 0 0;
  padding: 2px 0;
  color: var(--tvc-reference-muted, #69635e);
  font: 400 11px/1.45 var(--tvc-reference-font, "Inter", sans-serif);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

body.tvc-public-shell .tvc-form.tvc-reference-form.tvc-reference-form--compact :is(.check-row, .legal-consent) span {
  color: inherit;
  font: inherit;
}

body.tvc-public-shell .tvc-form.tvc-reference-form.tvc-reference-form--compact :is(.check-row, .legal-consent) span small {
  display: inline;
  margin-left: 2px;
  color: var(--tvc-reference-faint, #89827a);
  font: inherit;
}

body.tvc-public-shell .tvc-form.tvc-reference-form .tvc-interest-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

body.tvc-public-shell .tvc-form.tvc-reference-form .tvc-interest-cards label {
  box-sizing: border-box;
  display: flex !important;
  min-height: 35px;
  align-items: center !important;
  gap: var(--form-checkbox-gap) !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  border: 1px solid transparent;
  border-radius: var(--tvc-reference-radius, 6px);
  background: var(--tvc-reference-field, #f1eee8);
  color: var(--tvc-reference-muted, #69635e) !important;
  font: 400 11px/1.3 var(--tvc-reference-font, "Inter", sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

body.tvc-public-shell .tvc-form.tvc-reference-form .tvc-interest-cards label:has(input:checked) {
  border-color: color-mix(in srgb, var(--tvc-reference-accent, #b71c1c) 20%, transparent);
  background: color-mix(in srgb, var(--tvc-reference-accent, #b71c1c) 7%, var(--tvc-reference-field, #f1eee8));
  color: var(--tvc-reference-ink, #171716);
}

body.tvc-public-shell .tvc-form.tvc-reference-form .primary-btn {
  display: flex !important;
  width: 100%;
  min-height: var(--form-button-height) !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: var(--form-button-padding) !important;
  border: 1px solid var(--tvc-reference-accent, #b71c1c) !important;
  border-radius: var(--form-button-radius) !important;
  background: var(--tvc-reference-accent, #b71c1c) !important;
  color: var(--tvc-reference-button-ink, #fffaf4) !important;
  font: 500 var(--form-button-size)/1 var(--tvc-reference-font, "Inter", sans-serif) !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.tvc-public-shell .tvc-form.tvc-reference-form .primary-btn:hover:not(:disabled) {
  border-color: var(--tvc-reference-accent-hover, #961717) !important;
  background: var(--tvc-reference-accent-hover, #961717) !important;
}

body.tvc-public-shell .tvc-form.tvc-reference-form .primary-btn:disabled {
  opacity: .56;
  cursor: wait;
}

body.tvc-public-shell .tvc-form.tvc-reference-form :is(.success-message, .error-message) {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--tvc-reference-rule, #e5e1db);
  border-radius: var(--tvc-reference-radius, 6px);
  background: var(--tvc-reference-paper, #faf7f1);
  color: var(--tvc-reference-ink, #171716);
  font: 400 13px/1.5 var(--tvc-reference-font, "Inter", sans-serif);
}

body.tvc-public-shell .tvc-form.tvc-reference-form .error-message {
  border-color: var(--form-error-border);
  background: var(--form-error-surface);
  color: var(--form-error);
}

@media (max-width: 520px) {
  body.tvc-public-shell #stay-loop-dialog .stay-loop-consent input { --tvc-reference-checkbox-size:14px; }
}

@media (max-width: 360px) {
  body.tvc-public-shell #stay-loop-dialog .stay-loop-consent input { --tvc-reference-checkbox-size:12px; }
}

@media (max-width: 600px) {
  body.tvc-public-shell .tvc-form.tvc-reference-form .tvc-interest-cards { gap:5px 6px; }
  body.tvc-public-shell .tvc-form.tvc-reference-form .tvc-interest-cards label {
    min-height:38px;
    padding:5px 7px;
    font-size:10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tvc-public-shell .tvc-form.tvc-reference-form .tvc-interest-cards label { transition:none; }
}
