/* ===== World Evolution Lab ===== */

.evo-lab {
    background: var(--bg);
}

/* --- Lab Intro --- */
.lab-intro {
    padding: 80px 0 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79, 140, 255, 0.10), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 120, 60, 0.06), transparent 50%),
        var(--bg);
}

.lab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.lab-breadcrumb a { color: var(--accent); transition: color 0.2s; }
.lab-breadcrumb a:hover { color: var(--accent-hover); }
.lab-breadcrumb-sep { color: var(--border); }
.lab-breadcrumb-current { color: var(--text); }

.lab-eyebrow {
    display: inline-block;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(79, 140, 255, 0.3);
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.05);
    margin-bottom: 20px;
}

.lab-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.lab-subtitle {
    color: var(--text-dim);
    font-size: 20px;
    max-width: 680px;
    margin: 0 auto 48px;
}

/* Concept terminal (reuses terminal styles from showcase-pipeline) */
.concept-terminal {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(79, 140, 255, 0.05);
    transition: box-shadow 0.4s;
}

.concept-terminal.active {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(79, 140, 255, 0.25), 0 0 48px rgba(79, 140, 255, 0.15);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot-red { background: #ff5f57; }
.terminal-dot-yellow { background: #febc2e; }
.terminal-dot-green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.terminal-body {
    padding: 20px;
    background: #0d0d0d;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.8;
}

.terminal-line { color: #a0a0a0; }
.terminal-indent { padding-left: 20px; }
.terminal-prompt { color: var(--accent); font-weight: 700; }
.terminal-key { color: #79c0ff; }
.terminal-value { color: #a5d6ff; }
.terminal-num { color: #f0883e; }
.terminal-cursor .cursor-blink { color: var(--accent); animation: blink 1s step-end infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Evolve button */
.lab-launch {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-evolve {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), #7c5cff);
    color: #fff;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(79, 140, 255, 0.35);
}

.btn-evolve:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(124, 92, 255, 0.5);
}

.btn-evolve:active { transform: scale(0.98); }
.btn-evolve:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-evolve-icon { font-size: 16px; }
.btn-evolve-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
}

.lab-launch-hint {
    color: var(--text-dim);
    font-size: 14px;
}

/* --- Evolution Timeline --- */
.evo-timeline {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(79, 140, 255, 0.04), transparent 70%),
        var(--bg-card);
}

.evo-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.evo-timeline-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.evo-timeline-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s;
}

.status-indicator.running {
    color: #28c840;
    border-color: #28c840;
    background: rgba(40, 200, 64, 0.1);
}

.status-indicator.completed {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.1);
}

.status-timer { color: var(--text-dim); }

/* Timeline track */
.timeline-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-track.has-future {
    grid-template-columns: repeat(4, 1fr);
}

.timeline-track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(79, 140, 255, 0.1),
        rgba(255, 120, 60, 0.2),
        rgba(79, 140, 255, 0.1));
    z-index: 0;
    transform: translateY(-50%);
}

.stage-card {
    position: relative;
    z-index: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    opacity: 0.35;
    transform: translateY(8px);
}

.stage-card.ready {
    opacity: 1;
    transform: translateY(0);
}

.stage-card.ready:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 140, 255, 0.3);
}

.stage-card.generating {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 32px rgba(79, 140, 255, 0.25);
    animation: cardPulse 1.6s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(79, 140, 255, 0.2); }
    50% { box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(79, 140, 255, 0.4); }
}

.stage-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0d0d0d;
    overflow: hidden;
}

.stage-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.stage-card.ready:hover .stage-card-image img {
    transform: scale(1.04);
}

.stage-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
}

.stage-card-placeholder-icon {
    font-size: 32px;
    opacity: 0.5;
}

.stage-card-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(79, 140, 255, 0.15) 50%,
        transparent 100%);
    background-size: 100% 200%;
    animation: scanline 1.8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

.stage-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.stage-card-badge.before { color: #7fd4ff; border-color: rgba(127, 212, 255, 0.4); }
.stage-card-badge.impact { color: #ff8a4c; border-color: rgba(255, 138, 76, 0.4); }
.stage-card-badge.after { color: #b6ff7f; border-color: rgba(182, 255, 127, 0.4); }
.stage-card-badge.future { color: #c89bff; border-color: rgba(200, 155, 255, 0.4); }

.stage-card-inspect {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.25s;
}

.stage-card.ready:hover .stage-card-inspect { opacity: 1; }

.stage-card-inspect img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    vertical-align: middle;
}

.stage-card-body {
    padding: 16px 18px 18px;
}

.stage-card-era {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.stage-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stage-card-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 12px;
}

.stage-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    color: var(--text-dim);
}

.stage-card-meta span {
    padding: 2px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Pipeline panel (live progress) */
.evo-pipeline-panel {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0a0a0a;
    padding: 28px;
    margin-top: 24px;
}

.evo-pipeline-head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.evo-pipeline-stage-label {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.evo-pipeline-stage-prompt {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* Node flow (reused pattern) */
.node-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

.node-track {
    position: absolute;
    top: 44px;
    left: 3%;
    right: 3%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.node-progress {
    position: absolute;
    top: 44px;
    left: 3%;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #28c840);
    box-shadow: 0 0 8px rgba(79, 140, 255, 0.5);
    z-index: 1;
    transition: width 0.5s ease;
}

.node-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    min-width: 80px;
}

.node-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s;
    margin-bottom: 12px;
}

.node-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
}

.node-item.running .node-circle {
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.1);
    box-shadow: 0 0 16px rgba(79, 140, 255, 0.4);
    animation: nodePulse 1.5s ease-in-out infinite;
}

.node-item.completed .node-circle {
    border-color: #28c840;
    background: rgba(40, 200, 64, 0.1);
    box-shadow: 0 0 12px rgba(40, 200, 64, 0.3);
}

@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 16px rgba(79, 140, 255, 0.4); }
    50% { box-shadow: 0 0 28px rgba(79, 140, 255, 0.6); }
}

.node-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    max-width: 90px;
    line-height: 1.3;
    transition: color 0.3s;
}

.node-item.running .node-label,
.node-item.completed .node-label { color: var(--text); }

.node-detail {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Consolas', monospace;
    margin-top: 4px;
    min-height: 14px;
}

.node-item.running .node-detail { color: var(--accent); }
.node-item.completed .node-detail { color: #28c840; }

/* Diffusion bar */
.diffusion-bar-wrap {
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0;
    transition: opacity 0.3s;
}

.diffusion-bar-wrap.visible { opacity: 1; }

.diffusion-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.diffusion-bar {
    height: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.diffusion-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #00d4ff);
    border-radius: 3px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(79, 140, 255, 0.4);
}

/* Console log */
.console-log {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.console-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}

.console-live.live {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.console-body {
    padding: 16px;
    background: #0d0d0d;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.7;
    max-height: 240px;
    overflow-y: auto;
}

.console-line {
    color: #a0a0a0;
    animation: fadeInLine 0.3s ease;
}

@keyframes fadeInLine {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.console-line.console-info { color: #79c0ff; }
.console-line.console-success { color: #28c840; }
.console-line.console-warn { color: #febc2e; }
.console-line.console-muted { color: #555; font-style: italic; }

.console-time { color: #555; margin-right: 8px; }

/* --- Dramatic Slider --- */
.evo-slider-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 48px;
}

.evo-slider-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.evo-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    user-select: none;
    cursor: ew-resize;
    background: #0d0d0d;
    margin-bottom: 24px;
}

.evo-slider-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.evo-slider-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.evo-slider-overlay {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.1s linear;
}

.evo-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 16px rgba(79, 140, 255, 0.6);
}

.evo-slider-handle-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.evo-slider-handle-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(79, 140, 255, 0.5);
}

.evo-slider-label {
    position: absolute;
    top: 16px;
    z-index: 4;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    pointer-events: none;
}

.evo-slider-label-left { left: 16px; }
.evo-slider-label-right { right: 16px; }

.evo-slider-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.evo-slider-stages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.evo-slider-chip {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.evo-slider-chip:hover { color: var(--text); border-color: var(--text-dim); }

.evo-slider-chip.active {
    color: #fff;
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.15);
    box-shadow: 0 0 12px rgba(79, 140, 255, 0.3);
}

.evo-slider-range {
    width: 100%;
    max-width: 600px;
    accent-color: var(--accent);
    height: 6px;
    cursor: pointer;
}

.btn-slider-play {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-slider-play:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-slider-play.playing {
    color: #28c840;
    border-color: #28c840;
}

.btn-slider-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

/* --- Inspector Modal --- */
.inspector-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.inspector-overlay.open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.inspector-panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(79, 140, 255, 0.15);
    animation: slideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.inspector-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.inspector-close:hover {
    background: rgba(255, 80, 80, 0.3);
    border-color: rgba(255, 80, 80, 0.6);
}

.inspector-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d0d;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.inspector-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inspector-image-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.inspector-body {
    padding: 28px 32px 36px;
}

.inspector-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.inspector-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.inspector-stage-tag {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.3);
    color: var(--accent);
}

.inspector-caption {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.inspector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.inspector-field {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.inspector-field-icon {
    font-size: 16px;
    margin-bottom: 6px;
}

.inspector-field-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

.inspector-field-label {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.inspector-field-value {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.inspector-field-value.mono {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
}

.inspector-field-value.small {
    font-size: 11px;
}

.inspector-body h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 24px 0 12px;
}

.inspector-exec {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0d0d0d;
    padding: 12px 16px;
    margin-bottom: 24px;
    max-height: 200px;
    overflow-y: auto;
}

.exec-event {
    display: grid;
    grid-template-columns: 110px 160px 1fr;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    align-items: baseline;
}

.exec-event:last-child { border-bottom: none; }
.exec-event.exec-muted { color: #555; font-style: italic; display: block; }

.exec-time { color: #555; }
.exec-type { color: var(--accent); font-weight: 600; }
.exec-type.exec-created { color: #7fd4ff; }
.exec-type.exec-started { color: #febc2e; }
.exec-type.exec-completed { color: #28c840; }
.exec-type.exec-node { color: var(--accent); }
.exec-desc { color: #c0c0c0; }

.inspector-artifacts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.artifact-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.artifact-download:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(79, 140, 255, 0.2);
}

/* --- Evolve Again --- */
.evolve-again {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(200, 155, 255, 0.08), transparent 60%),
        var(--bg-card);
}

.evolve-again-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.btn-evolve-again {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #7c5cff, #c89bff);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}

.btn-evolve-again:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(200, 155, 255, 0.5);
}

.btn-evolve-again:active:not(:disabled) { transform: scale(0.98); }
.btn-evolve-again:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-evolve-again-icon { font-size: 16px; }

.btn-evolve-again-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
}

.evolve-again-hint {
    color: var(--text-dim);
    font-size: 14px;
}

/* --- Lineage Graph --- */
.lineage-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.lineage-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 40px;
}

.lineage-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    min-width: 160px;
}

.lineage-node-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.4s;
    position: relative;
}

.lineage-node.ready .lineage-node-circle {
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.08);
    box-shadow: 0 0 16px rgba(79, 140, 255, 0.3);
}

.lineage-node.future .lineage-node-circle {
    border-color: #c89bff;
    background: rgba(200, 155, 255, 0.08);
    box-shadow: 0 0 16px rgba(200, 155, 255, 0.3);
}

.lineage-node-era {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

.lineage-node-title {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.lineage-node-seed {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    color: var(--text-dim);
}

.lineage-edge {
    flex: 1;
    min-width: 40px;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent));
    position: relative;
    align-self: flex-start;
    margin-top: 50px;
    opacity: 0.4;
    transition: opacity 0.4s;
}

.lineage-edge.ready { opacity: 1; }

.lineage-edge::after {
    content: "→";
    position: absolute;
    right: -4px;
    top: -10px;
    color: var(--accent);
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .timeline-track,
    .timeline-track.has-future {
        grid-template-columns: 1fr 1fr;
    }
    .timeline-track.has-future .stage-card:nth-child(4) {
        grid-column: 1 / -1;
    }
    .node-flow { gap: 4px; }
    .node-item { min-width: 70px; }
    .node-label { max-width: 70px; font-size: 10px; }
    .inspector-grid { grid-template-columns: 1fr 1fr; }
    .exec-event { grid-template-columns: 80px 1fr; }
    .exec-event .exec-type { grid-column: 2; }
}

@media (max-width: 600px) {
    .timeline-track,
    .timeline-track.has-future {
        grid-template-columns: 1fr;
    }
    .node-flow {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .node-item { min-width: 80px; flex: 0 0 25%; }
    .node-track, .node-progress { display: none; }
    .inspector-grid { grid-template-columns: 1fr; }
    .lineage-graph { flex-direction: column; }
    .lineage-edge {
        width: 2px;
        height: 40px;
        max-width: none;
        margin: 0;
        background: linear-gradient(180deg, var(--accent), var(--accent));
    }
}
