/* AI Prompt Injection Lab - scoped client-side simulation */

body.sc-page-ai-prompt-injection-lab,
body.sc-page-sql-injection-lab,
body.sc-page-interactive-lab,
body.sc-page-architecture-review-lab {
  --lab-nav-h: 52px;
  --lab-offset: 0px;
  display: flex;
  flex-direction: column;
  background: var(--bg, #0b0c10);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

html:has(body.sc-page-ai-prompt-injection-lab),
html:has(body.sc-page-sql-injection-lab),
html:has(body.sc-page-interactive-lab),
html:has(body.sc-page-architecture-review-lab) {
  margin-top: 0 !important;
}

body.admin-bar.sc-page-ai-prompt-injection-lab,
body.admin-bar.sc-page-sql-injection-lab,
body.admin-bar.sc-page-interactive-lab,
body.admin-bar.sc-page-architecture-review-lab {
  --lab-offset: 32px;
  padding-top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar.sc-page-ai-prompt-injection-lab,
  body.admin-bar.sc-page-sql-injection-lab,
  body.admin-bar.sc-page-interactive-lab,
  body.admin-bar.sc-page-architecture-review-lab {
    --lab-offset: 46px;
    padding-top: 46px !important;
  }
}

body.sc-page-ai-prompt-injection-lab #wpadminbar,
body.sc-page-sql-injection-lab #wpadminbar,
body.sc-page-interactive-lab #wpadminbar,
body.sc-page-architecture-review-lab #wpadminbar {
  position: fixed;
}

body.sc-page-ai-prompt-injection-lab .sc-site-nav,
body.sc-page-sql-injection-lab .sc-site-nav,
body.sc-page-interactive-lab .sc-site-nav,
body.sc-page-architecture-review-lab .sc-site-nav {
  display: none !important;
}

/* Hide third-party chat widgets that overlap the lab helper */
body.sc-page-ai-prompt-injection-lab #tidio-chat,
body.sc-page-ai-prompt-injection-lab #tidio-chat-iframe,
body.sc-page-sql-injection-lab #tidio-chat,
body.sc-page-sql-injection-lab #tidio-chat-iframe,
body.sc-page-interactive-lab #tidio-chat,
body.sc-page-interactive-lab #tidio-chat-iframe,
body.sc-page-architecture-review-lab #tidio-chat,
body.sc-page-architecture-review-lab #tidio-chat-iframe,
body.sc-page-ai-prompt-injection-lab .crisp-client,
body.sc-page-sql-injection-lab .crisp-client,
body.sc-page-interactive-lab .crisp-client,
body.sc-page-architecture-review-lab .crisp-client,
body.sc-page-ai-prompt-injection-lab #hubspot-messages-iframe-container,
body.sc-page-sql-injection-lab #hubspot-messages-iframe-container,
body.sc-page-interactive-lab #hubspot-messages-iframe-container,
body.sc-page-architecture-review-lab #hubspot-messages-iframe-container {
  display: none !important;
}

body.sc-page-ai-prompt-injection-lab .sc-page-main,
body.sc-page-sql-injection-lab .sc-page-main,
body.sc-page-interactive-lab .sc-page-main,
body.sc-page-architecture-review-lab .sc-page-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.sc-page-ai-prompt-injection-lab .sc-site-footer,
body.sc-page-sql-injection-lab .sc-site-footer,
body.sc-page-interactive-lab .sc-site-footer,
body.sc-page-architecture-review-lab .sc-site-footer {
  display: none !important;
}

body.sc-page-labs-hub {
  background: var(--bg, #0b0c10);
  height: auto;
  max-height: none;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 !important;
  margin: 0 !important;
}

body.sc-page-labs-hub .sc-site-nav {
  display: block !important;
}

body.sc-page-labs-hub .sc-page-main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sc-pi-lab {
  --app-bg: #f4f5fa;
  --app-surface: #ffffff;
  --app-border: #e3e6ef;
  --app-text: #1c2430;
  --app-muted: #6b7482;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  color: var(--text, #c6ccd8);
  background: var(--bg, #0b0c10);
  isolation: isolate;
}

.sc-pi-lab-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  height: var(--lab-nav-h, 52px);
  padding: 0 18px;
  border-bottom: 1px solid var(--border, #272b36);
  background: rgba(16, 18, 25, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sc-pi-lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--heading, #fff) !important;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
}

.sc-pi-lab-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent, #6d7bff), var(--accent-2, #a855f7));
  font-size: 15px;
}

.sc-pi-lab-brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.sc-pi-lab-brand-text small {
  color: var(--muted, #78838f);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sc-pi-lab-all {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border, #272b36);
  border-radius: 999px;
  background: var(--panel, #15171f);
  color: var(--heading, #fff) !important;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sc-pi-lab-all:hover {
  border-color: var(--accent, #6d7bff);
  background: rgba(109, 123, 255, 0.12);
}

.sc-pi-lab-nav-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.sc-pi-lab-tag {
  margin-left: 0;
  padding: 6px 12px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-3, #c084fc);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sc-pi-lab-safety {
  color: var(--c-green, #4ade80);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sc-pi-lab-site-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 4px;
}

.sc-pi-lab-site-links a {
  color: var(--muted, #78838f) !important;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.sc-pi-lab-site-links a:hover {
  color: var(--heading, #fff) !important;
}

@media (max-width: 720px) {
  .sc-pi-lab-site-links {
    display: none;
  }

  .sc-pi-lab-all {
    padding: 7px 11px;
    font-size: 11px;
  }
}

.sc-pi-lab-exit {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--border, #272b36);
  border-radius: 10px;
  background: var(--panel, #15171f);
  color: var(--muted, #78838f) !important;
  font-size: 16px;
  line-height: 1;
  text-decoration: none !important;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sc-pi-lab-exit:hover {
  border-color: var(--accent, #6d7bff);
  background: rgba(109, 123, 255, 0.12);
  color: var(--heading, #fff) !important;
}

.sc-pi-lab,
.sc-pi-lab * {
  box-sizing: border-box;
}

.sc-pi-lab button,
.sc-pi-lab textarea {
  font-family: "Poppins", sans-serif;
}

.sc-pi-lab textarea {
  font-family: "Nunito", sans-serif;
}

.sc-pi-lab code,
.sc-pi-lab pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sc-pi-aurora {
  position: fixed;
  z-index: -1;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}

.sc-pi-aurora-a {
  top: -22%;
  left: -12%;
  background: radial-gradient(circle, rgba(109, 123, 255, 0.45) 0%, transparent 60%);
}

.sc-pi-aurora-b {
  right: -14%;
  bottom: -26%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38) 0%, transparent 60%);
}

/* Labs hub */
body.sc-page-labs-hub {
  background: var(--bg, #0b0c10);
}

.sc-labs-hub {
  position: relative;
  overflow: visible;
  padding-bottom: 64px;
  color: var(--text, #c6ccd8);
  background:
    radial-gradient(circle at 18% 0%, rgba(109, 123, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 14%, rgba(168, 85, 247, 0.16), transparent 34rem),
    var(--bg, #0b0c10);
}

.sc-labs-hero {
  padding: 52px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border, #272b36);
}

.sc-labs-hero .wrap {
  max-width: 808px;
}

.sc-labs-kicker,
.sc-labs-section-head span,
.sc-labs-status {
  color: var(--accent-3, #c084fc);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sc-labs-hero h1 {
  max-width: none;
  margin: 10px auto 18px;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sc-labs-hero p {
  max-width: 38rem;
  margin: 0 auto;
  color: #8b949e;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

.sc-labs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.sc-labs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--border, #272b36);
  border-radius: 999px;
  background: var(--panel, #15171f);
  color: var(--text, #c6ccd8) !important;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.18s var(--ease, ease), border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.sc-labs-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #6d7bff);
  color: var(--heading, #fff) !important;
}

.sc-labs-btn-primary {
  background: linear-gradient(90deg, #38b6ff, var(--accent, #6d7bff), var(--accent-3, #c084fc));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(109, 123, 255, 0.28);
}

.sc-labs-section {
  padding: clamp(48px, 7vw, 84px) 0;
}

.sc-labs-section-head {
  margin-bottom: 24px;
}

.sc-labs-section-head h2 {
  margin: 8px 0 0;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
}

.sc-labs-section-head > p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted, #78838f);
  line-height: 1.7;
}

.sc-labs-section.sc-labs-arch {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.04) 0%, transparent 42%), var(--bg-2, #101219);
  border-top: 1px solid var(--border, #272b36);
  border-bottom: 1px solid var(--border, #272b36);
}

.sc-labs-section-head-arch span {
  color: #22d3ee;
}

.sc-labs-grid-arch {
  max-width: none;
}

@media (min-width: 900px) {
  .sc-labs-grid-arch {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.sc-labs-card-arch .sc-labs-status {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.35);
}

.sc-labs-card-arch:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

.sc-labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
}

@media (max-width: 1100px) {
  .sc-labs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sc-labs-grid {
    grid-template-columns: 1fr;
  }
}

.sc-labs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 22px 22px 20px;
  border: 1px solid color-mix(in srgb, var(--border, #272b36) 88%, #6d7bff 12%);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(109, 123, 255, 0.09) 0%, transparent 42%),
    linear-gradient(320deg, rgba(168, 85, 247, 0.07) 0%, transparent 38%),
    color-mix(in srgb, var(--panel, #15171f) 92%, #0b0c10 8%);
  color: inherit !important;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease, ease), border-color 0.22s, box-shadow 0.22s;
}

.sc-labs-card-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(109, 123, 255, 0.22) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.22s, transform 0.22s;
}

.sc-labs-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent, #6d7bff) 55%, var(--border, #272b36) 45%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(109, 123, 255, 0.12);
}

.sc-labs-card:hover .sc-labs-card-glow {
  opacity: 0.9;
  transform: scale(1.08);
}

.sc-labs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.sc-labs-card-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border, #272b36);
  color: var(--muted, #78838f);
  font-size: 14px;
  transition: transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.sc-labs-card:hover .sc-labs-card-arrow {
  transform: translateX(2px);
  border-color: rgba(109, 123, 255, 0.45);
  color: var(--heading, #fff);
  background: rgba(109, 123, 255, 0.12);
}

.sc-labs-status {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--c-green, #4ade80);
  font-size: 10px;
  line-height: 1.2;
}

.sc-labs-icon-wrap {
  margin-bottom: 14px;
}

.sc-labs-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(109, 123, 255, 0.28);
  background: linear-gradient(145deg, rgba(109, 123, 255, 0.22), rgba(168, 85, 247, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 24px;
}

.sc-labs-card h3,
.sc-labs-roadmap h3 {
  margin: 0;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sc-labs-card p {
  margin: 10px 0 14px;
  color: var(--text, #c6ccd8);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-labs-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted, #78838f);
  font-size: 13px;
}

.sc-labs-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--c-green, #4ade80);
}

.sc-labs-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 123, 255, 0.18), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(109, 123, 255, 0.35);
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.sc-labs-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted, #78838f);
  font-size: 11px;
  font-weight: 700;
}

.sc-labs-progress[hidden] {
  display: none !important;
}

.sc-labs-progress::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--border, #272b36);
}

.sc-labs-progress-bar {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 0;
  height: 5px;
  border-radius: 999px;
  background: var(--accent, #6d7bff);
}

.sc-labs-progress-text {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.sc-labs-card.is-complete .sc-labs-progress-bar {
  background: var(--c-green, #4ade80);
}

.sc-labs-card:hover .sc-labs-cta {
  background: linear-gradient(90deg, rgba(109, 123, 255, 0.32), rgba(168, 85, 247, 0.24));
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-1px);
}

.sc-labs-card strong {
  display: none;
}

.sc-labs-learn {
  border-top: 1px solid var(--border, #272b36);
}

.sc-labs-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sc-labs-explainer article {
  padding: 22px;
  border: 1px solid var(--border, #272b36);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel, #15171f) 90%, transparent);
}

.sc-labs-explainer strong {
  color: var(--c-green, #4ade80);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.sc-labs-explainer h3 {
  margin: 12px 0 8px;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
}

.sc-labs-explainer p,
.sc-labs-safety-note {
  color: var(--text, #c6ccd8);
  line-height: 1.65;
}

.sc-labs-explainer p {
  margin: 0;
  font-size: 14px;
}

.sc-labs-safety-note {
  margin: 20px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 16px;
  background: rgba(74, 222, 128, 0.06);
}

.sc-labs-safety-note strong {
  color: var(--c-green, #4ade80);
}

.sc-labs-coming {
  border-top: 1px solid var(--border, #272b36);
  background: rgba(16, 18, 25, 0.42);
}

.sc-labs-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sc-labs-roadmap article {
  padding: 20px;
  border: 1px solid var(--border, #272b36);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel, #15171f) 86%, transparent);
}

.sc-labs-roadmap-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-labs-roadmap-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--border, #272b36);
  border-radius: 12px;
  background: rgba(109, 123, 255, 0.08);
  filter: grayscale(0.35);
}

.sc-labs-roadmap article span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent, #6d7bff);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.sc-labs-roadmap p {
  margin: 10px 0 0;
  color: var(--muted, #78838f);
  line-height: 1.6;
}

.sc-labs-roadmap small {
  display: block;
  margin-top: 14px;
  color: var(--muted, #78838f);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sc-labs-faq {
  border-top: 1px solid var(--border, #272b36);
}

.sc-labs-faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.sc-labs-faq-list details {
  border: 1px solid var(--border, #272b36);
  border-radius: 16px;
  background: var(--panel, #15171f);
}

.sc-labs-faq-list summary {
  padding: 18px 20px;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.sc-labs-faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text, #c6ccd8);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .sc-labs-explainer {
    grid-template-columns: 1fr;
  }
}

.sc-pi-shell {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
  background: var(--bg, #0b0c10);
}

.sc-pi-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel-2, #1b1e28);
  border-right: 1px solid var(--border, #272b36);
  overflow-x: hidden;
  overflow-y: auto;
}

.sc-pi-side-top {
  position: relative;
  z-index: 80;
  flex-shrink: 0;
  overflow: visible;
}

.sc-pi-side-head {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border, #272b36);
}

.sc-pi-back {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted, #78838f) !important;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.sc-pi-back:hover {
  color: var(--heading, #fff) !important;
}

.sc-pi-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.sc-page-ai-prompt-injection-lab .sc-pi-lab .sc-pi-side-title h1,
body.sc-page-sql-injection-lab .sc-pi-lab .sc-pi-side-title h1,
body.sc-page-interactive-lab .sc-pi-lab .sc-pi-side-title h1 {
  display: block;
  max-width: 220px;
  margin: 0 !important;
  color: var(--heading, #fff) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

body.sc-page-ai-prompt-injection-lab .sc-pi-lab .sc-pi-lesson h2,
body.sc-page-sql-injection-lab .sc-pi-lab .sc-pi-lesson h2,
body.sc-page-interactive-lab .sc-pi-lab .sc-pi-lesson h2 {
  margin: 0 0 12px !important;
  color: var(--heading, #fff) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
}

.sc-pi-progress-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 72px;
  justify-content: center;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent, #6d7bff);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 123, 255, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sc-pi-progress-btn:hover {
  background: color-mix(in srgb, var(--accent, #6d7bff) 88%, #fff 12%);
  box-shadow: 0 6px 16px rgba(109, 123, 255, 0.36);
}

.sc-pi-progress-btn:active {
  transform: translateY(1px);
}

.sc-pi-progress-btn .sc-pi-caret {
  transition: transform 0.2s var(--ease, ease);
}

.sc-pi-progress-btn.is-open .sc-pi-caret {
  transform: rotate(180deg);
}

.sc-pi-progress-track {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #272b36);
  border-radius: 999px;
  background: var(--bg-2, #101219);
}

.sc-pi-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #6d7bff), var(--accent-3, #c084fc));
  transition: width 0.5s var(--ease, ease);
}

.sc-pi-level-picker {
  position: relative;
  flex: 0 0 auto;
}

.sc-pi-level-picker > summary {
  list-style: none;
  cursor: pointer;
}

.sc-pi-level-picker > summary::-webkit-details-marker {
  display: none;
}

.sc-pi-level-picker[open] > summary .sc-pi-caret {
  transform: rotate(180deg);
}

.sc-pi-level-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 200;
  width: max(280px, 100%);
  max-height: min(420px, 58vh);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  border: 1px solid var(--border, #272b36);
  border-radius: 14px;
  background: var(--panel-2, #1b1e28);
  padding: 8px 10px 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
}

.sc-pi-level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 12px;
  background: rgba(109, 123, 255, 0.16);
  color: var(--text, #c6ccd8);
  text-align: left;
  margin-bottom: 6px;
  cursor: pointer;
}

.sc-pi-level-row:not(:disabled):hover {
  background: rgba(109, 123, 255, 0.24);
}

.sc-pi-level-row.is-solved:not(.is-active) {
  background: linear-gradient(90deg, rgba(109, 123, 255, 0.42), rgba(120, 132, 255, 0.28));
  border-left-color: transparent;
}

.sc-pi-level-row.is-active {
  background: rgba(109, 123, 255, 0.3);
  border-left-color: var(--accent, #6d7bff);
  box-shadow: inset 0 0 0 1px rgba(109, 123, 255, 0.35);
}

.sc-pi-level-row:disabled,
.sc-pi-level-row.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(109, 123, 255, 0.12);
}

.sc-pi-level-num {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border: 1px solid var(--border, #272b36);
  border-radius: 7px;
  background: var(--panel, #15171f);
  color: var(--muted, #78838f);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.sc-pi-level-row.is-solved .sc-pi-level-num {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sc-pi-level-row.is-active .sc-pi-level-num {
  background: var(--accent, #6d7bff);
  border-color: var(--accent, #6d7bff);
  color: #fff;
}

.sc-pi-level-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #dfe3ec;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-pi-level-state {
  color: var(--muted, #78838f);
  font-size: 14px;
}

.sc-pi-level-row.is-solved .sc-pi-level-state {
  color: var(--c-green, #4ade80);
}

.sc-pi-lesson {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.sc-pi-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-3, #c084fc);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sc-pi-lesson h2 {
  margin: 0 0 12px;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.sc-pi-lesson p,
.sc-pi-lesson .sc-pi-instructions-body {
  color: var(--text, #c6ccd8);
  font-size: 14.5px;
  line-height: 1.6;
}

.sc-pi-lesson p {
  margin: 0 0 15px;
}

.sc-pi-lesson b,
.sc-pi-lesson strong {
  color: var(--heading, #fff);
}

.hl-name {
  color: var(--c-cyan, #22d3ee);
  font-weight: 800;
}

.hl-you {
  color: var(--accent-3, #c084fc);
  font-weight: 800;
}

.sc-pi-goal {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--border, #272b36);
  border-left: 3px solid var(--accent, #6d7bff);
  border-radius: 11px;
  background: var(--bg-2, #101219);
}

.sc-pi-goal strong {
  display: block;
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sc-pi-goal span {
  color: var(--text, #c6ccd8);
  font-size: 14px;
}

.sc-pi-defenses {
  margin: 10px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-pi-defense-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(255, 90, 95, 0.3);
  border-radius: 7px;
  background: rgba(255, 90, 95, 0.09);
  color: #ff8a8d;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.sc-pi-system-peek summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.05);
  color: var(--c-cyan, #22d3ee);
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  list-style: none;
}

.sc-pi-system-peek summary::-webkit-details-marker {
  display: none;
}

.sc-pi-system-peek[open] summary {
  margin-bottom: 8px;
}

.sc-pi-system-peek pre {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--border, #272b36);
  border-radius: 10px;
  background: var(--bg-2, #101219);
  color: #b9c2d0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sc-pi-system-peek .hl {
  color: var(--c-yellow, #fbbf24);
}

.sc-pi-system-peek .redact {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 90, 95, 0.12);
  color: var(--c-red, #ff5a5f);
}

.sc-pi-instructions {
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid rgba(109, 123, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(109, 123, 255, 0.08);
}

.sc-pi-instructions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(109, 123, 255, 0.16), rgba(109, 123, 255, 0.06));
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

.sc-pi-help-chip {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border, #272b36);
  border-radius: 50%;
  color: var(--muted, #78838f);
  font-size: 11px;
}

.sc-pi-instructions-body {
  padding: 14px;
  line-height: 1.65;
  color: var(--text, #c6ccd8);
  font-size: 13.5px;
}

.sc-pi-instructions-body b {
  color: #fff;
  font-weight: 700;
}

.sc-pi-instructions-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(109, 123, 255, 0.12);
  color: #dbeafe;
  font-size: 12.5px;
}

.sc-lab-steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 10px;
}

.sc-lab-steps li {
  padding-left: 4px;
}

.sc-lab-steps li::marker {
  color: var(--accent, #6d7bff);
  font-weight: 700;
}

.sc-lab-where {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(109, 123, 255, 0.1);
  color: var(--text, #c6ccd8);
  font-size: 13px;
  line-height: 1.55;
}

.sc-lab-where-ic {
  margin-right: 4px;
}

.sc-lab-success {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #bbf7d0;
  font-size: 12.5px;
  line-height: 1.55;
}

.sc-lab-success strong {
  color: #4ade80;
}

.sc-lab-devnote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  font-size: 12px;
  line-height: 1.55;
}

.sc-lab-devnote strong {
  color: #c084fc;
}

.sc-lab-quickfill {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed rgba(109, 123, 255, 0.35);
  border-radius: 10px;
  background: rgba(16, 18, 25, 0.6);
}

.sc-lab-quickfill-head {
  margin-bottom: 8px;
  color: var(--muted, #78838f);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-lab-quickfill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-lab-quickfill-btn {
  padding: 7px 11px;
  border: 1px solid rgba(109, 123, 255, 0.35);
  border-radius: 999px;
  background: rgba(109, 123, 255, 0.12);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sc-lab-quickfill-btn:hover {
  background: rgba(109, 123, 255, 0.22);
  transform: translateY(-1px);
}

.sc-lab-quickfill-btn.is-danger {
  border-color: rgba(255, 90, 95, 0.35);
  background: rgba(255, 90, 95, 0.1);
  color: #fecaca;
}

.sc-lab-complete {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(109, 123, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08) inset;
}

.sc-lab-complete[hidden] {
  display: none !important;
}

.sc-lab-complete-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sc-lab-complete-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.sc-lab-complete-head strong {
  display: block;
  color: var(--c-green, #4ade80);
  font-size: 15px;
  margin-bottom: 4px;
}

.sc-lab-complete-head p {
  margin: 0;
  color: var(--muted, #78838f);
  font-size: 13px;
  line-height: 1.45;
}

.sc-lab-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sc-lab-retry-btn,
.sc-pi-next.is-retry {
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--accent, #6d7bff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 123, 255, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sc-lab-retry-btn:hover,
.sc-pi-next.is-retry:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.sc-lab-all-labs-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--border, #272b36);
  border-radius: 10px;
  color: var(--text, #e8eaed);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--panel, #15171f);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.sc-lab-all-labs-link:hover {
  border-color: rgba(109, 123, 255, 0.45);
  color: #fff;
}

.sc-lab-modal-retry[hidden],
.sc-pi-modal [hidden],
.sc-pi-btn-primary[hidden],
.sc-pi-btn-ghost[hidden] {
  display: none !important;
}

body.sc-lab-all-complete .sc-pi-side {
  box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.55);
}

.sc-pi-side-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--border, #272b36);
  background: var(--panel-2, #1b1e28);
}

.sc-pi-side-foot span {
  flex: 1 1 auto;
  color: var(--muted, #78838f);
  font-size: 12.5px;
}

.sc-pi-next,
.sc-pi-send,
.sc-pi-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--accent, #6d7bff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(109, 123, 255, 0.28);
  transition: transform 0.18s var(--ease, ease), filter 0.18s ease, opacity 0.18s ease;
}

.sc-pi-next {
  padding: 12px 22px;
  font-size: 14px;
}

.sc-pi-next:hover:not(:disabled),
.sc-pi-send:hover:not(:disabled),
.sc-pi-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.sc-pi-next:disabled,
.sc-pi-send:disabled {
  border: 1px solid var(--border, #272b36);
  background: var(--panel, #15171f);
  color: var(--muted, #78838f);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sc-pi-next.is-retry:disabled {
  opacity: 1;
  border: 0;
  background: var(--accent, #6d7bff);
  color: #fff;
  cursor: pointer;
}

.sc-pi-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
  padding: 8px;
  background: var(--bg, #0b0c10);
}

.sc-lab-stage-inspector {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #272b36;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1017;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.sc-lab-stage-inspector .sc-lab-insp-body {
  flex: 1 1 auto;
}

.sc-pi-browser {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border, #272b36);
  border-radius: 14px;
  background: var(--app-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.sc-pi-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 12px;
  border-bottom: 1px solid #1c1e28;
  background: linear-gradient(180deg, #303340, #272a36);
}

.sc-pi-dots {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.sc-pi-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sc-pi-dots i:nth-child(1) { background: #ff5f57; }
.sc-pi-dots i:nth-child(2) { background: #febc2e; }
.sc-pi-dots i:nth-child(3) { background: #28c840; }

.sc-pi-chrome-actions {
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}

.sc-pi-chrome-actions button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa0ad;
  font-size: 15px;
  line-height: 1;
}

.sc-pi-chrome-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sc-pi-urlbar {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin: 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: #191c27;
  color: #c6ccd8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 0 rgba(0, 0, 0, 0.3);
}

.sc-pi-urlbar span {
  color: var(--c-green, #4ade80);
  font-size: 12px;
  line-height: 1;
}

.sc-pi-urlbar code {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e6e9f2;
  font-size: 13px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-pi-app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--app-surface);
  color: var(--app-text);
}

.sc-pi-app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--app-border);
  background: #fff;
}

.sc-pi-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent, #6d7bff), var(--accent-2, #a855f7));
  font-size: 20px;
}

.sc-pi-bot-id {
  min-width: 0;
}

.sc-pi-bot-id strong {
  display: block;
  overflow: hidden;
  color: var(--app-text);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-pi-bot-id small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #12a150;
  font-size: 12px;
}

.sc-pi-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: scPiPulse 2s infinite;
}

@keyframes scPiPulse {
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sc-pi-app-tools {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.sc-pi-app-tools button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: #f1f2f7;
  color: var(--app-muted);
}

.sc-pi-app-tools button:hover {
  border-color: #c7ccdb;
  color: var(--app-text);
}

/* SQL Injection lab target app and code inspector */
.sc-sqli-app {
  background: #f7f8fc;
}

.sc-sqli-workspace {
  display: contents;
}

.sc-lab-app-body,
.sc-sqli-app-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sc-sqli-product {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 36px 24px 28px;
  background:
    linear-gradient(90deg, rgba(244, 245, 250, 0.96), rgba(244, 245, 250, 0.86)),
    radial-gradient(circle at 25% 20%, rgba(109, 123, 255, 0.12), transparent 28rem);
  border-right: 0;
}

.sc-sqli-inspector.sc-lab-inspector {
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.sc-sqli-tabs {
  padding: 0;
}

.sc-sqli-stack {
  width: min(420px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sc-sqli-card {
  width: 100%;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.06);
  padding: 28px;
}

.sc-sqli-card h2 {
  margin: 0 0 4px;
  color: var(--app-text);
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.sc-sqli-card .sc-sqli-sub {
  margin: 0 0 20px;
  color: var(--app-muted);
  font-size: 13px;
}

.sc-sqli-card-head {
  display: none;
}

.sc-sqli-form {
  display: grid;
  gap: 16px;
  padding: 0;
}

.sc-sqli-form label {
  display: grid;
  gap: 6px;
  color: var(--app-muted);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sc-sqli-form input,
.sc-sqli-form textarea {
  width: 100%;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #fbfbfe;
  color: var(--app-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  padding: 12px 14px;
}

.sc-sqli-form textarea {
  min-height: 78px;
  resize: vertical;
}

.sc-sqli-form input:focus,
.sc-sqli-form textarea:focus {
  outline: none;
  border-color: var(--accent, #6d7bff);
  box-shadow: 0 0 0 3px rgba(109, 123, 255, 0.18);
  background: #fff;
}

.sc-sqli-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--accent, #6d7bff);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(109, 123, 255, 0.25);
}

.sc-sqli-submit:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.sc-sqli-form label .sc-sqli-submit {
  margin-top: 0;
  background: #fff;
  color: var(--app-text, #1c2430);
  border: 1px solid var(--app-border, #e6e8ef);
  box-shadow: none;
  font-weight: 650;
}

.sc-sqli-form label .sc-sqli-submit:hover {
  filter: none;
  transform: none;
  border-color: var(--accent, #6d7bff);
  color: var(--accent, #6d7bff);
}

.sc-lab-mode {
  display: grid;
  gap: 8px;
}

.sc-lab-mode-label {
  color: var(--app-muted, #6b7280);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-lab-mode-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--app-border, #e6e8ef);
  border-radius: 12px;
  background: #f4f5f8;
}

.sc-lab-mode-switch button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--app-muted, #6b7280);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}

.sc-lab-mode-switch button.is-on {
  background: #fff;
  color: var(--app-text, #1c2430);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.sc-lab-mode-switch button.is-on[aria-pressed="true"]:last-child {
  color: #15803d;
}

.sc-sqli-result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.sc-sqli-result-ic {
  flex: none;
  font-size: 18px;
}

.sc-sqli-result-info {
  background: rgba(120, 131, 143, 0.1);
  border: 1px solid #d5d9e3;
  color: #5b6472;
}

.sc-sqli-result-ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #0b7a37;
}

.sc-sqli-result-breach {
  background: rgba(255, 90, 95, 0.12);
  border: 1px solid rgba(255, 90, 95, 0.45);
  color: #c0392b;
}

.sc-sqli-result-fail {
  background: rgba(120, 131, 143, 0.1);
  border: 1px solid #d5d9e3;
  color: #5b6472;
}

.sc-sqli-result .ok,
.sc-sqli-result-ok b {
  color: inherit;
  font-weight: 700;
}

.sc-sqli-result code {
  font-family: "JetBrains Mono", monospace;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
  color: inherit;
}

.sc-sqli-result-ok code {
  color: #0a5f2d;
  background: rgba(255, 255, 255, 0.72);
}

.sc-pi-template-chips button.is-danger,
.sc-pi-template-chips .is-danger {
  color: #c0392b;
  border-color: rgba(255, 90, 95, 0.4);
}

.sc-pi-template-chips button.is-danger:hover,
.sc-pi-template-chips .is-danger:hover {
  background: rgba(255, 90, 95, 0.08);
  border-color: rgba(255, 90, 95, 0.55);
  color: #c0392b;
}

/* legacy - examples live in helper bubble only */
.sc-sqli-examples {
  display: none !important;
}

/* legacy alias */
.sc-sqli-output {
  display: none;
}

.sc-sqli-inspector {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #10131d;
  color: #dce5f5;
}

/* Shared live inspector (all SecurityCipher labs) */
.sc-lab-inspector {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0e1017;
  color: #dce5f5;
  border-left: 1px solid #1a1e28;
}

.sc-lab-insp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 12px 0;
  border-bottom: 1px solid #272b36;
  background: #15171f;
}

.sc-lab-insp-tabs,
.sc-sqli-tabs {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
}

.sc-lab-insp-tabs button,
.sc-sqli-tabs button {
  border: 1px solid #2a3040;
  border-radius: 999px;
  background: #171b27;
  color: #8d97aa;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.sc-lab-insp-tabs button.is-active,
.sc-sqli-tabs button.is-active {
  background: var(--accent, #6d7bff);
  border-color: var(--accent, #6d7bff);
  color: #fff;
}

.sc-lab-insp-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #78838f;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sc-lab-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green, #4ade80);
  box-shadow: 0 0 8px var(--c-green, #4ade80);
  animation: scLabLiveBlink 1.4s infinite;
}

@keyframes scLabLiveBlink {
  50% { opacity: 0.35; }
}

.sc-lab-insp-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.sc-lab-pane {
  display: none;
}

.sc-lab-pane.is-active {
  display: block;
}

.sc-lab-built {
  background: #060811;
  border: 1px solid #272d3d;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.sc-lab-built.built .tok-data,
.sc-lab-built.built .tok-inject,
.sc-lab-built.built .tok-break,
.sc-lab-built.built .safe {
  animation: flashIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tok-kw {
  color: #c084fc;
  font-weight: 600;
}

.tok-app {
  color: #7f8aa3;
}

.tok-str {
  color: #86e1a0;
}

.tok-data {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border-radius: 3px;
  padding: 0 2px;
}

.tok-break {
  color: #fff;
  background: #ff5a5f;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 700;
}

.tok-inject {
  color: #ffb3b5;
  background: rgba(255, 90, 95, 0.16);
  border-radius: 3px;
  padding: 0 2px;
}

.safe {
  color: #86e1a0;
}

.ph {
  color: #4a5162;
  font-style: italic;
}

.cmt {
  color: #5f6b7a;
}

.fn {
  color: #8ec7ff;
}

.var {
  color: #e6e9f2;
}

@keyframes flashIn {
  0% {
    background: rgba(109, 123, 255, 0.55);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(109, 123, 255, 0.5);
  }

  100% {}
}

.sc-lab-exec {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #272d3d;
  background: rgba(120, 131, 143, 0.08);
  color: #9da8bc;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.sc-lab-exec-ic {
  flex: none;
  font-size: 15px;
}

.sc-lab-exec.is-breach {
  background: rgba(255, 90, 95, 0.08);
  border-color: rgba(255, 90, 95, 0.35);
  color: #ffb3b5;
}

.sc-lab-exec.is-ok {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  color: #a7f3c0;
}

.sc-lab-exec-ok {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  color: #a7f3c0;
}

.sc-lab-code-note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed #272d3d;
  color: #78838f;
  font-size: 12px;
  line-height: 1.5;
}

.sc-lab-insp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 14px;
  border-top: 1px solid #272b36;
  background: #15171f;
}

.sc-lab-insp-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #78838f;
  font-size: 11px;
}

.sc-lab-insp-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* AI chat app body fills browser column */
.sc-pi-chat-product {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.sc-pi-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 18px clamp(16px, 4%, 48px);
  background: var(--app-bg);
}

.sc-pi-msg {
  display: flex;
  gap: 11px;
  max-width: 78%;
  animation: scPiRise 0.3s var(--ease, ease);
}

@keyframes scPiRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.sc-pi-msg-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 9px;
}

.sc-pi-msg-body {
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14.5px;
  line-height: 1.55;
}

.sc-pi-msg-bot .sc-pi-msg-avatar {
  background: linear-gradient(135deg, var(--accent, #6d7bff), var(--accent-2, #a855f7));
  color: #fff;
}

.sc-pi-msg-bot .sc-pi-msg-body {
  border: 1px solid var(--app-border);
  border-top-left-radius: 4px;
  background: #fff;
  color: #26303c;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04);
}

.sc-pi-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.sc-pi-msg-user .sc-pi-msg-avatar {
  background: #e8eaf4;
  color: #4a4f66;
}

.sc-pi-msg-user .sc-pi-msg-body {
  border-top-right-radius: 4px;
  background: linear-gradient(135deg, var(--accent, #6d7bff), #7d6bff);
  color: #fff;
}

.sc-pi-msg-system {
  align-self: center;
  max-width: 100%;
}

.sc-pi-msg-system .sc-pi-msg-body {
  border: 1px dashed #cfd4e2;
  background: transparent;
  color: #8a92a3;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-align: center;
}

.leak-token {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.14);
  color: #0b8a3e;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.blocked-note {
  color: #c0392b;
}

.sc-pi-typing {
  display: inline-flex;
  gap: 4px;
  padding: 3px 2px;
}

.sc-pi-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b7bdca;
  animation: scPiBlink 1.2s infinite both;
}

.sc-pi-typing i:nth-child(2) { animation-delay: 0.2s; }
.sc-pi-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes scPiBlink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.sc-pi-composer {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 10px clamp(16px, 4%, 48px);
  border-top: 1px solid var(--app-border);
  background: #fff;
}

.sc-pi-composer textarea {
  flex: 1 1 auto;
  min-height: 48px;
  max-height: 140px;
  padding: 13px 16px;
  resize: none;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #f6f7fb;
  color: var(--app-text);
  font-size: 14.5px;
}

.sc-pi-composer textarea:focus {
  outline: none;
  border-color: var(--accent, #6d7bff);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 123, 255, 0.18);
}

.sc-pi-composer textarea::placeholder {
  color: #a2a9b8;
}

.sc-pi-send {
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

.sc-pi-helper {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

body.sc-page-interactive-lab .sc-pi-helper {
  display: none !important;
}

.sc-pi-lab .sc-pi-helper-lab,
#sc-ai-prompt-injection-lab .sc-pi-helper-ai {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50000;
  pointer-events: none;
}

body.admin-bar .sc-pi-lab .sc-pi-helper-lab,
body.admin-bar #sc-ai-prompt-injection-lab .sc-pi-helper-ai {
  bottom: 38px;
}

.sc-pi-lab .sc-pi-helper-lab .sc-pi-helper-orb,
.sc-pi-lab .sc-pi-helper-lab .sc-pi-helper-pop,
.sc-pi-lab .sc-pi-helper-lab .sc-pi-helper-tip,
#sc-ai-prompt-injection-lab .sc-pi-helper-ai .sc-pi-helper-orb,
#sc-ai-prompt-injection-lab .sc-pi-helper-ai .sc-pi-helper-pop,
#sc-ai-prompt-injection-lab .sc-pi-helper-ai .sc-pi-helper-tip {
  pointer-events: auto;
}

.sc-pi-helper-orb {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #6d7bff), var(--accent-2, #a855f7));
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 26px rgba(109, 123, 255, 0.5);
  transition: transform 0.2s var(--ease, ease);
}

.sc-pi-helper-orb:hover {
  transform: scale(1.08) rotate(-4deg);
}

.sc-pi-helper-orb i {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--app-bg);
  border-radius: 50%;
  background: var(--c-yellow, #fbbf24);
  animation: scPiBob 2.4s ease-in-out infinite;
}

@keyframes scPiBob {
  50% { transform: translateY(-3px); }
}

.sc-pi-helper-tip {
  max-width: 230px;
  padding: 8px 13px;
  border: 1px solid var(--border, #272b36);
  border-radius: 11px;
  background: #111420;
  color: #e6e9f2;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: opacity 0.6s ease;
}

.sc-pi-helper-pop {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  max-width: 78vw;
  overflow: hidden;
  border: 1px solid var(--border, #272b36);
  border-radius: 16px;
  background: var(--panel, #15171f);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  animation: scPiRise 0.25s var(--ease, ease);
}

.sc-pi-helper-pop[hidden] {
  display: none !important;
}

.sc-pi-helper-pop header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #272b36);
  background: var(--panel-2, #1b1e28);
}

.sc-pi-helper-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent, #6d7bff), var(--accent-2, #a855f7));
}

.sc-pi-helper-pop header strong,
.sc-pi-helper-pop header small {
  display: block;
}

.sc-pi-helper-pop header strong {
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.sc-pi-helper-pop header small {
  color: var(--muted, #78838f);
  font-size: 11.5px;
}

.sc-pi-helper-pop header button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted, #78838f);
  font-size: 20px;
}

.sc-pi-helper-pop header button:hover {
  color: #fff;
}

.sc-pi-helper-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
}

.sc-pi-helper-intro {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.07);
  color: var(--text, #c6ccd8);
  font-size: 13px;
}

.sc-pi-helper-intro strong {
  color: var(--c-yellow, #fbbf24);
}

.sc-pi-helper-body section {
  margin-bottom: 16px;
}

.sc-pi-helper-body section:last-child {
  margin-bottom: 0;
}

.sc-pi-helper-body h3 {
  margin: 0 0 9px;
  color: var(--muted, #78838f);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sc-pi-helper-body p,
.sc-pi-hint-full {
  color: var(--text, #c6ccd8);
  font-size: 13.5px;
  line-height: 1.55;
}

.sc-pi-helper-body p {
  margin: 0 0 10px;
  color: #e7dfc4;
}

.sc-pi-hint-full {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(251, 191, 36, 0.3);
}

.sc-pi-mini-btn,
.sc-pi-template-chips button {
  border: 1px solid var(--border, #272b36);
  border-radius: 999px;
  background: transparent;
  color: var(--text, #c6ccd8);
  font-size: 12px;
  font-weight: 700;
}

.sc-pi-mini-btn {
  padding: 6px 13px;
}

.sc-pi-mini-btn:hover {
  border-color: var(--accent-2, #a855f7);
  color: #fff;
}

.sc-pi-helper-fill-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(109, 123, 255, 0.28);
  background: rgba(109, 123, 255, 0.08);
  color: var(--accent-3, #c084fc);
  font-size: 12px;
  line-height: 1.45;
}

.sc-pi-template-chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sc-pi-template-chips button {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-2, #101219);
  text-align: left;
  transition: transform 0.15s var(--ease, ease), border-color 0.15s ease, color 0.15s ease;
}

.sc-pi-template-chips button:hover {
  transform: translateX(2px);
  border-color: var(--accent-2, #a855f7);
  color: #fff;
}

.sc-pi-detect {
  padding: 9px 11px;
  border: 1px solid var(--border, #272b36);
  border-radius: 9px;
  background: var(--bg-2, #101219);
  color: var(--muted, #78838f);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  line-height: 1.5;
}

.sc-pi-detect .k { color: var(--accent-3, #c084fc); }
.sc-pi-detect .hit { color: #ff8a8d; }
.sc-pi-detect .ok { color: var(--c-green, #4ade80); }
.sc-pi-detect .warn { color: var(--c-yellow, #fbbf24); }

.sc-pi-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sc-pi-modal[hidden] {
  display: none !important;
}

.sc-pi-modal-card {
  width: min(680px, 100%);
  padding: 30px;
  border: 1px solid var(--border, #272b36);
  border-radius: var(--radius, 16px);
  background: var(--panel, #15171f);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.sc-pi-modal-tick {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(74, 222, 128, 0.5);
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: var(--c-green, #4ade80);
  font-size: 32px;
}

.sc-pi-modal h2 {
  margin: 0 0 8px;
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 23px;
}

.sc-pi-modal p {
  margin: 0 0 18px;
  color: var(--text, #c6ccd8);
  font-size: 14.5px;
  line-height: 1.6;
}

.sc-lab-debrief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  text-align: left;
}

.sc-lab-debrief section {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border, #272b36);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.sc-lab-debrief strong {
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-lab-debrief span {
  color: var(--text, #c6ccd8);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .sc-lab-debrief {
    grid-template-columns: 1fr;
  }
}

.sc-pi-flag {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px dashed rgba(74, 222, 128, 0.4);
  border-radius: 10px;
  background: var(--bg-2, #101219);
  color: var(--c-green, #4ade80);
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  word-break: break-all;
}

.sc-pi-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sc-pi-btn-primary,
.sc-pi-btn-ghost {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.sc-pi-btn-ghost {
  border: 1px solid var(--border, #272b36);
  background: transparent;
  color: var(--text, #c6ccd8);
}

.sc-pi-btn-ghost:hover {
  border-color: var(--accent, #6d7bff);
  color: #fff;
}

.sc-pi-confetti {
  position: fixed;
  top: -12px;
  z-index: 120000;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
}

body.sc-pi-focus .sc-pi-side {
  display: none;
}

body.sc-pi-focus .sc-pi-shell {
  grid-template-columns: 1fr;
}

body.sc-pi-focus .sc-lab-stage-inspector {
  display: none;
}

body.sc-pi-focus .sc-pi-stage {
  grid-template-columns: 1fr;
}

body.sc-pi-focus .sc-pi-stage {
  padding: 0;
}

body.sc-pi-focus .sc-pi-browser {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.sc-pi-focus .sc-pi-chrome {
  display: none;
}

.sc-pi-lab button:focus-visible,
.sc-pi-lab a:focus-visible,
.sc-pi-lab textarea:focus-visible {
  outline: 3px solid rgba(109, 123, 255, 0.65);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  body.sc-page-ai-prompt-injection-lab,
  body.sc-page-sql-injection-lab,
  body.sc-page-interactive-lab {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  body.admin-bar.sc-page-ai-prompt-injection-lab,
  body.admin-bar.sc-page-sql-injection-lab,
  body.admin-bar.sc-page-interactive-lab {
    padding-top: 46px !important;
  }

  .sc-pi-lab {
    height: auto;
    max-height: none;
    overflow: visible;
    flex: none;
  }

  .sc-pi-shell {
    display: block;
    height: auto;
    min-height: 0;
  }

  .sc-pi-side {
    border-right: 0;
    border-bottom: 1px solid var(--border, #272b36);
  }

  .sc-pi-lesson {
    max-height: none;
  }

  .sc-pi-stage {
    height: 80vh;
    min-height: 620px;
    padding: 12px;
  }

  .sc-sqli-workspace {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .sc-pi-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
  }

  .sc-lab-stage-inspector {
    max-height: 360px;
  }

  .sc-pi-inspector.sc-lab-inspector,
  .sc-sqli-inspector.sc-lab-inspector {
    position: static;
    max-height: none;
    min-height: 320px;
    box-shadow: none;
  }

  .sc-pi-messages,
  .sc-sqli-product,
  .sc-clickjack-stage {
    padding-right: clamp(16px, 4%, 48px);
  }

  .sc-pi-helper {
    right: 18px;
    bottom: 18px;
  }

  .sc-labs-grid,
  .sc-labs-roadmap {
    grid-template-columns: 1fr;
  }

  .sc-labs-card {
    min-height: 0;
  }

}

@media (max-width: 640px) {
  .sc-pi-tag {
    display: none;
  }

  .sc-pi-stage {
    min-height: 580px;
  }

  .sc-pi-messages {
    padding: 18px 14px;
  }

  .sc-pi-msg {
    max-width: 92%;
  }

  .sc-pi-composer {
    padding: 12px;
  }

  .sc-pi-send {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-pi-lab *,
  .sc-pi-lab *::before,
  .sc-pi-lab *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sc-lab-built.built .tok-data,
  .sc-lab-built.built .tok-inject,
  .sc-lab-built.built .tok-break,
  .sc-lab-built.built .safe {
    animation: none !important;
  }

  .sc-pi-confetti {
    display: none !important;
  }
}

/* Clickjacking lab stage body */
.sc-clickjack-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 28px 24px;
  background: linear-gradient(180deg, #f7f8fc, #eef0f7);
}

.sc-clickjack-demo {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 320px;
}

.sc-clickjack-bank {
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.08);
}

.sc-clickjack-bank h2 {
  margin: 0 0 8px;
  color: var(--app-text);
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

.sc-clickjack-bank p {
  margin: 0 0 18px;
  color: var(--app-muted);
  font-size: 14px;
}

.sc-clickjack-transfer {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent, #6d7bff);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sc-clickjack-overlay {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255, 90, 95, 0.55);
  border-radius: 16px;
  background: rgba(255, 90, 95, 0.08);
  pointer-events: none;
}

.sc-clickjack-decoy {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  opacity: 0.35;
  pointer-events: none;
}

.sc-clickjack-frame {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: #fff;
  font-size: 13px;
  color: var(--app-muted);
}

.sc-clickjack-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sc-clickjack-toggle button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--app-border);
  background: #fff;
  color: var(--app-text);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sc-clickjack-toggle button.is-on {
  border-color: var(--accent, #6d7bff);
  background: rgba(109, 123, 255, 0.12);
  color: var(--accent, #6d7bff);
}

/* XSS sandbox preview */
.sc-xss-preview-wrap {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fbfbfe;
}

.sc-xss-preview-wrap h3 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sc-xss-preview {
  min-height: 72px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #d5d9e3;
  background: #fff;
  color: var(--app-text);
  font-family: "Nunito", sans-serif;
  font-size: 15px;
}

.sc-xss-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 90, 95, 0.12);
  border: 1px solid rgba(255, 90, 95, 0.35);
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
}
