.camus-download-lock {
  overflow: hidden;
}

.camus-download-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 17, 29, 0.58);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.camus-download-overlay.is-open {
  display: flex;
}

.camus-download-dialog {
  width: min(920px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(139, 187, 220, 0.45);
  background:
    radial-gradient(110% 86% at 100% 0%, rgba(42, 126, 176, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #f8fcff 0%, #edf6fb 100%);
  box-shadow: 0 28px 70px rgba(3, 14, 26, 0.32);
  color: #102337;
}

.camus-download-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(170, 201, 224, 0.68);
}

.camus-download-kicker {
  margin: 0 0 8px;
  color: #1f6ea0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.camus-download-head h2 {
  margin: 0;
  color: #102337;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.camus-download-head p:not(.camus-download-kicker) {
  max-width: 62ch;
  margin: 10px 0 0;
  color: #47637e;
  font-size: 0.98rem;
  line-height: 1.58;
}

.camus-download-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(144, 181, 211, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #274c68;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.camus-download-close:hover,
.camus-download-close:focus-visible {
  border-color: #1f6ea0;
  outline: none;
}

.camus-download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  padding: 22px 28px 24px;
}

.camus-download-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(161, 196, 222, 0.82);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(9, 25, 43, 0.08);
}

.camus-download-card.is-recommended {
  border-color: rgba(31, 110, 160, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 253, 0.96));
}

.camus-download-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.camus-download-card h3 {
  margin: 0;
  color: #102337;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.22;
}

.camus-download-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #dff4ef;
  color: #0b7169;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.camus-download-card p {
  margin: 0;
  color: #4d6680;
  font-size: 0.92rem;
  line-height: 1.54;
}

.camus-download-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camus-download-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: #385b77;
  font-size: 0.88rem;
  line-height: 1.42;
}

.camus-download-list li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d9f1ed;
  color: #0d6d66;
  font-size: 0.72rem;
  font-weight: 800;
}

.camus-download-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid rgba(31, 110, 160, 0.58);
  background: linear-gradient(180deg, #2e7eb0 0%, #1f6ea0 100%);
  color: #ffffff;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(24, 95, 142, 0.16);
}

.camus-download-button:hover,
.camus-download-button:focus-visible {
  background: linear-gradient(180deg, #2772a0 0%, #17557b 100%);
  outline: none;
}

.camus-download-note {
  margin: 0;
  padding: 0 28px 26px;
  color: #597089;
  font-size: 0.86rem;
  line-height: 1.48;
}

html[data-camus-theme="dark"] .camus-download-overlay,
html[data-theme="dark"] .camus-download-overlay {
  background: rgba(0, 8, 15, 0.7);
}

html[data-camus-theme="dark"] .camus-download-dialog,
html[data-theme="dark"] .camus-download-dialog {
  border-color: rgba(147, 197, 253, 0.24);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(42, 126, 176, 0.18) 0%, transparent 62%),
    linear-gradient(180deg, #0b2133 0%, #071522 100%);
  color: #dbeafe;
  box-shadow: 0 28px 70px rgba(0, 7, 14, 0.55);
}

html[data-camus-theme="dark"] .camus-download-head,
html[data-theme="dark"] .camus-download-head {
  border-bottom-color: rgba(147, 197, 253, 0.18);
}

html[data-camus-theme="dark"] .camus-download-head h2,
html[data-camus-theme="dark"] .camus-download-card h3,
html[data-theme="dark"] .camus-download-head h2,
html[data-theme="dark"] .camus-download-card h3 {
  color: #f8fbff;
}

html[data-camus-theme="dark"] .camus-download-head p:not(.camus-download-kicker),
html[data-camus-theme="dark"] .camus-download-card p,
html[data-camus-theme="dark"] .camus-download-list li,
html[data-camus-theme="dark"] .camus-download-note,
html[data-theme="dark"] .camus-download-head p:not(.camus-download-kicker),
html[data-theme="dark"] .camus-download-card p,
html[data-theme="dark"] .camus-download-list li,
html[data-theme="dark"] .camus-download-note {
  color: #c8d9e8;
}

html[data-camus-theme="dark"] .camus-download-kicker,
html[data-theme="dark"] .camus-download-kicker {
  color: #8dded9;
}

html[data-camus-theme="dark"] .camus-download-card,
html[data-camus-theme="dark"] .camus-download-card.is-recommended,
html[data-theme="dark"] .camus-download-card,
html[data-theme="dark"] .camus-download-card.is-recommended {
  border-color: rgba(147, 197, 253, 0.22);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

html[data-camus-theme="dark"] .camus-download-close,
html[data-theme="dark"] .camus-download-close {
  border-color: rgba(147, 197, 253, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

html[data-camus-theme="dark"] .camus-download-tag,
html[data-camus-theme="dark"] .camus-download-list li::before,
html[data-theme="dark"] .camus-download-tag,
html[data-theme="dark"] .camus-download-list li::before {
  background: rgba(141, 222, 217, 0.18);
  color: #8dded9;
}

@media (max-width: 760px) {
  .camus-download-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .camus-download-dialog {
    max-height: min(860px, calc(100vh - 24px));
    border-radius: 16px;
  }

  .camus-download-head {
    grid-template-columns: 1fr auto;
    padding: 22px 18px 16px;
  }

  .camus-download-options {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .camus-download-card {
    padding: 18px;
  }

  .camus-download-note {
    padding: 0 18px 22px;
  }
}
