* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navigation-offset, 96px);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #07111f;
  color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */

.navbar {
  width: 100%;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  color: #38bdf8;
}

.logo img {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 14px;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* Hero */

.hero {
  min-height: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background:
    radial-gradient(circle at 50% 35%, #12345a 0%, #07111f 55%, #050b14 100%);
}

.hero-content {
  max-width: 850px;
}

.eyebrow,
.section-label {
  color: #38bdf8;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 82px);
  line-height: 1.05;
  margin-bottom: 25px;
}

.hero h1 span {
  color: #38bdf8;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto 35px;
  color: #cbd5e1;
  font-size: 19px;
}

/* Hero Buttons */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */

.primary-button,
.secondary-button {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.2s ease;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.primary-button {
  background: #38bdf8;
  color: #07111f;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.primary-button:hover {
  transform: translateY(-3px);
  background: #7dd3fc;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
}

.secondary-button {
  border: 1px solid #38bdf8;
  color: #38bdf8;
  background: transparent;
}

.secondary-button:hover {
  background: #38bdf8;
  color: #07111f;
  transform: translateY(-3px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

.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; }

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

/* Sections */

.section {
  padding: 100px 7%;
  text-align: center;
  background: #0b1728;
}

.dark-section {
  background: #07111f;
}

.section h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 45px;
  color: #94a3b8;
  font-size: 18px;
}

/* Cards */

.cards {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  text-align: left;
  padding: 30px;
  background: linear-gradient(145deg, #111f33, #0d1a2c);
  border: 1px solid #1e3a56;
  border-radius: 12px;
  transition: 0.25s ease;
}

a.card:hover,
button.card:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 20px;
}

/* Pricing and hosted-checkout handoff */
.pricing-section { scroll-margin-top: var(--navigation-offset, 96px); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1120px; margin: 0 auto; text-align: left; }
.pricing-card { display: flex; min-width: 0; flex-direction: column; position: relative; }
.pricing-card-best { border-color: #38bdf8; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .28); }
.best-value-label { align-self: flex-start; margin: -8px 0 8px; padding: 3px 10px; border-radius: 999px; background: #12345a; color: #bae6fd; font-size: 13px; font-weight: 700; }
.plan-price { margin: 4px 0 14px; color: #fff; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.plan-period { color: #cbd5e1; font-size: 1rem; font-weight: 400; }
.plan-features { display: grid; gap: 9px; margin: 18px 0; padding-left: 1.25rem; color: #cbd5e1; }
.plan-features li::marker { color: #38bdf8; }
.plan-note, .pricing-transparency { color: #cbd5e1; font-size: .94rem; }
.pricing-card .primary-button { align-self: flex-start; margin-top: auto; }
.pricing-transparency { max-width: 780px; margin: 28px auto 0; }
.plan-coming-soon { align-self: flex-start; margin-top: auto; padding: 10px 16px; border: 1px solid #64748b; border-radius: 8px; color: #e2e8f0; font-weight: 700; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pricing-card-best { grid-column: 1 / -1; } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } .pricing-card-best { grid-column: auto; } .pricing-card { padding: 23px; } .pricing-card .primary-button { width: 100%; } }

/* Better Hacker Pro Cybersecurity Jobs preview (sample data only). */
.pro-jobs-experience { margin-top: 38px; padding: clamp(18px, 4vw, 30px); border: 1px solid #1e3a56; border-radius: 14px; background: #081422; text-align: left; scroll-margin-top: var(--navigation-offset, 96px); }
.pro-jobs-experience > h3 { margin: 0 0 10px; color: #7dd3fc; font-size: clamp(1.5rem, 3vw, 2rem); }
.pro-jobs-intro, .jobs-entitlement-note, .jobs-matching-help { color: #cbd5e1; }
.jobs-demo-notice { margin: 18px 0 10px; padding: 14px 16px; border-left: 4px solid #facc15; background: #182132; color: #fff; }
.jobs-filter-group { min-width: 0; margin: 22px 0; padding: 18px; border: 1px solid #334155; border-radius: 10px; }
.jobs-filter-group legend { padding: 0 8px; color: #e0f2fe; font-weight: 700; }
.jobs-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jobs-filter-grid label { display: grid; align-content: start; gap: 6px; color: #e2e8f0; font-weight: 700; }
.jobs-filter-grid input, .jobs-filter-grid select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #64748b; border-radius: 7px; background: #050b14; color: #fff; font: inherit; }
.jobs-results-status { min-height: 1.5em; color: #bae6fd; font-weight: 700; }
.jobs-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jobs-card { display: flex; min-width: 0; flex-direction: column; padding: 20px; border: 1px solid #29435e; border-radius: 12px; background: #0b1728; }
.jobs-status-badge { align-self: flex-start; margin: 0 0 10px; padding: 4px 8px; border-radius: 5px; background: #43320c; color: #fde68a; font-size: .78rem; font-weight: 800; letter-spacing: .025em; }
.jobs-card-title { margin: 0 0 7px; overflow-wrap: anywhere; color: #fff; }
.jobs-employer-location, .jobs-meta, .jobs-source { color: #cbd5e1; overflow-wrap: anywhere; }
.jobs-description, .jobs-description-missing, .jobs-portfolio-empty, .jobs-freshness-note { color: #cbd5e1; overflow-wrap: anywhere; }
.jobs-freshness-note { margin: 8px 0; font-size: .94rem; }
.jobs-status-current { border-left: 4px solid #86efac; }
.jobs-status-stale { border-left: 4px solid #fde68a; }
.jobs-status-unknown { border-left: 4px solid #93c5fd; }
.jobs-status-expired, .jobs-status-removed { border-left: 4px solid #fca5a5; }
.jobs-mapped-skill-summary { color: #cbd5e1; overflow-wrap: anywhere; }
.jobs-details { min-width: 0; margin: 8px 0 12px; }
.jobs-details summary { display: flex; align-items: center; min-height: 44px; color: #7dd3fc; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.jobs-details > * { min-width: 0; overflow-wrap: anywhere; }
.jobs-skill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 12px; padding: 0; list-style: none; }
.jobs-skill-list li { padding: 4px 8px; border: 1px solid #334155; border-radius: 999px; color: #e0f2fe; font-size: .86rem; }
.jobs-match-summary { margin-top: auto; padding-top: 10px; color: #bae6fd; font-weight: 700; }
.jobs-match-heading, .jobs-match-subheading { margin: 12px 0 6px; color: #e0f2fe; }
.jobs-evidence-empty, .jobs-match-disclaimer { color: #cbd5e1; font-size: .93rem; }
.jobs-evidence-list { margin: 4px 0 8px; padding-left: 1.4rem; color: #e2e8f0; }
.jobs-evidence-list li { margin: 5px 0; overflow-wrap: anywhere; }
.jobs-evidence-list a { display: inline-block; min-height: 36px; padding: 6px 0; color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }
.jobs-readiness-list li, .jobs-source-skill-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.jobs-readiness-skill { font-weight: 700; }
.jobs-readiness-status { display: inline-block; width: fit-content; padding: 2px 8px; border: 1px solid #64748b; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.jobs-readiness-demonstrated { border-color: #86efac; }
.jobs-readiness-developing { border-color: #fde68a; }
.jobs-readiness-gap { border-color: #fca5a5; }
.jobs-readiness-detail, .jobs-readiness-list a { grid-column: 1 / -1; }
.jobs-portfolio-evidence li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.jobs-portfolio-view { min-height: 36px; color: #7dd3fc; background: transparent; border: 1px solid #45627d; border-radius: 6px; padding: 6px 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jobs-demo-card-note, .jobs-no-application { color: #fde68a; }
.jobs-apply-link { align-self: flex-start; min-height: 44px; margin: 6px 0; white-space: normal; overflow-wrap: anywhere; }
.jobs-retry { min-height: 44px; margin-bottom: 14px; }
.jobs-empty-state { grid-column: 1 / -1; padding: 18px; border: 1px dashed #64748b; border-radius: 10px; color: #e2e8f0; }
.jobs-matching-help { margin-top: 22px; }
.jobs-matching-help summary { min-height: 44px; display: flex; align-items: center; color: #7dd3fc; font-weight: 700; cursor: pointer; }
.jobs-matching-help p { max-width: 80ch; }
.pro-jobs-experience :focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
@media (max-width: 760px) { .jobs-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jobs-results { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .jobs-filter-grid { grid-template-columns: minmax(0, 1fr); } .jobs-filter-group { padding: 13px; } .jobs-card { padding: 17px; } .jobs-apply-link { width: 100%; justify-content: center; } }

.card p {
  color: #94a3b8;
}

/* Platform entry points reuse the established card treatment as navigation. */
.platform-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  color: inherit;
}

.platform-entry-card:focus-visible {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.platform-entry-action {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.platform-entry-card:hover .platform-entry-action,
.platform-entry-card:focus-visible .platform-entry-action {
  color: #ffffff;
}

/* =========================
   INTERACTIVE LABS
========================= */

#labs {
  position: relative;
}

.lab-start-button {
  margin-top: 5px;
  min-width: 230px;
}

#lab-progress {
  font-weight: bold;
  letter-spacing: 1px;
}

.lab-challenge {
  max-width: 750px;
  margin: 35px auto 0;
  padding: 35px;
  text-align: left;
  background: linear-gradient(145deg, #0d1a2c, #091525);
  border: 1px solid #38bdf8;
  border-radius: 14px;
  box-shadow:
    0 0 30px rgba(56, 189, 248, 0.08),
    0 15px 40px rgba(0, 0, 0, 0.3);
  animation: labAppear 0.3s ease;
}

.lab-challenge h3 {
  color: #38bdf8;
  font-size: 24px;
  margin-bottom: 18px;
}

.lab-challenge p {
  color: #cbd5e1;
  margin-bottom: 18px;
}

.lab-challenge strong {
  color: #ffffff;
}

#lab-answer {
  width: 100%;
  padding: 15px;
  margin: 5px 0 10px;
  border-radius: 8px;
  border: 1px solid #1e3a56;
  background: #050b14;
  color: #ffffff;
  font-size: 16px;
}

#lab-answer:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

#lab-answer::placeholder {
  color: #64748b;
}

#submit-answer,
#hint-button {
  margin-right: 10px;
}

#lab-result {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  background: #07111f;
  font-weight: bold;
  min-height: 20px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Lab Animation */

@keyframes labAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AI Coach */

.coach-box {
  max-width: 700px;
  margin: auto;
  padding: 40px;
  border: 1px solid #1e3a56;
  border-radius: 14px;
  background: linear-gradient(145deg, #111f33, #0d1a2c);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.coach-box h3 {
  color: #38bdf8;
  font-size: 25px;
  margin-bottom: 12px;
}

.coach-box p {
  color: #94a3b8;
}

.coach-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.coach-features span {
  padding: 12px;
  background: #0b1728;
  border: 1px solid #1e3a56;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

/* CTA */

.cta-section {
  background:
    radial-gradient(circle at center, #12345a 0%, #07111f 70%);
  border-top: 1px solid #1e3a56;
}

.cta-section h2 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

footer {
  text-align: center;
  padding: 40px 20px;
  background: #050b14;
  border-top: 1px solid #1e293b;
}

footer p {
  margin-top: 10px;
  color: #94a3b8;
}

/* Selection */

::selection {
  background: #38bdf8;
  color: #07111f;
}

/* Mobile */

@media (max-width: 700px) {

  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 18px 20px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    min-height: 550px;
    padding: 70px 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section {
    padding: 70px 20px;
  }

  .section h2 {
    font-size: 32px;
  }

  .section-intro {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .coach-features {
    grid-template-columns: 1fr;
  }

  .coach-box {
    padding: 28px 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 260px;
  }

  /* Mobile Labs */

  .lab-challenge {
    padding: 25px 20px;
  }

  .lab-challenge h3 {
    font-size: 21px;
  }

  #submit-answer,
  #hint-button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
  }

}/* =========================
   AI COACH INTERFACE
========================= */

.coach-interface {
  margin-top: 35px;
  padding: 25px;
  background: #07111f;
  border: 1px solid #1e3a56;
  border-radius: 12px;
  text-align: left;
}

/* Learner Portfolio */
.portfolio-dashboard-prompt { margin-top: 18px; padding: 18px 22px; border-left: 4px solid #facc15; background: #07111f; }
.portfolio-dashboard-prompt h3 { margin: 0 0 6px; }
.dashboard-card > span { display: block; margin-top: 5px; color: #cbd5e1; }
.portfolio-status { min-height: 1.5em; font-weight: 700; color: #86efac; }
.portfolio-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.5fr); gap: 28px; align-items: start; }
.portfolio-eligible-panel, .portfolio-builder, .portfolio-card, .portfolio-empty { padding: 24px; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 8px 28px rgba(15,23,42,.08); }
.portfolio-eligible-panel { position: sticky; top: 100px; }
.portfolio-eligible-panel ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.portfolio-eligible-panel li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.portfolio-eligible-panel li > span { min-width: 0; overflow-wrap: anywhere; }
.portfolio-eligible-panel small { display: block; margin-top: 3px; color: #475569; }
.portfolio-eligible-panel button { flex: 0 0 auto; padding: 9px 12px; }
.portfolio-eligible-panel .secondary-button { color: #075985; border-color: #075985; }
.portfolio-eligible-panel .secondary-button:hover { color: #07111f; }
.portfolio-eligible-panel button:disabled { opacity: 1; color: #475569; background: #e2e8f0; border-color: #64748b; }
#portfolio :focus-visible { outline-color: #0284c7; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.portfolio-card { display: flex; flex-direction: column; min-width: 0; }
.portfolio-card h3 { margin: 4px 0 10px; }
.portfolio-card p { overflow-wrap: anywhere; }
.portfolio-type { margin: 0; color: #0369a1; font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.readiness { align-self: flex-start; margin-top: auto; padding: 6px 10px; border-radius: 999px; font-weight: 800; }
.readiness-draft { background: #e2e8f0; color: #334155; }
.readiness-almost-ready { background: #fef3c7; color: #854d0e; }
.readiness-portfolio-ready { background: #dcfce7; color: #166534; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.portfolio-actions button { min-height: 44px; padding: 9px 13px; border: 2px solid #075985; border-radius: 7px; background: #fff; color: #075985; cursor: pointer; font-weight: 700; }
.portfolio-actions button:hover, .portfolio-actions button:focus-visible { background: #e0f2fe; }
.portfolio-builder { margin-top: 30px; scroll-margin-top: 100px; }
.portfolio-builder[hidden], .readme-preview[hidden] { display: none; }
.portfolio-builder-head { display: flex; justify-content: space-between; gap: 20px; }
.portfolio-builder-head [data-portfolio-close] { width: 44px; height: 44px; border: 0; background: transparent; color: #0f172a; font-size: 2rem; cursor: pointer; }
.readiness-panel, .authored-info { margin: 18px 0; padding: 16px; border-left: 4px solid #0284c7; background: #f0f9ff; }
.authored-info strong { color: #075985; }
#portfolio-form { display: grid; gap: 16px; }
#portfolio-form label { display: grid; gap: 6px; color: #0f172a; font-weight: 700; }
#portfolio-form input, #portfolio-form textarea { width: 100%; padding: 11px; border: 1px solid #64748b; border-radius: 7px; background: #fff; color: #0f172a; font: inherit; }
.learner-label { margin-bottom: 0; padding: 12px; border-left: 4px solid #7c3aed; background: #f5f3ff; }
.project-detail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; }
.project-detail section { border-bottom: 1px solid #e2e8f0; }
.project-detail h4 { margin-bottom: 5px; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.readme-preview { margin-top: 24px; }
.readme-preview pre { max-height: 520px; overflow: auto; padding: 18px; border-radius: 8px; background: #07111f; color: #e0f2fe; white-space: pre-wrap; }
@media (max-width: 800px) {
  .portfolio-layout, .portfolio-grid, .project-detail { grid-template-columns: 1fr; }
  .portfolio-eligible-panel { position: static; }
}
@media (max-width: 480px) {
  .portfolio-eligible-panel li { align-items: stretch; flex-direction: column; }
  .portfolio-actions > *, .portfolio-eligible-panel button { width: 100%; }
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1e293b;
}

.coach-status {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.coach-online {
  margin-left: auto;
  color: #22c55e;
  font-size: 13px;
}

.coach-question {
  margin: 25px 0 15px;
  color: #cbd5e1;
  font-weight: bold;
}

.coach-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.coach-topic {
  padding: 15px;
  background: #111f33;
  border: 1px solid #1e3a56;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.coach-topic:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}

.coach-response {
  margin-top: 20px;
  padding: 22px;
  background: #0b1728;
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  min-height: 100px;
}

.coach-response h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.coach-response p {
  color: #94a3b8;
}

.coach-next {
  margin-top: 18px;
  padding: 15px;
  background: #07111f;
  border: 1px solid #1e3a56;
  border-radius: 8px;
}

.coach-next strong {
  color: #ffffff;
}

.coach-next p {
  margin-top: 6px;
}


/* Mobile Coach */

@media (max-width: 700px) {

  .coach-topics {
    grid-template-columns: 1fr;
  }

  .coach-header {
    flex-wrap: wrap;
  }

  .coach-online {
    margin-left: 0;
    width: 100%;
  }

}
/* =========================
   LESSON SYSTEM
========================= */

.lesson-card {
  display: block;
  color: inherit;
}

.lesson-link {
  display: inline-block;
  margin-top: 18px;
  color: #38bdf8;
  font-weight: bold;
}

.lesson-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}

.lesson-block {
  margin-bottom: 25px;
  padding: 28px;
  background: linear-gradient(145deg, #111f33, #0d1a2c);
  border: 1px solid #1e3a56;
  border-radius: 12px;
}

.lesson-block h3 {
  margin-bottom: 15px;
  color: #38bdf8;
}

.lesson-block p {
  color: #cbd5e1;
}

.command-list {
  display: grid;
  gap: 12px;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: #07111f;
  border: 1px solid #1e293b;
  border-radius: 8px;
}

.command-item code,
.lesson-block pre {
  color: #38bdf8;
}

.lesson-block pre {
  margin-top: 15px;
  padding: 15px;
  background: #050b14;
  border-radius: 8px;
  overflow-x: auto;
}

#linux-check-answer {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid #1e3a56;
  background: #050b14;
  color: white;
  font-size: 16px;
}

#linux-check-answer:focus {
  border-color: #38bdf8;
}

#linux-check-result {
  margin-top: 15px;
  font-weight: bold;
}

.lesson-finish {
  text-align: center;
}

@media (max-width: 700px) {
  .command-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .lesson-block {
    padding: 22px 18px;
  }
}
/* Lesson Completion Badge */

.lesson-complete-badge {
  max-width: 850px;
  margin: 0 auto 25px;
  padding: 14px 20px;
  background: #0d1a2c;
  border: 1px solid #22c55e;
  border-radius: 10px;
  color: #22c55e;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}
/* =========================
   INVESTIGATION LAB STYLING
========================= */

.soc-investigation-lab,
.network-investigation-lab,
.phishing-investigation-lab,
.windows-investigation-lab,
.malware-investigation-lab,
.brute-force-investigation-lab,
.web-attack-investigation-lab {
  position: relative;
  overflow: hidden;
}

.soc-investigation-lab::before,
.network-investigation-lab::before,
.phishing-investigation-lab::before,
.windows-investigation-lab::before,
.malware-investigation-lab::before,
.brute-force-investigation-lab::before,
.web-attack-investigation-lab::before {
  content: "LIVE INVESTIGATION";
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #07111f;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

.soc-answer-options,
.network-answer-options,
.phishing-answer-options,
.windows-answer-options,
.malware-answer-options,
.brute-force-answer-options,
.web-attack-answer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.soc-answer,
.network-answer,
.phishing-answer,
.windows-answer,
.malware-answer,
.brute-force-answer,
.web-attack-answer {
  flex: 1;
  min-width: 180px;
}

.investigation-progress {
  max-width: 750px;
  margin: 35px auto;
  padding: 28px;
  text-align: left;
  background: linear-gradient(145deg, #111f33, #0d1a2c);
  border: 1px solid #22c55e;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.08);
}

.investigation-progress h3 {
  color: #22c55e;
  margin-bottom: 18px;
}

.investigation-progress p {
  padding: 8px 0;
  color: #cbd5e1;
}

.investigation-progress strong {
  display: block;
  margin-top: 15px;
  color: #ffffff;
}

@media (max-width: 700px) {

  .soc-answer,
  .network-answer,
  .phishing-answer,
  .windows-answer,
  .malware-answer,
.brute-force-answer,
.web-attack-answer {
    width: 100%;
    flex: none;
  }

}

.lesson-complete-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* =========================
   DASHBOARD & COURSE REVIEW
========================= */

.course-review-callout {
  max-width: 900px;
  margin: 42px auto 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: #07111f;
  border: 1px solid #1e3a56;
  border-radius: 12px;
}

.course-review-callout p,
.dashboard-card p,
.achievement p {
  color: #94a3b8;
}

.dashboard-grid {
  max-width: 1000px;
  margin: 32px auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  padding: 24px 18px;
  text-align: left;
  overflow-wrap: anywhere;
  background: linear-gradient(145deg, #111f33, #0d1a2c);
  border: 1px solid #1e3a56;
  border-radius: 12px;
}

.dashboard-card h3,
.achievements-panel h3 {
  color: #38bdf8;
}

.dashboard-review-link,
.review-panel a:not(.primary-button):not(.secondary-button) {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-next,
.achievements-panel {
  max-width: 760px;
  margin: 22px auto;
  padding: 24px;
  background: #0b1728;
  border: 1px solid #1e3a56;
  border-radius: 12px;
}

.dashboard-next strong {
  display: block;
}

.core-path-summary, .learning-path, .today-panel { max-width: 1000px; margin: 24px auto; padding: 22px; text-align: left; background: #0b1728; border: 1px solid #1e3a56; border-radius: 12px; }
.core-path-summary > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.core-path-summary span { color: #7dd3fc; font-weight: 700; }
.core-path-progress { height: 16px; margin: 14px 0; overflow: hidden; background: #07111f; border: 1px solid #475569; border-radius: 999px; }
#core-path-progress-fill { width: 0; height: 100%; background: #22c55e; transition: width .2s ease; }
.learning-path ol, .learning-indicators ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.learning-path a { display: flex; height: 100%; flex-direction: column; gap: 5px; padding: 14px; color: #fff; border: 1px solid #475569; border-radius: 9px; text-decoration: none; }
.learning-path a:hover, .learning-path a:focus-visible { border-color: #7dd3fc; }
.learning-path span, .learning-path em { color: #cbd5e1; font-size: .9rem; font-style: normal; }
.today-panel p { color: #cbd5e1; }
.dashboard-next h3 span { color: #cbd5e1; font-size: 1rem; }
.dashboard-next .primary-button, .dashboard-next .secondary-button, .today-panel .primary-button { display: inline-block; margin-top: 10px; }

.achievement {
  margin-top: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid #475569;
  border-radius: 10px;
  color: #94a3b8;
}

.achievement > span {
  font-size: 28px;
}

.achievement-unlocked {
  color: #ffffff;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.review-shell {
  max-width: 820px;
  margin: 34px auto 0;
  text-align: left;
}

.review-panel {
  padding: clamp(22px, 5vw, 38px);
  background: linear-gradient(145deg, #111f33, #0d1a2c);
  border: 1px solid #1e3a56;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.review-panel ol { margin: 16px 0; padding-left: 24px; text-align: left; }
.review-panel ol li + li { margin-top: 8px; }

.review-panel[hidden] {
  display: none;
}

.review-progress,
.review-topic {
  color: #38bdf8;
  font-weight: bold;
}

.review-topic {
  margin-bottom: 18px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-panel fieldset {
  min-width: 0;
  border: 0;
}

.review-panel legend {
  width: 100%;
  margin: 12px 0;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: bold;
  line-height: 1.35;
}

.review-scenario {
  margin: 14px 0 20px;
  padding: 18px;
  color: #cbd5e1;
  background: #07111f;
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
}

.review-answers {
  display: grid;
  gap: 12px;
}

.review-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  color: #e2e8f0;
  background: #07111f;
  border: 1px solid #334155;
  border-radius: 8px;
  cursor: pointer;
}

.review-option:hover,
.review-option:focus-within {
  border-color: #38bdf8;
}

.review-option input {
  flex: 0 0 auto;
  margin-top: 5px;
}

#review-short-answer {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  color: #ffffff;
  background: #07111f;
  border: 1px solid #334155;
  border-radius: 8px;
  font: inherit;
}

.review-feedback {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #38bdf8;
  border-radius: 10px;
  background: #07111f;
}

.review-feedback h3,
.review-feedback p + p {
  margin-top: 10px;
}

.review-feedback-correct {
  border-color: #22c55e;
}

.review-feedback-learning {
  border-color: #facc15;
}

.review-feedback-neutral {
  border-color: #94a3b8;
}

.review-score {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 22px 0;
}

.review-score strong {
  color: #38bdf8;
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.review-score span {
  font-size: 1.4rem;
}

.review-topic-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.review-topic-columns > div {
  padding: 18px;
  background: #07111f;
  border-radius: 8px;
}

.review-topic-columns ul {
  margin: 12px 0 0 20px;
}

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

  .learning-path ol,
  .learning-indicators ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 701px) and (max-width: 850px) {
  html {
    scroll-padding-top: 170px;
  }

  .navbar {
    flex-direction: column;
    gap: 14px;
    padding: 16px 5%;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .dashboard-grid,
  .review-topic-columns {
    grid-template-columns: 1fr;
  }

  .course-review-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .course-review-callout .secondary-button,
  .review-panel .primary-button,
  .review-panel .secondary-button {
    width: 100%;
    text-align: center;
  }
}


/* Foundation accessibility and completion states */
.skip-link { position: fixed; left: 16px; top: 8px; z-index: 2000; padding: 10px 14px; background: #facc15; color: #07111f; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.input-label { display: block; margin-top: 12px; color: #e2e8f0; font-weight: 700; }
.knowledge-check input, #waitlist-email { width: 100%; max-width: 620px; padding: 14px; margin: 8px 0; border: 1px solid #1e3a56; border-radius: 8px; background: #050b14; color: #fff; font-size: 16px; }
.feedback-success { color: #86efac !important; font-weight: 700; }
.feedback-review { color: #fde047 !important; font-weight: 700; }
.activity-complete { border-color: #22c55e; }
.activity-complete-badge { padding: 10px; color: #86efac !important; background: rgba(34,197,94,.1); border: 1px solid #22c55e; border-radius: 8px; }
.guided-step { margin: 12px 0; padding: 14px; background: #07111f; border-left: 3px solid #38bdf8; border-radius: 6px; }
.review-previous-topics { margin: 16px 0; }
.review-previous-topics ul { margin: 8px 0 0 20px; }
@media (max-width: 700px) { html { scroll-padding-top: 190px; } }

.legal-page { max-width: 900px; margin: 0 auto; text-align: left; min-height: 75vh; }
.legal-page > h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.legal-page section { margin: 28px 0; }
.legal-page section h2 { margin-bottom: 8px; color: #38bdf8; font-size: 1.4rem; }
.legal-page p { color: #cbd5e1; }
.legal-updated { margin: 8px 0 30px; }

/* Retention layer */
.retention-summary { max-width: 900px; margin: 24px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.retention-summary > div { padding: 18px; background: #111f33; border: 1px solid #1e3a56; border-radius: 10px; }
.retention-summary strong, .retention-summary span { display: block; }
.retention-summary strong { color: #7dd3fc; font-size: 1.1rem; }
.retention-summary span { color: #cbd5e1; margin-top: 5px; }
.level-progress { max-width: 760px; margin: 20px auto; padding: 4px; background: #07111f; border: 1px solid #1e3a56; border-radius: 10px; overflow: hidden; }
#level-progress-fill { height: 12px; width: 0; background: #22c55e; border-radius: 6px; transition: width .2s ease; }
.level-progress p { margin: 8px; color: #cbd5e1; }
.dashboard-retention-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.daily-challenge-card { margin: 0 auto; }
.daily-challenge-card fieldset { margin-top: 20px; }
.daily-actions { display: flex; gap: 12px; flex-wrap: wrap; }
#daily-feedback { margin-top: 18px; min-height: 2rem; color: #e2e8f0; font-weight: 700; }
.skills-summary { max-width: 820px; margin: 0 auto 24px; color: #cbd5e1; }
.learning-indicators { max-width: 1050px; margin: 0 auto 28px; text-align: left; }
.learning-indicators > p { color: #cbd5e1; }
.learning-indicators li { padding: 14px; border: 1px solid #475569; border-radius: 9px; }
.learning-indicators li strong, .learning-indicators li span { display: block; }
.learning-indicators li span { margin-top: 5px; color: #cbd5e1; font-size: .9rem; }
.learning-indicators li.supported { border-color: #22c55e; background: rgba(34,197,94,.08); }
.milestone-columns { max-width: 1050px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.milestone-columns details { background: #0b1728; border: 1px solid #1e3a56; border-radius: 12px; padding: 18px; }
.milestone-columns summary { cursor: pointer; color: #7dd3fc; font-size: 1.25rem; font-weight: 700; }
.milestone-list { display: grid; gap: 12px; margin-top: 16px; }
.milestone { padding: 15px; border: 1px solid #475569; border-radius: 9px; }
.milestone > strong, .milestone > span { display: block; }
.milestone > span { margin: 4px 0; font-weight: 700; }
.milestone p, .milestone li { color: #cbd5e1; }
.milestone ul { margin: 8px 0 0 20px; }
.milestone.earned { border-color: #22c55e; background: rgba(34,197,94,.08); }
.milestone.earned > span { color: #86efac; }
.milestone.locked > span { color: #fde047; }
.companion-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 1100; padding: 12px 16px; border: 1px solid #38bdf8; border-radius: 999px; background: #0d1a2c; color: #fff; font-weight: 700; cursor: pointer; }
.companion-panel { position: fixed; right: 18px; bottom: 76px; z-index: 1099; width: min(370px, calc(100vw - 36px)); max-height: min(540px, calc(100vh - 110px)); overflow: auto; padding: 20px; background: #07111f; border: 1px solid #38bdf8; border-radius: 14px; box-shadow: 0 15px 40px rgba(0,0,0,.4); }
.companion-panel[hidden] { display: none; }
.companion-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.companion-header h2 { font-size: 1.25rem; }
.companion-header button { border: 0; background: transparent; color: #fff; font-size: 1.8rem; cursor: pointer; }
.companion-actions { display: grid; gap: 8px; margin: 15px 0; }
.companion-actions button { padding: 10px; border: 1px solid #1e3a56; border-radius: 7px; background: #111f33; color: #fff; cursor: pointer; }
#companion-response { padding: 12px; min-height: 48px; background: #0b1728; border-radius: 7px; color: #cbd5e1; }
@media (max-width: 700px) {
  .retention-summary, .milestone-columns, .learning-path ol, .learning-indicators ul { grid-template-columns: 1fr; }
  .core-path-summary > div:first-child { flex-direction: column; gap: 4px; }
  .companion-toggle { position: fixed; right: 10px; bottom: 10px; display: block; margin: 0; }
  body { padding-bottom: 72px; }
  .companion-panel { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 70vh; }
  .daily-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Clickable guided lab learning experience */
.lab-overview { max-width: 1120px; margin: 28px auto 0; text-align: left; }
.lab-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.investigation-overview { max-width: 1000px; margin: 36px auto 20px; padding: 24px; text-align: left; background: #07111f; border: 1px solid #1e3a56; border-radius: 14px; }
.investigation-overview ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 18px 0 0; padding-left: 22px; }
.investigation-overview a { overflow-wrap: anywhere; }
.investigation-hint { margin: 12px 8px 12px 0; }
.lab-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: linear-gradient(145deg, #0d1a2c, #091525); border: 1px solid #1e3a56; border-radius: 14px; }
.lab-card h3 { margin: 5px 0 10px; color: #7dd3fc; }
.lab-card p { color: #cbd5e1; }
.lab-card .lab-card-action { align-self: flex-start; margin-top: auto; }
.lab-topic { color: #7dd3fc !important; font-weight: 700; letter-spacing: .04em; }
.lab-time { font-size: .95rem; }
.lab-status { padding: 8px 10px; border-left: 3px solid #64748b; background: #07111f; }
.lab-status-completed { border-color: #22c55e; }
.lab-status-in-progress { border-color: #facc15; }
.lab-workspace { max-width: 900px; }
.lab-workspace[hidden] { display: none; }
.lab-workspace section { margin: 22px 0; }
.lab-workspace h4 { margin-bottom: 8px; color: #fff; font-size: 1.08rem; }
.lab-workspace pre { max-width: 100%; overflow-x: auto; padding: 18px; border: 1px solid #1e3a56; border-radius: 9px; background: #030812; color: #bae6fd; white-space: pre-wrap; word-break: break-word; }
.lab-workspace ol { padding-left: 24px; color: #cbd5e1; }
.lab-back-link { display: inline-block; margin-bottom: 18px; color: #7dd3fc; font-weight: 700; }
.lab-actions, #lab-completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
#lab-completion-actions .secondary-button { display: inline-block; }
.lab-why { padding: 16px; border-left: 3px solid #38bdf8; background: #07111f; }
@media (max-width: 700px) {
  .lab-card-grid, .investigation-overview ul { grid-template-columns: 1fr; }
  .lab-card, .lab-challenge { padding: 20px; }
  .lab-actions > *, #lab-completion-actions > * { width: 100%; margin-right: 0; text-align: center; }
}
@media (max-width: 375px) {
  .lab-card, .lab-challenge { padding: 16px; }
  .lab-workspace pre { padding: 12px; font-size: .82rem; }
}

/* Connected lesson guides and audit-driven responsive safeguards */
.lesson-orientation h4 { margin: 18px 0 6px; color: #7dd3fc; font-size: 1.05rem; }
.lesson-dashboard-link, .lesson-recap a { display: inline-block; margin-top: 10px; color: #7dd3fc; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lesson-try-it { border-left: 4px solid #facc15; }
.lesson-recap { border-left: 4px solid #22c55e; }
.evidence-guide { padding: 12px; border-left: 3px solid #facc15; background: #07111f; }
.investigation-overview li a { display: block; min-height: 44px; padding: 8px; border-radius: 6px; }
.investigation-overview li a:hover { background: rgba(56, 189, 248, .08); }
.investigation-overview li span { display: block; color: #cbd5e1; font-size: .9rem; }
.lesson-block pre, .lab-challenge pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson-block input, #waitlist-email { max-width: 100%; }
@media (pointer: coarse) {
  .nav-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .companion-actions button, .soc-answer-options button, .network-answer-options button, .phishing-answer-options button,
  .windows-answer-options button, .malware-answer-options button, .brute-force-answer-options button, .web-attack-answer-options button { min-height: 44px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 220px; }
  .navbar { padding-inline: 12px; }
  .nav-links { width: 100%; gap: 4px 10px; }
  .nav-links a { padding: 4px; }
  .section { padding: 58px 14px; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3rem); }
  .lesson-block, .lab-challenge, .review-panel, .dashboard-card { padding: 18px 14px; }
  .primary-button, .secondary-button { max-width: 100%; white-space: normal; }
}

/* Supplemental lesson styles preserved from main */
.extension-learning { max-width: 1120px; margin: 42px auto 10px; padding-top: 28px; border-top: 1px solid #1e3a56; }
.extension-learning > p:not(.section-label) { color: #cbd5e1; }
.extension-lesson-card, .topic-link-card { text-decoration: none; }
.extension-lesson-card.activity-complete { border-color: #22c55e; background: rgba(34, 197, 94, .08); }
.extension-lesson-card.activity-complete .lesson-link::before { content: "✓ "; }
.extension-lesson dl { display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 10px 18px; }
.extension-lesson dt { color: #7dd3fc; font-weight: 700; }
.extension-lesson dd { margin: 0; color: #cbd5e1; }
.extension-check fieldset { display: grid; gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid #475569; border-radius: 9px; }
.extension-check label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.extension-lesson .practice-check fieldset { display: grid; gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid #475569; border-radius: 9px; }
.extension-lesson .practice-check label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.extension-lesson .practice-check input[type="radio"] { flex: 0 0 auto; margin-top: 4px; }
.extension-lesson .practice-check button { margin-right: 12px; }
.extension-feedback { min-height: 1.6em; margin-top: 14px; font-weight: 700; color: #e2e8f0; }
.topic-link-card .lesson-link { display: block; margin-top: 12px; }
@media (max-width: 600px) { .extension-lesson dl { grid-template-columns: 1fr; gap: 4px; } .extension-lesson dd { margin-bottom: 10px; } }

/* Learning Assistant topic experiences */
.coach-progress { margin: 0 0 16px; color: #7dd3fc; font-weight: 700; }
.coach-topic { min-height: 58px; text-align: left; }
.coach-topic-status { display: block; margin-top: 4px; color: #94a3b8; font-size: .78rem; }
.coach-topic.selected { border-color: #facc15; box-shadow: 0 0 0 2px rgba(250, 204, 21, .18); }
.coach-topic.activity-complete { border-color: #22c55e; }
.coach-topic-view { margin-top: 24px; padding: 26px; border: 1px solid #38bdf8; border-radius: 12px; background: #0b1728; }
.coach-topic-view[hidden] { display: none; }
.coach-topic-view > h3 { margin: 14px 0 20px; color: #7dd3fc; font-size: 1.55rem; }
.coach-topic-view section { margin: 22px 0; }
.coach-topic-view h4 { margin-bottom: 8px; color: #fff; }
.coach-topic-view p, .coach-topic-view li, .coach-topic-view dd { color: #cbd5e1; }
.coach-topic-view ul, .coach-topic-view ol { padding-left: 24px; }
.coach-topic-view dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coach-topic-view dl > div { padding: 12px; border: 1px solid #1e3a56; border-radius: 8px; }
.coach-topic-view dt { color: #7dd3fc; font-weight: 700; }
.coach-topic-view dd { margin: 4px 0 0; }
.coach-topic-view code { overflow-wrap: anywhere; color: #bae6fd; }
.coach-try { padding: 18px; border-left: 4px solid #facc15; background: #07111f; }
.coach-topic-check fieldset { display: grid; gap: 10px; margin: 12px 0; padding: 16px; border: 1px solid #475569; border-radius: 8px; }
.coach-topic-check label { display: flex; gap: 8px; align-items: flex-start; min-height: 36px; cursor: pointer; }
.coach-topic-actions, .coach-next { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.coach-next h4 { width: 100%; }
.coach-feedback { min-height: 1.6em; margin-top: 14px; font-weight: 700; }
@media (max-width: 700px) {
  .coach-interface, .coach-topic-view { padding: 18px; }
  .coach-topic-view dl { grid-template-columns: 1fr; }
  .coach-topic-actions > *, .coach-next > * { width: 100%; text-align: center; }
}

/* Daily Practice uses the existing review surface and controls. */
#daily-practice-workspace { text-align: left; margin-top: 28px; min-width: 0; }
#daily-practice-workspace[hidden] { display: none; }
#daily-practice-workspace pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #07111f; color: #e0f2fe; border-radius: 8px; }
#daily-practice-workspace h4, #daily-practice-workspace fieldset, #daily-practice-workspace details, #daily-practice-next { margin: 18px 0; }
#daily-practice-workspace textarea { display: block; width: 100%; min-width: 0; margin: 12px 0; padding: 12px; font: inherit; background: #07111f; color: #fff; border: 1px solid #64748b; border-radius: 8px; }
#daily-feedback { margin: 16px 0; }
.daily-practice-history { text-align: left; max-width: 900px; margin: 18px auto; padding-left: 24px; overflow-wrap: anywhere; }
.daily-practice-history a { color: #7dd3fc; text-decoration: underline; }

/* Practice Library shares the existing card, action, focus and review styles. */
#practice-library { margin-top: 32px; }
#practice-library > p, #practice-library > a { margin-bottom: 20px; }
#practice-library-tracks, #practice-library-activities .cards { margin-top: 20px; }
#practice-library .card { min-width: 0; overflow-wrap: anywhere; }
#practice-library-activities { text-align: left; margin-top: 24px; }
#practice-library-activities[hidden] { display: none; }

/* Simulated Attack Box: fixed data only, with a responsive terminal surface. */
.attack-box-panel { max-width: 980px; margin: 42px auto 0; padding: clamp(18px, 4vw, 32px); border: 1px solid #25678a; border-radius: 14px; background: #0b1728; text-align: left; min-width: 0; }
.attack-box-panel > h3 { margin: 0 0 12px; color: #7dd3fc; font-size: clamp(1.45rem, 3vw, 2rem); }
.attack-box-panel > p, .attack-box-panel > label, .attack-box-panel > select, .attack-box-panel > details { margin: 12px 0; }
.attack-box-intro { padding: 12px 14px; border-left: 4px solid #facc15; background: #111d2d; }
.attack-box-panel > label, .attack-form > label { display: block; font-weight: 700; }
#attack-challenge { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 9px 12px; border-radius: 7px; border: 1px solid #64748b; color: #fff; background: #07111f; font: inherit; }
.attack-objective { font-weight: 700; color: #e0f2fe; }
.attack-complete, .attack-progress, .attack-status { min-height: 1.5em; color: #bae6fd; font-weight: 700; }
.attack-terminal { margin: 18px 0; border: 1px solid #334155; border-radius: 10px; overflow: hidden; min-width: 0; background: #030a12; }
.attack-terminal-title { display: flex; justify-content: space-between; padding: 9px 14px; color: #cbd5e1; background: #162234; font-size: .9rem; }
.attack-terminal-title span:last-child { color: #7dd3fc; letter-spacing: 3px; }
.attack-output { height: 250px; overflow: auto; padding: 14px; color: #d1fae5; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.attack-form { padding: 14px; border-top: 1px solid #334155; }
.attack-input-row { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 6px 0; }
.attack-input-row > span { color: #4ade80; font-family: ui-monospace, monospace; }
.attack-input-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 9px 11px; color: #fff; background: #07111f; border: 1px solid #64748b; border-radius: 6px; font: 16px ui-monospace, monospace; }
.attack-form small { color: #cbd5e1; }
.attack-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.attack-box-panel code { color: #bae6fd; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .attack-box-panel { padding: 18px 14px; }
  .attack-input-row { flex-wrap: wrap; }
  .attack-input-row input { flex: 1 1 calc(100% - 28px); }
  .attack-input-row button { width: 100%; }
  .attack-actions > * { flex: 1 1 100%; }
  .attack-output { height: 220px; padding: 11px; font-size: 13px; }
}

