* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f5f7fa;
    color: #1e4b69;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 860px;
    margin: 0 auto;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e4b69;
    margin-bottom: 4px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #5a7a8a;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.pipeline-card {
    background: #fff;
    border: 2px solid #e0e8ee;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.pipeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(30,75,105,0.12);
}

.pipeline-card.active {
    border-width: 3px;
}

.card-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.card-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-summary {
    font-size: 0.74rem;
    color: #6a8a9a;
    line-height: 1.3;
}

.arrow-right {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #9ab;
    z-index: 2;
    pointer-events: none;
}

.arrow-down {
    position: absolute;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    font-size: 1rem;
    color: #9ab;
    z-index: 2;
    pointer-events: none;
}

.feedback-loop {
    position: relative;
    height: 55px;
    margin-bottom: 18px;
}

.feedback-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e4b69;
    color: #fff;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    white-space: nowrap;
}

.feedback-svg {
    width: 100%;
    height: 40px;
    margin-top: 14px;
}

.feedback-text {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #5a7a8a;
    font-style: italic;
    margin-top: 2px;
}

.panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.panel {
    background: #fff;
    border: 1px solid #d1dde5;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(30,75,105,0.06);
}

.panel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e4b69;
    margin-bottom: 8px;
}

.panel div {
    font-size: 0.85rem;
    color: #3a6a82;
    line-height: 1.6;
}

.panel ul {
    margin-top: 6px;
    padding-left: 16px;
}

.panel li {
    margin-bottom: 4px;
}

.tooltip {
    position: fixed;
    background: #1e4b69;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1.5;
}

.tooltip.visible {
    opacity: 1;
}

@media (max-width: 650px) {
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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