/* =============================================================================
   YUM — live status in the collection and register bars (Nov 2026).
   A green, monospace read-out of whatever is currently selected, sitting in
   place of the "Collection" / "The register" label. The red live dot stays
   and pulses. Colour is --free, so both editions already have contrast:
   #15803D on paper (4.9:1) and #4ADE80 on moon (9.6:1).
   ========================================================================== */

.yum-status.console__title,
p.console__title.yum-status {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--free);
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto 0 0;
    gap: .5rem;
    line-height: 1.3;
}

.yum-status__txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.yum-status__dot {
    animation: yum-status-pulse 1.8s ease-in-out infinite;
}

@keyframes yum-status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
    }
    50% {
        opacity: .5;
        transform: scale(.86);
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent);
    }
}

.yum-status__cur {
    flex: 0 0 auto;
    width: .4em;
    height: .85em;
    background: var(--free);
    opacity: .9;
    align-self: center;
    animation: yum-status-caret 1.05s steps(1) infinite;
}

@keyframes yum-status-caret {
    0%, 49% { opacity: .9; }
    50%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
    .yum-status.console__title,
    p.console__title.yum-status {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    .yum-status__txt {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yum-status__dot,
    .yum-status__cur { animation: none; }
    .yum-status__cur { opacity: .55; }
}
