.welcome-projects {
    display: block;
}

.project-column {
    width: 100%;
    height: 100%;
    min-height: 760px;
    display: grid;
    grid-template-rows: minmax(0, 1.08fr) minmax(290px, .92fr);
    gap: 18px;
}

.project-explorer-card,
.project-map-card {
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 26px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 26px 68px rgba(8, 38, 84, .15);
}

.project-explorer-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 25px 26px 24px;
}

.project-explorer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.project-explorer-head > div {
    min-width: 0;
}

.project-explorer-head > div > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-explorer-head h2 {
    margin: 5px 0 0;
    color: var(--navy-900);
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.project-count {
    flex: 0 0 auto;
    margin-top: 4px;
    padding: 6px 9px;
    color: var(--muted);
    border: 1px solid #d9e2ee;
    border-radius: 999px;
    background: #f7faff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.project-explorer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.project-explorer-actions button {
    width: 100%;
    min-height: 41px;
    display: grid;
    place-items: center;
    padding: 8px 9px;
    color: var(--navy-900);
    border: 1px solid #cfdae8;
    border-radius: 10px;
    background: #f7faff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.project-explorer-actions button:hover,
.project-explorer-actions button:focus-visible {
    transform: translateY(-1px);
    border-color: #91acd0;
    background: #fff;
    box-shadow: 0 7px 17px rgba(8, 38, 84, .1);
    outline: none;
}

.project-explorer-actions > button:nth-child(2) {
    color: #765000;
    border-color: #e5cb72;
    background: #fff9e5;
}

.project-explorer-actions > button.is-active {
    color: #fff;
    border-color: var(--navy-700);
    background: linear-gradient(180deg, #235fae, #174b8a);
    box-shadow: 0 8px 18px rgba(30, 79, 146, .2);
}

.project-explorer-actions > button:nth-child(2).is-active {
    color: #5d4300;
    border-color: #d9a300;
    background: #ffe79a;
    box-shadow: 0 8px 18px rgba(217, 163, 0, .2);
}

.project-list-panel {
    min-height: 0;
    flex: 1;
}

.project-list-panel[hidden] {
    display: none;
}

.project-list-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    animation: project-panel-in .17s ease-out;
}

@keyframes project-panel-in {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recent-projects-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 17px 0 6px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.recent-projects-heading strong {
    color: var(--navy-900);
    font-size: 14px;
}

.recent-projects-heading span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.recent-projects-list {
    min-height: 0;
    display: grid;
    gap: 1px;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: #c7d4e4 transparent;
}

.recent-project-form {
    margin: 0;
}

.recent-project {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 27px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 7px;
    color: var(--navy-900);
    text-align: left;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.recent-project:hover,
.recent-project:focus-visible {
    transform: translateX(2px);
    background: #f3f7fc;
    outline: none;
}

.recent-project-index {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #7a5a00;
    border-radius: 50%;
    background: #fff1bd;
    font-size: 11px;
    font-weight: 850;
}

.budget-index {
    color: #fff;
    background: #b88600;
}

.recent-project-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.recent-project-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-project-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-project-arrow {
    color: #7f96b1;
    font-size: 15px;
}

.recent-project-empty {
    padding: 20px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #ccd8e7;
    border-radius: 12px;
    font-size: 12px;
}

.project-map-card {
    min-height: 290px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.project-map-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 22px 15px;
}

.project-map-card-head > div {
    min-width: 0;
}

.project-map-kicker {
    color: #17643a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-map-card h2 {
    margin: 4px 0 0;
    color: var(--navy-900);
    font-size: 19px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.project-map-card form {
    margin: 0;
}

.project-map-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: var(--navy-700);
    border: 1px solid #b9cae2;
    border-radius: 9px;
    background: #fff;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.project-map-button:hover,
.project-map-button:focus-visible {
    transform: translateY(-1px);
    border-color: #8ba8cb;
    box-shadow: 0 7px 16px rgba(8, 38, 84, .1);
    outline: none;
}

.project-map-button span {
    font-size: 13px;
}

.project-map-live-shell {
    min-height: 0;
    position: relative;
    overflow: hidden;
    margin: 0 16px 16px;
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    background: #e8f2fc;
}

.welcome-project-map {
    width: 100%;
    height: 100%;
    min-height: 215px;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #e8f2fc;
}

.welcome-map-empty {
    position: absolute;
    z-index: 500;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    color: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 10px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 8px 20px rgba(8, 38, 84, .14);
    backdrop-filter: blur(8px);
}

.welcome-map-empty[hidden] {
    display: none;
}

.welcome-map-empty strong {
    font-size: 10px;
}

.welcome-map-empty span {
    color: var(--muted);
    font-size: 8px;
    line-height: 1.35;
}

.welcome-project-map .leaflet-control-attribution {
    font-size: 7px;
    background: rgba(255, 255, 255, .82);
}

.welcome-map-tooltip {
    color: var(--navy-900);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(8, 38, 84, .18);
    font-size: 10px;
    font-weight: 800;
}

.welcome-project-map .leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.welcome-project-map .leaflet-popup-content {
    min-width: 130px;
    margin: 10px 12px;
    color: var(--navy-900);
    font-size: 10px;
    line-height: 1.4;
}

.welcome-project-map .leaflet-popup-content strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
}

.welcome-project-map .leaflet-popup-content span {
    color: var(--muted);
}

.welcome-map-popup-button {
    margin-top: 7px;
    padding: 5px 8px;
    color: #fff;
    border: 0;
    border-radius: 7px;
    background: var(--navy-700);
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1320px) {
    .project-column {
        min-height: 0;
        grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
        grid-template-rows: minmax(350px, auto);
    }

    .project-explorer-card,
    .project-map-card {
        min-height: 350px;
    }

    .recent-projects-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
    }

    .recent-project {
        height: 100%;
        min-height: 100px;
        grid-template-columns: 27px 1fr;
        align-items: start;
        border: 1px solid #e0e7f0;
    }

    .recent-project-arrow {
        display: none;
    }

    .project-map-live-shell {
        min-height: 250px;
    }

    .welcome-project-map {
        min-height: 250px;
    }
}

@media (max-width: 980px) {
    .project-column {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .project-explorer-card,
    .project-map-card {
        min-height: 0;
    }

    .recent-projects-list {
        grid-template-columns: 1fr;
    }

    .recent-project {
        min-height: 0;
        grid-template-columns: 27px 1fr auto;
        border: 0;
        border-bottom: 1px solid #edf1f6;
    }

    .recent-project-arrow {
        display: inline;
    }

    .project-map-live-shell,
    .welcome-project-map {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .project-column {
        gap: 0;
    }

    .project-explorer-card,
    .project-map-card {
        border-radius: 0;
        box-shadow: none;
    }

    .project-explorer-card {
        padding: 22px 18px 28px;
    }

    .project-explorer-head {
        align-items: center;
    }

    .project-explorer-head h2 {
        font-size: 21px;
    }

    .project-count {
        display: none;
    }

    .project-explorer-actions {
        gap: 5px;
    }

    .project-explorer-actions button {
        min-height: 38px;
        font-size: 10px;
    }

    .project-map-card-head {
        padding: 20px 18px 14px;
    }

    .project-map-card h2 {
        font-size: 17px;
    }

    .project-map-button {
        padding: 6px 9px;
    }

    .project-map-live-shell {
        min-height: 220px;
        margin: 0 0 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
    }

    .welcome-project-map {
        min-height: 220px;
    }
}
