/* ==============================================
   GUARDRAIL CREATION ANIMATION
   Layer-based architecture: each visual element is an
   independent layer. Multiple layers can be visible
   simultaneously. Elements persist across acts.
   ============================================== */

/* ---- Viewport ---- */
.ga-viewport {
    position: relative;
    width: 100%;
    height: 560px;
    margin: 24px auto 0;
    overflow: hidden;
}

.ga-viewport ~ .cg-flow {
    display: none;
}

/* ---- Layers ---- */
.ga-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ga-layer--show {
    opacity: 1;
    pointer-events: auto;
}

/* Layer z-ordering */
.ga-layer-network {
    z-index: 1;
}
.ga-layer-pr {
    z-index: 2;
    align-items: flex-start;
    padding-top: 80px;
}
.ga-layer-claude {
    z-index: 3;
    align-items: flex-start;
    padding-top: 24px;
}

/* Claude exit animation */

/* ==============================================
   CLAUDE WINDOW (Act 1)
   ============================================== */

.ga-claude {
    width: 100%;
    max-width: 860px;
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid var(--glass-white-08);
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.ga-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ga-chrome-dots {
    display: flex;
    gap: 6px;
}

.ga-chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ga-chrome-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-placeholder);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    letter-spacing: 0.02em;
}

.ga-chrome-logo {
    width: 14px;
    height: 14px;
}

.ga-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.ga-prompt {
    display: flex;
    align-items: baseline;
    color: var(--text-primary);
    min-height: 1.6em;
}

.ga-prompt-caret {
    color: var(--el-cyan);
    margin-right: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.ga-prompt-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.ga-cursor {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    background: var(--el-cyan);
    margin-left: 1px;
    vertical-align: text-bottom;
    opacity: 0;
}

.ga-cursor--blink {
    animation: ga-blink 1s step-end infinite;
}

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

/* Tool-use block inside Claude */
.ga-tool {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.5s ease,
        opacity 0.4s ease;
}

.ga-tool--show {
    max-height: 80px;
    opacity: 1;
}

.ga-tool--expanded {
    max-height: 600px;
    transition:
        max-height 0.5s ease,
        opacity 0.4s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

.ga-tool-header {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.ga-tool-arrow {
    color: var(--text-placeholder);
    margin-right: 4px;
}

.ga-tool-glyph {
    width: 18px;
    height: 18px;
    margin-right: 4px;
    vertical-align: middle;
}

.ga-tool-name {
    color: var(--el-cyan);
    font-weight: 600;
}

/* Claude thinking indicator */
.ga-thinking {
    display: none;
    padding: 8px 0 4px;
}

.ga-thinking--show {
    display: block;
}

.ga-thinking-icon {
    font-size: 16px;
    animation: ga-thinking-shimmer 2s ease infinite;
}

@keyframes ga-thinking-shimmer {
    0% {
        color: #d97706;
        opacity: 0.6;
    }
    25% {
        color: #f59e0b;
        opacity: 1;
    }
    50% {
        color: #d97706;
        opacity: 0.6;
    }
    75% {
        color: #b45309;
        opacity: 0.8;
    }
    100% {
        color: #d97706;
        opacity: 0.6;
    }
}

/* ==============================================
   FLOATING TOOL BOX (persists Acts 1→2)
   ============================================== */

.ga-tool .ga-codegen {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease 0.1s,
        opacity 0.3s ease 0.15s;
}

.ga-tool--expanded .ga-codegen {
    max-height: 500px;
    opacity: 1;
}

/* ==============================================
   CODE GENERATION
   ============================================== */

.ga-codegen {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ga-panels {
    display: flex;
    gap: 16px;
}

.ga-panel {
    flex: 1;
    background: #0d1117;
    border-radius: 10px;
    border: 1px solid var(--glass-white-08);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    min-width: 0;
    transition:
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

.ga-panel-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ga-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-white-20);
}

.ga-panel-file {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.ga-panel-body {
    padding: 14px 16px;
    line-height: 1.7;
    overflow: hidden;
}

.ga-code-line {
    display: flex;
    align-items: center;
    min-height: 1.7em;
    opacity: 0;
    transform: translateX(-4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.ga-code-line--show {
    opacity: 1;
    transform: translateX(0);
}

.ga-code-text {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--ai-purple-light);
    margin-right: 6px;
}

.ga-code-text--dim {
    color: var(--glow-purple-30);
    font-style: italic;
}

.ga-code-bar {
    display: inline-block;
    height: 8px;
    border-radius: 4px;
    vertical-align: middle;
    background: linear-gradient(135deg, var(--glow-purple-30), rgba(236, 72, 153, 0.2));
}

.ga-codegen-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-muted);
}

.ga-codegen-status--done .ga-codegen-thinking {
    display: none;
}

.ga-codegen-status--done .ga-codegen-status-text {
    color: var(--el-green);
    transition: color 0.4s ease;
}

.ga-codegen--deployed .ga-panel {
    border-color: var(--ai-purple);
    box-shadow:
        0 0 24px var(--glow-purple-20),
        0 12px 40px rgba(0, 0, 0, 0.3);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.ga-codegen--deployed .ga-codegen-status-text {
    color: var(--ai-purple-light);
    font-size: 15px;
    font-family: var(--font-primary), sans-serif;
    letter-spacing: 0.02em;
    transition:
        color 0.3s ease,
        font-size 0.3s ease,
        transform 0.3s ease;
}

.ga-codegen--flash .ga-panel {
    border-color: var(--ai-purple-light);
    box-shadow:
        0 0 48px var(--glow-purple-30),
        0 0 96px var(--glow-purple-20);
    transition:
        box-shadow 0.4s ease,
        border-color 0.2s ease;
}

.ga-codegen--flash .ga-codegen-status-text {
    color: var(--ai-purple-light);
    transform: scale(1.05);
}

/* ==============================================
   REPO NETWORK (single element, Acts 3-5)
   ============================================== */

.ga-network-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ga-network {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 720px;
    width: 100%;
}

.ga-node {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    background: #0d1117;
    border: 1px solid var(--glass-white-08);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.85);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.ga-node--show {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(var(--d, 0) * 50ms);
}

.ga-node-gh {
    flex-shrink: 0;
    color: #8b949e;
}

.ga-node-name {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.ga-node-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a5568;
    flex-shrink: 0;
}

/* Purple deployment wave */
.ga-node--wave {
    animation: ga-wave-pulse 0.8s ease both;
    animation-delay: calc(var(--d, 0) * 80ms);
}

.ga-node--wave .ga-node-dot {
    animation: ga-dot-deploy 0.8s ease both;
    animation-delay: calc(var(--d, 0) * 80ms);
}

@keyframes ga-wave-pulse {
    0% {
        border-color: var(--glass-white-08);
        box-shadow: none;
    }
    40% {
        border-color: var(--ai-purple);
        box-shadow: 0 0 14px var(--glow-purple-30);
    }
    100% {
        border-color: var(--glow-purple-10);
        box-shadow: none;
    }
}

@keyframes ga-dot-deploy {
    0% {
        background: #4a5568;
        transform: scale(1);
    }
    40% {
        background: var(--ai-purple);
        transform: scale(1.5);
    }
    100% {
        background: var(--glow-purple-30);
        transform: scale(1);
    }
}

/* Highlight one node */
.ga-node--highlight {
    border-color: var(--el-cyan);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
    transform: scale(1.12);
    z-index: 1;
}

.ga-node--highlight .ga-node-dot {
    background: var(--el-cyan);
}

/* Node turning green — pulsating moment */
.ga-node--green-pulse {
    animation: ga-node-green-glow 0.6s ease infinite alternate;
    z-index: 1;
}

.ga-node--green-pulse .ga-node-dot {
    background: #34f8b6;
    animation: ga-dot-green-glow 0.6s ease infinite alternate;
}

@keyframes ga-node-green-glow {
    0% {
        border-color: rgba(52, 248, 182, 0.3);
        box-shadow: 0 0 12px rgba(52, 248, 182, 0.15);
    }
    100% {
        border-color: #34f8b6;
        box-shadow: 0 0 24px rgba(52, 248, 182, 0.4);
    }
}

@keyframes ga-dot-green-glow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.4);
    }
}

/* Network dimmed — during Act 4, non-highlighted nodes fade */
.ga-layer-network--dimmed .ga-node:not(.ga-node--highlight) {
    opacity: 0.1;
    transition: opacity 0.4s ease;
}

/* Green compliance wave */
.ga-node--green {
    animation: ga-green-pulse 0.6s ease both;
    animation-delay: calc(var(--d, 0) * 140ms);
}

.ga-node--green .ga-node-dot {
    animation: ga-dot-green 0.6s ease both;
    animation-delay: calc(var(--d, 0) * 140ms);
}

@keyframes ga-green-pulse {
    0% {
        border-color: var(--glow-purple-10);
        box-shadow: none;
    }
    40% {
        border-color: #34f8b6;
        box-shadow: 0 0 12px rgba(52, 248, 182, 0.2);
    }
    100% {
        border-color: rgba(52, 248, 182, 0.2);
        box-shadow: none;
    }
}

@keyframes ga-dot-green {
    0% {
        background: var(--glow-purple-30);
        transform: scale(1);
    }
    50% {
        background: #34f8b6;
        transform: scale(1.5);
    }
    100% {
        background: #34f8b6;
        transform: scale(1);
    }
}

/* Compliance counter */
.ga-compliance {
    text-align: center;
    margin-top: 20px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ga-compliance--show {
    opacity: 1;
}

.ga-compliance-count {
    font-weight: 700;
    font-size: 18px;
    color: #ef4444;
    transition: color 0.3s ease;
}

.ga-compliance-count--amber {
    color: #f59e0b;
}

.ga-compliance-count--green {
    color: var(--el-green);
}

/* Nodes that fail — stay amber/red after green wave */
.ga-node--fail {
    animation: ga-fail-pulse 0.6s ease both;
    animation-delay: calc(var(--d, 0) * 140ms);
}

.ga-node--fail .ga-node-dot {
    animation: ga-dot-fail 0.6s ease both;
    animation-delay: calc(var(--d, 0) * 140ms);
}

@keyframes ga-fail-pulse {
    0% {
        border-color: var(--glow-purple-10);
        box-shadow: none;
    }
    40% {
        border-color: #f59e0b;
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
    }
    100% {
        border-color: rgba(245, 158, 11, 0.25);
        box-shadow: none;
    }
}

@keyframes ga-dot-fail {
    0% {
        background: var(--glow-purple-30);
        transform: scale(1);
    }
    50% {
        background: #f59e0b;
        transform: scale(1.5);
    }
    100% {
        background: #f59e0b;
        transform: scale(1);
    }
}

/* ==============================================
   PR LIST + INLINE EXPAND (Act 4)
   ============================================== */

.ga-pr-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    max-width: 480px;
}

.ga-pr-list-header {
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    padding: 0 0 6px;
}

.ga-pr-mini-num {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ga-pr-mini {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ga-pr-mini--show {
    opacity: 1;
    transform: translateY(0);
}

.ga-pr-mini--highlight {
    border-color: var(--ai-purple);
    box-shadow: 0 0 10px var(--glow-purple-10);
}

.ga-pr-mini--done {
    border-color: rgba(52, 248, 182, 0.3);
    box-shadow: 0 0 8px rgba(52, 248, 182, 0.1);
}

.ga-pr-mini--done .ga-pr-mini-dot {
    background: #34f8b6;
}

.ga-pr-mini--fail {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.ga-pr-mini--fail .ga-pr-mini-dot {
    background: #ef4444;
}

.ga-pr-mini--healing .ga-pr-mini-dot {
    animation: ga-pr-dot-heal 0.4s ease both;
    animation-delay: calc(var(--d, 0) * 80ms);
}

@keyframes ga-pr-dot-heal {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        background: #34f8b6;
    }
    100% {
        transform: scale(1);
        background: #34f8b6;
    }
}

.ga-pr-mini--expanded.ga-pr-mini--collapsed .ga-pr-expand {
    max-height: 0;
    opacity: 0;
    border-top-color: transparent;
}

.ga-pr-mini-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
}

.ga-pr-mini-merge {
    fill: #3fb950;
    flex-shrink: 0;
}

.ga-pr-mini-title {
    font-size: 12px;
    color: #c9d1d9;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ga-pr-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ga-pr-mini-dot--pass {
    background: #4ade80;
}

.ga-pr-mini-dot--red {
    background: #ef4444;
}

.ga-pr-mini-dot--fail {
    background: #f59e0b;
}

/* Purple deploy wave on PR dots */
.ga-pr-mini--deploy .ga-pr-mini-dot {
    animation: ga-pr-dot-deploy 0.5s ease both;
    animation-delay: calc(var(--d, 0) * 80ms);
}

/* Check results wave on PR dots */
.ga-pr-mini--result-pass .ga-pr-mini-dot {
    animation: ga-pr-dot-result-pass 0.4s ease both;
    animation-delay: calc(var(--d, 0) * 80ms);
}

.ga-pr-mini--result-fail .ga-pr-mini-dot {
    animation: ga-pr-dot-result-fail 0.4s ease both;
    animation-delay: calc(var(--d, 0) * 80ms);
}

@keyframes ga-pr-dot-result-pass {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        background: #4ade80;
    }
    100% {
        transform: scale(1);
        background: #4ade80;
    }
}

@keyframes ga-pr-dot-result-fail {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        background: #ef4444;
    }
    100% {
        transform: scale(1);
        background: #ef4444;
    }
}

@keyframes ga-pr-dot-deploy {
    0% {
        transform: scale(1);
    }
    40% {
        background: var(--ai-purple);
        transform: scale(1.6);
        box-shadow: 0 0 8px var(--glow-purple-30);
    }
    100% {
        background: var(--ai-purple);
        transform: scale(1);
        box-shadow: none;
    }
}

/* Expandable check area — hidden by default, opens inline */
.ga-pr-expand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;
    border-top: 1px solid transparent;
}

.ga-pr-mini--expanded .ga-pr-expand {
    max-height: 300px;
    opacity: 1;
    border-top-color: #30363d;
}

/* Check rows inside expand */
.ga-pr-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #30363d;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.ga-pr-check:last-child {
    border-bottom: none;
}

.ga-pr-check--show {
    opacity: 1;
    transform: translateY(0);
}

.ga-pr-check-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ga-pr-check-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.ga-pr-check-pending {
    opacity: 1;
}

@keyframes ga-spin {
    to {
        transform: rotate(360deg);
    }
}

.ga-pr-check-pending circle {
    transform-origin: 12px 12px;
    animation: ga-spin 1s linear infinite;
}

.ga-check-ok {
    opacity: 0;
    transform: scale(0.5);
}

.ga-check-fail {
    opacity: 0;
    transform: scale(0.5);
}

.ga-pr-check--done .ga-pr-check-pending {
    opacity: 0;
}

.ga-pr-check--done .ga-check-ok {
    opacity: 1;
    transform: scale(1);
}

.ga-pr-check--done-fail .ga-pr-check-pending {
    opacity: 0;
}

.ga-pr-check--done-fail .ga-check-fail {
    opacity: 1;
    transform: scale(1);
}

.ga-pr-check--lunar {
    background: rgba(168, 85, 247, 0.04);
}

.ga-pr-check--pulse {
    animation: ga-check-pulse 0.5s ease;
}

@keyframes ga-check-pulse {
    0% {
        background: transparent;
    }
    40% {
        background: var(--glow-purple-20);
    }
    100% {
        background: rgba(168, 85, 247, 0.04);
    }
}

.ga-pr-check-logo {
    width: 22px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.ga-pr-check-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Placeholder bars (instead of text) */
.ga-ph {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #3f3f46;
}

.ga-ph--accent {
    height: 9px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(52, 248, 182, 0.4));
}

.ga-ph--bright {
    background: #4a5568;
}

.ga-ph--purple {
    height: 9px;
    background: linear-gradient(135deg, var(--glow-purple-30), rgba(236, 72, 153, 0.2));
}

.ga-pr-check--done .ga-ph {
    background: #2d3748;
}

.ga-pr-check--done .ga-ph--accent {
    background: linear-gradient(135deg, rgba(52, 248, 182, 0.5), rgba(74, 222, 128, 0.3));
}

/* ---- Clock (time passing) ---- */

.ga-clock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.ga-pr-list {
    position: relative;
}

.ga-clock--show {
    opacity: 1;
}

.ga-pr-list--dimmed .ga-pr-mini,
.ga-pr-list--dimmed .ga-pr-list-header {
    opacity: 0.15;
    transition: opacity 0.4s ease;
}

.ga-clock-min {
    transform-origin: 18px 18px;
    animation: ga-clock-spin-min 0.9s ease-in-out 1 both paused;
}

.ga-clock-hr {
    transform-origin: 18px 18px;
    animation: ga-clock-spin-hr 0.9s ease-in-out 1 both paused;
}

.ga-clock--show .ga-clock-min,
.ga-clock--show .ga-clock-hr {
    animation-play-state: running;
}

@keyframes ga-clock-spin-min {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ga-clock-spin-hr {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(90deg);
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .ga-panels {
        gap: 12px;
    }
    .ga-panel-body {
        padding: 12px 14px;
    }
    .ga-network {
        gap: 8px;
        max-width: 600px;
    }
    .ga-node {
        padding: 6px 8px;
    }
    .ga-node-name {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .ga-viewport {
        width: 480px;
        height: 450px;
    }

    .ga-codegen {
        gap: 12px;
    }

    .ga-layer-claude {
        padding-top: 12px;
    }

    .ga-layer-pr {
        padding-top: 50px;
    }

    .ga-claude {
        max-width: 460px;
    }

    .ga-chrome {
        padding: 8px 12px;
        gap: 8px;
    }

    .ga-chrome-dots span {
        width: 8px;
        height: 8px;
    }

    .ga-body {
        padding: 14px;
        gap: 10px;
        font-size: 12px;
    }

    .ga-tool-header {
        font-size: 12px;
        padding: 8px 12px;
    }

    .ga-panels .ga-panel:last-child {
        display: none;
    }

    .ga-panel-body {
        padding: 10px 12px;
    }

    .ga-codegen-status {
        padding: 8px 0;
        font-size: 12px;
    }

    .ga-network {
        grid-template-columns: repeat(4, 1fr);
        max-width: 440px;
        gap: 8px;
    }

    .ga-node:nth-child(n + 13) {
        display: none;
    }

    .ga-node {
        padding: 5px 8px;
    }

    .ga-node-name {
        font-size: 9px;
    }

    .ga-pr-list {
        max-width: 400px;
    }

    .ga-pr-mini-row {
        padding: 6px 12px;
    }

    .ga-compliance {
        margin-top: 12px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .ga-layer,
    .ga-tool,
    .ga-code-line,
    .ga-node,
    .ga-pr-check,
    .ga-check-ok,
    .ga-pr-check-pending,
    .ga-panel,
    .ga-tool .ga-codegen,
    .ga-pr-mini,
    .ga-pr-expand,
    .ga-compliance {
        transition: none;
    }
    .ga-cursor {
        animation: none;
        opacity: 1;
    }
    .ga-check-fail,
    .ga-clock {
        transition: none;
    }
    .ga-thinking-icon,
    .ga-pr-check-pending circle,
    .ga-clock-min,
    .ga-clock-hr {
        animation: none;
    }
    .ga-node--wave,
    .ga-node--wave .ga-node-dot,
    .ga-pr-mini--deploy .ga-pr-mini-dot,
    .ga-pr-mini--result-pass .ga-pr-mini-dot,
    .ga-pr-mini--result-fail .ga-pr-mini-dot,
    .ga-pr-mini--healing .ga-pr-mini-dot {
        animation: none;
    }
    .ga-node--green,
    .ga-node--green .ga-node-dot,
    .ga-node--fail,
    .ga-node--fail .ga-node-dot {
        animation: none;
    }
    .ga-node--green {
        border-color: rgba(52, 248, 182, 0.2);
    }
    .ga-node--green .ga-node-dot {
        background: #34f8b6;
    }
    .ga-node--fail {
        border-color: rgba(245, 158, 11, 0.25);
    }
    .ga-node--fail .ga-node-dot {
        background: #f59e0b;
    }
}
