.roblox-paid-codex-copy { min-width: 0; overflow-wrap: anywhere; }
.roblox-paid-codex-copy > .roblox-case-dek { color: #dedede; border-color: #777; }
.roblox-paid-codex .roblox-paid-codex-requirements {
  margin-block: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
}
.roblox-paid-codex-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 20px 30px;
  padding: 15px 18px;
  border: 1px solid #343434;
  border-radius: 14px;
  background: linear-gradient(135deg, #191919, #090909);
  box-shadow: inset 0 1px rgb(255 255 255 / .045);
  text-decoration: none;
  color: #f5f5f5;
}
.roblox-paid-codex-download strong { display: block; font-size: 14px; }
.roblox-paid-codex-download small { display: block; color: #aaa; font-size: 11px; margin-top: 3px; }
.roblox-paid-codex-download > span:last-child { font-size: 24px; color: #eee; }
.lesson-download { margin-block: 20px 30px; }
.roblox-paid-codex .lesson-download > .roblox-paid-codex-download { margin: 0; }
.roblox-paid-codex .lesson-download-description { margin: 10px 0 0; color: #aaa; font-size: 12px; line-height: 1.65; }
.roblox-paid-codex .lesson-download-desktop { margin: 8px 0 0; color: #b8b8b8; font-size: 12px; line-height: 1.65; }
.roblox-paid-codex .lesson-download-status { min-height: 1.65em; margin: 5px 0 0; color: #bcbcbc; font-size: 11px; line-height: 1.65; }
.lesson-download-browser { display: inline-block; margin-top: 4px; font-size: 12px; }
.lesson-download-browser[hidden] { display: none; }
.lesson-ai-export-body { padding: 0 14px 14px; }
.roblox-paid-codex .lesson-ai-export-description { margin: 0 0 16px; color: #bdbdbd; font-size: 13px; line-height: 1.65; }
.lesson-ai-export-copy:disabled { cursor: wait; opacity: .6; }
.lesson-ai-export-manual { box-sizing: border-box; width: 100%; height: 180px; margin-top: 12px; padding: 12px; border: 1px solid #393939; border-radius: 10px; background: #080808; color: #ddd; font: 400 12px / 1.6 ui-monospace, Consolas, monospace; resize: vertical; }
.lesson-ai-export-body .lesson-download { margin-block: 16px 0; }
.lesson-ai-export-credit { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #292929; color: #999; font-size: 11px; }
.lesson-ai-export-credit img { display: block; width: 104px; height: 24px; object-fit: contain; }
.roblox-paid-codex-action { padding-block: 24px 2px; border-block-start: 1px solid #222; }
.roblox-paid-codex .roblox-paid-codex-action h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.roblox-paid-codex-number { flex: none; font-size: 36px; line-height: 1; font-weight: 900; letter-spacing: -.055em; }
.roblox-paid-codex .roblox-paid-codex-route { margin-block: 0 15px; font-size: 11px; line-height: 1.6; color: #a1a1a1; }
.roblox-paid-codex-action > ol { padding-inline-start: 22px; margin-block: 0 16px; }
.roblox-paid-codex-action > ol > li { padding-inline-start: 3px; }
.roblox-paid-codex-action > ol > li::marker { color: #888; }
.roblox-paid-codex .roblox-paid-codex-result { margin-block: 18px 24px; font-size: 14px; line-height: 1.65; color: #bababa; }
.roblox-paid-codex-code { margin-block: 18px; padding: 12px 14px; border: 1px solid #2e2e2e; border-radius: 12px; background: linear-gradient(140deg, #141414, #080808); }
.roblox-paid-codex-code-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: #aaa; font-size: 11px; }
.roblox-paid-codex-code-header button { flex-shrink: 0; }
:is(.roblox-paid-codex-code button, .lesson-ai-export-copy) {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #41484a;
  border-radius: 999px;
  background: linear-gradient(160deg, #252a2b, #17191a);
  box-shadow: inset 0 1px rgb(255 255 255 / .07);
  color: #f3f6f6;
  font: 650 11px / 1.4 Inter, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

@media (hover: hover) {
  :is(.roblox-paid-codex-code button, .lesson-ai-export-copy):hover { border-color: #67777a; }
}

:is(.roblox-paid-codex-code button, .lesson-ai-export-copy):active {
  border-color: #8cb1b8;
  box-shadow: inset 0 0 14px rgb(181 231 240 / .11);
  transform: scale(.97);
}
.roblox-paid-codex :is(button, a):focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.roblox-paid-codex-code pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #e5e5e5; font: 400 12px / 1.7 ui-monospace, Consolas, monospace; }
.roblox-paid-codex-code code { font: inherit; }
.guide-copy-anchor {
  position: relative;
  overflow: visible;
}

.guide-copy-announcement {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.guide-copy-anchor > .guide-copy-message {
  position: absolute;
  z-index: 2;
  inset-block-end: calc(100% - 3px);
  inset-inline-start: 0;
  inline-size: max-content;
  max-inline-size: min(66vw, 220px);
  padding: 5px 9px;
  border-radius: 8px;
  background: #202526;
  color: #f3f6f6;
  font: 600 11px / 1.45 Inter, sans-serif;
  text-align: start;
  white-space: normal;
  pointer-events: none;
  animation: guide-copy-feedback-fade 4s ease both;
}

.guide-copy-anchor > .guide-copy-message[data-kind='copied'] {
  inset-inline-start: 50%;
  translate: -50% 0;
  padding: 0;
  background: transparent;
  color: #daffff;
  text-shadow: 0 0 8px rgb(158 234 247 / .6), 0 0 16px rgb(158 234 247 / .28);
  animation: guide-copy-feedback-rise 1.18s cubic-bezier(.18,.62,.3,1) both;
}

.roblox-paid-codex-code button > .guide-copy-message:not([data-kind='copied']) {
  inset-inline: auto 0;
}

@keyframes guide-copy-feedback-rise {
  0% { opacity: 0; transform: translateY(13px) scale(.92); }
  22% { opacity: 1; transform: translateY(-3px) scale(1); }
  52% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-21px) scale(.99); }
}

@keyframes guide-copy-feedback-fade {
  0% { opacity: 0; }
  8%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.roblox-paid-codex-code button, .lesson-ai-export-copy) { transition: none; }
  :is(.roblox-paid-codex-code button, .lesson-ai-export-copy):active { transform: none; }
  .guide-copy-anchor > .guide-copy-message[data-kind='copied'] { animation-name: guide-copy-feedback-fade; }
}
.roblox-paid-codex-figure img { border-radius: 10px; background: #111; }
.roblox-paid-codex-figure[data-figure="connect"] { max-width: 470px; margin-inline: auto; }
.roblox-paid-codex-figure figcaption { margin-top: 8px; color: #a2a2a2; font-size: 11px; line-height: 1.65; }
.roblox-paid-codex .roblox-paid-codex-checklist { padding-inline-start: 22px; }
.roblox-paid-codex-disclosure { background: linear-gradient(135deg, #131313, #080808); border-color: #303030; box-shadow: none; margin-block: 14px; }
.roblox-paid-codex-disclosure .roblox-sources-toggle::before { border-color: #aaa; }
.roblox-paid-codex-answers { margin: 0; padding: 0 15px 18px; font-size: 14px; line-height: 1.7; }
.roblox-paid-codex-answers dt { margin-top: 18px; color: #eee; font-weight: 700; }
.roblox-paid-codex-answers dt:first-child { margin-top: 0; }
.roblox-paid-codex-answers dd { margin: 6px 0 0; color: #bdbdbd; }
.roblox-paid-codex .roblox-paid-codex-next { margin-top: 22px; font-size: 13px; color: #aaa; }
