/* Access code dialog and the secondary code link. Light theme only. */
.code-dialog { border: 0; border-radius: 16px; padding: 28px; width: min(92vw, 520px); max-height: 90vh; overflow-y: auto; color: #111; background: #fff; box-shadow: 0 24px 64px rgba(17, 17, 17, .35); }
.code-dialog::backdrop { background: rgba(17, 17, 17, .45); }
.code-dialog h2 { font-size: 24px; margin: 4px 0 16px; }
.code-close-row { margin: 0; text-align: right; }
.code-x { font: inherit; font-weight: 800; font-size: 13px; background: #fff; color: #111; border: 2px solid #111; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.code-form { display: grid; gap: 10px; }
.code-form label { font-weight: 800; font-size: 14px; }
.code-form input { font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; border: 2px solid #111; border-radius: 10px; background: #fff; color: #111; width: 100%; }
.code-form[hidden], .code-downloads[hidden] { display: none; }
.code-msg { min-height: 1.4em; font-weight: 700; font-size: 14px; color: var(--red); }
.code-ok { font-weight: 800; color: #1b7f3b; margin-bottom: 12px; }
.code-downloads ul { display: grid; gap: 8px; }
.code-downloads li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.code-downloads li span { font-weight: 800; font-size: 15px; }
.code-downloads li em { display: block; font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--mute); }
.code-downloads li.is-requested { border: 2px solid var(--navy); background: #eaf2ff; }
.code-note { margin-top: 14px; font-size: 13.5px; color: #2a2f36; }
.code-note a { color: var(--navy); font-weight: 700; }
@media (max-width: 640px) { .code-dialog { padding: 20px; } .code-downloads li { flex-wrap: wrap; } }

.link-code { display: inline-block; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 6px 4px; }
.link-code:hover { color: var(--red); }
.link-code.is-unlocked { color: #1b7f3b; }
