/* Don't override global body styles - inherit from styles.css */

.pg-scope .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pg-scope .glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pg-scope .glass.tool-header{
background: var(--gradient-primary);
}

[data-theme="dark"] .pg-scope .glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pg-scope .glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.pg-scope .tool-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    color: var(--text-primary);
    background: var(--bg-container);
    position: relative;
}

.pg-scope .title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pg-scope .subtitle {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.pg-scope .main-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    background: var(--bg-container);
    padding: 2rem;
    border-radius: 24px;
}

.pg-scope .slider-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 2rem;
}

.pg-scope .glass-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.pg-scope .temperature-display {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s ease;
}

.pg-scope .slider-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.pg-scope .slider-wrapper {
    position: relative;
    margin: 2rem 0;
}

.pg-scope .temperature-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
}

.pg-scope .temperature-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
    border: 2px solid #7c5cff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-scope .temperature-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(124, 92, 255, 0.4);
}

.pg-scope .temperature-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
    border: 2px solid #7c5cff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-scope .slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 50%, #ff9800 100%);
    border-radius: 8px;
    transform: translateY(-50%);
    z-index: 1;
}

.pg-scope .slider-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    background: linear-gradient(90deg, #7c5cff 0%, #5b3fd9 100%);
    border-radius: 8px;
    transform: translateY(-50%);
    z-index: 1;
    width: 50%;
    transition: width 0.2s ease;
}

/* Old knob styles removed - replaced with horizontal slider */

.pg-scope .temperature-scale {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 240px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pg-scope .creativity-meter {
    width: 100%;
    max-width: 240px;
}

.pg-scope .meter-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.pg-scope .meter-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.pg-scope .meter-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pg-scope .meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pg-scope .use-cases {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.pg-scope .use-case-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pg-scope .temperature-badge {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pg-scope .use-case-grid {
    display: grid;
    gap: 1.5rem;
}

.pg-scope .use-case-card {
    background: var(--bg-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.pg-scope .use-case-card:hover {
    background: var(--bg-card);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.pg-scope .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pg-scope .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.pg-scope .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pg-scope .card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pg-scope .card-example {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--accent-primary);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pg-scope .temperature-display.active {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pg-scope .container {
        padding: 1rem;
    }

    .pg-scope .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pg-scope .slider-section {
        position: static;
    }
    
    .pg-scope .tool-header {
        padding: 4rem 2rem 2rem;
    }

    .pg-scope .slider-container {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }

    .pg-scope .glass-panel, .pg-scope .use-cases {
        padding: 1.5rem;
    }

    .pg-scope .use-case-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .pg-scope .container {
        padding: 1rem;
    }
    
    .pg-scope .tool-header, .pg-scope .main-content {
        border-radius: 16px;
    }

    .pg-scope .slider-container {
        max-width: 280px;
    }

    .pg-scope .temperature-display {
        margin-bottom: 1rem;
    }

    .pg-scope .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Educational Section Styles */
.pg-scope .temperature-explanation {
    background: var(--bg-container);
    padding: 2rem;
    border-radius: 24px;
}

.pg-scope .temperature-explanation .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg-scope .concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pg-scope .concept-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pg-scope .concept-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pg-scope .concept-card[data-concept="low-temp"]:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.pg-scope .concept-card[data-concept="medium-temp"]:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.pg-scope .concept-card[data-concept="high-temp"]:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.pg-scope .concept-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pg-scope .concept-icon {
    font-size: 1.5rem;
}

.pg-scope .concept-header h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.pg-scope .concept-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.pg-scope .concept-visual {
    margin: 0.8rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-primary);
}

.pg-scope .concept-card[data-concept="low-temp"] .concept-visual {
    border-left-color: #22c55e;
}

.pg-scope .concept-card[data-concept="medium-temp"] .concept-visual {
    border-left-color: #f59e0b;
}

.pg-scope .concept-card[data-concept="high-temp"] .concept-visual {
    border-left-color: #ef4444;
}

.pg-scope .concept-example {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.pg-scope .temperature-guide {
    background: var(--bg-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.pg-scope .temperature-guide h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pg-scope .temperature-guide p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pg-scope .temperature-analogy {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--accent-primary);
    font-style: italic;
    color: var(--text-secondary);
}
/* ---------- ailearnist: Next-Token Sampling Lab ---------- */
.pg-scope .sampling-lab { padding: clamp(18px, 3vw, 2rem); }
.pg-scope .lab-title { font-size: 1.3rem; margin: 0 0 .4rem; }
.pg-scope .lab-sub { color: var(--text-secondary); margin: 0 0 1.2rem; max-width: 80ch; }
.pg-scope .lab-sub code { background: var(--bg-subtle); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.pg-scope .lab-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.pg-scope .lab-controls label { font-weight: 700; font-size: .85rem; }
.pg-scope .lab-controls select { flex: 1 1 280px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); font: inherit; }
.pg-scope .lab-btn { padding: 10px 16px; border-radius: 12px; border: 0; background: #111827; color: #fff; font: 700 .9rem inherit; font-family: inherit; cursor: pointer; }
[data-theme="dark"] .pg-scope .lab-btn { background: #f9fafb; color: #111827; }
.pg-scope .lab-prompt { font-family: var(--font-mono, monospace); background: #0d1030; color: #e6e9f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; white-space: pre-wrap; }
.pg-scope .lab-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.pg-scope .lab-row { display: grid; grid-template-columns: 110px 1fr 58px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.pg-scope .lab-tok { font-family: var(--font-mono, monospace); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-scope .lab-track { height: 14px; background: var(--bg-subtle); border-radius: 999px; overflow: hidden; }
.pg-scope .lab-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a3e635, #22d3ee, #7c5cff); transition: width .3s ease; }
.pg-scope .lab-row em { font-style: normal; text-align: right; font-family: var(--font-mono, monospace); font-size: .8rem; color: var(--text-secondary); }
.pg-scope .lab-side { display: grid; gap: 10px; align-content: start; }
.pg-scope .lab-stat { background: var(--bg-subtle); border-radius: 14px; padding: 12px 14px; display: grid; }
.pg-scope .lab-stat strong { font-size: 1.5rem; }
.pg-scope .lab-stat span { font-size: .8rem; color: var(--text-secondary); }
.pg-scope .lab-samples { border: 1px dashed var(--border-color); border-radius: 14px; padding: 12px 14px; font-size: .88rem; color: var(--text-secondary); }
.pg-scope .lab-samples ol { margin: 8px 0 0; padding-left: 1.2rem; }
.pg-scope .lab-samples b { color: #7c5cff; }
.pg-scope .lab-pre { opacity: .7; }
.pg-scope .meter-labels { gap: 6px; }
@media (max-width: 800px) { .pg-scope .lab-grid { grid-template-columns: 1fr; } }
