/* /Components/Controls/FieldLanes.razor.rz.scp.css */
/* Isolated on purpose. The names in here (.lane, .band, .chip, .field) are exactly the
   kind of generic selectors that have twice leaked out of a page <style> block in this
   repo and restyled the sidebar. */

.lanes-root[b-m5ceyqjgaf] {
    --gutter: 13rem;
    --grid: #e2e8f0;
    --ink: #0f172a;
    --ink-2: #475569;
    --muted: #94a3b8;
    --series: #2563eb;
    font-size: .88rem;
}

/* ---- toolbar ---- */

.toolbar[b-m5ceyqjgaf] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    margin-bottom: .6rem;
}

.picker[b-m5ceyqjgaf] {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.picker input[type=search][b-m5ceyqjgaf] {
    padding: .35rem .55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    min-width: 14rem;
}

.chk[b-m5ceyqjgaf] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ink-2);
    font-size: .82rem;
    white-space: nowrap;
}

.chosen[b-m5ceyqjgaf] {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
}

.chip[b-m5ceyqjgaf] {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: .1rem .25rem .1rem .55rem;
    font-size: .78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.chip button[b-m5ceyqjgaf] {
    border: 0;
    background: transparent;
    color: #1e40af;
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
    padding: 0 .25rem;
}

.chip button:hover[b-m5ceyqjgaf] { color: #b91c1c; }

/* ---- lanes ---- */

.lanes[b-m5ceyqjgaf] {
    position: relative;
    border: 1px solid var(--grid);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.lane[b-m5ceyqjgaf] {
    display: grid;
    grid-template-columns: var(--gutter) 1fr;
    border-top: 1px solid var(--grid);
}

.lane:first-child[b-m5ceyqjgaf] { border-top: 0; }

.lane-label[b-m5ceyqjgaf] {
    padding: .3rem .55rem;
    border-right: 1px solid var(--grid);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .05rem;
    min-width: 0;
    background: #f8fafc;
}

.lane-label .name[b-m5ceyqjgaf] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lane-label .scale[b-m5ceyqjgaf] {
    font-size: .68rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* The hover readout. JS writes into this; it must not reflow the gutter as values
   change width, hence the fixed line and tabular figures. */
.lane-label .readout[b-m5ceyqjgaf] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8rem;
    font-weight: 700;
    color: var(--series);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lane-plot[b-m5ceyqjgaf] {
    position: relative;
    min-width: 0;
}

.lane.num .lane-plot[b-m5ceyqjgaf] { height: 52px; }
.lane.state .lane-plot[b-m5ceyqjgaf] { height: 26px; }

.lane.num svg[b-m5ceyqjgaf] {
    display: block;
    width: 100%;
    height: 100%;
}

.env[b-m5ceyqjgaf] {
    fill: none;
    stroke: var(--series);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

/* ---- state ribbons ---- */

.bands[b-m5ceyqjgaf] {
    display: flex;
    height: 100%;
    width: 100%;
}

.band[b-m5ceyqjgaf] {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: .7rem;
    letter-spacing: .01em;
    white-space: nowrap;
    /* A 2px surface gap between adjacent fills, so two similar ramp steps still read as
       two bands rather than one long one. */
    box-shadow: inset -2px 0 0 #fff;
}

.band span[b-m5ceyqjgaf] {
    padding: 0 .3rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- axis ---- */

.lane.axis .lane-plot[b-m5ceyqjgaf] { height: 20px; }
.lane.axis .lane-label[b-m5ceyqjgaf] { background: #f8fafc; }

.ticks[b-m5ceyqjgaf] {
    position: relative;
    height: 100%;
}

.ticks span[b-m5ceyqjgaf] {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    font-size: .68rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ticks span:first-child[b-m5ceyqjgaf] { transform: none; }
.ticks span:last-child[b-m5ceyqjgaf] { transform: translateX(-100%); }

/* ---- crosshair ---- */

.crosshair-host[b-m5ceyqjgaf] {
    position: absolute;
    top: 0;
    /* 20px axis plot + its 1px border-top. At a flat 20px the crosshair bled a pixel
       into the tick row and read as a stray mark under the last lane. */
    bottom: 21px;
    left: var(--gutter);
    right: 0;
    cursor: crosshair;
}

.crosshair[b-m5ceyqjgaf] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #0f172a;
    opacity: 0;
    pointer-events: none;
}

.crosshair-host:hover .crosshair[b-m5ceyqjgaf] { opacity: .55; }

/* Where the player currently sits, so the lanes and the transport agree. */
.cursor-mark[b-m5ceyqjgaf] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ea580c;
    pointer-events: none;
}

.foot[b-m5ceyqjgaf] {
    margin: .4rem 0 .7rem;
    font-size: .78rem;
}

/* ---- field list ---- */

.field-list[b-m5ceyqjgaf] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    max-height: 15rem;
    overflow: auto;
    border: 1px solid var(--grid);
    border-radius: 8px;
    padding: .5rem .6rem;
    background: #fcfcfb;
}

.family[b-m5ceyqjgaf] { min-width: 9rem; }

.family-name[b-m5ceyqjgaf] {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .15rem;
}

.field[b-m5ceyqjgaf] {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 5px;
    padding: .1rem .3rem;
    cursor: pointer;
    font-size: .76rem;
    color: var(--ink-2);
}

.field:hover[b-m5ceyqjgaf] { background: #eef2ff; }

.field.on[b-m5ceyqjgaf] {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
    font-weight: 600;
}

.field.flat[b-m5ceyqjgaf] { opacity: .5; }

.field .fk[b-m5ceyqjgaf] {
    font-size: .6rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    width: 1.6rem;
    flex: none;
}

.field .fn[b-m5ceyqjgaf] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field .fv[b-m5ceyqjgaf] {
    margin-left: auto;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-size: .68rem;
    white-space: nowrap;
}

.muted[b-m5ceyqjgaf] { color: var(--muted); font-style: italic; }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-p3ytkk4pib] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-p3ytkk4pib] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-m0gbzxqqxi],
.components-reconnect-repeated-attempt-visible[b-m0gbzxqqxi],
.components-reconnect-failed-visible[b-m0gbzxqqxi],
.components-pause-visible[b-m0gbzxqqxi],
.components-resume-failed-visible[b-m0gbzxqqxi],
.components-rejoining-animation[b-m0gbzxqqxi] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-retrying[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-failed[b-m0gbzxqqxi],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-m0gbzxqqxi] {
    display: block;
}


#components-reconnect-modal[b-m0gbzxqqxi] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-m0gbzxqqxi 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-m0gbzxqqxi 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-m0gbzxqqxi 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-m0gbzxqqxi]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-m0gbzxqqxi 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-m0gbzxqqxi {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-m0gbzxqqxi {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-m0gbzxqqxi {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-m0gbzxqqxi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-m0gbzxqqxi] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-m0gbzxqqxi] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-m0gbzxqqxi] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-m0gbzxqqxi] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-m0gbzxqqxi] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-m0gbzxqqxi] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-m0gbzxqqxi 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-m0gbzxqqxi] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-m0gbzxqqxi {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
