:root {
        --surface-0: #f7f9fd;
        --surface-1: #ffffff;
        --surface-2: #eef4ff;
        --text-strong: #0f172a;
        --text-soft: #475569;
        --line-soft: #d9e4f5;
        --brand-1: #0f5bd7;
        --brand-2: #0b3f9f;
        --brand-3: #0f766e;
        --shadow-soft: 0 18px 46px rgba(15, 23, 42, 0.08);
        --shadow-lift: 0 24px 70px rgba(15, 23, 42, 0.11);
    }

    html,
    body {
        height: auto !important;
        min-height: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    html {
        overflow-y: auto !important;
    }

    body {
        display: block !important;
        overflow-y: visible !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    main {
        flex: none !important;
        background:
            linear-gradient(180deg, rgba(239, 246, 255, 0.86) 0%, rgba(247, 249, 253, 0.98) 42%, #ffffff 100%),
            radial-gradient(circle at 88% 8%, rgba(15, 91, 215, 0.11), transparent 30%),
            radial-gradient(circle at 8% 72%, rgba(15, 118, 110, 0.08), transparent 25%),
            var(--surface-0);
        padding-top: clamp(18px, 2.5vw, 34px);
        padding-bottom: clamp(56px, 6vw, 92px);
        overflow-x: hidden;
    }

    .container {
        max-width: 1280px;
        width: min(100% - 32px, 1280px);
        margin-inline: auto;
    }

    /* --- Toast Notification --- */
    .token-toast {
        position: fixed; top: 90px; right: 20px;
        background: #fff; color: #1f2937; padding: 15px 20px;
        border-radius: 14px; box-shadow: 0 18px 35px rgba(15,23,42,0.15);
        z-index: 9999; animation: slideIn 0.5s, fadeOut 0.5s 4s forwards;
        border: 1px solid #e2e8f0; border-left: 5px solid #f39c12; display: flex; align-items: center; gap: 15px; font-weight: 500;
    }
    .token-toast.success { border-left-color: #2ecc71; }
    .token-toast.error { border-left-color: #e74c3c; }
    @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
    @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

    .practical-hero {
        position: relative;
        overflow: hidden;
        background:
            radial-gradient(circle at 92% 18%, rgba(15, 91, 215, 0.12), transparent 16rem),
            linear-gradient(135deg, #ffffff 0%, #f2f7ff 54%, #e8f1ff 100%);
        border: 1px solid var(--line-soft);
        border-radius: 20px;
        padding: clamp(24px, 3vw, 38px);
        margin-bottom: 18px;
        box-shadow: var(--shadow-soft);
    }
    .practical-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 88% 14%, rgba(37, 99, 235, 0.16), transparent 16rem),
            radial-gradient(circle at 12% 82%, rgba(14, 165, 233, 0.12), transparent 18rem),
            linear-gradient(120deg, rgba(255, 255, 255, 0.5), transparent 48%);
        pointer-events: none;
    }
    .practical-hero > * {
        position: relative;
        z-index: 1;
    }
    .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 8px;
        color: var(--brand-2);
        font-weight: 700;
        letter-spacing: 0;
        text-transform: uppercase;
        font-size: 0.78rem;
    }
    .page-title {
        margin: 0 0 10px;
        color: var(--text-strong);
        line-height: 1.12;
        font-size: clamp(1.9rem, 3.8vw, 3.15rem);
        letter-spacing: 0;
        max-width: 980px;
    }
    .hero-subtitle {
        margin: 0;
        color: var(--text-soft);
        max-width: 900px;
        font-size: clamp(1rem, 1.35vw, 1.17rem);
        line-height: 1.7;
    }
    .hero-meta {
        margin-top: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .hero-meta-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid #d9e4ff;
        border-radius: 999px;
        background: #fff;
        color: #1e3a8a;
        padding: 8px 12px;
        font-size: 0.88rem;
        font-weight: 600;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
    }

    /* --- Status Bar --- */
    .completion-bar {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(217, 228, 245, 0.96);
        padding: 14px;
        border-radius: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
        flex-wrap: wrap;
        gap: 12px;
        backdrop-filter: blur(12px);
    }
    .completion-bar.is-guest {
        align-items: center;
        background: #ffffff;
        border-color: #dbe7fb;
        padding: 14px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    }
    .status-info {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        min-width: 0;
        flex: 1 1 320px;
    }
    .status-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; }
    .completion-note {
        color: #475569;
        font-size: 0.88rem;
        background: #f8fbff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 9px 11px;
    }
    .completion-note a {
        color: var(--brand-1);
        font-weight: 800;
        text-decoration-thickness: 2px;
    }

    .learning-progress-card {
        background: #ffffff;
        border: 1px solid #e2eaf7;
        border-radius: 16px;
        padding: 18px 18px 16px;
        margin: 0 0 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    }

    .progress-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 12px;
    }

    .progress-title {
        color: #0f172a;
        font-size: 0.98rem;
        font-weight: 850;
    }

    .progress-percent {
        color: #0047ff;
        font-size: 0.98rem;
        font-weight: 900;
    }

    .progress-track {
        height: 6px;
        overflow: hidden;
        background: #eaf0f8;
        border-radius: 999px;
    }

    .progress-fill {
        width: var(--progress-width, 80%);
        height: 100%;
        background: linear-gradient(90deg, #0047ff 0%, #155dfc 100%);
        border-radius: inherit;
    }

    .progress-steps {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        margin-top: 15px;
    }

    .progress-step {
        display: grid;
        justify-items: center;
        gap: 6px;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 750;
        text-align: center;
        line-height: 1.2;
        min-width: 0;
    }

    .progress-step span:last-child {
        display: block;
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
        white-space: normal;
    }

    .progress-step-icon {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: #cbd5e1;
        font-size: 0.72rem;
        box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
    }

    .progress-step.is-done {
        color: #0f5132;
    }

    .progress-step.is-done .progress-step-icon {
        background: #00a865;
    }

    .progress-step.is-current {
        color: #0047ff;
    }

    .progress-step.is-current .progress-step-icon {
        background: #eef4ff;
        color: #0047ff;
        border: 1px solid #bfd2ff;
    }

    .btn-complete {
        background-color: var(--success-color, #2ecc71); color: white; border: none;
        min-height: 40px; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 0.92rem;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.3s ease;
        box-shadow: 0 10px 18px rgba(46, 204, 113, 0.18);
    }
    .btn-complete:hover { background-color: #27ae60; }
    .btn-complete:disabled { opacity: 0.6; cursor: not-allowed; }
    
    /* --- Report Button Style --- */
    .btn-report {
        background-color: #fff1f2; color: #e11d48; border: 1px solid #fecdd3;
        min-height: 40px; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 0.9rem;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease;
    }
    .btn-report:hover { background-color: #ffe4e6; border-color: #fda4af; }

    .badge-done {
        background-color: #d4edda; color: #155724; padding: 8px 15px;
        border-radius: 999px; font-weight: bold; display: flex; align-items: center; gap: 8px;
    }
    .guest-banner {
        background: #e7f1ff;
        color: #0b3f9f;
        padding: 9px 13px;
        border-radius: 999px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid #cfe0ff;
        white-space: nowrap;
    }
    .guest-access {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        width: 100%;
    }
    .guest-access-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #0047c7;
        background: #eaf2ff;
        border: 1px solid #cfe0ff;
        font-size: 1.05rem;
    }
    .guest-access-copy {
        min-width: 0;
    }
    .guest-access-title {
        color: #0b3f9f;
        display: block;
        font-size: 0.98rem;
        font-weight: 900;
        line-height: 1.2;
    }
    .guest-access-text {
        color: #475569;
        display: block;
        font-size: 0.9rem;
        line-height: 1.45;
        margin-top: 3px;
    }
    .guest-login-btn {
        min-height: 40px;
        padding: 9px 14px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #ffffff;
        background: linear-gradient(135deg, #064cff 0%, #0ea5e9 100%);
        font-size: 0.88rem;
        font-weight: 850;
        text-decoration: none;
        box-shadow: 0 12px 24px rgba(0, 71, 255, 0.18);
        white-space: nowrap;
    }
    .guest-login-btn:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
    }
    .status-copy {
        color: #475569;
        font-size: 0.95rem;
        line-height: 1.55;
    }
    .status-copy a {
        color: var(--brand-1);
        font-weight: 800;
        text-decoration-thickness: 2px;
    }

    .back-button-container {
        display: flex;
        justify-content: flex-start;
        margin: 30px 0 0;
    }
    .back-button-container .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: 12px;
        padding: 11px 18px;
    }

    /* --- Breadcrumb --- */
    .breadcrumb { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem 0; font-size: 0.95rem; }
    .breadcrumb li { display: flex; align-items: center; }
    .breadcrumb li a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease; }
    .breadcrumb li a:hover { color: var(--dark-color); }
    .breadcrumb li:not(:last-child)::after { content: '/'; margin: 0 0.75rem; color: #999; }
    .breadcrumb li.active { color: #777; }

    /* --- Tabs --- */
    .tabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
        z-index: 10;
        margin-bottom: 14px;
        max-width: 100%;
    }
    .tab-link {
        min-height: 78px;
        width: 100%;
        padding: 13px 14px;
        cursor: pointer;
        border: 1px solid #e3ebf7;
        background: #ffffff;
        color: #0f172a;
        border-radius: 14px;
        transition: all 0.22s ease;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
        text-align: left;
    }
    .tab-link:hover {
        border-color: #bfd2ff;
        box-shadow: 0 16px 32px rgba(15, 91, 215, 0.12);
        transform: translateY(-1px);
    }
    .tab-link.active {
        background: #ffffff;
        border-color: #b9cdfd;
        color: #0f172a;
        box-shadow: 0 16px 34px rgba(15, 91, 215, 0.14);
    }
    .tab-link.active .tab-icon {
        background: #eaf1ff;
        color: #0047ff;
    }

    .tab-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f0f5ff;
        color: #0047ff;
        font-size: 1rem;
    }

    .tab-icon.objective { background: #e9fbf3; color: #0f9f6e; }
    .tab-icon.materials { background: #f3edff; color: #6d28d9; }
    .tab-icon.procedure { background: #fff1e6; color: #f97316; }
    .tab-icon.figure { background: #ecf4ff; color: #2563eb; }
    .tab-icon.quiz { background: #ffeaf1; color: #e11d48; }

    .tab-card-text {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .tab-card-title {
        color: #0f172a;
        font-size: 0.92rem;
        font-weight: 900;
        line-height: 1.1;
    }

    .tab-card-subtitle {
        color: #0047a8;
        font-size: 0.78rem;
        font-weight: 650;
        line-height: 1.25;
    }

    .tab-chevron {
        color: #0f172a;
        font-size: 0.78rem;
    }

    .simulator-launch-card {
        width: 100%;
        min-height: 72px;
        margin: 0 0 18px;
        padding: 14px 16px;
        border: none;
        border-radius: 14px;
        cursor: pointer;
        color: #ffffff;
        background: linear-gradient(135deg, #064cff 0%, #04a7d8 100%);
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        text-align: left;
        box-shadow: 0 18px 38px rgba(0, 71, 255, 0.25);
        transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .simulator-launch-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 22px 44px rgba(0, 71, 255, 0.31);
    }

    .simulator-launch-icon {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.16);
        font-size: 1.18rem;
    }

    .simulator-launch-title {
        display: block;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1.15;
    }

    .simulator-launch-subtitle {
        display: block;
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 0.78rem;
        font-weight: 550;
        line-height: 1.25;
    }

    .simulator-launch-arrow {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .tab-content {
        display: none; background-color: #ffffff; padding: clamp(2rem, 3vw, 3rem);
        border: 1px solid #d7e3ff; border-radius: 18px; box-shadow: var(--shadow-lift);
        margin-bottom: 28px;
        min-height: 220px;
        max-width: 100%;
        overflow: visible;
    }
    .tab-content.active { display: block; animation: fadeIn 0.5s; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    /* --- Content Typography (FIX FOR BULLETS & NUMBERS) --- */
    .prose { 
        line-height: 1.85; 
        color: #344054;
        max-width: 100%; 
        min-width: 0;
        font-size: 1.03rem;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .prose :where(p, div, span, li, h1, h2, h3, h4, h5, h6, blockquote) {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
        white-space: normal;
    }
    .prose :where(img, video, iframe, canvas, svg) {
        max-width: 100%;
        height: auto;
    }
    .prose :where(.MathJax, mjx-container) {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .prose p:first-child { margin-top: 0; }
    .prose p:last-child { margin-bottom: 0; }
    .prose h2,
    .prose h3,
    .prose h4 {
        color: var(--text-strong);
        line-height: 1.25;
    }
    
    /* 1. Default Behavior */
    .prose ul, .prose ol {
        margin-top: 1em;
        margin-bottom: 1em;
        padding-left: 2em; /* More space for numbers */
    }
    .prose ul { list-style-type: disc; } 
    .prose ol { list-style-type: decimal; }
    .prose li { margin-bottom: 0.5em; padding-left: 0.5em; }

    /* 2. FORCE "Procedure" to always be Numbered (1, 2, 3) */
    #Procedure .prose ul, 
    #Procedure .prose ol { 
        list-style-type: decimal !important; 
    }

    /* 3. FORCE "Materials" & "Objective" to always be Bullets */
    #Materials .prose ul, #Materials .prose ol { list-style-type: disc !important; }
    #Objective .prose ul, #Objective .prose ol { list-style-type: disc !important; }

    /* Tables in Procedure */
    .prose table {
        width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1.5em 0;
        font-size: 0.95rem; border: 1px solid #e2e8f0;
    }
    .prose th { background-color: #f8fafc; text-align: left; padding: 12px; border-bottom: 2px solid #ddd; font-weight: 600; }
    .prose td { padding: 10px 12px; border-bottom: 1px solid #eee; }
    .prose th,
    .prose td {
        overflow-wrap: anywhere;
        word-break: normal;
        white-space: normal;
    }
    .prose tr:hover td { background-color: #f9f9f9; }

    /* --- Professional Formula & Data Formatting --- */
    .formula-card {
        background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
        border: 1px solid #dbe7ff;
        border-left: 4px solid var(--brand-1);
        padding: 16px 18px;
        margin: 18px 0;
        border-radius: 12px;
        overflow: visible;
    }

    .formula-label {
        display: block;
        color: #1e3a8a;
        font-family: inherit;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .formula-expression {
        color: #0f172a;
        display: block;
        font-family: Cambria, Georgia, "Times New Roman", serif;
        font-size: clamp(1.05rem, 1.8vw, 1.35rem);
        font-weight: 700;
        line-height: 1.55;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .formula-note {
        color: #475569;
        display: block;
        font-size: 0.92rem;
        line-height: 1.6;
        margin-top: 8px;
    }
    
    .data-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        padding: 15px;
        border-radius: 10px;
        margin: 20px 0;
    }
    
    .data-item {
        border-bottom: 1px solid #f1f5f9;
        padding: 8px 0;
    }
    
    .data-label {
        font-weight: 600;
        color: #64748b;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    /* Code Blocks */
    .code-block-wrapper { position: relative; }
    .code-block { background-color: #282c34; color: #abb2bf; padding: 2rem; border-radius: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .copy-btn { position: absolute; top: 15px; right: 15px; background: #454c59; color: #fff; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

    /* --- Simulator Sandbox & Skeleton --- */
    .simulator-wrapper { position: relative; border-radius: 14px; overflow: hidden; background-color: #0f172a; min-height: min(600px, 70vh); border: 1px solid #1e293b; }
    .simulator-skeleton {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: min(600px, 70vh);
        padding: 40px 24px;
        text-align: center;
        background: linear-gradient(180deg, #0b132b 0%, #1c2541 100%);
        color: #f8fafc;
    }
    .simulator-skeleton-spinner {
        margin-bottom: 20px;
    }
    .simulator-skeleton-text {
        font-size: 1.05rem;
        font-weight: 600;
        color: #e2e8f0;
        margin: 0;
        max-width: 480px;
        line-height: 1.5;
    }
    .simulator-wrapper iframe { display: block; width: 100%; height: min(600px, 70vh); min-height: 360px; border: none; }
    .fullscreen-btn {
        position: absolute; top: 15px; right: 15px; z-index: 20; background: rgba(0, 0, 0, 0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; transition: all 0.3s ease;
    }
    .fullscreen-btn:hover { background: rgba(0, 0, 0, 0.85); transform: scale(1.1); }

    /* DevTools Barrier Overlay */
    .devtools-shield-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 2147483647;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: #f8fafc;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 24px;
        text-align: center;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    .devtools-shield-overlay.is-active {
        display: flex;
    }

    /* --- Enhanced Gallery Grid --- */
    .figure-gallery { 
        display: grid; 
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
        gap: 18px; 
        padding: 10px 0;
    }
    .gallery-item { 
        position: relative; 
        border-radius: 12px; 
        overflow: hidden; 
        cursor: pointer; 
        box-shadow: 0 10px 24px rgba(15,23,42,0.08); 
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: #fff;
        border: 1px solid #e5edf8;
    }
    .gallery-item:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
    }
    .gallery-img { 
        width: 100%; 
        height: 200px; 
        object-fit: cover; 
        display: block; 
    }
    .gallery-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
        background: rgba(0, 0, 0, 0.4); 
        color: #fff;
        display: flex; flex-direction: column; justify-content: center; align-items: center; 
        opacity: 0; transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    .gallery-item:hover .gallery-overlay { opacity: 1; }
    
    /* --- Enhanced Modal (Lightbox) --- */
    .img-modal { 
        display: none; position: fixed; z-index: 10000; 
        top: 0; left: 0; width: 100%; height: 100%; 
        background-color: rgba(0,0,0,0.92); 
        justify-content: center; align-items: center; 
        flex-direction: column;
    }
    
    .modal-img-container {
        position: relative;
        max-width: 90%;
        max-height: 80vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .img-modal-content { 
        max-width: 100%; 
        max-height: 80vh; 
        object-fit: contain; 
        transition: transform 0.3s ease; 
        cursor: zoom-in;
    }
    
    .img-modal-content.zoomed {
        transform: scale(2);
        cursor: zoom-out;
    }

    .img-close { 
        position: absolute; top: 20px; right: 30px; 
        color: #f1f1f1; font-size: 40px; font-weight: bold; 
        cursor: pointer; z-index: 10001; transition: color 0.2s;
    }
    .img-close:hover { color: #e11d48; }

    .img-prev, .img-next {
        cursor: pointer; position: absolute; top: 50%; width: auto; 
        padding: 16px; margin-top: -50px; 
        color: white; font-weight: bold; font-size: 30px; 
        transition: 0.3s ease; border-radius: 0 3px 3px 0; user-select: none;
        z-index: 10001; background: rgba(0,0,0,0.3);
    }
    .img-next { right: 0; border-radius: 3px 0 0 3px; }
    .img-prev { left: 0; border-radius: 0 3px 3px 0; }
    .img-prev:hover, .img-next:hover { background-color: rgba(255,255,255,0.2); }

    .modal-toolbar {
        margin-top: 15px;
        display: flex;
        gap: 15px;
        align-items: center;
        color: #fff;
    }
    .btn-modal-action {
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        padding: 8px 15px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 0.9rem;
        transition: background 0.2s;
        display: flex; align-items: center; gap: 8px;
    }
    .btn-modal-action:hover { background: rgba(255,255,255,0.3); }


    /* --- Report Modal Styles --- */
    .report-modal { display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(4px); }
    .report-modal-content { background: #fff; width: 90%; max-width: 500px; padding: 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; animation: popIn 0.3s ease; }
    @keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .report-header h3 { margin: 0 0 15px 0; color: #1f2937; display: flex; align-items: center; gap: 10px; }
    .report-form input, .report-form select, .report-form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: 6px; font-family: inherit; }
    .report-form label { display: block; margin-bottom: 5px; font-size: 0.9rem; font-weight: 500; color: #4b5563; }
    .report-btn-submit { width: 100%; background: #e11d48; color: white; padding: 12px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
    .report-btn-submit:hover { background: #be123c; }
    .close-report { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #9ca3af; background: none; border: none; }
    .close-report:hover { color: #1f2937; }

    @media (max-width: 768px) {
        main {
            padding-bottom: 96px;
        }

        .container {
            width: min(100% - 24px, 1280px);
        }

        .practical-hero {
            padding: 16px;
            border-radius: 14px;
            margin-bottom: 12px;
        }

        .page-title {
            font-size: clamp(1.45rem, 7vw, 2rem);
            line-height: 1.18;
        }

        .hero-subtitle {
            font-size: 0.95rem;
        }

        .hero-meta {
            gap: 8px;
        }

        .hero-meta-chip {
            max-width: 100%;
            font-size: 0.8rem;
            padding: 7px 10px;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .completion-bar {
            display: grid;
            grid-template-columns: 1fr;
            padding: 12px;
            gap: 10px;
            margin-bottom: 12px;
        }

        .status-info,
        .status-actions {
            width: 100%;
        }

        .status-actions {
            align-items: stretch;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 0;
        }

        .status-copy {
            font-size: 0.9rem;
        }

        .completion-bar.is-guest {
            padding: 12px;
        }

        .guest-access {
            grid-template-columns: auto minmax(0, 1fr);
            gap: 12px;
        }

        .guest-login-btn {
            grid-column: 1 / -1;
            width: 100%;
        }

        .status-actions form,
        .btn-report,
        .btn-complete,
        .back-button-container .btn {
            width: 100%;
        }

        .status-actions form {
            min-width: 0;
        }

        .completion-note {
            grid-column: 1 / -1;
            border-radius: 10px;
            text-align: center;
            padding: 8px 10px;
        }

        .guest-banner,
        .badge-done {
            width: 100%;
            justify-content: center;
            text-align: center;
            white-space: normal;
        }

        .breadcrumb {
            gap: 6px 0;
            font-size: 0.84rem;
            margin-bottom: 1rem;
        }

        .breadcrumb li:not(:last-child)::after {
            margin: 0 0.45rem;
        }

        .learning-progress-card {
            padding: 18px 18px 16px;
        }

        .progress-steps {
            gap: 5px;
        }

        .progress-step {
            font-size: 0.68rem;
            line-height: 1.15;
        }

        .tabs {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 10px;
        }

        .tab-link {
            min-height: 42px;
            white-space: normal;
            justify-content: center;
            padding: 9px 10px;
            font-size: 0.86rem;
            border-radius: 10px;
        }

        .tab-link:hover {
            transform: none;
        }

        .tab-content {
            padding: 1.15rem 1rem;
            border-radius: 14px;
            min-height: 0;
        }

        .prose {
            font-size: 0.95rem;
            line-height: 1.7;
        }

        .prose ul,
        .prose ol {
            padding-left: 1.35em;
        }

        .prose li {
            padding-left: 0.2em;
        }

        .prose table {
            display: table;
            overflow: visible;
            white-space: normal;
        }

        .prose th,
        .prose td {
            padding: 9px 10px;
        }

        .formula-card,
        .data-grid,
        .code-block {
            margin-inline: -2px;
        }

        .formula-card {
            padding: 14px;
        }

        .data-grid {
            grid-template-columns: 1fr;
            padding: 12px;
        }

        .code-block {
            padding: 3rem 1rem 1rem;
            font-size: 0.86rem;
        }

        .copy-btn {
            top: 10px;
            right: 10px;
        }

        .simulator-wrapper {
            min-height: min(430px, 68vh);
            border-radius: 12px;
        }

        .simulator-wrapper iframe {
            height: min(430px, 68vh) !important;
            min-height: 320px;
        }

        .fullscreen-btn {
            width: 36px;
            height: 36px;
            top: 10px;
            right: 10px;
            font-size: 1rem;
        }

        .figure-gallery {
            grid-template-columns: minmax(0, 1fr);
            gap: 14px;
        }

        .gallery-img {
            height: auto;
            aspect-ratio: 16 / 10;
        }

        #quiz-history-list > div {
            flex-wrap: wrap;
            align-items: flex-start !important;
        }

        #quiz-history-list > div > span {
            margin-left: 0;
        }

        #quiz-form button,
        #quiz-generate {
            width: 100%;
            justify-content: center;
        }

        .report-modal {
            align-items: flex-end;
            padding: 12px;
        }

        .report-modal-content {
            width: 100%;
            max-width: none;
            max-height: calc(100vh - 24px);
            overflow-y: auto;
            padding: 20px;
            border-radius: 16px;
        }

        .modal-img-container {
            max-width: calc(100vw - 24px);
            max-height: 72vh;
        }

        .modal-toolbar {
            flex-wrap: wrap;
            justify-content: center;
            padding-inline: 12px;
        }

        .img-prev, .img-next { font-size: 20px; padding: 12px; }
        .img-modal-content.zoomed { transform: scale(1.5); }
    }

    @media (max-width: 480px) {
        .container {
            width: min(100% - 18px, 1280px);
        }

        .practical-hero,
        .completion-bar,
        .tab-content {
            border-radius: 12px;
        }

        .hero-eyebrow {
            font-size: 0.7rem;
        }

        .learning-progress-card {
            padding: 14px 12px 12px;
        }

        .completion-bar {
            padding: 10px;
        }

        .status-info > span[style*="Have you finished"] {
            font-size: 0.9rem !important;
        }

        .btn-report,
        .btn-complete {
            min-height: 38px;
            padding: 9px 10px;
            font-size: 0.82rem;
            gap: 6px;
        }

        .guest-access-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
        }

        .guest-access-title {
            font-size: 0.92rem;
        }

        .guest-access-text {
            font-size: 0.84rem;
        }

        .progress-steps {
            gap: 3px;
        }

        .progress-step {
            font-size: 0.58rem;
            font-weight: 850;
            letter-spacing: 0;
        }

        .progress-step-icon {
            width: 20px;
            height: 20px;
            font-size: 0.62rem;
        }

        .tab-link {
            min-height: 40px;
            padding: 8px 9px;
            font-size: 0.8rem;
            gap: 6px;
        }

        .simulator-wrapper {
            min-height: min(360px, 64vh);
        }

        .simulator-wrapper iframe {
            height: min(360px, 64vh) !important;
            min-height: 280px;
        }

        .token-toast {
            left: 9px;
            right: 9px;
            width: auto;
        }
    }
    
    /* Virtual Lab Tutor Floating Widget */
    .lab-tutor-widget {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9998;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    }

    .tutor-toggle-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #ffffff;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .tutor-toggle-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        background: #f8fafc;
    }

    .tutor-chat-window {
        position: fixed;
        bottom: 110px;
        right: 30px;
        width: 400px;
        max-height: 600px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
        z-index: 9999;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .tutor-chat-window.active {
        display: flex;
    }

    .tutor-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tutor-header h4 {
        margin: 0;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tutor-close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        opacity: 0.9;
        transition: opacity 0.2s;
    }

    .tutor-close-btn:hover {
        opacity: 1;
    }

    .tutor-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        max-height: 400px;
        background: #f9fafb;
    }

    .tutor-msg {
        margin-bottom: 12px;
        padding: 10px 14px;
        border-radius: 12px;
        max-width: 85%;
        line-height: 1.5;
        font-size: 0.9rem;
        animation: msgFadeIn 0.3s ease;
    }

    @keyframes msgFadeIn {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .tutor-msg.student {
        background: #667eea;
        color: white;
        margin-left: auto;
        border-bottom-right-radius: 4px;
    }

    .tutor-msg.tutor {
        background: white;
        color: #1f2937;
        border: 1px solid #e5e7eb;
        border-bottom-left-radius: 4px;
    }

    .tutor-msg.typing {
        background: #e5e7eb;
        color: #6b7280;
        font-style: italic;
    }

    .tutor-input-area {
        padding: 16px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        gap: 10px;
        background: white;
        border-radius: 0 0 16px 16px;
    }

    .tutor-input-area input {
        flex: 1;
        padding: 10px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.9rem;
    }

    .tutor-input-area input:focus {
        outline: none;
        border-color: #667eea;
    }

    .tutor-send-btn {
        background: #667eea;
        color: white;
        border: none;
        padding: 10px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.2s;
    }

    .tutor-send-btn:hover:not(:disabled) {
        background: #5568d3;
    }

    .tutor-send-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        .lab-tutor-widget {
            right: 14px;
            bottom: 18px;
        }

        .tutor-chat-window {
            left: 12px;
            right: 12px;
            bottom: 88px;
            width: auto;
            max-width: none;
            max-height: min(560px, calc(100vh - 112px));
        }

        .tutor-toggle-btn {
            width: 55px;
            height: 55px;
            font-size: 1.6rem;
        }

        .token-toast {
            right: 12px;
            top: 80px;
            width: calc(100vw - 24px);
            max-width: 360px;
            padding: 12px 14px;
        }

        .tutor-messages {
            max-height: min(330px, 48vh);
            padding: 14px;
        }

        .tutor-msg {
            max-width: 92%;
        }

        .tutor-input-area {
            padding: 12px;
            gap: 8px;
        }

        .tutor-input-area input {
            min-width: 0;
        }

        .tutor-send-btn {
            padding-inline: 12px;
        }
    }



/* ==========================================================================
   MODERN PRACTICAL WORKSTATION UI/UX (ENGINEERING ELEVATION)
   ========================================================================== */

:root {
    --dept-primary: #2563eb;
    --dept-secondary: #1d4ed8;
    --dept-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 100%);
    --dept-hero-bg: linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #172554 100%);
    --dept-accent-bg: rgba(37, 99, 235, 0.08);
    --dept-border: rgba(37, 99, 235, 0.22);
    --dept-chip-bg: #eff6ff;
    --dept-chip-text: #1d4ed8;
}

/* --- Breadcrumb Navigation --- */
.practical-breadcrumb-nav {
    margin-bottom: 1.25rem;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    list-style: none;
    margin: 0;
    font-size: 0.88rem;
}
.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb li a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.breadcrumb li a:hover {
    color: var(--dept-primary, #2563eb);
    background: var(--dept-accent-bg, rgba(37, 99, 235, 0.08));
}
.breadcrumb li:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-left: 4px;
}
.breadcrumb li.active {
    color: var(--dept-primary, #2563eb);
    font-weight: 700;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Modern Practical Hero --- */
.practical-hero {
    position: relative;
    overflow: hidden;
    background: var(--dept-hero-bg, linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #172554 100%)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: clamp(26px, 3.5vw, 42px) !important;
    margin-bottom: 20px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14) !important;
    color: #ffffff !important;
}
.practical-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 15%, var(--dept-primary, #2563eb) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(14, 165, 233, 0.15) 0%, transparent 40%) !important;
    opacity: 0.35;
    pointer-events: none;
}
.practical-hero > * {
    position: relative;
    z-index: 1;
}
.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    text-transform: none !important;
}
.hero-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    display: inline-block;
    animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}
.hero-dot-sep {
    color: rgba(255, 255, 255, 0.4);
}
.hero-sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #86efac;
    font-size: 0.8rem;
    font-weight: 700;
}
.page-title {
    margin: 0 0 12px !important;
    color: #ffffff !important;
    line-height: 1.18 !important;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    max-width: 1050px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
    margin: 0 !important;
    color: #cbd5e1 !important;
    max-width: 950px !important;
    font-size: clamp(0.98rem, 1.25vw, 1.12rem) !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}
.hero-meta {
    margin-top: 20px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e2e8f0 !important;
    padding: 7px 14px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}
.hero-meta-chip:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
.hero-meta-chip.chip-ncert {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    color: #bfdbfe !important;
}
.hero-meta-chip.chip-manual {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    color: #fde68a !important;
}
.hero-meta-chip.chip-done {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
    color: #86efac !important;
}

/* --- Workstation Status / Control Bar --- */
.completion-bar {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    padding: 16px 20px !important;
    border-radius: 18px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    flex-wrap: wrap;
    gap: 14px;
}
.status-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
    flex: 1 1 340px;
}
.status-badge-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.badge-done {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}
.badge-in-progress {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.status-detail-text {
    color: #64748b;
    font-size: 0.9rem;
}
.quiz-status-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.quiz-status-pill.is-pass {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.quiz-status-pill.is-fail {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.quiz-status-pill.is-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.status-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.btn-complete {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    min-height: 42px !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2) !important;
}
.btn-complete:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3) !important;
}
.btn-complete:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background: #94a3b8 !important;
    box-shadow: none !important;
}
.btn-report {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fecdd3 !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-report:hover {
    background-color: #ffe4e6 !important;
    border-color: #fda4af !important;
    transform: translateY(-1px);
}
.completion-note {
    color: #64748b !important;
    font-size: 0.85rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}
.completion-note a {
    color: var(--dept-primary, #2563eb) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}
.guest-access {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.guest-access-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.guest-access-copy {
    flex: 1;
}
.guest-access-title {
    display: block;
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 2px;
}
.guest-access-text {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
}
.guest-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    background: var(--dept-gradient, linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.guest-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35) !important;
    color: #ffffff !important;
}

/* --- Learning Progress Card --- */
.learning-progress-card {
    background: #ffffff !important;
    border: 1px solid #e2eaf7 !important;
    border-radius: 18px !important;
    padding: 18px 22px !important;
    margin: 0 0 18px !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
}
.progress-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.progress-title {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-percent {
    color: var(--dept-primary, #2563eb) !important;
    font-size: 1rem;
    font-weight: 900;
}
.progress-track {
    height: 8px;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 999px;
}
.progress-fill {
    width: var(--progress-width, 0%);
    height: 100%;
    background: var(--dept-gradient, linear-gradient(90deg, #2563eb 0%, #60a5fa 100%)) !important;
    border-radius: inherit;
    transition: width 0.4s ease;
}
.progress-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}
.progress-step {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    min-width: 0;
}
.progress-step-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #cbd5e1;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}
.progress-step.is-done {
    color: #15803d !important;
}
.progress-step.is-done .progress-step-icon {
    background: #10b981 !important;
}
.progress-step.is-current {
    color: var(--dept-primary, #2563eb) !important;
}
.progress-step.is-current .progress-step-icon {
    background: var(--dept-accent-bg, #eff6ff) !important;
    color: var(--dept-primary, #2563eb) !important;
    border: 2px solid var(--dept-primary, #2563eb) !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3) !important;
}

/* --- Workstation Tabs Deck --- */
.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
}
.tab-link {
    flex: 1 1 150px !important;
    min-height: 64px !important;
    padding: 12px 16px !important;
    cursor: pointer;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    border-radius: 14px !important;
    transition: all 0.22s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    text-align: left !important;
    position: relative;
    overflow: hidden;
}
.tab-link:hover {
    border-color: var(--dept-border, #bfdbfe) !important;
    background: #fafcff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}
.tab-link.active {
    background: var(--dept-gradient, linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25) !important;
}
.tab-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 1rem !important;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.tab-link:hover .tab-icon {
    background: var(--dept-accent-bg, rgba(37, 99, 235, 0.1)) !important;
    color: var(--dept-primary, #2563eb) !important;
}
.tab-link.active .tab-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
.tab-card-text {
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1;
}
.tab-card-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: inherit !important;
}
.tab-card-subtitle {
    font-size: 0.74rem !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}
.tab-link.active .tab-card-subtitle {
    color: rgba(255, 255, 255, 0.82) !important;
}
.tab-chevron {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    transition: transform 0.2s ease;
}
.tab-link:hover .tab-chevron {
    transform: translateX(2px);
}
.tab-link.active .tab-chevron {
    color: rgba(255, 255, 255, 0.7) !important;
}
.tab-link.tab-link-sim {
    border-color: #fde047 !important;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
}
.tab-link.tab-link-sim .tab-icon {
    background: #fef08a !important;
    color: #b45309 !important;
}
.tab-link.tab-link-sim.active {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* --- Interactive Simulator Launcher Banner --- */
.simulator-launch-card {
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 18px 24px !important;
    border: none !important;
    border-radius: 18px !important;
    cursor: pointer;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    text-align: left !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.25s ease !important;
}
.simulator-launch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 50%, var(--dept-primary, #2563eb) 0%, transparent 50%),
        radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.15) 0%, transparent 40%);
    opacity: 0.4;
    pointer-events: none;
}
.simulator-launch-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.simulator-launch-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.simulator-launch-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: var(--dept-gradient, linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
    flex-shrink: 0;
    animation: simRocketPulse 2.5s infinite ease-in-out;
}
@keyframes simRocketPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.simulator-launch-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.simulator-launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fde047;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.simulator-launch-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}
.simulator-launch-subtitle {
    font-size: 0.86rem !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
}
.simulator-launch-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.simulator-launch-card:hover .simulator-launch-cta {
    background: var(--dept-primary, #2563eb);
    color: #ffffff;
    transform: translateX(3px);
}

/* --- Tab Content Panels --- */
.tab-content {
    display: none;
    background-color: #ffffff !important;
    padding: clamp(1.75rem, 3vw, 2.75rem) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 28px !important;
    min-height: 240px !important;
}
.tab-content.active {
    display: block !important;
    animation: tabFadeIn 0.35s ease !important;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.prose {
    line-height: 1.85 !important;
    color: #334155 !important;
    font-size: 1.02rem !important;
}
.prose h3 {
    color: #0f172a !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin: 1.5rem 0 1rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.prose h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--dept-primary, #2563eb);
    border-radius: 999px;
}
.prose h4 {
    color: #1e293b !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 1.25rem 0 0.75rem !important;
}

/* --- Professional Formula Cards --- */
.formula-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 5px solid var(--dept-primary, #2563eb) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
.formula-label {
    display: inline-block !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: var(--dept-primary, #2563eb) !important;
    background: #ffffff !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 8px !important;
}
.formula-expression {
    font-family: 'Cambria Math', 'KaTeX_Math', 'Times New Roman', serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: block !important;
    margin: 6px 0 10px !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px dashed #cbd5e1 !important;
    overflow-x: auto !important;
}
.formula-note {
    font-size: 0.88rem !important;
    color: #64748b !important;
    display: block !important;
    margin-top: 6px !important;
    font-style: italic !important;
}

/* --- AI Quiz Experience --- */
.quiz-header-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.quiz-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}
.quiz-header-title {
    margin: 0 0 4px 0 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.quiz-header-desc {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}
.quiz-guest-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px dashed #f59e0b;
    border-radius: 14px;
    background: #fffbeb;
}
.btn-quiz-generate {
    background: var(--dept-gradient, linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)) !important;
    color: #ffffff !important;
    border: none !important;
    min-height: 42px !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease;
}
.btn-quiz-generate:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35) !important;
}
.btn-quiz-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.quiz-actions-toolbar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0 18px;
}
.quiz-status-msg {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
}
.quiz-history-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.quiz-history-heading {
    font-weight: 800;
    font-size: 0.92rem;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quiz-history-grid {
    display: grid;
    gap: 8px;
}
.quiz-attempt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
}
.quiz-attempt-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.quiz-attempt-score {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}
.quiz-attempt-date {
    color: #64748b;
    font-size: 0.8rem;
}
.quiz-attempt-badge {
    font-weight: 800;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.quiz-attempt-badge.is-pass {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.quiz-attempt-badge.is-fail {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.quiz-learning-panel {
    padding: 16px 20px;
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    margin-bottom: 18px;
}
.quiz-learning-heading {
    font-weight: 800;
    font-size: 0.92rem;
    color: #0369a1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quiz-questions-grid {
    display: grid;
    gap: 16px;
}
.quiz-submit-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-quiz-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    min-height: 44px !important;
    padding: 12px 26px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.2s ease;
}
.btn-quiz-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.35) !important;
}

/* --- Simulator Container Modernization --- */
.sim-guest-gate {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}
.sim-gate-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fef3c7;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 14px;
}
.sim-workstation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 14px 14px 0 0;
    border: 1px solid #1e293b;
    border-bottom: none;
}
.sim-workstation-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
}
.sim-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    animation: pulseDot 2s infinite ease-in-out;
}
.sim-action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.sim-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.simulator-wrapper {
    border-radius: 0 0 14px 14px !important;
    overflow: hidden;
    border: 1px solid #1e293b !important;
}
.sim-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

/* --- Back Button --- */
.back-button-container {
    display: flex;
    justify-content: flex-start;
    margin: 20px 0 0 !important;
}
.btn-back-lab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}
.btn-back-lab:hover {
    color: var(--dept-primary, #2563eb);
    border-color: var(--dept-border, #bfdbfe);
    background: var(--dept-accent-bg, rgba(37, 99, 235, 0.08));
    transform: translateX(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-link {
        flex: 0 0 auto !important;
        min-width: 130px;
        min-height: 52px !important;
        padding: 8px 12px !important;
    }
    .tab-card-title {
        font-size: 0.88rem !important;
    }
    .tab-card-subtitle {
        display: none !important;
    }
    .tab-chevron {
        display: none !important;
    }
    .simulator-launch-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 16px !important;
    }
    .simulator-launch-cta {
        width: 100% !important;
        justify-content: center !important;
    }
    .quiz-header-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 12px;
    }
    .quiz-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-quiz-submit {
        width: 100%;
        justify-content: center;
    }
    .btn-back-lab {
        width: 100%;
        justify-content: center;
    }
}

/* 2-Column Responsive Practical Hero Grid with 3D AI Topic Card */
.practical-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
    gap: 1.75rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.practical-hero-main {
    min-width: 0;
}
.practical-hero-visual-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.practical-hero-visual-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}
.phv-topic-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}
.phv-topic-tag i {
    color: #60a5fa;
}
.phv-img-wrap {
    width: 100%;
    min-height: 120px;
    max-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}
.phv-img-wrap img {
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.practical-hero-visual-card:hover .phv-img-wrap img {
    transform: scale(1.08) translateY(-2px);
}
.phv-subdiscipline {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.phv-subdiscipline i {
    color: #38bdf8;
}
@media (max-width: 868px) {
    .practical-hero-grid {
        grid-template-columns: 1fr;
    }
    .practical-hero-visual-card {
        max-width: 320px;
        margin: 0.5rem auto 0;
    }
}
