.wall-palette {
    --ground: #D9DCDB;
    --label: #FFFFFF;
    --text: #1E1E1C;
    --body: #3A3A37;
    --quiet: #5E5E59;
    --faint: #D5D8D7;
    --on-wall: #FFFFFF;
    --on-wall-quiet: rgba(255, 255, 255, 0.74);
    --accent: #B4452F;
    --green: #2E4A3F;
    --oxblood: #5B3A3A;
    --slate: #33465C;
    --ochre: #5E4B2E;
    --plum: #4A3B52;
    --teal: #2B4D52;
    --moss: #44502E;
    --clay: #6B4130;
    --neutral: #55534E;
    --fresh: #FFD24D;
    --urgent: #D7372B;
    --starting: #1FB566;
    background: var(--ground);
    color: var(--text);
    font-family: var(--sans);
}

.wall {
    min-height: 100vh;
    position: relative;
    background: var(--ground);
    color: var(--text);
    padding: 36px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-family: var(--sans);
    overflow-x: clip;
    transition: background-color 1.2s ease-out, color 1.2s ease-out;
}

.wall-palette.wall-night {
    --ground: #0D0F0F;
    --label: #2A2926;
    --text: #D6D2C9;
    --body: #B4B0A7;
    --quiet: #9B978E;
    --faint: #3A3936;
    --on-wall: #C9C5BC;
    --on-wall-quiet: rgba(201, 197, 188, 0.7);
    --accent: #C9664C;
    --green: #16231E;
    --oxblood: #251818;
    --slate: #161D26;
    --ochre: #241D12;
    --plum: #1E1822;
    --teal: #13232A;
    --moss: #1D2214;
    --clay: #2A1A13;
    --neutral: #1E1D1B;
    --fresh: #F2CF86;
    --urgent: #E2533F;
    --starting: #57C98A;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    .wall-palette.wall-follow-os {
        --ground: #0D0F0F;
        --label: #2A2926;
        --text: #D6D2C9;
        --body: #B4B0A7;
        --quiet: #9B978E;
        --faint: #3A3936;
    --faint: #3A3936;
        --on-wall: #C9C5BC;
        --on-wall-quiet: rgba(201, 197, 188, 0.7);
        --accent: #C9664C;
        --green: #16231E;
        --oxblood: #251818;
        --slate: #161D26;
        --ochre: #241D12;
        --plum: #1E1822;
        --teal: #13232A;
        --moss: #1D2214;
        --clay: #2A1A13;
        --neutral: #1E1D1B;
        --fresh: #F2CF86;
        --urgent: #E2533F;
        --starting: #57C98A;
        color-scheme: dark;
}
}

.wall ::selection {
    background: var(--green);
    color: #FFFFFF;
}

.wall-message, .wall-empty {
    font-size: 30px;
    line-height: 1.3;
    color: var(--quiet);
    max-width: 30ch;
    margin: 0;
}

.wall-message {
    margin-top: 20vh;
}

.wall-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.wall-id {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 28px;
    min-width: 0;
}

.wall-mark {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}

.wall-mark-icon {
    width: 30px;
    height: 30px;
}

.wall-date, .wall-count {
    font-size: 22px;
    color: var(--quiet);
}

.wall-id .stream-status {
    font-size: 18px;
    color: var(--quiet);
}

.wall-id .stream-live .stream-mark {
    background: var(--green);
    border-color: var(--green);
}

.wall-night .wall-id .stream-live .stream-mark {
    background: var(--quiet);
    border-color: var(--quiet);
}

.wall-id .stream-lost {
    color: var(--accent);
}

.wall-clock {
    font-size: 64px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.wall-grid {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.wall-category {
    background: var(--neutral);
    padding: 24px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    transition: background-color 1.2s ease-out;
}

.paint-green { background: var(--green); }
.paint-oxblood { background: var(--oxblood); }
.paint-slate { background: var(--slate); }
.paint-ochre { background: var(--ochre); }
.paint-plum { background: var(--plum); }
.paint-teal { background: var(--teal); }
.paint-moss { background: var(--moss); }
.paint-clay { background: var(--clay); }
.paint-neutral { background: var(--neutral); }

    .wall-category h2 {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        margin: 0 0 6px;
        color: var(--on-wall);
        font-size: 28px;
        font-weight: 500;
        line-height: 1.15;
    }

.wall-category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wall-category-count {
    font-size: 22px;
    font-weight: 400;
    color: var(--on-wall-quiet);
}

.wall-label {
    background: var(--label);
    padding: 16px 18px 15px;
    transition: background-color 1.2s ease-out;
}

.wall-version {
    position: absolute;
    right: 16px;
    bottom: 10px;
    margin: 0;
    font-size: 13px;
    color: var(--quiet);
    opacity: 0.6;
}

.wall-fresh {
    position: relative;
}

    .wall-fresh::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        box-shadow: 0 0 0 3px var(--fresh), 0 0 24px 6px var(--fresh);
        animation: wall-fresh-fade 600s linear var(--fresh-age, 0s) both;
    }

@keyframes wall-fresh-fade {
    0%, 10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

    .wall-label h3 {
        font-size: 23px;
        font-weight: 600;
        line-height: 1.25;
        margin: 0 0 6px;
        overflow-wrap: anywhere;
        text-wrap: balance;
        color: var(--text);
    }

    .wall-label .marker {
        background: var(--accent);
        width: 10px;
        height: 10px;
    }

.wall-body {
    font-size: 17px;
    line-height: 1.4;
    color: var(--body);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.wall-clock-digits {
    font-variant-numeric: tabular-nums;
}

.wall-meta-part {
    white-space: nowrap;
}

.wall-meta {
    font-size: 15px;
    line-height: 1.35;
    color: var(--quiet);
    margin: 0;
}

.wall-category:has(.wall-label:nth-of-type(4)) {
    gap: 10px;
}

    .wall-category:has(.wall-label:nth-of-type(4)) h2 {
        margin-bottom: 10px;
    }

    .wall-category:has(.wall-label:nth-of-type(4)) .wall-label {
        padding: 12px 16px 12px;
    }

        .wall-category:has(.wall-label:nth-of-type(4)) .wall-label h3 {
            margin-bottom: 4px;
        }

    .wall-category:has(.wall-label:nth-of-type(4)) .wall-body {
        -webkit-line-clamp: 1;
        margin-bottom: 6px;
    }

.wall-more {
    font-size: 17px;
    color: var(--on-wall-quiet);
    margin: 2px 0 0;
}

@media (max-width: 1600px) {
    .wall {
        padding-inline: 32px;
    }

    .wall-grid {
        gap: 14px;
    }

    .wall-category {
        padding-inline: 16px;
    }

    .wall-label h3 {
        font-size: 21px;
    }
}

@media (max-width: 700px) {
    .wall {
        padding: 20px 16px 32px;
        gap: 20px;
    }

    .wall-head {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    .wall-clock {
        font-size: 48px;
    }

    .wall-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wall, .wall-category, .wall-label {
        transition: none;
    }
}

.wall-label {
    cursor: pointer;
}

.wall-category .wall-label.is-open .wall-body {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: pre-line;
}

.wall-actions {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 2px;
}

.wall-dismiss {
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 18px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

    .wall-dismiss:hover {
        background: var(--text);
        color: var(--label);
    }

.wall-urgent-glow {
    position: relative;
}

    .wall-urgent-glow::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        box-shadow: 0 0 0 3px var(--urgent), 0 0 26px 7px var(--urgent);
        animation: wall-urgent-in 1.5s ease-out both;
    }

@keyframes wall-urgent-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wall-high {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 55%, transparent);
}

.wall-low h3,
.wall-low .wall-body,
.wall-low .wall-meta {
    opacity: 0.68;
}

.wall-starting {
    position: relative;
}

    .wall-starting::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        box-shadow: 0 0 0 3px var(--starting), 0 0 24px 6px var(--starting);
        animation: wall-start-fade-in 900s linear var(--start-age, 0s) both;
    }

@keyframes wall-start-fade-in {
    0% {
        opacity: 0;
    }

    66.667%, 100% {
        opacity: 1;
    }
}

.wall-start {
    margin: -2px 0 6px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--quiet);
}

.wall-embedded {
    min-height: 0;
    padding: 24px;
    margin-top: 8px;
}

    .wall-embedded .wall-grid {
        flex: none;
    }

.wall-importance {
    font: inherit;
    font-size: 16px;
    padding: 7px 10px;
    border: 1px solid var(--text);
    background: var(--label);
    color: var(--text);
    cursor: pointer;
}

.wall-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.wall-dismiss-end {
    margin-left: auto;
}

.wall-closure {
    font-size: 15px;
    color: var(--quiet);
    margin: 6px 0 0;
}

    .wall-closure strong {
        font-weight: 600;
        color: var(--text);
    }

.wall-past {
    display: grid;
    gap: 12px;
    max-width: 820px;
}

.wall-open-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.wall-closes {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--quiet);
}

.wall-closure-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wall-plan {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.wall-plan-label {
    font-size: 15px;
    color: var(--quiet);
    margin-right: 4px;
}

.wall-planned {
    font-weight: 600;
    color: var(--text);
}
