.download-modal { width: min(562px, calc(100% - 16px)); max-height: calc(100dvh - 16px); padding: 0; margin: auto; overflow: auto; border: 0; border-radius: 16px; background: var(--nclear-v2-surface-window); color: var(--nclear-v2-content-primary); box-shadow: var(--shadow); }
.download-modal::backdrop { background: rgb(3 8 10 / .76); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.download-modal-panel { position: relative; padding: 24px; text-align: center; }
.download-modal-close { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 8px; color: var(--nclear-v2-content-tertiary); font-family: var(--body); font-size: 22px; line-height: 1; }
.download-modal-close:hover { border-color: var(--nclear-v2-border-subtle); color: var(--nclear-v2-content-primary); }
.download-form { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; font-family: var(--body); }
.download-heading { display: flex; flex-direction: column; align-items: center; }
.download-heading h2 { width: 100%; padding: 8px; margin: 0; color: var(--nclear-v2-content-primary); font-family: var(--body); font-size: 36px; font-weight: 900; line-height: normal; text-align: center; }
.download-heading p { width: 100%; padding: 8px; margin: 0; color: var(--nclear-v2-content-primary); font-size: 15px; font-weight: 400; line-height: normal; text-align: center; }
.download-fields { display: grid; grid-template-columns: 259px minmax(0, 1fr); gap: 8px; align-items: end; width: 100%; }
.download-form[data-pwyw-enabled="false"]:not([data-download-suspended="true"]) .download-fields { grid-template-columns: 259px; justify-content: center; }
.download-price[hidden] { display: none; }
.download-form label.download-email { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--nclear-v2-content-tertiary); font-size: 12px; font-weight: 400; line-height: normal; text-align: left; }
.download-form .download-email input[type="email"] { width: 100%; height: 36px; min-height: 36px; padding: 8px; border: 1px solid var(--nclear-v2-graph-secondary); border-radius: 8px; background: var(--nclear-v2-surface-panel); color: var(--nclear-v2-content-primary); font: 400 15px/normal var(--body); text-align: left; }
.download-form .download-email input[type="email"]:focus { border-color: var(--nclear-v2-accent-cyan-default); outline: none; background: var(--nclear-v2-surface-panel); box-shadow: none; }
.download-form .download-email input[type="email"][aria-invalid="true"], .download-form .download-custom-price:has(input[aria-invalid="true"]) { border-color: var(--nclear-v2-accent-red-default); }
.download-price { min-width: 0; padding: 0; margin: 0; border: 0; }
.download-price legend { padding: 0; margin: 0 0 8px; color: var(--nclear-v2-content-tertiary); font-size: 12px; font-weight: 400; line-height: normal; text-align: left; white-space: nowrap; }
.download-price-row { display: flex; align-items: center; gap: 8px; }
.download-form label.download-custom-price { display: flex; width: 64px; height: 36px; flex: 0 0 64px; align-items: center; justify-content: center; gap: 4px; padding: 8px; border: 1px solid var(--nclear-v2-graph-secondary); border-radius: 8px; background: var(--nclear-v2-surface-panel); color: var(--nclear-v2-content-primary); font-size: 15px; font-weight: 400; line-height: normal; }
.download-form label.download-custom-price:focus-within { border-color: var(--nclear-v2-accent-cyan-default); }
.download-form label.download-custom-price input { width: 28px; height: 20px; min-width: 0; min-height: 0; padding: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; text-align: center; }
.download-price-row button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 8px; border: 1px dashed var(--nclear-v2-accent-cyan-default); border-radius: 8px; color: var(--nclear-v2-content-primary); font-size: 12px; font-weight: 400; line-height: normal; }
.download-price-row button:hover, .download-price-row button[aria-pressed="true"] { border-style: solid; background: var(--nclear-v2-accent-cyan-subtle); }
.download-price-row button:disabled, .download-form label.download-custom-price:has(input[readonly]) { cursor: not-allowed; opacity: .45; }
.download-consent-actions { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.download-consent-primary { width: 299px; max-width: 100%; min-height: 54px; padding: 16px 8px; border: 1px solid var(--nclear-v2-accent-cyan-default); border-radius: 8px; background: var(--nclear-v2-action-primary-bg-default); color: var(--nclear-v2-action-primary-content); font-size: 16px; font-weight: 700; line-height: normal; transition: transform 160ms ease, background 160ms ease; }
.download-consent-primary:hover { transform: translateY(-1px); background: var(--nclear-v2-action-primary-bg-hover); }
.download-consent-primary:active { background: var(--nclear-v2-action-primary-bg-pressed); }
.download-consent-secondary { width: 299px; max-width: 100%; min-height: 36px; padding: 8px; border-radius: 8px; color: var(--nclear-v2-accent-cyan-default); font-size: 15px; font-weight: 400; line-height: normal; }
.download-consent-secondary:hover { color: var(--nclear-v2-accent-cyan-strong); text-decoration: underline; text-underline-offset: 4px; }
.download-consent-primary:disabled, .download-consent-secondary:disabled { cursor: not-allowed; opacity: .55; }
.download-consent-copy { width: min(483px, 100%); margin: 0 auto; color: var(--nclear-v2-content-tertiary); font-size: 15px !important; font-weight: 400; line-height: normal !important; text-align: center; }
.download-consent-copy a { color: var(--nclear-v2-accent-cyan-default); }
.download-consent-copy a:hover { color: var(--nclear-v2-accent-cyan-strong); text-decoration: underline; text-underline-offset: 3px; }
.download-form input, .download-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg); color: var(--text); }
.download-form .download-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.4; }
.download-form .download-consent input { width: auto; min-height: auto; margin-top: 2px; }
.download-status { width: 100%; min-height: 0; margin: 0; color: var(--nclear-v2-content-tertiary); font-size: 13px !important; line-height: 1.4; text-align: center; }
.download-status:empty { display: none; }
.download-status[data-state="error"] { color: var(--nclear-v2-accent-red-default); }
.download-modal :focus-visible { outline: 2px solid var(--nclear-v2-accent-cyan-default); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .download-heading h2 { padding-inline: 24px; font-size: 30px; }
  .download-fields { grid-template-columns: 1fr; gap: 16px; }
  .download-price { width: 100%; }
  .download-price legend { white-space: normal; }
  .download-price-row { flex-wrap: wrap; justify-content: center; }
  .download-consent-primary, .download-consent-secondary { width: 100%; }
}
