.deliveryTop {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.deliveryTop h2,
.deliveryModule h1,
.deliveryModule h2 {
    margin-top: 0;
}

.deliveryInline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.deliveryInline input {
    max-width: 360px;
}

.deliveryOrderCard,
.driverDeliveryCard {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    margin-top: 12px;
}

.deliveryActions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.deliveryActions select {
    min-width: 190px;
    padding: 11px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.deliveryLink {
    text-decoration: none;
    border-radius: 11px;
    padding: 12px 14px;
    font-weight: 900;
    display: inline-block;
}

.deliveryAssigned {
    margin: 12px 0 0;
    background: #fff7df;
    padding: 9px;
    border-radius: 9px;
}

.driverInviteResult {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.driverInviteResult input {
    background: #fff;
}

.driverInvitePublic {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.driverInvitePublicCard {
    width: min(460px, 100%);
    padding: 28px;
    display: grid;
    gap: 12px;
}

.driverInvitePublicCard h1,
.driverInvitePublicCard p {
    margin: 0;
}

.driverPortal {
    min-height: 100vh;
    max-width: 820px;
    margin: 0 auto;
    padding: 18px;
}

.driverPortalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.driverIdentity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driverIdentity small,
.driverRosterRow small {
    display: block;
    color: var(--mut);
    margin-top: 4px;
}

.driverRosterRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.driverAddress {
    font-size: 17px;
    font-weight: 800;
}

@media (max-width: 650px) {
    .deliveryTop,
    .driverPortalHeader,
    .driverRosterRow {
        align-items: stretch;
        flex-direction: column;
    }

    .deliveryActions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .deliveryActions select,
    .deliveryActions button,
    .deliveryLink,
    .driverRosterRow button {
        width: 100%;
        text-align: center;
    }

    .deliveryInline {
        display: grid;
    }

    .deliveryInline input {
        max-width: none;
    }

    .driverDeliveryCard {
        padding: 16px;
    }
}