/* =========================================================
   AI-GENCY DEVELOPER LAB
   SHARED COURSE STYLES
========================================================= */

:root {
    --course-bg: #020817;
    --course-panel: rgba(4, 15, 40, 0.92);
    --course-panel-light: rgba(8, 24, 56, 0.94);

    --course-border: rgba(76, 195, 255, 0.28);
    --course-border-strong: rgba(76, 195, 255, 0.62);

    --course-cyan: #4cc3ff;
    --course-blue: #1877f2;
    --course-purple: #d023e8;
    --course-green: #46e6a8;
    --course-gold: #ffd166;

    --course-text: #f5f8ff;
    --course-muted: #aab7d1;
    --course-muted-light: #d0d8e8;

    --course-radius: 18px;
    --course-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-width: 320px;
    min-height: 100vh;

    color: var(--course-text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            rgba(2, 8, 23, 0.54),
            rgba(2, 8, 23, 0.58)
        ),
        url("/aigency-dev-lab/tool-background-1.png")
        center top / cover fixed;

    overflow-x: hidden;
}

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

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.course-page {
    min-height: 100vh;
}

.course-main {
    width: min(1360px, calc(100% - 36px));

    margin: 0 auto;
    padding: 42px 0 80px;
}


/* =========================================================
   TOP BAR
========================================================= */

.course-topbar {
    min-height: 76px;

    padding: 10px max(20px, calc((100vw - 1360px) / 2));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.18);

    background: rgba(2, 8, 23, 0.9);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.26);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    position: sticky;
    top: 0;
    z-index: 100;
}

.course-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.course-logo {
    width: 200px;
    height: auto;

    display: block;

    object-fit: contain;
    object-position: left center;
}

.course-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-brand-text span {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.course-brand-text small {
    color: var(--course-cyan);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.return-button {
    padding: 11px 17px;

    border: 1px solid rgba(76, 195, 255, 0.34);
    border-radius: 10px;

    color: var(--course-muted-light);
    background: rgba(76, 195, 255, 0.07);

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.return-button:hover {
    color: #ffffff;

    border-color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.15);

    transform: translateY(-1px);
}


/* =========================================================
   DASHBOARD HERO
========================================================= */

.course-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(310px, 0.65fr);
    gap: 28px;

    align-items: stretch;

    margin-bottom: 70px;
}

.hero-content,
.progress-card {
    border: 1px solid var(--course-border);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 22, 53, 0.96),
            rgba(3, 11, 31, 0.94)
        );

    box-shadow: var(--course-shadow);
}

.hero-content {
    padding: clamp(32px, 5vw, 64px);

    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: "";

    width: 440px;
    height: 440px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(76, 195, 255, 0.18),
            transparent 68%
        );

    position: absolute;
    top: -220px;
    right: -140px;

    pointer-events: none;
}

.hero-content::after {
    content: "";

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(208, 35, 232, 0.13),
            transparent 70%
        );

    position: absolute;
    bottom: -180px;
    left: -120px;

    pointer-events: none;
}

.course-eyebrow {
    margin-bottom: 17px;

    color: var(--course-cyan);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;

    position: relative;
    z-index: 1;
}

.hero-content h1 {
    max-width: 800px;

    margin: 0 0 10px;

    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #93ddff 48%,
            #d98cff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    position: relative;
    z-index: 1;
}

.hero-content h2 {
    margin: 0 0 22px;

    color: var(--course-muted-light);

    font-size: clamp(19px, 2vw, 27px);
    font-weight: 500;
    line-height: 1.35;

    position: relative;
    z-index: 1;
}

.course-description {
    max-width: 760px;

    margin: 0;

    color: var(--course-muted);

    font-size: 16px;
    line-height: 1.75;

    position: relative;
    z-index: 1;
}


/* =========================================================
   COURSE STATS
========================================================= */

.course-stats {
    margin-top: 34px;

    display: flex;
    align-items: center;
    gap: 23px;

    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item strong {
    color: #ffffff;

    font-size: 22px;
    line-height: 1;
}

.stat-item span {
    color: var(--course-muted);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 36px;

    background: rgba(255, 255, 255, 0.14);
}


/* =========================================================
   START BUTTON
========================================================= */

.start-course-button {
    width: fit-content;

    margin-top: 36px;
    padding: 15px 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    border: 1px solid rgba(76, 195, 255, 0.82);
    border-radius: 12px;

    color: #02101e;

    background:
        linear-gradient(
            135deg,
            #4cc3ff,
            #72e0ff
        );

    box-shadow:
        0 10px 28px rgba(76, 195, 255, 0.21);

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    position: relative;
    z-index: 1;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.start-course-button span {
    font-size: 20px;
    line-height: 1;
}

.start-course-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(76, 195, 255, 0.34);
}


/* =========================================================
   PROGRESS CARD
========================================================= */

.progress-card {
    padding: 30px;

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;
}

.progress-card::before {
    content: "";

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(208, 35, 232, 0.16),
            transparent 70%
        );

    position: absolute;
    top: -110px;
    right: -100px;
}

.progress-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    position: relative;
    z-index: 1;
}

.progress-card-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-label {
    color: var(--course-muted);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.progress-card-header strong {
    font-size: 46px;
    line-height: 1;
}

.progress-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(76, 195, 255, 0.28);
    border-radius: 16px;

    background: rgba(76, 195, 255, 0.09);

    font-size: 26px;
}

.progress-track {
    width: 100%;
    height: 11px;

    margin-top: 30px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    overflow: hidden;

    position: relative;
    z-index: 1;
}

.progress-fill {
    min-width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--course-cyan),
            var(--course-purple)
        );

    box-shadow:
        0 0 14px rgba(76, 195, 255, 0.45);

    transition: width 0.4s ease;
}

.progress-card > p {
    margin: 13px 0 0;

    color: var(--course-muted);

    font-size: 13px;

    position: relative;
    z-index: 1;
}

.progress-message {
    margin-top: auto;
    padding: 18px;

    border: 1px solid rgba(70, 230, 168, 0.22);
    border-radius: 13px;

    color: #c8f9e7;
    background: rgba(70, 230, 168, 0.07);

    font-size: 13px;
    line-height: 1.55;

    position: relative;
    z-index: 1;
}


/* =========================================================
   CONTENT HEADING
========================================================= */

.content-heading {
    margin-bottom: 34px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.content-heading > div span {
    color: var(--course-cyan);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.content-heading h2 {
    margin: 8px 0 0;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.content-heading > p {
    max-width: 480px;

    margin: 0;

    color: var(--course-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   COURSE SECTIONS
========================================================= */

.course-section {
    margin-bottom: 30px;

    border: 1px solid var(--course-border);
    border-radius: var(--course-radius);

    background: rgba(3, 12, 32, 0.82);

    box-shadow:
        0 15px 38px rgba(0, 0, 0, 0.26);

    overflow: hidden;
}

.section-header {
    padding: 25px 28px;

    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 20px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.17);

    background:
        linear-gradient(
            90deg,
            rgba(76, 195, 255, 0.09),
            rgba(208, 35, 232, 0.045)
        );
}

.section-number {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--course-border-strong);
    border-radius: 15px;

    color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.08);

    font-size: 18px;
    font-weight: 900;
}

.section-title-area > span {
    color: var(--course-cyan);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.section-title-area h3 {
    margin: 5px 0;

    font-size: 22px;
}

.section-title-area p {
    margin: 0;

    color: var(--course-muted);

    font-size: 13px;
    line-height: 1.55;
}

.section-count {
    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;

    color: var(--course-muted-light);
    background: rgba(255, 255, 255, 0.04);

    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   LESSON GRID
========================================================= */

.lesson-grid {
    padding: 22px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lesson-card {
    min-height: 210px;

    padding: 21px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(9, 25, 57, 0.86),
            rgba(4, 13, 34, 0.88)
        );

    position: relative;
    overflow: hidden;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.lesson-card::before {
    content: "";

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(76, 195, 255, 0.09),
            transparent 70%
        );

    position: absolute;
    top: -80px;
    right: -60px;

    pointer-events: none;
}

.lesson-card:hover {
    border-color: var(--course-border-strong);

    background:
        linear-gradient(
            145deg,
            rgba(12, 34, 75, 0.93),
            rgba(5, 16, 41, 0.94)
        );

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(76, 195, 255, 0.08);

    transform: translateY(-3px);
}

.lesson-card.completed {
    border-color: rgba(70, 230, 168, 0.42);
}

.lesson-number {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(76, 195, 255, 0.32);
    border-radius: 13px;

    color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.08);

    font-size: 15px;
    font-weight: 900;
}

.lesson-card-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.lesson-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 13px;
}

.lesson-type,
.lesson-duration {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-type {
    padding: 6px 9px;

    border-radius: 999px;
}

.lesson-type-lesson {
    color: #bcecff;
    background: rgba(76, 195, 255, 0.1);
}

.lesson-type-interactive {
    color: #d6fff0;
    background: rgba(70, 230, 168, 0.1);
}

.lesson-type-project {
    color: #ffeab4;
    background: rgba(255, 209, 102, 0.1);
}

.lesson-duration {
    color: var(--course-muted);
    white-space: nowrap;
}

.lesson-card h4 {
    margin: 0 0 10px;

    font-size: 18px;
    line-height: 1.3;
}

.lesson-card p {
    margin: 0;

    color: var(--course-muted);

    font-size: 13px;
    line-height: 1.6;
}

.lesson-action {
    margin-top: auto;
    padding-top: 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--course-cyan);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-action strong {
    font-size: 18px;

    transition: transform 0.2s ease;
}

.lesson-card:hover .lesson-action strong {
    transform: translateX(4px);
}

.completed-badge {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #021811;
    background: var(--course-green);

    font-size: 14px;
    font-weight: 900;

    position: absolute;
    top: 13px;
    right: 13px;
}


/* =========================================================
   FOOTER
========================================================= */

.course-footer {
    padding: 35px 20px 45px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    border-top: 1px solid rgba(76, 195, 255, 0.14);

    color: var(--course-muted);

    text-align: center;
}

.course-footer img {
    width: 170px;
    height: auto;

    object-fit: contain;
}

.course-footer p {
    margin: 3px 0 0;

    color: var(--course-text);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-footer span {
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .course-hero {
        grid-template-columns: 1fr;
    }

    .progress-card {
        min-height: 280px;
    }

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


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .course-main {
        width: min(100% - 22px, 1360px);

        padding-top: 22px;
    }

    .course-topbar {
        min-height: 68px;

        padding: 9px 13px;
    }

    .course-brand-text {
        display: none;
    }

    .course-logo {
        width: 135px;
        height: 44px;
    }

    .return-button {
        padding: 10px 12px;

        font-size: 11px;
    }

    .hero-content {
        padding: 30px 22px;
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .course-description {
        font-size: 14px;
    }

    .course-stats {
        align-items: flex-start;
        gap: 14px;
    }

    .stat-divider {
        height: 31px;
    }

    .stat-item strong {
        font-size: 18px;
    }

    .stat-item span {
        font-size: 9px;
    }

    .start-course-button {
        width: 100%;
    }

    .progress-card {
        min-height: 270px;
        padding: 24px 20px;
    }

    .content-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .content-heading > p {
        font-size: 13px;
    }

    .section-header {
        padding: 21px 18px;

        grid-template-columns: auto minmax(0, 1fr);
        gap: 15px;
    }

    .section-number {
        width: 46px;
        height: 46px;

        font-size: 15px;
    }

    .section-title-area h3 {
        font-size: 18px;
    }

    .section-count {
        display: none;
    }

    .lesson-grid {
        padding: 13px;
        gap: 13px;
    }

    .lesson-card {
        min-height: 225px;

        padding: 18px 15px;

        grid-template-columns: 40px minmax(0, 1fr);
        gap: 13px;
    }

    .lesson-number {
        width: 40px;
        height: 40px;

        font-size: 13px;
    }

    .lesson-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .lesson-card h4 {
        font-size: 16px;
    }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 430px) {

    .course-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-divider {
        display: none;
    }

    .stat-item span {
        line-height: 1.35;
    }

    .lesson-duration {
        white-space: normal;
    }
}


/* =========================================================
   UNIVERSAL LESSON PAGE
========================================================= */

.lesson-layout {
    width: min(1540px, calc(100% - 28px));

    margin: 0 auto;
    padding: 28px 0 70px;

    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
}


/* =========================================================
   LESSON TOP ACTIONS
========================================================= */

.lesson-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   LESSON SIDEBAR
========================================================= */

.lesson-sidebar {
    max-height: calc(100vh - 105px);

    border: 1px solid var(--course-border);
    border-radius: 18px;

    background:
        linear-gradient(
            160deg,
            rgba(7, 22, 53, 0.97),
            rgba(3, 11, 29, 0.97)
        );

    box-shadow: var(--course-shadow);

    overflow-y: auto;

    position: sticky;
    top: 96px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(76, 195, 255, 0.55)
        rgba(255, 255, 255, 0.04);
}

.lesson-sidebar::-webkit-scrollbar {
    width: 4px;
}

.lesson-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.lesson-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        linear-gradient(
            var(--course-cyan),
            var(--course-purple)
        );
}

.sidebar-course-heading {
    padding: 24px 22px 18px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.14);
}

.sidebar-course-heading > span {
    color: var(--course-cyan);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.sidebar-course-heading h2 {
    margin: 7px 0;

    font-size: 19px;
    line-height: 1.25;
}

.sidebar-course-heading p {
    margin: 0;

    color: var(--course-muted);

    font-size: 12px;
}

.sidebar-progress {
    padding: 18px 22px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.12);
}

.sidebar-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 10px;

    color: var(--course-muted);

    font-size: 11px;
}

.sidebar-progress-label strong {
    color: var(--course-cyan);
}

.sidebar-progress .progress-track {
    height: 7px;
    margin: 0;
}

.lesson-navigation {
    padding: 13px 10px 18px;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-title {
    padding: 10px 9px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--course-muted-light);

    font-size: 11px;
}

.sidebar-section-title > span {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(76, 195, 255, 0.24);
    border-radius: 8px;

    color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.06);

    font-size: 10px;
}

.sidebar-section-title strong {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-lessons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-lesson {
    min-height: 43px;

    padding: 8px 9px;

    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: var(--course-muted);

    font-size: 11px;
    line-height: 1.35;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.sidebar-lesson:hover {
    color: #ffffff;

    border-color: rgba(76, 195, 255, 0.22);
    background: rgba(76, 195, 255, 0.07);
}

.sidebar-lesson.current {
    color: #ffffff;

    border-color: rgba(76, 195, 255, 0.55);

    background:
        linear-gradient(
            90deg,
            rgba(76, 195, 255, 0.15),
            rgba(208, 35, 232, 0.06)
        );
}

.sidebar-lesson-number {
    color: var(--course-cyan);

    font-size: 10px;
    font-weight: 900;
}

.sidebar-lesson-name {
    min-width: 0;
}

.current-indicator {
    color: var(--course-green);

    font-size: 8px;
}


/* =========================================================
   LESSON MAIN
========================================================= */

.lesson-main {
    min-width: 0;
}

.lesson-hero,
.lesson-content,
.lesson-controls {
    border: 1px solid var(--course-border);
    border-radius: 18px;

    background:
        linear-gradient(
            150deg,
            rgba(7, 22, 53, 0.96),
            rgba(3, 11, 29, 0.96)
        );

    box-shadow: var(--course-shadow);
}

.lesson-hero {
    padding: clamp(27px, 4vw, 52px);

    overflow: hidden;

    position: relative;
}

.lesson-hero::before {
    content: "";

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(76, 195, 255, 0.15),
            transparent 70%
        );

    position: absolute;
    top: -190px;
    right: -110px;

    pointer-events: none;
}

.lesson-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 23px;

    color: var(--course-muted);

    font-size: 11px;

    position: relative;
    z-index: 1;
}

.lesson-breadcrumb a {
    color: var(--course-cyan);
}

.lesson-heading-meta {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 20px;

    position: relative;
    z-index: 1;
}

.lesson-title-row {
    display: flex;
    align-items: center;
    gap: 21px;

    position: relative;
    z-index: 1;
}

.lesson-large-number {
    width: 70px;
    height: 70px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--course-border-strong);
    border-radius: 18px;

    color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.08);

    font-size: 24px;
    font-weight: 900;
}

.lesson-section-label {
    color: var(--course-cyan);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.lesson-title-row h1 {
    margin: 7px 0 0;

    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.035em;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #a8e6ff,
            #e39aff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.lesson-introduction {
    max-width: 850px;

    margin: 25px 0 0;

    color: var(--course-muted-light);

    font-size: 16px;
    line-height: 1.75;

    position: relative;
    z-index: 1;
}


/* =========================================================
   LESSON CONTENT
========================================================= */

.lesson-content {
    margin-top: 22px;
    padding: clamp(25px, 4vw, 52px);

    color: var(--course-muted-light);

    font-size: 16px;
    line-height: 1.75;
}

.lesson-content h2 {
    margin: 38px 0 13px;

    color: #ffffff;

    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.lesson-content h2:first-child {
    margin-top: 0;
}

.lesson-content h3 {
    margin: 29px 0 10px;

    color: var(--course-cyan);

    font-size: 21px;
}

.lesson-content p {
    margin: 0 0 19px;
}

.lesson-content ul,
.lesson-content ol {
    margin: 0 0 23px;
    padding-left: 25px;
}

.lesson-content li {
    margin-bottom: 9px;
}

.lesson-content strong {
    color: #ffffff;
}

.lesson-content code {
    padding: 2px 6px;

    border: 1px solid rgba(76, 195, 255, 0.2);
    border-radius: 5px;

    color: #9ee7ff;
    background: rgba(0, 0, 0, 0.35);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.9em;
}

.lesson-content pre {
    margin: 22px 0;
    padding: 22px;

    border: 1px solid rgba(76, 195, 255, 0.25);
    border-radius: 13px;

    background: rgba(0, 3, 13, 0.82);

    overflow-x: auto;
}

.lesson-content pre code {
    padding: 0;

    border: 0;

    color: #d4efff;
    background: transparent;

    line-height: 1.65;
}

.lesson-callout {
    margin: 25px 0;
    padding: 20px 22px;

    border: 1px solid rgba(76, 195, 255, 0.3);
    border-left: 4px solid var(--course-cyan);
    border-radius: 11px;

    background: rgba(76, 195, 255, 0.07);
}

.lesson-callout.warning {
    border-color: rgba(255, 209, 102, 0.3);
    border-left-color: var(--course-gold);

    background: rgba(255, 209, 102, 0.07);
}

.lesson-callout.success {
    border-color: rgba(70, 230, 168, 0.3);
    border-left-color: var(--course-green);

    background: rgba(70, 230, 168, 0.07);
}

.lesson-callout h3 {
    margin-top: 0;
}

.lesson-placeholder {
    min-height: 380px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.placeholder-icon {
    margin-bottom: 14px;

    font-size: 44px;
}

.lesson-placeholder h2 {
    margin: 0 0 12px;
}


/* =========================================================
   LESSON CONTROLS
========================================================= */

.lesson-controls {
    margin-top: 22px;
    padding: 22px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.lesson-control-right {
    display: flex;
    justify-content: flex-end;
}

.lesson-nav-button {
    max-width: 300px;
    min-height: 68px;

    padding: 12px 15px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(76, 195, 255, 0.25);
    border-radius: 11px;

    background: rgba(76, 195, 255, 0.06);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.lesson-nav-button:hover {
    border-color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.12);

    transform: translateY(-2px);
}

.lesson-nav-button > span {
    color: var(--course-cyan);

    font-size: 23px;
}

.lesson-nav-button div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lesson-nav-button small {
    color: var(--course-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lesson-nav-button strong {
    display: block;

    color: #ffffff;

    font-size: 12px;
    line-height: 1.35;
}

.lesson-nav-button.next {
    text-align: right;
}

.lesson-control-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    text-align: center;
}

.complete-lesson-button {
    min-height: 48px;

    padding: 12px 19px;

    border: 1px solid rgba(70, 230, 168, 0.6);
    border-radius: 11px;

    color: #031a12;
    background:
        linear-gradient(
            135deg,
            #46e6a8,
            #89ffd2
        );

    cursor: pointer;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.complete-lesson-button span {
    margin-right: 5px;
}

.lesson-control-center small {
    color: var(--course-muted);

    font-size: 9px;
}


/* =========================================================
   LESSON ERROR
========================================================= */

.lesson-error-page {
    width: min(760px, calc(100% - 28px));

    margin: 70px auto;
}

.lesson-error-card {
    padding: 60px 30px;

    border: 1px solid var(--course-border);
    border-radius: 20px;

    background: var(--course-panel);

    text-align: center;
}

.lesson-error-icon {
    font-size: 50px;
}

.lesson-error-card h1 {
    margin: 18px 0 10px;
}

.lesson-error-card p {
    margin: 0 0 25px;

    color: var(--course-muted);
}


/* =========================================================
   LESSON TABLET
========================================================= */

@media (max-width: 1050px) {

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

    .lesson-sidebar {
        max-height: none;

        position: static;
    }

    .lesson-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .lesson-control-center {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}


/* =========================================================
   LESSON MOBILE
========================================================= */

@media (max-width: 700px) {

    .lesson-top-actions .return-button:last-child {
        display: none;
    }

    .lesson-layout {
        width: min(100% - 20px, 1540px);

        padding-top: 18px;
    }

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

    .lesson-sidebar {
        max-height: 440px;
    }

    .lesson-hero {
        padding: 25px 19px;
    }

    .lesson-title-row {
        align-items: flex-start;
        gap: 13px;
    }

    .lesson-large-number {
        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 16px;
    }

    .lesson-title-row h1 {
        font-size: 31px;
    }

    .lesson-introduction {
        font-size: 14px;
    }

    .lesson-content {
        padding: 25px 19px;

        font-size: 14px;
    }

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

    .lesson-control-center {
        grid-column: auto;
        grid-row: auto;
    }

    .lesson-control-right {
        justify-content: stretch;
    }

    .lesson-nav-button {
        width: 100%;
        max-width: none;
    }
}

/* =========================================================
   SAVED LESSON PROGRESS
========================================================= */

.sidebar-lesson.completed {
    color: #d9fff0;
}

.sidebar-lesson.completed:not(.current) {
    border-color: rgba(70, 230, 168, 0.12);
    background: rgba(70, 230, 168, 0.035);
}

.sidebar-status {
    min-width: 12px;

    color: var(--course-green);

    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.complete-lesson-button {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.complete-lesson-button:hover {
    transform: translateY(-2px);
}

.complete-lesson-button.is-complete {
    color: #baffdf;

    border-color: rgba(70, 230, 168, 0.68);

    background:
        linear-gradient(
            135deg,
            rgba(70, 230, 168, 0.14),
            rgba(70, 230, 168, 0.06)
        );
}

.complete-lesson-button.saving {
    opacity: 0.65;
    cursor: wait;
}

.complete-lesson-button:disabled {
    cursor: wait;
}

/* =========================================================
   LESSON 04 — GEMINI API PLAYGROUND
========================================================= */

.api-playground {
    margin: 30px 0 42px;

    border: 1px solid rgba(76, 195, 255, 0.42);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 25, 58, 0.97),
            rgba(2, 10, 29, 0.98)
        );

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(76, 195, 255, 0.07);

    overflow: hidden;
}

.api-playground [hidden] {
    display: none !important;
}


/* =========================================================
   PLAYGROUND HEADER
========================================================= */

.api-playground-header {
    padding: 25px 27px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.18);

    background:
        linear-gradient(
            90deg,
            rgba(76, 195, 255, 0.1),
            rgba(208, 35, 232, 0.05)
        );
}

.api-playground-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--course-cyan);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.api-playground-header h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 24px;
}

.api-playground-header p {
    margin: 0;

    color: var(--course-muted);

    font-size: 13px;
    line-height: 1.55;
}

.api-status {
    flex: 0 0 auto;

    padding: 8px 12px;

    border: 1px solid rgba(76, 195, 255, 0.3);
    border-radius: 999px;

    color: #bfeeff;
    background: rgba(76, 195, 255, 0.08);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.api-status.is-working {
    color: #ffeab0;

    border-color: rgba(255, 209, 102, 0.45);
    background: rgba(255, 209, 102, 0.09);
}

.api-status.is-success {
    color: #baffdf;

    border-color: rgba(70, 230, 168, 0.5);
    background: rgba(70, 230, 168, 0.09);
}

.api-status.is-error {
    color: #ffd0d0;

    border-color: rgba(255, 100, 100, 0.45);
    background: rgba(255, 100, 100, 0.08);
}


/* =========================================================
   SAMPLE PROMPTS
========================================================= */

.api-sample-area {
    padding: 20px 27px 0;
}

.api-sample-label {
    display: block;

    margin-bottom: 10px;

    color: var(--course-muted);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.api-sample-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.api-sample-button {
    padding: 9px 12px;

    border: 1px solid rgba(76, 195, 255, 0.23);
    border-radius: 9px;

    color: #ccefff;
    background: rgba(76, 195, 255, 0.055);

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.api-sample-button:hover {
    border-color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.12);

    transform: translateY(-1px);
}


/* =========================================================
   REQUEST FORM
========================================================= */

.api-request-form {
    padding: 22px 27px 27px;
}

.api-input-label {
    display: block;

    margin-bottom: 9px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.api-prompt-textarea {
    width: 100%;
    min-height: 190px;

    padding: 17px 18px;

    border: 1px solid rgba(76, 195, 255, 0.28);
    border-radius: 12px;

    color: #f4f8ff;
    background: rgba(0, 4, 16, 0.68);

    outline: none;
    resize: vertical;

    font-size: 14px;
    line-height: 1.65;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.api-prompt-textarea:focus {
    border-color: var(--course-cyan);

    box-shadow:
        0 0 0 3px rgba(76, 195, 255, 0.1);
}

.api-form-footer {
    margin-top: 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.api-character-count {
    color: var(--course-muted);

    font-size: 10px;
}

.api-character-count.near-limit {
    color: var(--course-gold);
}

.api-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-secondary-button,
.api-submit-button,
.api-copy-button {
    min-height: 42px;

    padding: 10px 15px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.api-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.14);

    color: var(--course-muted-light);
    background: rgba(255, 255, 255, 0.045);
}

.api-submit-button {
    border: 1px solid rgba(76, 195, 255, 0.75);

    color: #02111e;

    background:
        linear-gradient(
            135deg,
            #4cc3ff,
            #79e3ff
        );
}

.api-submit-button:hover,
.api-secondary-button:hover,
.api-copy-button:hover {
    transform: translateY(-2px);
}

.api-submit-button:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

.api-submit-button.is-loading
.api-submit-icon {
    display: inline-block;

    animation: apiPulse 0.8s ease-in-out infinite alternate;
}

@keyframes apiPulse {

    from {
        opacity: 0.4;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.api-error-message {
    margin: 0 27px 27px;
    padding: 15px 17px;

    border: 1px solid rgba(255, 100, 100, 0.4);
    border-left: 4px solid #ff7474;
    border-radius: 10px;

    color: #ffd6d6;
    background: rgba(255, 80, 80, 0.08);

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   RESULT PANEL
========================================================= */

.api-result-panel {
    margin: 0 27px 27px;

    border: 1px solid rgba(70, 230, 168, 0.3);
    border-radius: 13px;

    background: rgba(0, 7, 19, 0.68);

    overflow: hidden;
}

.api-result-header {
    padding: 17px 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid rgba(70, 230, 168, 0.15);

    background: rgba(70, 230, 168, 0.055);
}

.api-result-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--course-green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.api-result-header h4 {
    margin: 0;

    color: #ffffff;

    font-size: 17px;
}

.api-copy-button {
    min-height: 36px;
    padding: 8px 12px;

    border: 1px solid rgba(70, 230, 168, 0.38);

    color: #caffea;
    background: rgba(70, 230, 168, 0.08);
}

.api-output {
    min-height: 150px;

    padding: 22px 20px;

    color: #eef7ff;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    font-size: 14px;
    line-height: 1.75;
}

.api-response-metadata {
    padding: 14px 19px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;

    border-top: 1px solid rgba(76, 195, 255, 0.13);

    background: rgba(76, 195, 255, 0.035);
}

.api-meta-item {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.api-meta-item span {
    color: var(--course-muted);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.api-meta-item strong {
    color: var(--course-cyan);

    overflow-wrap: anywhere;

    font-size: 11px;
}


/* =========================================================
   LESSON 04 RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .api-playground-header {
        padding: 21px 18px;

        align-items: flex-start;
        flex-direction: column;
    }

    .api-sample-area,
    .api-request-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .api-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .api-form-actions {
        display: grid;
        grid-template-columns: 0.7fr 1.3fr;
    }

    .api-secondary-button,
    .api-submit-button {
        width: 100%;
    }

    .api-error-message,
    .api-result-panel {
        margin-left: 18px;
        margin-right: 18px;
    }

    .api-result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .api-response-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   LESSON 05 — SYSTEM INSTRUCTION COMPARISON
========================================================= */

.system-instruction-form {
    padding: 25px 27px;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.system-input-group {
    min-width: 0;
}

.system-input-heading {
    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.system-input-heading label {
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.system-input-heading span,
.system-field-note {
    color: var(--course-muted);

    font-size: 9px;
}

.system-field-note {
    margin: 8px 0 0;

    line-height: 1.45;
}

.system-instruction-textarea {
    min-height: 225px;
}

.system-user-textarea {
    min-height: 145px;
}

.system-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.system-run-button {
    min-width: 210px;
}

.system-run-button:disabled,
#clearSystemComparison:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}


/* =========================================================
   COMPARISON RESULTS
========================================================= */

.system-comparison-grid {
    padding: 0 27px 27px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.system-result-card {
    min-width: 0;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;

    background: rgba(0, 5, 18, 0.7);

    overflow: hidden;
}

.system-result-card.instructed {
    border-color: rgba(70, 230, 168, 0.34);
}

.system-result-header {
    min-height: 76px;
    padding: 15px 17px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.025);
}

.system-result-card.instructed
.system-result-header {
    background: rgba(70, 230, 168, 0.055);
}

.system-result-label {
    display: block;

    margin-bottom: 5px;

    color: var(--course-cyan);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.system-result-card.instructed
.system-result-label {
    color: var(--course-green);
}

.system-result-header h4 {
    margin: 0;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.35;
}

.system-result-output {
    min-height: 230px;
    padding: 20px 18px;

    color: #f2f7ff;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    font-size: 13px;
    line-height: 1.7;
}

.system-result-output.is-empty {
    color: var(--course-muted);

    font-style: italic;
}

.system-result-meta {
    padding: 12px 17px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);

    color: var(--course-muted);

    font-size: 9px;
}

.system-result-meta strong {
    color: var(--course-cyan);
}

.system-result-card.instructed
.system-result-meta strong {
    color: var(--course-green);
}


/* =========================================================
   LESSON 05 RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .system-comparison-grid {
        grid-template-columns: 1fr;
    }

    .system-result-output {
        min-height: 180px;
    }
}

@media (max-width: 700px) {

    .system-instruction-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .system-comparison-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .system-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .system-run-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   LESSON 06 — STRUCTURED OUTPUT
========================================================= */

.structured-results {
    margin: 0 27px 27px;

    border: 1px solid rgba(70, 230, 168, 0.3);
    border-radius: 14px;

    background: rgba(0, 7, 19, 0.68);

    overflow: hidden;
}

.structured-classification-grid {
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.14);
}

.structured-value-card {
    min-width: 0;
    padding: 17px;

    border: 1px solid rgba(76, 195, 255, 0.2);
    border-radius: 11px;

    background: rgba(76, 195, 255, 0.055);
}

.structured-value-card span {
    display: block;

    margin-bottom: 7px;

    color: var(--course-muted);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.structured-value-card strong {
    color: var(--course-cyan);

    font-size: 15px;
}

.structured-urgency.urgency-low {
    color: var(--course-green);
}

.structured-urgency.urgency-medium {
    color: var(--course-gold);
}

.structured-urgency.urgency-high {
    color: #ff8b8b;
}


/* =========================================================
   STRUCTURED DETAILS
========================================================= */

.structured-detail-grid {
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.structured-detail-card,
.structured-reply-card,
.structured-json-card {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.025);
}

.structured-detail-card {
    min-height: 170px;
    padding: 19px;
}

.structured-detail-label {
    display: block;

    margin-bottom: 10px;

    color: var(--course-green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.structured-detail-card p,
.structured-detail-card ul {
    margin: 0;

    color: #edf6ff;

    font-size: 13px;
    line-height: 1.7;
}

.structured-detail-card ul {
    padding-left: 20px;
}

.structured-detail-card li {
    margin-bottom: 7px;
}

.structured-empty-item {
    color: var(--course-muted);
    font-style: italic;
}


/* =========================================================
   RECOMMENDED REPLY
========================================================= */

.structured-reply-card,
.structured-json-card {
    margin: 0 20px 20px;
}

.structured-reply-card {
    border-color: rgba(70, 230, 168, 0.25);
}

.structured-reply-card header,
.structured-json-card header {
    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.structured-reply-card h4,
.structured-json-card h4 {
    margin: 0;

    color: #ffffff;

    font-size: 16px;
}

.structured-reply-card p {
    margin: 0;
    padding: 20px 18px;

    color: #effff8;

    white-space: pre-wrap;

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   RAW JSON
========================================================= */

.structured-json-card pre {
    max-height: 420px;

    margin: 0;
    padding: 20px;

    border: 0;
    border-radius: 0;

    background: rgba(0, 2, 11, 0.75);

    overflow: auto;
}

.structured-json-card pre code {
    color: #bdeeff;

    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   LESSON 06 RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .structured-classification-grid,
    .structured-detail-grid {
        grid-template-columns: 1fr;
    }

    .structured-detail-card {
        min-height: 0;
    }
}

@media (max-width: 700px) {

    .structured-results {
        margin-left: 18px;
        margin-right: 18px;
    }

    .structured-classification-grid,
    .structured-detail-grid {
        padding: 15px;
    }

    .structured-reply-card,
    .structured-json-card {
        margin-left: 15px;
        margin-right: 15px;
    }

    .structured-reply-card header,
    .structured-json-card header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   LESSON 07 — IMAGE ANALYSIS
========================================================= */

.image-analysis-form {
    padding: 25px 27px;

    display: flex;
    flex-direction: column;
    gap: 27px;
}


/* =========================================================
   IMAGE DROP ZONE
========================================================= */

.image-drop-zone {
    min-height: 245px;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px dashed rgba(76, 195, 255, 0.35);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(76, 195, 255, 0.045),
            rgba(208, 35, 232, 0.025)
        );

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.image-drop-zone:hover,
.image-drop-zone:focus {
    border-color: var(--course-cyan);

    background: rgba(76, 195, 255, 0.085);

    box-shadow:
        0 0 0 3px rgba(76, 195, 255, 0.08);
}

.image-drop-zone.is-dragging {
    border-color: var(--course-green);

    background: rgba(70, 230, 168, 0.09);

    transform: scale(1.005);
}

.image-drop-zone.has-file {
    border-color: rgba(70, 230, 168, 0.45);
}

.image-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;

    color: var(--course-muted);

    text-align: center;
}

.image-drop-icon {
    margin-bottom: 3px;

    font-size: 42px;
}

.image-drop-content strong {
    color: #ffffff;

    font-size: 17px;
}

.image-drop-content > span:not(.image-drop-icon) {
    font-size: 12px;
}

.image-drop-content small {
    font-size: 9px;
}


/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-preview-card {
    margin-top: 15px;
    padding: 16px;

    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 19px;
    align-items: center;

    border: 1px solid rgba(70, 230, 168, 0.3);
    border-radius: 13px;

    background: rgba(70, 230, 168, 0.045);
}

.image-preview-frame {
    height: 155px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;

    background: rgba(0, 3, 13, 0.72);

    overflow: hidden;
}

.image-preview-frame img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.image-preview-information {
    min-width: 0;
}

.image-preview-information > span {
    display: block;

    margin-bottom: 7px;

    color: var(--course-green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.image-preview-information strong {
    display: block;

    color: #ffffff;

    overflow-wrap: anywhere;

    font-size: 15px;
}

.image-preview-information p {
    margin: 7px 0 14px;

    color: var(--course-muted);

    font-size: 10px;
}

.image-remove-button {
    padding: 8px 11px;

    border: 1px solid rgba(255, 120, 120, 0.32);
    border-radius: 8px;

    color: #ffd0d0;
    background: rgba(255, 90, 90, 0.06);

    cursor: pointer;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   IMAGE PROMPT
========================================================= */

.image-prompt-section {
    display: flex;
    flex-direction: column;
}

.image-prompt-section .api-sample-grid {
    margin-bottom: 21px;
}

.image-prompt-heading {
    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.image-prompt-heading .api-input-label {
    margin: 0;
}

.image-prompt-heading span {
    color: var(--course-muted);

    font-size: 9px;
}

.image-prompt-heading span.near-limit {
    color: var(--course-gold);
}


/* =========================================================
   IMAGE ACTIONS
========================================================= */

.image-analysis-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.image-analysis-submit {
    min-width: 190px;
}

.image-analysis-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}


/* =========================================================
   IMAGE RESULT
========================================================= */

.image-analysis-result {
    margin: 0 27px 27px;

    border: 1px solid rgba(70, 230, 168, 0.32);
    border-radius: 14px;

    background: rgba(0, 7, 19, 0.7);

    overflow: hidden;
}

.image-analysis-output {
    min-height: 210px;
}

.image-result-details {
    padding: 14px 19px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        repeat(3, minmax(0, 1fr));
    gap: 12px;

    border-top: 1px solid rgba(70, 230, 168, 0.13);

    background: rgba(70, 230, 168, 0.028);
}


/* =========================================================
   LESSON 07 RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .image-result-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .image-analysis-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .image-drop-zone {
        min-height: 220px;
        padding: 20px 15px;
    }

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

    .image-preview-frame {
        height: 210px;
    }

    .image-analysis-actions {
        display: grid;
        grid-template-columns: 0.7fr 1.3fr;
    }

    .image-analysis-actions button {
        width: 100%;
        min-width: 0;
    }

    .image-analysis-result {
        margin-left: 18px;
        margin-right: 18px;
    }

    .image-result-details {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LESSON 08 — PDF DOCUMENT ANALYSIS
========================================================= */

.document-analysis-form {
    padding: 25px 27px;

    display: flex;
    flex-direction: column;
    gap: 27px;
}


/* =========================================================
   PDF DROP ZONE
========================================================= */

.document-drop-zone {
    min-height: 230px;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px dashed rgba(76, 195, 255, 0.35);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(76, 195, 255, 0.045),
            rgba(208, 35, 232, 0.025)
        );

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.document-drop-zone:hover,
.document-drop-zone:focus {
    border-color: var(--course-cyan);

    background: rgba(76, 195, 255, 0.085);

    box-shadow:
        0 0 0 3px rgba(76, 195, 255, 0.08);
}

.document-drop-zone.is-dragging {
    border-color: var(--course-green);

    background: rgba(70, 230, 168, 0.09);

    transform: scale(1.005);
}

.document-drop-zone.has-file {
    border-color: rgba(70, 230, 168, 0.48);
}

.document-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;

    color: var(--course-muted);

    text-align: center;
}

.document-drop-icon {
    margin-bottom: 3px;

    font-size: 44px;
}

.document-drop-content strong {
    color: #ffffff;

    font-size: 17px;
}

.document-drop-content > span:not(.document-drop-icon) {
    font-size: 12px;
}

.document-drop-content small {
    font-size: 9px;
}


/* =========================================================
   SELECTED PDF
========================================================= */

.document-selected-card {
    margin-top: 15px;
    padding: 16px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;

    border: 1px solid rgba(70, 230, 168, 0.31);
    border-radius: 13px;

    background: rgba(70, 230, 168, 0.045);
}

.document-selected-icon {
    width: 58px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 105, 105, 0.42);
    border-radius: 9px;

    color: #ffd6d6;

    background:
        linear-gradient(
            145deg,
            rgba(255, 90, 90, 0.18),
            rgba(255, 90, 90, 0.055)
        );

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.document-selected-information {
    min-width: 0;
}

.document-selected-information > span {
    display: block;

    margin-bottom: 7px;

    color: var(--course-green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.document-selected-information strong {
    display: block;

    color: #ffffff;

    overflow-wrap: anywhere;

    font-size: 15px;
}

.document-selected-information p {
    margin: 7px 0 0;

    color: var(--course-muted);

    font-size: 10px;
}

.document-remove-button {
    padding: 9px 12px;

    border: 1px solid rgba(255, 120, 120, 0.32);
    border-radius: 8px;

    color: #ffd0d0;
    background: rgba(255, 90, 90, 0.06);

    cursor: pointer;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   DOCUMENT PROMPT
========================================================= */

.document-prompt-section {
    display: flex;
    flex-direction: column;
}

.document-prompt-section .api-sample-grid {
    margin-bottom: 21px;
}

.document-prompt-heading {
    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.document-prompt-heading .api-input-label {
    margin: 0;
}

.document-prompt-heading span {
    color: var(--course-muted);

    font-size: 9px;
}

.document-prompt-heading span.near-limit {
    color: var(--course-gold);
}


/* =========================================================
   DOCUMENT ACTIONS
========================================================= */

.document-analysis-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.document-analysis-submit {
    min-width: 190px;
}

.document-analysis-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}


/* =========================================================
   DOCUMENT RESULT
========================================================= */

.document-analysis-result {
    margin: 0 27px 27px;

    border: 1px solid rgba(70, 230, 168, 0.32);
    border-radius: 14px;

    background: rgba(0, 7, 19, 0.7);

    overflow: hidden;
}

.document-analysis-output {
    min-height: 230px;
}

.document-result-details {
    padding: 14px 19px;

    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        repeat(2, minmax(0, 1fr));
    gap: 12px;

    border-top: 1px solid rgba(70, 230, 168, 0.13);

    background: rgba(70, 230, 168, 0.028);
}

.document-raw-output-note {
    padding: 13px 19px;

    border-top: 1px solid rgba(76, 195, 255, 0.12);

    color: var(--course-muted);
    background: rgba(76, 195, 255, 0.035);

    font-size: 9px;
    line-height: 1.55;
}

.document-raw-output-note strong {
    color: var(--course-cyan);
}


/* =========================================================
   LESSON 08 RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .document-result-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .document-analysis-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .document-drop-zone {
        min-height: 215px;
        padding: 20px 15px;
    }

    .document-selected-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .document-remove-button {
        grid-column: 1 / -1;

        width: 100%;
    }

    .document-analysis-actions {
        display: grid;
        grid-template-columns: 0.7fr 1.3fr;
    }

    .document-analysis-actions button {
        width: 100%;
        min-width: 0;
    }

    .document-analysis-result {
        margin-left: 18px;
        margin-right: 18px;
    }
}

/* =========================================================
   LESSON 09 — PROJECT PLANNER
========================================================= */

.project-planner-form {
    padding: 26px 27px;

    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =========================================================
   PLANNER SECTIONS
========================================================= */

.planner-section {
    padding: 23px;

    border: 1px solid rgba(76, 195, 255, 0.16);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.022);
}

.planner-section-header {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.planner-step-number {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(76, 195, 255, 0.5);
    border-radius: 50%;

    color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.08);

    font-size: 12px;
    font-weight: 900;
}

.planner-section-header h4 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 18px;
}

.planner-section-header p {
    margin: 0;

    color: var(--course-muted);

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   PLANNER FIELDS
========================================================= */

.planner-field-grid {
    display: grid;
    gap: 16px;
}

.planner-field-grid.two-columns {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.planner-field {
    min-width: 0;
    margin-bottom: 18px;
}

.planner-field:last-child {
    margin-bottom: 0;
}

.planner-field label,
.planner-label {
    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}

.planner-field input[type="text"],
.planner-field textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid rgba(76, 195, 255, 0.24);
    border-radius: 10px;

    color: #f4f8ff;
    background: rgba(0, 5, 18, 0.62);

    outline: none;
    resize: vertical;

    font: inherit;
    font-size: 12px;
    line-height: 1.6;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.planner-field input[type="text"]:focus,
.planner-field textarea:focus {
    border-color: var(--course-cyan);

    box-shadow:
        0 0 0 3px rgba(76, 195, 255, 0.08);
}

.planner-field-note {
    display: block;

    margin-top: 7px;

    color: var(--course-muted);

    font-size: 9px;
    line-height: 1.5;
}

.planner-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.planner-field-heading span {
    color: var(--course-muted);

    font-size: 9px;
}

.planner-field-heading span.near-limit {
    color: var(--course-gold);
}


/* =========================================================
   INPUT TYPE OPTIONS
========================================================= */

.planner-option-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.planner-option-card {
    position: relative;

    min-height: 135px;
    margin: 0;
    padding: 17px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 1px solid rgba(76, 195, 255, 0.18);
    border-radius: 11px;

    color: var(--course-muted);
    background: rgba(76, 195, 255, 0.035);

    cursor: pointer;
    text-align: center;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.planner-option-card:hover {
    border-color: rgba(76, 195, 255, 0.5);
    background: rgba(76, 195, 255, 0.075);

    transform: translateY(-2px);
}

.planner-option-card:has(input:checked) {
    border-color: var(--course-green);
    background: rgba(70, 230, 168, 0.075);
}

.planner-option-card input {
    position: absolute;

    top: 11px;
    right: 11px;
}

.planner-option-icon {
    font-size: 27px;
}

.planner-option-card strong {
    color: #ffffff;

    font-size: 13px;
}

.planner-option-card small {
    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   OUTPUT OPTIONS
========================================================= */

.planner-output-options {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.planner-inline-option {
    margin: 0;
    padding: 12px 15px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(76, 195, 255, 0.2);
    border-radius: 9px;

    color: #d7ebff;
    background: rgba(76, 195, 255, 0.04);

    cursor: pointer;

    font-size: 11px;
}

.planner-inline-option:has(input:checked) {
    border-color: var(--course-green);
    background: rgba(70, 230, 168, 0.075);
}


/* =========================================================
   SAFEGUARD CHECKLIST
========================================================= */

.planner-checklist-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.planner-check-card {
    margin: 0;
    padding: 13px 14px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;

    color: #dfefff;
    background: rgba(255, 255, 255, 0.025);

    cursor: pointer;

    font-size: 10px;
    line-height: 1.45;
}

.planner-check-card:has(input:checked) {
    border-color: rgba(70, 230, 168, 0.32);
    background: rgba(70, 230, 168, 0.045);
}

.planner-check-card input {
    margin-top: 2px;

    accent-color: var(--course-green);
}


/* =========================================================
   PLANNER ACTIONS
========================================================= */

.planner-actions {
    padding: 3px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.planner-actions > div {
    display: flex;
    gap: 10px;
}

.planner-save-note {
    color: var(--course-muted);

    font-size: 9px;
}


/* =========================================================
   GENERATED PLAN
========================================================= */

.planner-result {
    margin: 0 27px 27px;

    border: 1px solid rgba(70, 230, 168, 0.32);
    border-radius: 14px;

    background: rgba(0, 7, 19, 0.72);

    overflow: hidden;
}

.planner-result-actions {
    display: flex;
    gap: 9px;
}

.planner-result-output {
    max-height: 720px;
    min-height: 300px;

    padding: 23px 21px;

    color: #eff8ff;

    white-space: pre-wrap;
    overflow: auto;
    overflow-wrap: anywhere;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 11px;
    line-height: 1.7;
}

.planner-result-footer {
    padding: 14px 19px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    border-top: 1px solid rgba(70, 230, 168, 0.14);

    background: rgba(70, 230, 168, 0.045);
}

.planner-result-footer strong {
    color: var(--course-green);

    font-size: 10px;
}

.planner-result-footer span {
    color: var(--course-muted);

    font-size: 9px;
}

.planner-field input::placeholder,
.planner-field textarea::placeholder {
    color: rgba(181, 205, 230, 0.48);
    opacity: 1;
    font-style: italic;
}

/* =========================================================
   LESSON 09 RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .planner-field-grid.two-columns,
    .planner-option-grid,
    .planner-checklist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .project-planner-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .planner-section {
        padding: 18px;
    }

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

    .planner-actions > div {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
    }

    .planner-actions button {
        width: 100%;
    }

    .planner-result {
        margin-left: 18px;
        margin-right: 18px;
    }

    .api-result-header {
        align-items: flex-start;
    }

    .planner-result-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .planner-result-actions button {
        width: 100%;
    }
}

/* =========================================================
   LESSON 10 — FINAL PROJECT
========================================================= */

.final-project {
    border-color: rgba(70, 230, 168, 0.42);

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.36),
        0 0 30px rgba(70, 230, 168, 0.06);
}

.final-project-header {
    background:
        linear-gradient(
            90deg,
            rgba(70, 230, 168, 0.09),
            rgba(76, 195, 255, 0.07),
            rgba(208, 35, 232, 0.04)
        );
}


/* =========================================================
   FINAL PLAN SUMMARY
========================================================= */

.final-plan-summary {
    border-bottom: 1px solid rgba(76, 195, 255, 0.15);

    background: rgba(0, 5, 17, 0.42);
}

.final-plan-summary-header {
    padding: 20px 27px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.final-plan-summary-header > div:first-child > span {
    display: block;

    margin-bottom: 5px;

    color: var(--course-cyan);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.final-plan-summary-header h4 {
    margin: 0;

    color: #ffffff;

    font-size: 17px;
}

.final-plan-actions {
    display: flex;
    gap: 9px;
}

.final-edit-plan-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.final-plan-grid {
    padding: 0 27px 22px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.final-plan-item {
    min-width: 0;
    padding: 14px;

    border: 1px solid rgba(76, 195, 255, 0.15);
    border-radius: 10px;

    background: rgba(76, 195, 255, 0.035);
}

.final-plan-item span {
    display: block;

    margin-bottom: 6px;

    color: var(--course-muted);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.final-plan-item strong {
    display: block;

    color: #dff5ff;

    overflow-wrap: anywhere;

    font-size: 10px;
    line-height: 1.45;
}

.final-project-notice {
    margin: 0 27px 22px;
    padding: 13px 15px;

    border: 1px solid rgba(255, 209, 102, 0.3);
    border-left: 4px solid var(--course-gold);
    border-radius: 9px;

    color: #ffe7aa;
    background: rgba(255, 209, 102, 0.06);

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   DEVELOPER BLUEPRINT
========================================================= */

.final-developer-panel {
    margin: 22px 27px;

    border: 1px solid rgba(208, 35, 232, 0.2);
    border-radius: 12px;

    background: rgba(208, 35, 232, 0.025);

    overflow: hidden;
}

.final-developer-panel summary {
    padding: 15px 18px;

    color: #e9c8ff;
    background: rgba(208, 35, 232, 0.055);

    cursor: pointer;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.final-developer-content {
    padding: 19px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.final-developer-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.final-developer-field {
    min-width: 0;
}

.final-developer-field > span {
    display: block;

    margin-bottom: 7px;

    color: var(--course-purple);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.final-developer-field p {
    margin: 0;

    color: #dcecff;

    font-size: 11px;
    line-height: 1.65;
}

.final-developer-field pre {
    max-height: 320px;

    margin: 0;
    padding: 15px;

    border: 1px solid rgba(76, 195, 255, 0.13);
    border-radius: 9px;

    background: rgba(0, 3, 14, 0.7);

    overflow: auto;
}

.final-developer-field pre code {
    color: #bfeaff;

    white-space: pre-wrap;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   FINAL PROJECT FORM
========================================================= */

.final-project-form {
    padding: 5px 27px 27px;
}

.final-project-form-heading {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.final-project-form-heading span {
    display: block;

    margin-bottom: 5px;

    color: var(--course-green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.final-project-form-heading h4 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;
}

.final-project-form-heading small {
    max-width: 310px;

    color: var(--course-muted);

    text-align: right;

    font-size: 9px;
    line-height: 1.5;
}

.final-sample-section {
    margin-bottom: 21px;
}

.final-project-input-heading {
    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.final-project-input-heading .api-input-label {
    margin: 0;
}

.final-project-input-heading span {
    color: var(--course-muted);

    font-size: 9px;
}

.final-project-input-heading span.near-limit {
    color: var(--course-gold);
}

.final-project-textarea {
    min-height: 220px;
}

.final-project-form-footer {
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.final-project-form-footer > span {
    color: var(--course-muted);

    font-size: 9px;
}

.final-project-form-footer > div {
    display: flex;
    gap: 9px;
}

.final-project-submit {
    min-width: 190px;
}

.final-project-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}


/* =========================================================
   FINAL RESULT
========================================================= */

.final-project-result {
    margin: 0 27px 27px;

    border: 1px solid rgba(70, 230, 168, 0.34);
    border-radius: 14px;

    background: rgba(0, 8, 19, 0.72);

    overflow: hidden;
}

.final-project-output {
    min-height: 210px;
}

.final-project-raw-note {
    padding: 12px 19px;

    border-top: 1px solid rgba(76, 195, 255, 0.12);

    color: var(--course-muted);
    background: rgba(76, 195, 255, 0.03);

    font-size: 9px;
    line-height: 1.55;
}

.final-project-raw-note strong {
    color: var(--course-cyan);
}


/* =========================================================
   FINAL VERIFICATION
========================================================= */

.final-verification {
    margin: 0 27px 27px;
    padding: 21px;

    border: 1px solid rgba(70, 230, 168, 0.22);
    border-radius: 13px;

    background: rgba(70, 230, 168, 0.025);
}

.final-verification > header {
    margin-bottom: 17px;
}

.final-verification > header > span {
    display: block;

    margin-bottom: 5px;

    color: var(--course-green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.final-verification > header h4 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 17px;
}

.final-verification > header p {
    margin: 0;

    color: var(--course-muted);

    font-size: 10px;
}

.final-verification-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.final-check-item {
    min-width: 0;
    padding: 13px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.final-check-item.is-complete {
    border-color: rgba(70, 230, 168, 0.4);
    background: rgba(70, 230, 168, 0.065);
}

.final-check-icon {
    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(76, 195, 255, 0.3);
    border-radius: 50%;

    color: var(--course-cyan);
    background: rgba(76, 195, 255, 0.06);

    font-size: 9px;
    font-weight: 900;
}

.final-check-item.is-complete
.final-check-icon {
    border-color: var(--course-green);

    color: #03160f;
    background: var(--course-green);
}

.final-check-item.is-complete
.final-check-icon::before {
    content: "✓";

    font-size: 11px;
}

.final-check-item.is-complete
.final-check-icon {
    font-size: 0;
}

.final-check-item strong {
    display: block;

    margin-bottom: 4px;

    color: #eaf5ff;

    font-size: 9px;
    line-height: 1.35;
}

.final-check-item small {
    color: var(--course-muted);

    font-size: 8px;
    line-height: 1.35;
}

.final-check-item.is-complete small {
    color: var(--course-green);
}


/* =========================================================
   LESSON 10 RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

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

@media (max-width: 850px) {

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

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

@media (max-width: 700px) {

    .final-plan-summary-header {
        align-items: stretch;
        flex-direction: column;
    }

    .final-plan-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .final-plan-actions > * {
        width: 100%;
    }

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

    .final-developer-panel {
        margin-left: 18px;
        margin-right: 18px;
    }

    .final-developer-grid {
        grid-template-columns: 1fr;
    }

    .final-project-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .final-project-form-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .final-project-form-heading small {
        max-width: none;

        text-align: left;
    }

    .final-project-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .final-project-form-footer > div {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .final-project-form-footer
    .final-project-submit {
        grid-column: 1 / -1;

        width: 100%;
        min-width: 0;
    }

    .final-project-form-footer button {
        width: 100%;
    }

    .final-project-result,
    .final-verification {
        margin-left: 18px;
        margin-right: 18px;
    }

    .final-verification-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   COURSE AI ASSISTANT BUTTON
========================================================= */

.course-assistant-toggle {
    padding: 10px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(70, 230, 168, 0.48);
    border-radius: 9px;

    color: #eafff7;

    background:
        linear-gradient(
            135deg,
            rgba(70, 230, 168, 0.13),
            rgba(76, 195, 255, 0.09)
        );

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    cursor: pointer;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-assistant-toggle:hover {
    border-color: var(--course-green);

    transform: translateY(-1px);

    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(70, 230, 168, 0.09);
}

.course-assistant-toggle-icon {
    color: var(--course-green);

    font-size: 14px;
}


/* =========================================================
   ASSISTANT BACKDROP
========================================================= */

.course-assistant-backdrop {
    position: fixed;
    inset: 0;

    z-index: 9997;

    background: rgba(0, 4, 14, 0.28);
    backdrop-filter: blur(1px);
}


/* =========================================================
   ASSISTANT PANEL
========================================================= */

.course-assistant-panel {
    position: fixed;

    top: 74px;
    right: 24px;
    bottom: 24px;

    z-index: 9998;

    width: min(
        440px,
        calc(100vw - 36px)
    );

    display: grid;
    grid-template-rows:
        auto
        auto
        minmax(0, 1fr)
        auto
        auto;

    border: 1px solid rgba(76, 195, 255, 0.42);
    border-radius: 17px;

    background:
        linear-gradient(
            165deg,
            rgba(3, 13, 35, 0.99),
            rgba(1, 7, 22, 0.99)
        );

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.58),
        0 0 35px rgba(76, 195, 255, 0.09);

    overflow: hidden;
}


/* =========================================================
   ASSISTANT HEADER
========================================================= */

.course-assistant-header {
    padding: 15px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border-bottom: 1px solid rgba(76, 195, 255, 0.14);

    background:
        linear-gradient(
            90deg,
            rgba(76, 195, 255, 0.1),
            rgba(70, 230, 168, 0.055),
            rgba(208, 35, 232, 0.04)
        );
}

.course-assistant-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.course-assistant-avatar {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(70, 230, 168, 0.45);
    border-radius: 50%;

    color: var(--course-green);
    background: rgba(70, 230, 168, 0.08);

    box-shadow:
        0 0 20px rgba(70, 230, 168, 0.08);

    font-size: 18px;
}

.course-assistant-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--course-cyan);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.course-assistant-header h3 {
    margin: 0;

    color: #ffffff;

    font-size: 14px;
}

.course-assistant-header-actions {
    display: flex;
    gap: 6px;
}

.course-assistant-header-actions button {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    color: #d9eaff;
    background: rgba(255, 255, 255, 0.035);

    cursor: pointer;
}

.course-assistant-delete:hover {
    border-color: rgba(255, 110, 110, 0.45);
    color: #ffbcbc;
    background: rgba(255, 80, 80, 0.07);
}

.course-assistant-close:hover {
    border-color: rgba(76, 195, 255, 0.45);
    color: #ffffff;
}


/* =========================================================
   CURRENT CONTEXT
========================================================= */

.course-assistant-context-bar {
    padding: 9px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.018);
}

.course-assistant-context-bar span {
    color: var(--course-muted);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-assistant-context-bar strong {
    min-width: 0;

    color: var(--course-green);

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 8px;
}


/* =========================================================
   ASSISTANT MESSAGES
========================================================= */

.course-assistant-messages {
    min-height: 0;
    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 13px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(76, 195, 255, 0.52)
        rgba(255, 255, 255, 0.03);
}

.course-assistant-message {
    max-width: 91%;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.course-assistant-message.is-user {
    align-self: flex-end;
}

.course-assistant-message.is-assistant {
    align-self: flex-start;
}

.course-assistant-message-label {
    padding: 0 3px;

    color: var(--course-muted);

    font-size: 6px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.course-assistant-message.is-user
.course-assistant-message-label {
    text-align: right;
}

.course-assistant-message-content {
    padding: 11px 13px;

    border: 1px solid rgba(76, 195, 255, 0.16);
    border-radius: 12px 12px 12px 4px;

    color: #e8f3ff;
    background: rgba(76, 195, 255, 0.055);

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    font-family: inherit;
    font-size: 10px;
    line-height: 1.65;
}

.course-assistant-message.is-user
.course-assistant-message-content {
    border-color: rgba(70, 230, 168, 0.26);
    border-radius: 12px 12px 4px 12px;

    color: #edfff8;
    background: rgba(70, 230, 168, 0.075);
}

.course-assistant-message.is-loading
.course-assistant-message-content {
    color: var(--course-muted);

    animation:
        courseAssistantPulse 1.2s ease-in-out infinite;
}

@keyframes courseAssistantPulse {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================================
   QUICK PROMPTS
========================================================= */

.course-assistant-quick-prompts {
    padding: 10px 14px;

    display: flex;
    gap: 7px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    overflow-x: auto;
}

.course-assistant-quick-prompts button {
    flex: 0 0 auto;

    padding: 7px 9px;

    border: 1px solid rgba(76, 195, 255, 0.17);
    border-radius: 8px;

    color: #cdeaff;
    background: rgba(76, 195, 255, 0.035);

    cursor: pointer;

    font-size: 7px;
    font-weight: 800;
}

.course-assistant-quick-prompts button:hover {
    border-color: rgba(76, 195, 255, 0.46);
    background: rgba(76, 195, 255, 0.075);
}


/* =========================================================
   ASSISTANT INPUT
========================================================= */

.course-assistant-form {
    padding: 12px 14px 13px;

    border-top: 1px solid rgba(76, 195, 255, 0.1);

    background: rgba(0, 3, 13, 0.72);
}

.course-assistant-input-wrap {
    border: 1px solid rgba(76, 195, 255, 0.25);
    border-radius: 11px;

    background: rgba(0, 5, 18, 0.78);

    overflow: hidden;
}

.course-assistant-input-wrap:focus-within {
    border-color: var(--course-cyan);

    box-shadow:
        0 0 0 3px rgba(76, 195, 255, 0.07);
}

.course-assistant-form textarea {
    width: 100%;
    min-height: 76px;
    max-height: 160px;

    padding: 12px 13px 8px;

    border: 0;

    color: #f4f9ff;
    background: transparent;

    outline: none;
    resize: vertical;

    font: inherit;
    font-size: 10px;
    line-height: 1.55;
}

.course-assistant-form textarea::placeholder {
    color: rgba(184, 206, 230, 0.46);
}

.course-assistant-input-footer {
    padding: 7px 8px 8px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-assistant-input-footer > span {
    color: var(--course-muted);

    font-size: 7px;
}

.course-assistant-input-footer > span.near-limit {
    color: var(--course-gold);
}

.course-assistant-input-footer button {
    padding: 7px 11px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 1px solid rgba(70, 230, 168, 0.44);
    border-radius: 8px;

    color: #effff9;

    background:
        linear-gradient(
            135deg,
            rgba(70, 230, 168, 0.18),
            rgba(76, 195, 255, 0.12)
        );

    cursor: pointer;

    font-size: 8px;
    font-weight: 900;
}

.course-assistant-input-footer button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.course-assistant-disclaimer {
    margin: 8px 2px 0;

    color: rgba(181, 202, 225, 0.58);

    font-size: 7px;
    line-height: 1.45;
}


/* =========================================================
   ASSISTANT RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .course-assistant-panel {
        top: 12px;
        right: 12px;
        bottom: 12px;
        left: 12px;

        width: auto;

        border-radius: 14px;
    }

    .course-assistant-backdrop {
        background: rgba(0, 3, 12, 0.68);
    }

    .course-assistant-message {
        max-width: 95%;
    }
}

/* =========================================================
   FORCE ASSISTANT HIDDEN STATE
========================================================= */

.course-assistant-panel[hidden],
.course-assistant-backdrop[hidden] {
    display: none !important;
}

.lab-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
}

.return-lab-button {
    min-height: 38px;
    padding: 9px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(76, 195, 255, 0.38);
    border-radius: 9px;

    color: #dff6ff;
    background: rgba(76, 195, 255, 0.08);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.return-lab-button:hover {
    border-color: #4cc3ff;
    background: rgba(76, 195, 255, 0.14);
    transform: translateY(-1px);
}

.return-lab-icon {
    color: #75d6ff;
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 640px) {
    .lab-header-actions {
        gap: 7px;
    }

    .return-lab-button {
        width: 38px;
        padding: 8px;
    }

    .return-lab-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}
