/* 
  Success Vault Member Area Styles 
  Clean, Clinical, LMS Aesthetic
*/

:root {
    --primary-gold: #2f5e89;
    --bg-dark: #102033;
    --bg-gray: #17324a;
    --bg-light: #f3f7fb;
    --bg-white: #FFFFFF;
    --text-dark: #102033;
    --font-serif: 'Montserrat', sans-serif;
    --font-sans: 'Montserrat', sans-serif;
    --border-color: #d7e2ee;
}

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

body.portal-body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(47, 94, 137, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-light) 100%);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
}

.program-label {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9CA3AF;
    margin-bottom: 0.25rem;
}

.program-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.program-creator {
    color: #9CA3AF;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.program-credentials {
    display: block;
    color: #6B7280;
    font-size: 0.65rem;
    font-weight: 400;
    margin-top: 0.15rem;
}

.sidebar-nav {
    padding: 0 0 2rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    color: #6B7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.mt-spacer {
    margin-top: 2rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 2rem;
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    background: rgba(230, 168, 70, 0.1);
    color: var(--primary-gold);
    border-left: 3px solid var(--primary-gold);
}

.nav-sub-link {
    display: block;
    margin: 0 0.85rem 0.2rem;
    padding: 0.68rem 1rem 0.68rem 1.65rem;
    border-radius: 16px;
    color: #c5d0dc;
    text-decoration: none;
    font-size: 0.87rem;
    transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}

.nav-sub-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-sub-link.active {
    background: rgba(47, 94, 137, 0.22);
    color: #ffffff;
    border-left: 3px solid var(--primary-gold);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.premium-link {
    color: var(--primary-gold);
    font-weight: bold;
}

.premium-link span {
    transition: transform 0.2s;
    display: inline-block;
}

.premium-link:hover span {
    transform: translateX(5px);
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-name {
    font-size: 0.9rem;
    font-weight: bold;
}

.user-email {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.logout {
    color: #EF4444;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Main Content */
.portal-main {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 4rem;
    max-width: 1400px;
}

.dashboard-header-premium {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
}

.clinical-command-center {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem 2.1rem;
    box-shadow: 0 18px 36px rgba(16, 32, 51, 0.08);
}

.command-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}

.dashboard-kicker {
    display: inline-block;
    color: var(--primary-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.command-copy {
    max-width: 760px;
}

.phase-guidance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.5rem;
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(215, 226, 238, 0.9);
}

.phase-guidance-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.phase-guidance-label {
    color: #6b7d90;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.phase-guidance-item strong {
    color: var(--bg-dark);
    font-size: 0.96rem;
    font-weight: 700;
}

.dashboard-header-premium h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.08;
    color: var(--bg-dark);
    margin-bottom: 0.8rem;
}

.dashboard-header-premium p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

.command-progress-card {
    min-width: 220px;
    background: #f7fbff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.1);
    color: var(--primary-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill.is-complete {
    background: rgba(15, 118, 110, 0.14);
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 1.15rem;
    align-items: start;
}

.command-primary-column {
    display: grid;
    gap: 1rem;
}

.command-card {
    background: #fbfdff;
    border: 1px solid rgba(215, 226, 238, 0.82);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.035);
}

.command-card-label {
    display: inline-block;
    color: #6b7d90;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.command-card h3 {
    font-size: 1.2rem;
    color: var(--bg-dark);
    margin-bottom: 0.85rem;
}

.command-card p {
    color: #4b5563;
    line-height: 1.6;
}

.command-card-highlight {
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.08), rgba(47, 94, 137, 0.03));
}

.micro-support-note {
    margin-top: 0.8rem;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.55;
}

.guidance-priority {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: #21415d;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
}

.command-card-sidebar {
    position: sticky;
    top: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.profile-item span {
    color: #6b7280;
    font-size: 0.84rem;
}

.profile-item strong {
    color: var(--bg-dark);
    font-size: 0.98rem;
}

.next-step-box {
    margin-top: 1rem;
    background: #ffffff;
    border: 1px solid rgba(47, 94, 137, 0.15);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
}

.next-step-title {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7d90;
    margin-bottom: 0.45rem;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.journey-list {
    display: grid;
    gap: 0.8rem;
}

.journey-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.journey-step-marker {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: #e7eef5;
    color: #6b7d90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
}

.journey-step strong {
    display: block;
    color: var(--bg-dark);
    margin-bottom: 0.2rem;
}

.journey-step p {
    margin: 0;
    font-size: 0.92rem;
}

.journey-step.is-complete .journey-step-marker {
    background: #dff4ee;
    color: #0f766e;
}

.journey-step.is-current {
    border-color: rgba(47, 94, 137, 0.22);
    background: rgba(47, 94, 137, 0.06);
}

.journey-step.is-current .journey-step-marker {
    background: var(--primary-gold);
    color: #fff;
}

.journey-footer {
    margin-top: 1rem;
}

.support-recommendation-card {
    margin: -0.4rem 0 2rem;
    padding: 1.45rem 1.55rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 94, 137, 0.16);
    background:
        linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, #ffffff 100%);
    box-shadow: 0 14px 28px rgba(16, 32, 51, 0.05);
}

.support-recommendation-strong {
    border-color: rgba(47, 94, 137, 0.26);
    box-shadow: 0 20px 40px rgba(16, 32, 51, 0.09);
}

.support-recommendation-head {
    margin-bottom: 1rem;
}

.support-recommendation-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
}

.support-stage-context {
    color: #6b7d90;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.support-recommendation-intro {
    color: #21415d;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.support-recommendation-body {
    color: #4b5563;
    line-height: 1.65;
    max-width: 760px;
    margin-bottom: 1rem;
}

.support-checklist {
    list-style: none;
    display: grid;
    gap: 0.62rem;
    margin: 0 0 1rem;
    padding: 0;
    max-width: 700px;
}

.support-checklist li {
    display: flex;
    gap: 0.65rem;
    color: #4b5563;
    line-height: 1.55;
}

.support-checklist li span:first-child {
    color: var(--primary-gold);
    font-weight: 700;
}

.support-recommendation-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(215, 226, 238, 0.9);
}

.support-recommendation-footer p {
    color: #5b6674;
    line-height: 1.6;
    margin: 0;
    font-size: 0.93rem;
}

.support-cue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin: -0.5rem 0 2rem;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 226, 238, 0.95);
    color: #5b6674;
    font-size: 0.95rem;
}

.support-cue-soft {
    margin: 0 0 2rem;
}

.support-cue a {
    color: var(--primary-gold);
    font-weight: 700;
    text-decoration: none;
}

.support-cue a:hover {
    text-decoration: underline;
}

.protocol-entry-card {
    margin: 0 0 2rem;
    padding: 1.7rem 1.8rem;
    border-radius: 20px;
    border: 1px solid rgba(47, 94, 137, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
    box-shadow: 0 16px 30px rgba(16, 32, 51, 0.05);
}

.protocol-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.protocol-entry-copy h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    color: var(--bg-dark);
    margin-bottom: 0.65rem;
}

.protocol-entry-copy p {
    color: #4b5563;
    line-height: 1.7;
    max-width: 720px;
}

.protocol-entry-note {
    margin-top: 0.9rem;
    color: #21415d;
    font-size: 0.93rem;
    font-weight: 600;
}

.protocol-entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-top: 1.25rem;
}

.protocol-entry-map {
    background: #f8fbff;
    border: 1px solid rgba(215, 226, 238, 0.95);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    display: grid;
    gap: 0.85rem;
}

.protocol-entry-map-title {
    color: #6b7d90;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.protocol-entry-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.protocol-entry-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.1);
    color: var(--primary-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
}

.protocol-entry-step strong {
    display: block;
    color: var(--bg-dark);
    margin-bottom: 0.2rem;
}

.protocol-entry-step div:last-child {
    color: #5b6674;
    font-size: 0.92rem;
    line-height: 1.5;
}

.curriculum-main {
    width: 100%;
}

.curriculum-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 700;
}

.curriculum-back-link:hover {
    text-decoration: underline;
}

.curriculum-hero {
    margin-bottom: 1.5rem;
    padding: 2rem 2.1rem;
    border-radius: 22px;
    border: 1px solid rgba(215, 226, 238, 0.95);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 36px rgba(16, 32, 51, 0.06);
}

.module-overview-shell {
    align-items: start;
}

.module-overview-main,
.lesson-page-shell,
.lesson-page-header,
.lesson-stepper,
.lesson-step-card,
.lesson-section-card,
.lesson-worksheet-shell,
.next-step-card,
.module-overview-card {
    position: relative;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    font-weight: 700;
}

.lesson-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.save-resume-status-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.paired-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.15rem;
    margin-top: 1.55rem;
}

.paired-input-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 100%;
}

.paired-input-label {
    display: flex;
    align-items: flex-end;
    min-height: 3.25rem;
    margin-bottom: 0;
}

.paired-input-label-spacer {
    visibility: hidden;
}

.curriculum-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    color: #6b7d90;
    font-size: 0.9rem;
}

.curriculum-breadcrumbs a {
    color: var(--primary-gold);
    text-decoration: none;
}

.curriculum-breadcrumbs a:hover {
    text-decoration: underline;
}

.curriculum-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--bg-dark);
    line-height: 1.08;
    margin-bottom: 0.7rem;
}

.curriculum-intro {
    max-width: 860px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

.curriculum-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.curriculum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 1.2rem;
    align-items: start;
}

.curriculum-panel,
.curriculum-side-card,
.lesson-panel {
    background: #ffffff;
    border: 1px solid rgba(215, 226, 238, 0.92);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(16, 32, 51, 0.045);
}

.curriculum-panel,
.curriculum-side-card,
.lesson-panel {
    padding: 1.35rem;
}

.curriculum-panel h2,
.curriculum-side-card h3,
.lesson-panel h3 {
    color: var(--bg-dark);
    margin-bottom: 0.6rem;
}

.curriculum-section-intro {
    color: #5b6674;
    margin-bottom: 1.15rem;
    line-height: 1.6;
}

.lesson-list {
    display: grid;
    gap: 1rem;
}

.lesson-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.15rem;
    background: #fbfdff;
}

.lesson-card-copy h3 {
    font-size: 1.15rem;
    color: var(--bg-dark);
    margin-bottom: 0.45rem;
}

.lesson-card-copy p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
}

.lesson-card-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.1);
    color: var(--primary-gold);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-outline-list,
.lesson-outline {
    display: grid;
    gap: 0.75rem;
}

.module-outline-item,
.lesson-outline a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(215, 226, 238, 0.92);
    background: #f8fbff;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.5;
}

.module-outline-item strong,
.lesson-outline strong {
    display: block;
    color: var(--bg-dark);
    margin-bottom: 0.2rem;
}

.lesson-outline a:hover {
    border-color: rgba(47, 94, 137, 0.35);
}

.lesson-outline .is-current {
    background: rgba(47, 94, 137, 0.09);
    border-color: rgba(47, 94, 137, 0.28);
}

.lesson-outline .is-complete {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
}

.lesson-objective {
    margin-top: 0.35rem;
    color: #21415d;
    font-size: 1.03rem;
    line-height: 1.7;
}

.placeholder-card {
    background: linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
    border: 1px dashed rgba(47, 94, 137, 0.22);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.placeholder-kicker {
    color: #6b7d90;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.placeholder-title {
    font-size: 1.2rem;
    color: var(--bg-dark);
    margin-bottom: 0.55rem;
}

.placeholder-copy {
    color: #4b5563;
    line-height: 1.65;
    max-width: 720px;
}

.placeholder-note {
    margin-top: 1.2rem;
    color: #6b7280;
    font-size: 0.92rem;
}

.clinical-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.clinical-context-card {
    background: #f8fbff;
    border: 1px solid rgba(215, 226, 238, 0.95);
    border-radius: 14px;
    padding: 1rem;
}

.clinical-context-card h4 {
    color: var(--bg-dark);
    margin-bottom: 0.45rem;
}

.clinical-context-card ul {
    margin-left: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
}

.clinical-takeaway-box {
    background: linear-gradient(135deg, #102033 0%, #17324a 100%);
    color: #ffffff;
}

.clinical-takeaway-box p {
    color: #dbe6f1;
    line-height: 1.65;
    margin-bottom: 0;
}

.next-step-placeholder {
    background: #f8fbff;
}

.next-step-placeholder p {
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 0;
}

.lesson-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.lesson-navigation .btn,
.lesson-navigation .resource-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.support-cue-minimal {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.curriculum-footer {
    margin-top: 2.5rem;
}

.guided-lesson-page {
    width: 100%;
}

.guided-lesson-page-shell {
    max-width: 980px;
    margin: 0 auto;
}

.guided-lesson-hero {
    margin-bottom: 1.4rem;
    padding: 2.55rem 2.5rem 2.75rem;
    border: 1px solid rgba(214, 223, 231, 0.82);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.94));
    box-shadow: 0 28px 56px rgba(16, 32, 51, 0.08);
}

.guided-lesson-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guided-lesson-module {
    color: #19354d;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.guided-lesson-progress {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.08);
    color: #315f89;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guided-lesson-status-stack {
    display: grid;
    justify-items: end;
    gap: 0.55rem;
}

.guided-lesson-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #617283;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(213, 221, 229, 0.92);
}

.guided-lesson-status::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: currentColor;
}

.guided-lesson-status.is-not_started {
    color: #617283;
}

.guided-lesson-status.is-in_progress {
    color: #315f89;
    background: rgba(47, 94, 137, 0.08);
    box-shadow: inset 0 0 0 1px rgba(47, 94, 137, 0.18);
}

.guided-lesson-status.is-completed {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.guided-lesson-resume-note {
    color: #617283;
    font-size: 0.88rem;
    font-weight: 600;
}

.guided-lesson-resume-note[hidden] {
    display: none !important;
}

.guided-lesson-step-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.55rem;
}

.guided-lesson-step-pill {
    display: grid;
    gap: 0.35rem;
    min-height: 96px;
    padding: 1.1rem 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    color: #637486;
    box-shadow:
        inset 0 0 0 1px rgba(214, 223, 231, 0.92),
        0 14px 28px rgba(16, 32, 51, 0.04);
}

.guided-lesson-step-pill strong {
    display: block;
    color: #1f3447;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guided-lesson-step-pill span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.guided-lesson-step-pill.is-active {
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.12), rgba(255, 255, 255, 0.98));
    color: #204462;
    box-shadow:
        inset 0 0 0 1px rgba(47, 94, 137, 0.18),
        0 18px 30px rgba(47, 94, 137, 0.08);
}

.guided-lesson-step-pill.is-complete {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.11), rgba(255, 255, 255, 0.98));
    color: #0f766e;
    box-shadow:
        inset 0 0 0 1px rgba(15, 118, 110, 0.14),
        0 18px 30px rgba(15, 118, 110, 0.08);
}

.guided-lesson-step-pill.is-locked {
    color: #718090;
    background: linear-gradient(180deg, rgba(245, 247, 250, 0.96), rgba(255, 255, 255, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(216, 223, 230, 0.94),
        0 12px 24px rgba(16, 32, 51, 0.03);
}

.guided-lesson-step-pill.is-locked strong::before {
    content: '\1F512';
    margin-right: 0.45rem;
}

.guided-lesson-step-pill.is-upcoming {
    opacity: 0.92;
}

.guided-lesson-shell {
    display: grid;
    gap: 1.45rem;
}

.lesson-watch-stage,
.lesson-reflection-panel,
.lesson-next-step-card {
    padding: 1.75rem 1.85rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.lesson-watch-stage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
    box-shadow: 0 20px 40px rgba(16, 32, 51, 0.07);
}

.lesson-reflection-panel {
    padding: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(249, 251, 253, 0.98), rgba(255, 255, 255, 0.98));
    border-color: rgba(210, 220, 229, 0.92);
    box-shadow: 0 22px 44px rgba(16, 32, 51, 0.07);
}

[data-step-panel][data-step-state="active"] {
    border-color: rgba(47, 94, 137, 0.24);
    box-shadow: 0 24px 46px rgba(16, 32, 51, 0.09);
    transform: translateY(-1px);
}

[data-step-panel][data-step-state="complete"] {
    border-color: rgba(15, 118, 110, 0.2);
}

[data-step-panel][data-step-state="locked"] {
    opacity: 0.96;
    background:
        radial-gradient(circle at top right, rgba(107, 125, 144, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

[data-step-panel][data-step-state="locked"] .lesson-next-step-status::before {
    content: '\1F512';
    margin-right: 0.5rem;
}

[data-step-panel][data-step-state="complete"] .lesson-next-step-status::before {
    content: '\2713';
    margin-right: 0.5rem;
}

.guided-step-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #15283b;
    margin-bottom: 0.55rem;
}

.guided-step-copy {
    max-width: 760px;
    color: #526476;
    line-height: 1.72;
}

.lesson-video-stage {
    margin-top: 1.3rem;
    padding: 1.8rem;
    border-radius: 28px;
    border: 1px solid rgba(212, 222, 230, 0.92);
    background: linear-gradient(180deg, rgba(249, 251, 253, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 20px 40px rgba(16, 32, 51, 0.05);
}

.lesson-video-feature-shell {
    display: grid;
    gap: 1.3rem;
    padding: 2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(47, 94, 137, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(255, 255, 255, 0.99));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 24px 46px rgba(16, 32, 51, 0.08);
}

.lesson-video-copy {
    max-width: 840px;
}

.lesson-video-header {
    display: grid;
    gap: 0.85rem;
}

.lesson-video-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.lesson-video-label {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.1);
    color: #244867;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-video-meta {
    color: #647789;
    font-size: 0.9rem;
    font-weight: 600;
}

.lesson-video-title {
    margin: 0;
    color: #14283b;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 2.9vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lesson-video-support {
    margin: 0.55rem 0 0;
    color: #4f6375;
    font-size: 1rem;
    line-height: 1.72;
}

.lesson-video-presentation {
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 248, 0.98));
    border: 1px solid rgba(212, 222, 230, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.82),
        0 22px 38px rgba(16, 32, 51, 0.09);
}

.lesson-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 16, 26, 0.24), rgba(8, 16, 26, 0.24)),
        #102033;
    box-shadow:
        0 28px 52px rgba(16, 32, 51, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lesson-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lesson-video-frame-placeholder {
    background:
        linear-gradient(160deg, rgba(16, 32, 51, 0.92), rgba(30, 57, 84, 0.94));
}

.lesson-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    color: #e4edf6;
}

.lesson-video-placeholder-icon {
    width: clamp(66px, 8vw, 84px);
    height: clamp(66px, 8vw, 84px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 18px 34px rgba(7, 13, 22, 0.3);
    position: relative;
}

.lesson-video-placeholder-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid rgba(255, 255, 255, 0.92);
}

.lesson-video-placeholder-body {
    display: grid;
    gap: 0.7rem;
    max-width: 620px;
}

.lesson-video-placeholder-title {
    margin: 0;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.lesson-video-placeholder-copy {
    margin: 0;
    color: rgba(228, 237, 246, 0.88);
    font-size: 1rem;
    line-height: 1.72;
}

.lesson-video-note {
    margin: 0;
    max-width: 860px;
    color: #617386;
    font-size: 0.96rem;
    line-height: 1.72;
}

.lesson-video-followup-grid {
    margin-top: 1.4rem;
}

.lesson-watch-intro {
    margin-top: 1.3rem;
    max-width: 760px;
}

.guided-learning-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 1.2rem;
    margin-top: 1.65rem;
    align-items: start;
}

.guided-learning-points {
    padding: 0.25rem 0;
}

.guided-learning-points h3 {
    color: #1d3348;
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.guided-learning-points ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #4d5f71;
    line-height: 1.65;
    display: grid;
    gap: 0.65rem;
}

.guided-clinical-takeaway {
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #102033 0%, #17324a 100%);
    box-shadow: 0 16px 30px rgba(16, 32, 51, 0.12);
}

.guided-clinical-takeaway span {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.guided-clinical-takeaway p {
    color: #dbe6f1;
    line-height: 1.68;
    margin-bottom: 0;
}

.audit-awareness-bar {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.audit-awareness-card {
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(216, 224, 230, 0.94), 0 12px 24px rgba(16, 32, 51, 0.04);
}

.audit-awareness-card-secondary {
    align-self: end;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.72);
}

.audit-awareness-card span {
    display: block;
    color: #6b7d90;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.audit-awareness-card strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #17324a;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.2;
}

.audit-awareness-card-secondary strong {
    gap: 0.35rem;
    font-size: 1rem;
    color: #42586c;
}

.audit-awareness-card-secondary strong small {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.audit-awareness-card-secondary strong b {
    color: #17324a;
    font-size: 1.2rem;
    font-weight: 800;
}

.audit-awareness-card-emphasis {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(47, 94, 137, 0.16), 0 16px 28px rgba(16, 32, 51, 0.06);
}

.risk-level-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    background: rgba(47, 94, 137, 0.08);
    color: #17324a;
}

.risk-level-chip[data-risk-level="lower"] {
    background: rgba(15, 118, 110, 0.1);
    color: #0f5f59;
}

.risk-level-chip[data-risk-level="moderate"] {
    background: rgba(180, 112, 31, 0.12);
    color: #8d5a18;
}

.risk-level-chip[data-risk-level="elevated"] {
    background: rgba(47, 94, 137, 0.14);
    color: #17324a;
}

.audit-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guided-primary-actions,
.lesson-next-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1.45rem;
}

.guided-primary-actions .btn,
.lesson-next-step-actions .btn {
    min-width: 220px;
    justify-content: center;
}

.lesson-reflection-stage {
    display: grid;
    gap: 1.15rem;
    scroll-margin-top: 1.5rem;
}

.lesson-reflection-stage[hidden] {
    display: none !important;
}

.lesson-reflection-stage.is-visible {
    animation: lessonSectionFade 0.35s ease;
}

.lesson-reflection-transition {
    padding: 0.55rem 0.6rem 0.35rem;
}

.lesson-reflection-meta {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    margin-top: 1.15rem;
    padding: 1.2rem 1.3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(214, 223, 231, 0.92), 0 14px 28px rgba(16, 32, 51, 0.04);
}

.lesson-reflection-status-card,
.lesson-reflection-requirements {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.lesson-reflection-status-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    color: #6b7d90;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-reflection-status-card strong {
    display: block;
    color: #183248;
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.lesson-reflection-status-card p {
    margin-bottom: 0;
    color: #526476;
    line-height: 1.65;
}

.lesson-requirement-list,
.lesson-next-step-missing-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.lesson-requirement-list li,
.lesson-next-step-missing-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #516171;
    line-height: 1.55;
}

.lesson-requirement-list li::before,
.lesson-next-step-missing-list li::before {
    content: '';
    flex: 0 0 0.65rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    margin-top: 0.38rem;
    background: rgba(148, 163, 184, 0.5);
}

.lesson-requirement-list li.is-complete {
    color: #0f766e;
}

.lesson-requirement-list li.is-complete::before {
    background: #0f766e;
}

.lesson-requirement-list li.is-missing::before,
.lesson-next-step-missing-list li::before {
    background: #315f89;
}

.guided-reflection-complete {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.guided-reflection-complete::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
}

.lesson-next-step-card {
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(251, 249, 245, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 22px 44px rgba(16, 32, 51, 0.07);
}

.lesson-next-step-card[data-state="locked"] {
    background:
        radial-gradient(circle at top right, rgba(107, 125, 144, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.lesson-next-step-card[data-state="complete"] {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(247, 252, 250, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 26px 46px rgba(15, 118, 110, 0.08);
}

.lesson-next-step-status {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #617283;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(215, 224, 232, 0.92);
}

.lesson-next-step-card h3 {
    font-size: 1.32rem;
    margin-top: 0.7rem;
    margin-bottom: 0.55rem;
}

.lesson-next-step-card p {
    max-width: 720px;
    color: #4d5f71;
    line-height: 1.72;
    margin-bottom: 0;
}

.lesson-next-step-missing {
    margin-top: 1.1rem;
    padding: 1.05rem 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(214, 223, 231, 0.92);
}

.lesson-next-step-missing-title {
    margin-bottom: 0.75rem;
    color: #1d3348;
    font-size: 0.93rem;
    font-weight: 700;
}

.guided-support-note {
    margin-top: 1rem;
    padding: 0;
    border: none;
    background: transparent;
}

.guided-support-note span {
    color: #6f7d8a;
}

.lesson-card-state-row {
    margin-top: 0.9rem;
}

.lesson-card-state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.08);
    color: #315f89;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.lesson-card-state::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: currentColor;
}

.lesson-card.is-unlocked {
    border-color: rgba(47, 94, 137, 0.26);
    box-shadow: 0 16px 32px rgba(16, 32, 51, 0.06);
}

.lesson-card.is-completed {
    border-color: rgba(15, 118, 110, 0.24);
    background: linear-gradient(180deg, rgba(246, 252, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.lesson-card.is-in-progress {
    border-color: rgba(47, 94, 137, 0.28);
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.lesson-card.is-current {
    border-color: rgba(47, 94, 137, 0.3);
    box-shadow: 0 18px 34px rgba(47, 94, 137, 0.08);
}

.lesson-card.is-completed .lesson-card-state {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.lesson-card.is-in-progress .lesson-card-state,
.lesson-card.is-current .lesson-card-state {
    background: rgba(47, 94, 137, 0.1);
    color: #315f89;
}

.lesson-card.is-locked {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(243, 246, 249, 0.98));
    border-color: rgba(220, 227, 233, 0.98);
}

.lesson-card.is-locked .lesson-card-copy h3,
.lesson-card.is-locked .lesson-card-copy p {
    color: #758291;
}

.lesson-card.is-locked .lesson-card-state {
    background: rgba(107, 125, 144, 0.1);
    color: #6b7d90;
}

.lesson-card.is-locked .lesson-card-state::before {
    content: '\1F512';
    width: auto;
    height: auto;
    background: none;
    font-size: 0.82rem;
}

.module-gated-link.is-locked,
.nav-sub-link.is-locked,
.lesson-outline a.is-locked {
    opacity: 0.72;
}

.nav-sub-link.is-completed,
.lesson-outline a.is-completed {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.nav-sub-link.is-in-progress,
.lesson-outline a.is-in-progress {
    color: #315f89;
    background: rgba(47, 94, 137, 0.12);
    box-shadow: inset 0 0 0 1px rgba(47, 94, 137, 0.08);
}

.nav-sub-link.is-locked,
.lesson-outline a.is-locked {
    color: #9aa8b5;
    background: rgba(255, 255, 255, 0.03);
}

.nav-sub-link.active.is-completed,
.nav-sub-link.active.is-in-progress,
.nav-sub-link.active.is-locked {
    background: rgba(47, 94, 137, 0.22);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-sub-link.is-completed::after,
.lesson-outline a.is-completed::after {
    content: 'Done';
    margin-left: 0.55rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-sub-link.is-in-progress::after,
.lesson-outline a.is-in-progress::after {
    content: 'Resume';
    margin-left: 0.55rem;
    color: #315f89;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-gated-link.is-locked,
.nav-sub-link.is-locked {
    position: relative;
}

.module-gated-link.is-locked:not(.btn)::after,
.nav-sub-link.is-locked::after,
.lesson-outline a.is-locked::after {
    content: 'Locked';
    margin-left: 0.55rem;
    color: #6b7d90;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-gated-link.is-locked.btn,
.lesson-navigation .module-gated-link.is-locked.btn {
    background: rgba(229, 231, 235, 0.92);
    color: #8b95a1;
    border-color: rgba(209, 215, 221, 0.96);
    cursor: not-allowed;
    box-shadow: none;
}

.module-gated-link.is-locked.btn:hover {
    transform: none;
}

.curriculum-main[data-lesson-guard-state="locked"] > :not(.curriculum-back-link):not(.portal-footer):not(.lesson-lock-screen) {
    display: none !important;
}

.lesson-lock-screen {
    max-width: 760px;
    margin: 0 auto 2rem;
    padding: 2rem 2.1rem;
    border-radius: 26px;
    border: 1px solid rgba(213, 221, 228, 0.9);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(251, 249, 245, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 24px 48px rgba(16, 32, 51, 0.08);
}

.lesson-lock-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.08);
    color: #315f89;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.95rem;
}

.lesson-lock-kicker::before {
    content: '\1F512';
    font-size: 0.8rem;
}

.lesson-lock-screen h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 2.6vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #15283b;
    margin-bottom: 0.7rem;
}

.lesson-lock-screen p {
    color: #526476;
    line-height: 1.72;
    margin-bottom: 0;
}

.lesson-lock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1.35rem;
}

.lesson-lock-actions .btn {
    min-width: 220px;
    justify-content: center;
}

.guided-lesson-page-shell[data-lesson-state="complete"] .lesson-next-step-card {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(247, 252, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.guided-lesson-page-shell[data-lesson-state="complete"] .lesson-next-step-status {
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.worksheet-section.is-incomplete {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(47, 94, 137, 0.14);
}

.guided-reflection-complete.is-celebrating,
.lesson-next-step-card.is-celebrating,
.guided-lesson-step-pill.is-celebrating {
    animation: lessonCelebrate 0.75s ease;
}

.module-lock-notice {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2000;
    max-width: 340px;
    padding: 0.95rem 1.05rem;
    border-radius: 18px;
    background: rgba(16, 32, 51, 0.94);
    color: #eef5fb;
    line-height: 1.5;
    box-shadow: 0 18px 34px rgba(16, 32, 51, 0.22);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.module-lock-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes lessonSectionFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes lessonCelebrate {
    0% {
        transform: scale(0.99);
        box-shadow: 0 0 0 rgba(15, 118, 110, 0);
    }

    45% {
        transform: scale(1.01);
        box-shadow: 0 22px 42px rgba(15, 118, 110, 0.14);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

@media (max-width: 900px) {
    .guided-lesson-meta-bar {
        flex-direction: column;
    }

    .guided-lesson-status-stack {
        justify-items: start;
    }

    .guided-lesson-step-strip {
        grid-template-columns: 1fr;
    }

    .lesson-reflection-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .guided-lesson-hero,
    .lesson-watch-stage,
    .lesson-reflection-panel,
    .lesson-next-step-card,
    .worksheet-shell .worksheet-header,
    .worksheet-shell .worksheet-body,
    .worksheet-shell .worksheet-footer {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .guided-primary-actions,
    .lesson-next-step-actions,
    .worksheet-footer-support {
        align-items: stretch;
    }

    .guided-primary-actions .btn,
    .lesson-next-step-actions .btn,
    .worksheet-footer-support .btn {
        width: 100%;
        min-width: 0;
    }

    .module-lock-notice {
        right: 0.9rem;
        left: 0.9rem;
        max-width: none;
    }
}

.lesson-flow-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.lesson-flow-step {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(215, 226, 238, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(16, 32, 51, 0.04);
}

.lesson-flow-step strong {
    display: block;
    color: var(--bg-dark);
    margin-bottom: 0.2rem;
    font-size: 0.98rem;
}

.lesson-flow-step span {
    color: #5b6674;
    font-size: 0.92rem;
    line-height: 1.5;
}

.lesson-flow-step.is-current {
    border-color: rgba(47, 94, 137, 0.35);
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.09), rgba(255, 255, 255, 0.98));
}

.lesson-flow-step.is-next {
    border-color: rgba(15, 118, 110, 0.18);
}

.lesson-flow-step.is-current strong::before,
.lesson-flow-step.is-next strong::before {
    display: inline-block;
    margin-right: 0.45rem;
    color: var(--primary-gold);
}

.lesson-flow-step.is-current strong::before {
    content: '●';
}

.lesson-flow-step.is-next strong::before {
    content: '○';
}

.lesson-content-shell {
    position: relative;
    overflow: hidden;
}

.lesson-content-shell::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.7), rgba(47, 94, 137, 0.18));
}

.lesson-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.75rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.1);
    color: var(--primary-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.lesson-content-title {
    font-size: 1.3rem;
    color: var(--bg-dark);
    margin-bottom: 0.55rem;
}

.lesson-content-copy {
    color: #4b5563;
    line-height: 1.7;
    max-width: 760px;
}

.lesson-content-note {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(215, 226, 238, 0.92);
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
}

.lesson-transition-panel {
    margin: 1rem 0;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(215, 226, 238, 0.92);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.lesson-transition-kicker {
    color: #6b7d90;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.lesson-transition-panel p {
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 0;
}

.curriculum-side-card .lesson-transition-panel {
    margin-bottom: 0;
}

.worksheet-shell {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-color: rgba(213, 221, 228, 0.72);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(251, 249, 245, 0.96) 0%, rgba(244, 247, 250, 0.92) 36%, #ffffff 100%);
    box-shadow: 0 24px 54px rgba(16, 32, 51, 0.08);
}

.worksheet-shell .worksheet-header,
.worksheet-shell .worksheet-body,
.worksheet-shell .worksheet-footer {
    padding: 1.75rem 1.85rem;
}

.worksheet-header {
    position: relative;
    border-bottom: 1px solid rgba(222, 229, 235, 0.72);
    background:
        linear-gradient(180deg, rgba(252, 250, 246, 0.92) 0%, rgba(247, 249, 251, 0.62) 72%, rgba(255, 255, 255, 0.9) 100%);
}

.worksheet-stage-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.worksheet-header .lesson-stage-badge {
    margin-bottom: 0;
    background: rgba(47, 94, 137, 0.08);
    color: #315f89;
}

.worksheet-save-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #617283;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: inset 0 0 0 1px rgba(210, 220, 228, 0.9);
}

.worksheet-save-chip::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.48);
}

.worksheet-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #6b7d90;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.worksheet-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.2rem;
}

.worksheet-title-row h3 {
    flex: 1 1 480px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 0;
}

.worksheet-intro {
    display: grid;
    gap: 0.7rem;
    color: #516171;
    line-height: 1.7;
    margin-top: 1.15rem;
    max-width: 780px;
    font-size: 0.98rem;
}

.worksheet-intro p {
    margin-bottom: 0;
}

.worksheet-save-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.worksheet-status {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 1.5rem;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #4f6070;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(212, 221, 229, 0.92);
}

.worksheet-status::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(97, 114, 131, 0.42);
    transition: background 0.2s, transform 0.2s;
}

.worksheet-status[data-state="loading"]::before {
    background: rgba(97, 114, 131, 0.58);
}

.worksheet-status[data-state="saving"]::before {
    background: rgba(47, 94, 137, 0.85);
    transform: scale(1.15);
}

.worksheet-status[data-state="saved"]::before {
    background: rgba(15, 118, 110, 0.85);
}

.worksheet-complete-badge {
    display: none;
    align-items: center;
    gap: 0.55rem;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.worksheet-complete-badge::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: currentColor;
}

.worksheet-complete-badge.is-visible {
    display: inline-flex;
}

.worksheet-body {
    display: grid;
    gap: 2.35rem;
}

.worksheet-section {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 250, 0.95));
    border: 1px solid rgba(222, 228, 234, 0.72);
    border-radius: 26px;
    padding: 2rem 2rem;
    box-shadow: 0 16px 34px rgba(16, 32, 51, 0.04);
}

.worksheet-section h4 {
    color: #1c3145;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.55rem;
}

.worksheet-section-copy {
    color: #627282;
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.worksheet-helper-list {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.worksheet-helper-list span {
    color: #6f7d8a;
    font-size: 0.92rem;
    font-style: italic;
    padding-left: 0.95rem;
    border-left: 2px solid rgba(47, 94, 137, 0.12);
}

.worksheet-textarea,
.worksheet-input,
.standard-textarea,
.standard-text-input {
    width: 100%;
    border: 1px solid rgba(218, 225, 232, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(243, 246, 248, 0.95), rgba(248, 250, 251, 0.98));
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.6;
    padding: 1.15rem 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(228, 233, 238, 0.86);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.worksheet-textarea,
.standard-textarea {
    min-height: 148px;
    resize: vertical;
}

.worksheet-textarea-compact {
    min-height: 112px;
}

.worksheet-textarea:focus,
.worksheet-input:focus,
.standard-textarea:focus,
.standard-text-input:focus {
    outline: none;
    border-color: rgba(47, 94, 137, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 94, 137, 0.08), inset 0 0 0 1px rgba(47, 94, 137, 0.14);
    background: #ffffff;
}

.worksheet-check-grid,
.worksheet-card-grid {
    display: grid;
    gap: 0.95rem;
}

.worksheet-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worksheet-check-option,
.checklist-row {
    position: relative;
    display: block;
    cursor: pointer;
}

.worksheet-check-option input,
.checklist-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.worksheet-check-option span,
.checklist-row span {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.05rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    color: #314457;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: inset 0 0 0 1px rgba(216, 224, 230, 0.94);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.worksheet-check-option span::before,
.checklist-row span::before {
    content: '';
    flex: 0 0 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    border: 1.5px solid rgba(102, 120, 137, 0.42);
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.worksheet-check-option input:checked + span,
.checklist-row input:checked + span {
    background: rgba(47, 94, 137, 0.08);
    color: #1d3348;
    box-shadow: inset 0 0 0 1px rgba(47, 94, 137, 0.22), 0 12px 26px rgba(16, 32, 51, 0.05);
}

.worksheet-check-option input:checked + span::before,
.checklist-row input:checked + span::before {
    content: '\2713';
    display: grid;
    place-items: center;
    border-color: rgba(47, 94, 137, 0.85);
    background: rgba(47, 94, 137, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    transform: scale(1.02);
}

.worksheet-check-option input:focus-visible + span,
.checklist-row input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(47, 94, 137, 0.08), inset 0 0 0 1px rgba(47, 94, 137, 0.22);
}

.worksheet-card-option input,
.selectable-statement-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.worksheet-card-option,
.selectable-statement-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.worksheet-card-option span,
.selectable-statement-card span {
    display: block;
    min-height: 100%;
    padding: 1.35rem 1.3rem;
    border-radius: 24px;
    border: 1px solid rgba(216, 223, 230, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 251, 0.92));
    color: #243748;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.55;
    box-shadow: 0 14px 30px rgba(16, 32, 51, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.worksheet-card-option input:checked + span,
.selectable-statement-card input:checked + span {
    border-color: rgba(47, 94, 137, 0.5);
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.18), rgba(255, 255, 255, 0.99));
    box-shadow: 0 22px 38px rgba(16, 32, 51, 0.08), inset 0 0 0 2px rgba(47, 94, 137, 0.14);
}

.audit-card-grid .selectable-statement-card input:checked + span {
    position: relative;
    padding-right: 3.1rem;
}

.audit-card-grid .selectable-statement-card input:checked + span::after {
    content: '\2713';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.55rem;
    height: 1.55rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.94);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(16, 32, 51, 0.14);
}

.worksheet-card-option input:focus-visible + span,
.selectable-statement-card input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(47, 94, 137, 0.08), 0 20px 36px rgba(16, 32, 51, 0.06);
}

.worksheet-card-option:hover span,
.selectable-statement-card:hover span {
    transform: translateY(-1px);
}

.worksheet-two-col,
.paired-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.15rem;
    margin-top: 1.55rem;
}

.worksheet-two-col > div,
.paired-input-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 100%;
}

.paired-input-field .worksheet-input,
.paired-input-field .standard-text-input {
    min-height: 56px;
    height: 56px;
    flex: 0 0 auto;
}

.paired-input-field .worksheet-textarea,
.paired-input-field .standard-textarea {
    min-height: 112px;
    flex: 1 0 auto;
}

.worksheet-private-note {
    margin-top: 1rem;
    color: #6f7d8a;
    font-size: 0.88rem;
    line-height: 1.55;
}

.worksheet-helper-text {
    margin: 0.45rem 0 0;
    color: #6f7d8a;
    font-size: 0.84rem;
    line-height: 1.5;
}

.worksheet-error {
    display: none;
    color: #b91c1c;
    font-size: 0.92rem;
    line-height: 1.5;
    width: 100%;
}

.worksheet-error.is-visible {
    display: block;
}

.worksheet-error.is-info,
.worksheet-error.is-warning {
    color: #516273;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(241, 246, 250, 0.92);
    box-shadow: inset 0 0 0 1px rgba(204, 216, 226, 0.9);
}

.risk-audit-summary-card {
    padding: 1.5rem 1.55rem;
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.99));
}

.risk-audit-summary-card h3 {
    color: #15283b;
    margin-bottom: 0.85rem;
}

.risk-audit-summary-card p {
    color: #4f6174;
    line-height: 1.68;
    margin-bottom: 0;
}

.risk-audit-summary-stabilizer {
    margin-top: 0.8rem;
    color: #21415d;
    font-weight: 600;
}

.worksheet-section-copy-soft {
    margin-top: -0.35rem;
    margin-bottom: 1rem;
    color: #6c7e90;
}

.risk-audit-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1rem;
}

.risk-audit-summary-item {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(216, 224, 230, 0.92);
}

.risk-audit-summary-item span {
    display: block;
    color: #6b7d90;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.risk-audit-summary-item strong {
    color: #17324a;
    font-size: 1rem;
    line-height: 1.45;
}

.timeline-phase-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(34, 70, 102, 0.08);
    box-shadow: inset 0 0 0 1px rgba(47, 94, 137, 0.18);
    color: #17324a;
    font-size: 0.92rem;
    font-weight: 700;
}

.lesson-upgrade-card {
    margin: 0;
    padding: 1.85rem 1.95rem;
    border-color: rgba(47, 94, 137, 0.16);
    background:
        linear-gradient(180deg, rgba(237, 244, 249, 0.88), rgba(255, 255, 255, 0.98)),
        #ffffff;
    box-shadow: 0 18px 34px rgba(16, 32, 51, 0.055);
}

.lesson-upgrade-card .support-recommendation-head {
    margin-bottom: 0.95rem;
}

.lesson-upgrade-card .support-recommendation-body {
    max-width: 780px;
    color: #31495d;
}

.lesson-upgrade-card .support-recommendation-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.lesson-upgrade-card .btn {
    border-color: rgba(47, 94, 137, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: #1e4669;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.lesson-upgrade-card .btn:hover,
.lesson-upgrade-card .btn:focus-visible {
    border-color: rgba(47, 94, 137, 0.42);
    background: rgba(255, 255, 255, 0.96);
    color: #173a5a;
}

.lesson-upgrade-card .support-recommendation-helper {
    margin: 0;
    color: #617182;
    font-size: 0.9rem;
    line-height: 1.5;
}

.lesson-upgrade-card[hidden] {
    display: none !important;
}

[data-guided-lesson][data-current-lesson="3"] .guided-lesson-shell {
    gap: 1.28rem;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-reflection-panel,
[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-card {
    padding: 1.22rem;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-shell .worksheet-header,
[data-guided-lesson][data-current-lesson="3"] .worksheet-shell .worksheet-body,
[data-guided-lesson][data-current-lesson="3"] .worksheet-shell .worksheet-footer {
    padding: 1.55rem 1.65rem;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-intro {
    margin-top: 1rem;
    gap: 0.58rem;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-save-row {
    margin-top: 1.15rem;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-body {
    gap: 2rem;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-section {
    padding: 1.72rem 1.78rem;
    border-radius: 24px;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-section-copy {
    margin-bottom: 0.85rem;
}

[data-guided-lesson][data-current-lesson="3"] .worksheet-check-option span,
[data-guided-lesson][data-current-lesson="3"] .checklist-row span {
    padding: 0.98rem 1.08rem;
}

[data-guided-lesson][data-current-lesson="3"] .selectable-statement-card span {
    padding: 1.22rem 1.22rem;
}

[data-guided-lesson][data-current-lesson="3"] input[name="transition_phase"]:checked + span {
    position: relative;
    padding-right: 3.2rem;
    border-color: rgba(47, 94, 137, 0.68);
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.24), rgba(255, 255, 255, 0.99));
    box-shadow:
        0 24px 40px rgba(16, 32, 51, 0.09),
        inset 0 0 0 2px rgba(47, 94, 137, 0.22);
}

[data-guided-lesson][data-current-lesson="3"] input[name="transition_phase"]:checked + span::after {
    content: '\2713';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.96);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(16, 32, 51, 0.16);
}

[data-guided-lesson][data-current-lesson="3"] .paired-input-row {
    gap: 1rem;
    margin-top: 1.3rem;
}

[data-guided-lesson][data-current-lesson="3"] .paired-input-field {
    gap: 0.68rem;
}

[data-guided-lesson][data-current-lesson="3"] .paired-input-label {
    min-height: 3.45rem;
}

[data-guided-lesson][data-current-lesson="3"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="3"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="3"] .paired-input-field .worksheet-textarea,
[data-guided-lesson][data-current-lesson="3"] .paired-input-field .standard-textarea {
    min-height: 118px;
    padding: 1.2rem 1.28rem;
}

[data-guided-lesson][data-current-lesson="3"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="3"] .paired-input-field .standard-text-input {
    height: auto;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-upgrade-card {
    padding: 2.05rem 2.1rem;
    border-color: rgba(47, 94, 137, 0.22);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(234, 242, 248, 0.96), rgba(255, 255, 255, 0.985));
    box-shadow:
        0 20px 38px rgba(16, 32, 51, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

[data-guided-lesson][data-current-lesson="3"] .lesson-upgrade-card .support-recommendation-head {
    margin-bottom: 1rem;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-upgrade-card .support-recommendation-footer {
    gap: 0.82rem;
    margin-top: 0.15rem;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-card {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(249, 251, 253, 0.98), rgba(255, 255, 255, 0.985));
}

[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-card h3 {
    font-size: clamp(1.55rem, 2.2vw, 1.9rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-status {
    padding: 0.78rem 1rem;
    font-weight: 700;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-actions {
    gap: 1rem;
    margin-top: 1.2rem;
}

[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-card[data-state="complete"] {
    border-color: rgba(15, 118, 110, 0.26);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(246, 252, 250, 0.99), rgba(255, 255, 255, 0.99));
    box-shadow: 0 24px 46px rgba(15, 118, 110, 0.09);
}

[data-guided-lesson][data-current-lesson="3"] .lesson-next-step-card[data-state="complete"] .lesson-next-step-status {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

[data-guided-lesson][data-current-lesson="4"] .guided-lesson-shell {
    gap: 1.32rem;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-reflection-panel,
[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-card {
    padding: 1.28rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-shell .worksheet-header,
[data-guided-lesson][data-current-lesson="4"] .worksheet-shell .worksheet-body,
[data-guided-lesson][data-current-lesson="4"] .worksheet-shell .worksheet-footer {
    padding: 1.62rem 1.72rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-intro {
    margin-top: 1rem;
    gap: 0.6rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-save-row {
    margin-top: 1.1rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-body {
    gap: 2rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section {
    padding: 1.78rem 1.82rem;
    border-radius: 24px;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section + .worksheet-section {
    margin-top: 0;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section-copy {
    margin-bottom: 0.9rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-check-option span,
[data-guided-lesson][data-current-lesson="4"] .checklist-row span {
    padding: 1rem 1.08rem;
}

[data-guided-lesson][data-current-lesson="4"] .paired-input-row {
    gap: 1rem;
    margin-top: 1.22rem;
}

[data-guided-lesson][data-current-lesson="4"] .paired-input-field {
    gap: 0.72rem;
}

[data-guided-lesson][data-current-lesson="4"] .paired-input-label {
    min-height: 3.45rem;
}

[data-guided-lesson][data-current-lesson="4"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="4"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="4"] .paired-input-field .worksheet-textarea,
[data-guided-lesson][data-current-lesson="4"] .paired-input-field .standard-textarea {
    min-height: 118px;
    padding: 1.2rem 1.28rem;
}

[data-guided-lesson][data-current-lesson="4"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="4"] .paired-input-field .standard-text-input {
    height: auto;
}

[data-guided-lesson][data-current-lesson="4"] .selectable-statement-card span {
    padding: 1.26rem 1.3rem;
}

[data-guided-lesson][data-current-lesson="4"] input[name="transition_approach"]:checked + span {
    position: relative;
    padding-right: 3.25rem;
    border-color: rgba(47, 94, 137, 0.68);
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.24), rgba(255, 255, 255, 0.995));
    box-shadow:
        0 22px 38px rgba(16, 32, 51, 0.08),
        inset 0 0 0 2px rgba(47, 94, 137, 0.22);
}

[data-guided-lesson][data-current-lesson="4"] input[name="transition_approach"]:checked + span::after {
    content: '\2713';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.96);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(16, 32, 51, 0.16);
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section[data-requirement-section="key_rule_completion"] {
    border-color: rgba(47, 94, 137, 0.2);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(255, 255, 255, 0.99));
    box-shadow: 0 18px 34px rgba(16, 32, 51, 0.05);
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section[data-requirement-section="key_rule_completion"] h4 {
    margin-bottom: 0.45rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section[data-requirement-section="key_rule_completion"] .standard-text-input {
    min-height: 66px;
    padding: 1.28rem 1.32rem;
    font-size: 1rem;
}

[data-guided-lesson][data-current-lesson="4"] .worksheet-section[data-requirement-section="key_rule_completion"] .worksheet-helper-text {
    margin-top: 0.15rem;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-upgrade-card {
    padding: 2.18rem 2.18rem;
    border-color: rgba(47, 94, 137, 0.24);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(231, 239, 246, 0.98), rgba(255, 255, 255, 0.992));
    box-shadow:
        0 24px 40px rgba(16, 32, 51, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

[data-guided-lesson][data-current-lesson="4"] .lesson-upgrade-card .support-recommendation-head {
    margin-bottom: 1.02rem;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-upgrade-card .support-recommendation-footer {
    gap: 0.9rem;
    margin-top: 0.25rem;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-upgrade-card .btn {
    border-color: rgba(47, 94, 137, 0.34);
    background: rgba(255, 255, 255, 0.92);
    color: #173a5a;
    box-shadow: 0 12px 28px rgba(16, 32, 51, 0.07);
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-card {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(249, 251, 253, 0.99), rgba(255, 255, 255, 0.99));
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-card h3 {
    font-size: clamp(1.58rem, 2.25vw, 1.95rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-status {
    padding: 0.8rem 1rem;
    font-weight: 700;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-actions {
    gap: 1rem;
    margin-top: 1.24rem;
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-card[data-state="complete"] {
    border-color: rgba(15, 118, 110, 0.28);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 31%),
        linear-gradient(180deg, rgba(245, 252, 249, 0.995), rgba(255, 255, 255, 0.995));
    box-shadow: 0 26px 46px rgba(15, 118, 110, 0.1);
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-card[data-state="complete"] .lesson-next-step-status {
    background: rgba(15, 118, 110, 0.13);
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

[data-guided-lesson][data-current-lesson="4"] .lesson-next-step-card[data-state="complete"] .lesson-next-step-status::before {
    content: '\2713';
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.16);
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
}

[data-guided-lesson][data-current-lesson="1"] .guided-lesson-shell,
[data-guided-lesson][data-current-lesson="2"] .guided-lesson-shell,
[data-guided-lesson][data-current-lesson="5"] .guided-lesson-shell {
    gap: 1.32rem;
}

[data-guided-lesson][data-current-lesson="1"] .lesson-reflection-panel,
[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-card,
[data-guided-lesson][data-current-lesson="2"] .lesson-reflection-panel,
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-card,
[data-guided-lesson][data-current-lesson="5"] .lesson-reflection-panel,
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-card {
    padding: 1.26rem;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-shell .worksheet-header,
[data-guided-lesson][data-current-lesson="1"] .worksheet-shell .worksheet-body,
[data-guided-lesson][data-current-lesson="1"] .worksheet-shell .worksheet-footer,
[data-guided-lesson][data-current-lesson="2"] .worksheet-shell .worksheet-header,
[data-guided-lesson][data-current-lesson="2"] .worksheet-shell .worksheet-body,
[data-guided-lesson][data-current-lesson="2"] .worksheet-shell .worksheet-footer,
[data-guided-lesson][data-current-lesson="5"] .worksheet-shell .worksheet-header,
[data-guided-lesson][data-current-lesson="5"] .worksheet-shell .worksheet-body,
[data-guided-lesson][data-current-lesson="5"] .worksheet-shell .worksheet-footer {
    padding: 1.6rem 1.72rem;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-intro,
[data-guided-lesson][data-current-lesson="2"] .worksheet-intro,
[data-guided-lesson][data-current-lesson="5"] .worksheet-intro {
    margin-top: 1rem;
    gap: 0.6rem;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-save-row,
[data-guided-lesson][data-current-lesson="2"] .worksheet-save-row,
[data-guided-lesson][data-current-lesson="5"] .worksheet-save-row {
    margin-top: 1.12rem;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-body,
[data-guided-lesson][data-current-lesson="2"] .worksheet-body,
[data-guided-lesson][data-current-lesson="5"] .worksheet-body {
    gap: 2rem;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-section,
[data-guided-lesson][data-current-lesson="2"] .worksheet-section,
[data-guided-lesson][data-current-lesson="5"] .worksheet-section {
    padding: 1.76rem 1.82rem;
    border-radius: 24px;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-section-copy,
[data-guided-lesson][data-current-lesson="2"] .worksheet-section-copy,
[data-guided-lesson][data-current-lesson="5"] .worksheet-section-copy {
    margin-bottom: 0.88rem;
}

[data-guided-lesson][data-current-lesson="1"] .worksheet-check-option span,
[data-guided-lesson][data-current-lesson="1"] .checklist-row span,
[data-guided-lesson][data-current-lesson="2"] .worksheet-check-option span,
[data-guided-lesson][data-current-lesson="2"] .checklist-row span,
[data-guided-lesson][data-current-lesson="5"] .worksheet-check-option span,
[data-guided-lesson][data-current-lesson="5"] .checklist-row span {
    padding: 0.98rem 1.08rem;
}

[data-guided-lesson][data-current-lesson="1"] .paired-input-row,
[data-guided-lesson][data-current-lesson="2"] .paired-input-row,
[data-guided-lesson][data-current-lesson="5"] .paired-input-row {
    gap: 1rem;
    margin-top: 1.24rem;
}

[data-guided-lesson][data-current-lesson="1"] .paired-input-field,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field {
    gap: 0.7rem;
}

[data-guided-lesson][data-current-lesson="1"] .paired-input-label,
[data-guided-lesson][data-current-lesson="2"] .paired-input-label,
[data-guided-lesson][data-current-lesson="5"] .paired-input-label {
    min-height: 3.35rem;
}

[data-guided-lesson][data-current-lesson="1"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="1"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="1"] .paired-input-field .worksheet-textarea,
[data-guided-lesson][data-current-lesson="1"] .paired-input-field .standard-textarea,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field .worksheet-textarea,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field .standard-textarea,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field .worksheet-textarea,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field .standard-textarea {
    min-height: 118px;
    padding: 1.2rem 1.28rem;
}

[data-guided-lesson][data-current-lesson="1"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="1"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="2"] .paired-input-field .standard-text-input,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field .worksheet-input,
[data-guided-lesson][data-current-lesson="5"] .paired-input-field .standard-text-input {
    height: auto;
}

[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-card,
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-card,
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-card {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(249, 251, 253, 0.985), rgba(255, 255, 255, 0.99));
}

[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-card h3,
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-card h3,
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-card h3 {
    font-size: clamp(1.55rem, 2.2vw, 1.92rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-status,
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-status,
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-status {
    padding: 0.78rem 1rem;
    font-weight: 700;
}

[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-actions,
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-actions,
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-actions {
    gap: 1rem;
    margin-top: 1.2rem;
}

[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-card[data-state="complete"],
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-card[data-state="complete"],
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-card[data-state="complete"] {
    border-color: rgba(15, 118, 110, 0.26);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(246, 252, 250, 0.99), rgba(255, 255, 255, 0.99));
    box-shadow: 0 24px 46px rgba(15, 118, 110, 0.09);
}

[data-guided-lesson][data-current-lesson="1"] .lesson-next-step-card[data-state="complete"] .lesson-next-step-status,
[data-guided-lesson][data-current-lesson="2"] .lesson-next-step-card[data-state="complete"] .lesson-next-step-status,
[data-guided-lesson][data-current-lesson="5"] .lesson-next-step-card[data-state="complete"] .lesson-next-step-status {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

[data-guided-lesson][data-current-lesson="2"] .lesson-upgrade-card,
[data-guided-lesson][data-current-lesson="5"] .lesson-upgrade-card {
    padding: 2.1rem 2.14rem;
    border-color: rgba(47, 94, 137, 0.22);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(234, 242, 248, 0.97), rgba(255, 255, 255, 0.99));
    box-shadow:
        0 22px 38px rgba(16, 32, 51, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

[data-guided-lesson][data-current-lesson="2"] .lesson-upgrade-card .support-recommendation-footer,
[data-guided-lesson][data-current-lesson="5"] .lesson-upgrade-card .support-recommendation-footer {
    gap: 0.85rem;
}

[data-guided-lesson][data-current-lesson="5"] .selectable-statement-card span {
    padding: 1.22rem 1.26rem;
}

[data-guided-lesson][data-current-lesson="5"] input[name="current_phase"]:checked + span {
    position: relative;
    padding-right: 3.2rem;
    border-color: rgba(47, 94, 137, 0.66);
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.22), rgba(255, 255, 255, 0.995));
    box-shadow:
        0 20px 36px rgba(16, 32, 51, 0.08),
        inset 0 0 0 2px rgba(47, 94, 137, 0.2);
}

[data-guided-lesson][data-current-lesson="5"] input[name="current_phase"]:checked + span::after {
    content: '\2713';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.96);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(16, 32, 51, 0.16);
}

.worksheet-section-emphasis {
    border-color: rgba(47, 94, 137, 0.22);
    background:
        radial-gradient(circle at top right, rgba(47, 94, 137, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(247, 250, 252, 0.99), rgba(255, 255, 255, 0.995));
    box-shadow: 0 18px 34px rgba(16, 32, 51, 0.05);
}

[data-guided-lesson][data-current-lesson="5"] .worksheet-section-emphasis .standard-textarea,
[data-guided-lesson][data-current-lesson="5"] .worksheet-section-emphasis .worksheet-textarea {
    min-height: 126px;
}

[data-module-shell].is-module-complete .module-overview-header {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(248, 252, 250, 0.99), rgba(255, 255, 255, 0.99));
    border-color: rgba(15, 118, 110, 0.18);
}

.worksheet-closing {
    padding: 1.95rem 1.9rem;
    background:
        radial-gradient(circle at top left, rgba(47, 94, 137, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(244, 247, 250, 0.98), rgba(255, 255, 255, 0.98));
    border-color: rgba(204, 216, 226, 0.78);
}

.worksheet-closing p {
    max-width: 700px;
    color: #21415d;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.15rem, 1.6vw, 1.38rem);
    line-height: 1.75;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    font-weight: 600;
}

.worksheet-footer {
    border-top: 1px solid rgba(222, 229, 235, 0.72);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(247, 249, 251, 0.66), rgba(255, 255, 255, 0.92));
}

.worksheet-footer-note {
    width: 100%;
    color: #627282;
    font-size: 0.9rem;
    line-height: 1.55;
}

.worksheet-footer .btn {
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    min-height: 52px;
}

.worksheet-footer-support,
.worksheet-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.worksheet-footer-support {
    width: 100%;
    justify-content: flex-start;
}

.worksheet-footer-actions {
    justify-content: flex-end;
    margin-left: auto;
}

.worksheet-footer .btn.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(201, 212, 221, 0.96);
    color: #56687a;
}

.worksheet-footer .btn.btn-outline:hover {
    box-shadow: 0 12px 22px rgba(16, 32, 51, 0.06);
}

.worksheet-next-btn {
    min-width: 176px;
    box-shadow: 0 16px 30px rgba(47, 94, 137, 0.2);
}

.worksheet-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: #5a6d7f;
    text-decoration: none;
    font-weight: 600;
    padding: 0 0.2rem;
}

.worksheet-back-link:hover {
    color: #315f89;
}

.btn-success-soft {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.btn-success-soft:hover {
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.12);
}

.orientation-section {
    background: #fcfdff;
    border-color: rgba(215, 226, 238, 0.88);
    box-shadow: 0 4px 12px rgba(16, 32, 51, 0.04);
}

.orientation-content {
    padding: 2rem 2.1rem;
}

.orientation-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.orientation-microcopy {
    margin-bottom: 0.65rem;
    color: #6b7d90;
    font-size: 0.92rem;
}

.orientation-description {
    margin-bottom: 1rem;
}

.orientation-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.orientation-video-shell {
    background: #f4f8fc;
    border: 1px solid rgba(215, 226, 238, 0.9);
    border-radius: 14px;
    padding: 0.95rem;
}

.orientation-video-title {
    color: var(--bg-dark);
    font-weight: 700;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.orientation-video-frame {
    position: relative;
    width: 100%;
    max-width: 88%;
    padding-bottom: 49%;
    border-radius: 10px;
    overflow: hidden;
    background: #102033;
    box-shadow: 0 8px 18px rgba(16, 32, 51, 0.12);
}

.orientation-quote {
    margin-top: 0.8rem;
    color: #617286;
    font-size: 0.88rem;
    line-height: 1.55;
}

.orientation-summary-panel {
    background: #f8fbfe;
    border: 1px solid rgba(215, 226, 238, 0.9);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
}

.orientation-summary-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.orientation-summary-list {
    margin-left: 1.1rem;
    color: #4B5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.orientation-summary-note {
    margin-top: 0.9rem;
    font-size: 0.84rem;
    color: #6B7280;
}

.progressive-reveal-panel {
    margin: 2.25rem 0 0;
    padding: 1rem 1.15rem 1.2rem;
    border: 1px solid rgba(215, 226, 238, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.04);
}

.progressive-reveal-panel summary {
    list-style: none;
    cursor: pointer;
    color: var(--bg-dark);
    font-weight: 700;
}

.progressive-reveal-panel summary::-webkit-details-marker {
    display: none;
}

.progressive-reveal-panel summary::after {
    content: '+';
    float: right;
    color: var(--primary-gold);
    font-size: 1rem;
}

.progressive-reveal-panel[open] summary::after {
    content: '\2212';
}

.progressive-reveal-content {
    margin-top: 1rem;
}

.pathway-section {
    margin-bottom: 3rem;
}

.pathway-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.pathway-header h2 {
    font-size: 2rem;
    color: var(--bg-dark);
    margin-bottom: 0.9rem;
}

.pathway-header p {
    color: #4b5563;
    line-height: 1.6;
}

.pathway-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.15rem;
    margin-bottom: 1.4rem;
    align-items: stretch;
}

.pathway-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.65rem;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.pathway-card-recommended {
    border-color: rgba(47, 94, 137, 0.28);
    background: linear-gradient(180deg, rgba(47, 94, 137, 0.05), #ffffff 35%);
}

.pathway-badge {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(47, 94, 137, 0.1);
    color: var(--primary-gold);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pathway-card h3 {
    font-size: 1.45rem;
    color: var(--bg-dark);
    margin-bottom: 0.6rem;
}

.pathway-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pathway-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.pathway-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.pathway-list li {
    display: flex;
    gap: 0.6rem;
    color: #4b5563;
}

.pathway-list li span:first-child {
    color: var(--primary-gold);
    font-weight: 700;
}

.education-preview {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.55rem;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.education-preview-copy {
    margin-bottom: 1rem;
}

.education-preview-copy h3 {
    font-size: 1.3rem;
    color: var(--bg-dark);
    margin-bottom: 0.45rem;
}

.education-preview-copy p {
    color: #4b5563;
    line-height: 1.6;
}

.education-preview-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.education-step {
    background: #f8fbff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
}

.education-step strong {
    display: block;
    color: var(--bg-dark);
    margin-bottom: 0.35rem;
}

.education-step span {
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.92rem;
}

.dashboard-header-premium h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--bg-dark);
    margin-bottom: 0.75rem;
}

.dashboard-header-premium p {
    color: #6B7280;
    font-size: 1.1rem;
    line-height: 1.5;
}

.header-divider {
    height: 1px;
    background-color: #D1D5DB;
    /* light gray */
    opacity: 0.4;
    margin: 1.25rem 0;
    width: 100%;
}

.authority-title {
    font-weight: 600;
    color: var(--bg-dark);
    font-size: 1rem;
}

.authority-license {
    color: #6B7280;
    font-size: 0.85rem;
    margin-top: 0.15rem;
    margin-bottom: 0.75rem;
}

.authority-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #4B5563;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.progress-label {
    font-weight: 600;
    color: #4B5563;
    font-size: 1rem;
}

/* Progress Ring (Pure CSS fake) */
.progress-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-gold) 25%, #E5E7EB 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring span {
    background: var(--bg-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Sections & Banners */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 4rem;
}

.opacity-75 {
    opacity: 0.75;
}

.upgrade-banner {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-gray));
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-banner h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
}

.upgrade-banner em {
    color: var(--primary-gold);
}

.upgrade-banner p {
    color: #D1D5DB;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
}

.upgrade-banner .btn {
    white-space: normal;
    height: auto;
    line-height: 1.4;
    padding: 1rem 1.5rem;
    display: inline-flex;
    text-align: center;
}

/* Modules Grid */
.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-card {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(215, 226, 238, 0.88);
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(16, 32, 51, 0.045);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Status Labels */
.module-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.22rem 0.65rem;
    border-radius: 50px;
    z-index: 2;
}

.completed .module-status {
    background: #D1FAE5;
    color: #065F46;
}

.active .module-status {
    background: #FEF3C7;
    color: #92400E;
}

.locked .module-status {
    background: rgba(243, 244, 246, 0.78);
    color: #7b8796;
}

.module-content {
    padding: 2.5rem;
    flex: 1;
}

.module-number {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.module-card h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin: 0.5rem 0 1rem 0;
    color: var(--bg-dark);
}

.module-card p {
    color: #4B5563;
    margin-bottom: 2rem;
}

.module-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
    background: linear-gradient(180deg, #3b6e9c 0%, var(--primary-gold) 100%);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary:hover {
    box-shadow: 0 12px 20px rgba(47, 94, 137, 0.2);
}

.btn-disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.resource-link {
    color: #6B7280;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.resource-link:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* Thumbnails */
.module-thumbnail {
    width: 300px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.module-thumbnail:hover {
    opacity: 0.9;
}

.video-placeholder {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/hero-bg.png') center/cover;
}

.audio-placeholder {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-gold));
}

.locked-bg {
    background: #E5E7EB;
    cursor: not-allowed;
}

.module-thumbnail span {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-footer {
    margin-top: 4rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.portal-footer a {
    color: var(--primary-gold);
    text-decoration: none;
}

/* Sidebar & Layout Styles for Paid Section */
.locked-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.protocol-phase-list {
    opacity: 1;
}

.clinical-proof-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.clinical-proof-sidebar h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.clinical-proof-sidebar p {
    font-size: 0.9rem;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.quote-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 3px solid var(--primary-gold);
    font-size: 0.9rem;
    font-style: italic;
    color: #6B7280;
    line-height: 1.5;
}

.quote-box span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--bg-dark);
}

.protocol-later-phases-panel {
    margin: 1.15rem 0 0;
    padding: 0.95rem 1.1rem 1.15rem;
    border: 1px solid rgba(215, 226, 238, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(16, 32, 51, 0.035);
}

.protocol-later-phases-panel summary {
    list-style: none;
    cursor: pointer;
    color: var(--bg-dark);
    font-weight: 700;
}

.protocol-later-phases-panel summary::-webkit-details-marker {
    display: none;
}

.protocol-later-phases-panel summary::after {
    content: '+';
    float: right;
    color: var(--primary-gold);
    font-size: 1rem;
}

.protocol-later-phases-panel[open] summary::after {
    content: '\2212';
}

/* Responsive Design */
@media (max-width: 1024px) {
    body.portal-body {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .portal-main {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .command-hero,
    .support-recommendation-footer,
    .support-cue {
        flex-direction: column;
    }

    .command-grid,
    .pathway-grid,
    .education-preview-steps,
    .protocol-entry-grid,
    .curriculum-layout,
    .clinical-context-grid {
        grid-template-columns: 1fr;
    }

    .command-card-sidebar {
        position: static;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .locked-content-layout {
        grid-template-columns: 1fr;
    }

    .clinical-proof-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .module-card {
        flex-direction: column;
    }

    .module-thumbnail {
        width: 100%;
        height: 250px;
    }

    .module-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .module-actions .btn {
        width: 100%;
        text-align: center;
    }

    .upgrade-banner {
        padding: 2rem 1.5rem;
    }

    .upgrade-banner h2 {
        font-size: 1.75rem;
    }

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

    .support-recommendation-card {
        padding: 1.35rem;
    }

    .phase-guidance {
        flex-direction: column;
        gap: 0.65rem;
    }

    .orientation-content {
        padding: 1.5rem;
    }

    .orientation-video-frame {
        max-width: 100%;
        padding-bottom: 56.25%;
    }

    .progressive-reveal-panel {
        padding: 0.95rem 1rem 1.1rem;
    }

    .protocol-later-phases-panel {
        padding: 0.95rem 1rem 1.1rem;
    }

    .curriculum-hero {
        padding: 1.5rem;
    }

    .guided-lesson-hero,
    .lesson-watch-stage,
    .lesson-reflection-panel,
    .lesson-next-step-card {
        padding: 1.4rem;
    }

    .guided-learning-grid {
        grid-template-columns: 1fr;
    }

    .lesson-video-feature-shell {
        padding: 1.35rem;
        border-radius: 26px;
        gap: 1rem;
    }

    .lesson-video-presentation {
        padding: 0.7rem;
        border-radius: 22px;
    }

    .audit-awareness-bar,
    .audit-card-grid,
    .risk-audit-summary-grid {
        grid-template-columns: 1fr;
    }

    .lesson-card {
        grid-template-columns: 1fr;
    }

    .worksheet-two-col,
    .paired-input-row {
        grid-template-columns: 1fr;
    }

    .paired-input-label {
        min-height: 0;
    }

    .paired-input-label-spacer {
        display: none;
    }

    .worksheet-card-grid {
        grid-template-columns: 1fr;
    }

    .lesson-flow-strip {
        grid-template-columns: 1fr;
    }

    .guided-lesson-step-strip,
    .guided-primary-actions,
    .lesson-next-step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .guided-primary-actions .btn,
    .lesson-next-step-actions .btn,
    .lesson-lock-actions .btn,
    .guided-primary-actions .worksheet-back-link,
    .lesson-next-step-actions .worksheet-back-link,
    .lesson-lock-actions .worksheet-back-link,
    .worksheet-footer-support .worksheet-back-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1280px) {
    .command-grid {
        grid-template-columns: 1fr;
    }

    .command-card-sidebar {
        position: static;
    }
}

/* --- Wall of Love / Testimonials --- */
.testimonials-section {
    padding: 5rem 0;
    background: #F9FAFB;
    margin-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.fay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--bg-dark);
    border: 1px solid var(--border-color);
}

.fay-badge .stars {
    color: var(--primary-gold);
    letter-spacing: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.testimonial-card.featured {
    grid-column: 1 / -1;
    border-left: 4px solid var(--primary-gold);
}

.testimonial-card .stars {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p.quote {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #E5E7EB;
    padding-top: 1rem;
}

.reviewer-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

@media(min-width: 768px) {
    .testimonial-card.featured {
        padding: 3rem;
    }

    .testimonial-card.featured p.quote {
        font-size: 1.1rem;
    }
}

/* --- 3-Layer CTA Fix --- */
.layer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 16px;
    flex: 0 0 auto;
}

.layer-btn {
    text-decoration: none !important;
    font-weight: 800;
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
    line-height: 1;
    box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.25);
}

.layer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px -12px rgba(0, 0, 0, 0.28);
}

.layer-caption {
    font-size: 0.82rem;
    color: #6B7280;
    max-width: 220px;
    text-align: right;
    line-height: 1.25;
    white-space: normal;
}

/* --- Plan Chooser (Portal) --- */
.plan-chooser {
    margin: 2.5rem 0 2.5rem 0;
    padding: 2.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.plan-chooser-head h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
}

.plan-chooser-head p {
    color: #6B7280;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 900px;
}

.plan-chooser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.plan-box {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    background: #fff;
    position: relative;
}

.plan-box.featured {
    border-color: rgba(230, 168, 70, 0.9);
    background: linear-gradient(180deg, rgba(230, 168, 70, 0.12), transparent 55%);
    box-shadow: 0 18px 30px -22px rgba(230, 168, 70, 0.65);
}

.plan-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: var(--bg-dark);
    border: 1px solid rgba(17, 24, 39, 0.12);
    margin-bottom: 0.75rem;
}

.plan-tag.premium {
    background: rgba(230, 168, 70, 0.18);
    border: 1px solid rgba(230, 168, 70, 0.35);
}

.plan-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--bg-dark);
    background: rgba(230, 168, 70, 0.18);
    border: 1px solid rgba(230, 168, 70, 0.35);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.plan-box h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--bg-dark);
    margin-bottom: 0.35rem;
}

.plan-sub {
    color: #6B7280;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem 0;
}

.plan-price .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--bg-dark);
}

.plan-price .price-note {
    color: #6B7280;
    font-size: 0.95rem;
}

.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 0 1.25rem 0;
    color: #374151;
}

.plan-list span {
    color: var(--primary-gold);
    font-weight: 900;
    margin-right: 0.4rem;
}

.plan-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.95rem 1rem;
    border-radius: 10px;
}

.bonus-strip {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.bonus-strip-title {
    font-weight: 900;
    color: var(--bg-dark);
}

.bonus-strip-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bonus-strip-items span {
    font-size: 0.9rem;
    color: #6B7280;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
}

@media (max-width: 1024px) {
    .plan-chooser {
        padding: 1.5rem;
    }

    .plan-chooser-grid {
        grid-template-columns: 1fr;
    }

    .plan-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.75rem;
    }
}

/* =========================
   Choose Your Exit Path
========================= */
.exit-path {
    margin: 2.5rem 0;
    padding: 2.25rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.exit-head h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--bg-dark);
    margin-bottom: 0.4rem;
}

.exit-head p {
    color: #6B7280;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 900px;
}

.exit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.exit-card {
    position: relative;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1.5rem;
    background: #fff;
}

.exit-card.featured {
    border-color: rgba(230, 168, 70, 0.55);
    background: linear-gradient(180deg, rgba(230, 168, 70, 0.12), transparent 55%);
    box-shadow: 0 18px 30px -22px rgba(230, 168, 70, 0.65);
}

.exit-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.12);
    color: var(--bg-dark);
    margin-bottom: 0.75rem;
}

.exit-tag.gold {
    background: rgba(230, 168, 70, 0.18);
    border: 1px solid rgba(230, 168, 70, 0.35);
}

.exit-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--bg-dark);
    background: rgba(230, 168, 70, 0.18);
    border: 1px solid rgba(230, 168, 70, 0.35);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.exit-sub {
    color: #6B7280;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.exit-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem 0;
}

.exit-price .money {
    font-size: 2rem;
    font-weight: 900;
    color: var(--bg-dark);
}

.exit-price .note {
    color: #6B7280;
    font-size: 0.95rem;
}

.exit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 0 1.25rem 0;
    color: #374151;
}

.exit-list span {
    color: var(--primary-gold);
    font-weight: 900;
    margin-right: 0.4rem;
}

.exit-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.95rem 1rem;
    border-radius: 10px;
}

.exit-bonusline {
    margin-top: 0.9rem;
    font-size: 0.92rem;
    color: #4B5563;
}

@media (max-width: 1024px) {
    .exit-path {
        padding: 1.5rem;
    }

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

    .exit-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.75rem;
    }
}

/* =========================
   Access Gates (Free vs Paid)
========================= */
.locked-nav {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

/* =========================
   Mobile Responsiveness Overrides
========================= */

/* Responsive Grids */
.responsive-grid {
    display: grid;
    gap: 1.25rem;
}

.grid-sidebar {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

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

.grid-thirds {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {

    .grid-sidebar,
    .grid-halves,
    .grid-thirds {
        grid-template-columns: 1fr;
    }

    .responsive-flex-row {
        flex-direction: column;
        align-items: stretch;
    }

    .layer-cta {
        align-items: flex-start;
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .layer-btn {
        width: 100%;
        text-align: center;
    }

    .layer-caption {
        text-align: left;
        max-width: 100%;
        margin-top: 5px;
    }

    .protocol-entry-card {
        padding: 1.35rem;
    }

    .curriculum-panel,
    .curriculum-side-card,
    .lesson-panel {
        padding: 1.1rem;
    }

    .lesson-navigation .btn,
    .lesson-navigation .resource-link {
        width: 100%;
    }

    .worksheet-shell .worksheet-header,
    .worksheet-shell .worksheet-body,
    .worksheet-shell .worksheet-footer {
        padding: 1.2rem;
    }

    .lesson-video-label-row {
        align-items: flex-start;
    }

    .lesson-video-meta {
        width: 100%;
    }

    .worksheet-stage-row,
    .worksheet-save-row,
    .worksheet-footer,
    .worksheet-footer-support,
    .worksheet-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .worksheet-title-row h3 {
        flex-basis: 100%;
    }

    .worksheet-footer-actions {
        margin-left: 0;
    }

    .worksheet-footer .btn,
    .worksheet-back-link {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Flex Rows (for Layers blocks) */
.responsive-flex-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

/* Fix Plan Selector button and lists on mobile */
.exit-btn {
    display: block;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.4;
}

.exit-list li {
    display: flex;
    align-items: flex-start;
}

.exit-list span {
    flex-shrink: 0;
    margin-top: 2px;
}
