.uploads-page {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "head work"
        "promises work";
    align-items: start;
    column-gap: clamp(40px, 6vw, 96px);
    margin-top: clamp(40px, 7vh, 72px);
}

.beam-head {
    grid-area: head;
}

.beam-head h1 {
    font-size: var(--step-4);
}

.beam-lede {
    max-width: 30ch;
    margin: 14px 0 0;
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.55;
}

.beam-promises {
    grid-area: promises;
    max-width: 440px;
    margin: 36px 0 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}

.beam-promises li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
}

.beam-promise-ico {
    display: inline-flex;
    grid-row: 1 / 3;
    padding-top: 5px;
    color: rgb(var(--sun-rgb));
}

.beam-promises strong {
    font-size: var(--step-2);
    font-weight: 700;
    line-height: 1.25;
}

.beam-promises li > span:last-child {
    color: var(--ink-2);
    font-size: var(--step-0);
    line-height: 1.5;
}

.beam-work {
    grid-area: work;
    min-width: 0;
}

.beam-dest {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: var(--step-0);
}

.pick {
    position: relative;
}

.pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: 100%;
    min-height: 44px;
    padding: 0 4px 0 2px;
    border: 0;
    border-bottom: 1px solid var(--hairline-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: var(--step-0);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.pick-btn:hover,
.pick-open .pick-btn {
    border-bottom-color: rgb(var(--sun-rgb));
}

.pick-ico {
    display: inline-flex;
    flex: none;
    color: rgb(var(--sun-rgb));
}

.pick-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pick-caret {
    display: inline-flex;
    flex: none;
    color: var(--ink-3);
    transform: rotate(90deg);
    transition: transform 0.2s var(--ease-out);
}

.pick-open .pick-caret {
    transform: rotate(-90deg);
}

.pick-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-width: 100%;
    max-width: min(360px, calc(100vw - 32px));
    max-height: 300px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid var(--hairline);
    border-top-color: rgb(var(--sun-rgb) / 0.32);
    border-radius: var(--r-3);
    background: rgb(var(--deep-rgb) / 0.97);
    box-shadow: var(--shadow-2);
    animation: menu-in 0.18s var(--ease-out);
}

.pick-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-2);
    background: none;
    color: var(--ink-2);
    font-size: var(--step-0);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.pick-opt:hover,
.pick-opt:focus-visible {
    background: var(--wash-strong);
    color: var(--ink);
}

.pick-opt-on {
    color: var(--ink);
    font-weight: 600;
}

.pick-opt-ico {
    display: inline-flex;
    flex: none;
    color: rgb(var(--sun-rgb));
}

.pick-check {
    display: inline-flex;
    flex: none;
    margin-left: auto;
    padding-left: 12px;
    color: var(--ink);
}

.beam-zone {
    display: block;
    padding: 10px;
    cursor: pointer;
}

.beam-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: clamp(280px, 38vh, 360px);
    padding: 36px 20px;
    border: 1px dashed var(--hairline-strong);
    border-radius: var(--r-2);
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.beam-zone:hover .beam-pad {
    border-color: rgb(var(--sun-rgb) / 0.8);
}

.beam-zone-hot .beam-pad,
.beam-zone-hot:hover .beam-pad {
    border-style: solid;
    border-color: rgb(var(--sun-rgb));
    background: var(--wash);
}

.beam-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgb(var(--sun-rgb) / 0.14);
    color: rgb(var(--sun-rgb));
    transition: transform 0.35s var(--ease-out);
}

.beam-mark svg {
    width: 28px;
    height: 28px;
}

.beam-zone-hot .beam-mark {
    transform: translateY(-10px);
}

.beam-hint {
    font-size: var(--step-2);
    font-weight: 700;
    line-height: 1.1;
}

.beam-sub {
    max-width: 34ch;
    color: var(--ink-2);
    font-size: var(--step-0);
    line-height: 1.5;
}

.beam-pick {
    margin-top: 20px;
    pointer-events: none;
}

.beam-zone:hover .beam-pick {
    background: #ffffff;
}

.beam-zone-hot .beam-pick {
    visibility: hidden;
}

.beam-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.beam-zone:has(.beam-input:focus-visible) {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

.beam-list {
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}

.beam-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas:
        "ico top pct"
        ". bar pct"
        ". foot pct";
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    padding: 16px 4px 18px;
    border-bottom: 1px solid var(--hairline);
}

.beam-item > .ficon {
    grid-area: ico;
    align-self: start;
    padding-top: 6px;
}

.beam-item > .ficon svg {
    width: 24px;
    height: 24px;
}

.beam-top {
    display: flex;
    grid-area: top;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.beam-name {
    min-width: 0;
    overflow: hidden;
    font-size: var(--step-1);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beam-acts {
    display: flex;
    flex: none;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.beam-bar {
    display: block;
    grid-area: bar;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgb(var(--sun-rgb) / 0.16);
}

.beam-bar-fill {
    display: block;
    height: 100%;
    background: var(--live);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out), background-color 0.2s ease;
}

.beam-item-done .beam-bar-fill {
    background: rgb(var(--ink-rgb) / 0.55);
}

.beam-item-still .beam-bar-fill {
    background: var(--ink-3);
}

.beam-item-bad .beam-bar-fill {
    background: var(--alert);
}

.beam-foot {
    display: flex;
    grid-area: foot;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-width: 0;
}

.beam-status {
    color: var(--ink-2);
    font-size: var(--step--1);
}

.beam-item-bad .beam-status {
    color: var(--alert-soft);
}

.beam-pace {
    display: flex;
    gap: 14px;
    color: var(--ink-2);
    font-size: var(--step--1);
    white-space: nowrap;
}

.beam-pct {
    grid-area: pct;
    align-self: center;
    min-width: 3.4ch;
    margin-left: 6px;
    color: var(--live);
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-stretch: 112%;
    font-weight: 800;
    line-height: 1;
    text-align: right;
}

.beam-pct-sign {
    font-size: 0.5em;
}

.beam-pct svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.beam-item-done .beam-pct,
.beam-item-still .beam-pct {
    color: var(--ink-3);
}

.beam-item-bad .beam-pct {
    color: var(--alert);
}

.beam-parked {
    margin-top: 56px;
}

.beam-parked h2 {
    font-family: var(--font-text);
    font-size: var(--step-2);
    font-stretch: normal;
    font-weight: 700;
    letter-spacing: 0;
}

.beam-parked > p {
    max-width: 62ch;
    margin: 10px 0 0;
    color: var(--ink-2);
    font-size: var(--step-0);
}

.beam-parked .beam-list {
    margin-top: 18px;
}

@media (max-width: 860px) {
    .uploads-page {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "head"
            "work"
            "promises";
        row-gap: 28px;
        margin-top: 28px;
    }

    .beam-lede {
        margin-top: 10px;
    }

    .beam-promises {
        max-width: none;
        margin-top: 12px;
    }

    .beam-promises strong {
        font-size: var(--step-1);
    }

    .beam-pad {
        min-height: 240px;
        padding: 28px 16px;
    }

    .beam-item {
        grid-template-areas:
            "ico top pct"
            ". bar pct"
            ". foot pct";
        column-gap: 12px;
    }

    .beam-top {
        flex-wrap: wrap;
    }

    .beam-name {
        flex: 1 1 100%;
        font-size: var(--step-0);
    }

    .beam-acts {
        justify-content: flex-start;
    }

    .beam-pct {
        font-size: var(--step-3);
    }
}
