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

body {
    background: #e9eaef;
    color: #1a1a1a;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0.75rem 1.5rem 6rem;
}

.page {
    max-width: 720px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    margin-bottom: 1.25rem;
}

.back-link {
    font-size: 0.72rem;
    font-weight: 300;
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.12s;
}
.back-link:hover { color: #555; }

.site-name {
    font-family: 'Matemasie', sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: linear-gradient(
        120deg,
        #0a0a0a, #4a4a4a, #606060, #1c1c1c,
        #555, #111, #3a3a3a, #0a0a0a
    );
    background-size: 350% 350%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora 70s ease infinite;
    display: inline-block;
}

.tagline {
    font-size: 0.72rem;
    font-weight: 300;
    color: #999;
    margin-top: 0.1rem;
}

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

/* ── Rows ───────────────────────────────────────────────── */
.section-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0 1.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #d8dae3;
    align-items: start;
}

.section-row:last-child {
    border-bottom: 1px solid #d8dae3;
}

.row-label {
    font-family: 'Bagel Fat One', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    padding-top: 2px;
    white-space: nowrap;
}

.section-row[data-color="teal"]   .row-label { color: #2a8a80; }
.section-row[data-color="violet"] .row-label { color: #6b42c8; }
.section-row[data-color="amber"]  .row-label { color: #b87215; }
.section-row[data-color="slate"]  .row-label { color: #5e6e82; }

.row-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* ── Pipelines ───────────────────────────────────────────── */
.pipeline-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.pipeline-name {
    font-size: 0.82rem;
    font-weight: 300;
    color: #555;
    text-decoration: none;
    transition: color 0.12s;
}

.pipeline-name:not(.muted):hover { color: #1a1a1a; }
.pipeline-name.muted { color: #bbb; }

.pipeline-status {
    font-size: 0.65rem;
    font-weight: 300;
}

.pipeline-status.active  { color: #2a8a80; }
.pipeline-status.partial { color: #b87215; }
.pipeline-status.planned { color: #c8cad4; }

/* ── Inventory ───────────────────────────────────────────── */
.inventory-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.inventory-name {
    font-size: 0.82rem;
    font-weight: 300;
    color: #555;
    text-decoration: none;
    transition: color 0.12s;
    min-width: 90px;
}

.inventory-name:hover { color: #1a1a1a; }

.inventory-count {
    font-size: 0.82rem;
    font-weight: 400;
    color: #1a1a1a;
    min-width: 28px;
}

.inventory-source {
    font-size: 0.7rem;
    font-weight: 300;
    color: #bbb;
}

/* ── Actions ─────────────────────────────────────────────── */
.action-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.action-link {
    font-size: 0.82rem;
    font-weight: 300;
    color: #555;
    text-decoration: none;
    transition: color 0.12s;
}

.action-item:not(.disabled) .action-link:hover { color: #1a1a1a; }
.action-item.disabled .action-link { color: #ccc; }

.action-tag {
    font-size: 0.65rem;
    font-weight: 300;
    color: #c8cad4;
}

/* ── Backlog ─────────────────────────────────────────────── */
.backlog-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.backlog-status {
    font-size: 0.65rem;
    font-weight: 400;
    min-width: 32px;
    white-space: nowrap;
}

.backlog-status.in-progress { color: #b87215; }
.backlog-status.next        { color: #6b42c8; }
.backlog-status.planned     { color: #c8cad4; }

.backlog-text {
    font-size: 0.82rem;
    font-weight: 300;
    color: #555;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 520px) {
    body { padding: 0.75rem 1rem 5rem; }

    .section-row {
        grid-template-columns: 72px 1fr;
        gap: 0 1rem;
    }
}
